diff options
author | Olivier Lamy <olamy@apache.org> | 2015-10-07 14:26:31 +1100 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2015-10-07 14:26:31 +1100 |
commit | e05ec3d0f365f2978292cafd5d20d177969d9bc6 (patch) | |
tree | 6146b7b9d925aeec4139007c3b37be819b812582 | |
parent | 649b915e8133fb9c8a28eb032fb2ac7b80bc68f2 (diff) | |
download | archiva-e05ec3d0f365f2978292cafd5d20d177969d9bc6.tar.gz archiva-e05ec3d0f365f2978292cafd5d20d177969d9bc6.zip |
to help travis build
2 files changed, 131 insertions, 5 deletions
diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml index a680b22c1..0d5a75c75 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/pom.xml @@ -122,12 +122,40 @@ <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-archetype-plugin</artifactId> <version>${archetypeVersion}</version> - <configuration> - <settingsFile>${basedir}/src/test/test-settings.xml</settingsFile> - <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath> - - </configuration> </plugin> </plugins> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-archetype-plugin</artifactId> + <version>${archetypeVersion}</version> + <configuration> + <settingsFile>${basedir}/src/test/test-settings.xml</settingsFile> + <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath> + </configuration> + </plugin> + </plugins> + </pluginManagement> </build> + <profiles> + <profile> + <id>ci-build</id> + <build> + <pluginManagement> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-archetype-plugin</artifactId> + <version>${archetypeVersion}</version> + <configuration> + <settingsFile>${basedir}/src/test/ci-test-settings.xml</settingsFile> + <localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath> + </configuration> + </plugin> + </plugins> + </pluginManagement> + </build> + </profile> + </profiles> </project> diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/test/ci-test-settings.xml b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/test/ci-test-settings.xml new file mode 100644 index 000000000..fcbb3649e --- /dev/null +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-consumer-archetype/src/test/ci-test-settings.xml @@ -0,0 +1,98 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +under the License. +--> + +<settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" + xmlns="http://maven.apache.org/SETTINGS/1.0.0"> + <mirrors> + <mirror> + <mirrorOf>external:*,!central</mirrorOf> + <id>local-mirror</id> + <name>local-mirror</name> + <url>@localRepositoryUrl@</url> + </mirror> + </mirrors> + <profiles> + <profile> + <id>it-repo</id> + <activation> + <activeByDefault>true</activeByDefault> + </activation> + <repositories> + <!-- + Uncomment if you have some redback librairies staged and want to cut a release + <repository> + <id>archiva-repository.apache.org.stage</id> + <url>https://archiva-repository.apache.org/archiva/repository/archiva-releases-stage/</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + --> + <repository> + <id>local-central</id> + <url>@localRepositoryUrl@</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </repository> + <repository> + <id>central</id> + <url>https://repo.maven.apache.org/maven2</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </repository> + </repositories> + <pluginRepositories> + <pluginRepository> + <id>local-central</id> + <url>@localRepositoryUrl@</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>true</enabled> + </snapshots> + </pluginRepository> + <pluginRepository> + <id>central</id> + <url>https://repo.maven.apache.org/maven2</url> + <releases> + <enabled>true</enabled> + </releases> + <snapshots> + <enabled>false</enabled> + </snapshots> + </pluginRepository> + </pluginRepositories> + </profile> + </profiles> +</settings> |