[seam-commits] Seam SVN: r12658 - branches/community/Seam_2_2/build.
seam-commits at lists.jboss.org
seam-commits at lists.jboss.org
Wed Apr 28 06:39:42 EDT 2010
Author: manaRH
Date: 2010-04-28 06:39:40 -0400 (Wed, 28 Apr 2010)
New Revision: 12658
Modified:
branches/community/Seam_2_2/build/ci.build.xml
branches/community/Seam_2_2/build/ci.settings.xml
branches/community/Seam_2_2/build/settings.xml
Log:
new snapshots repository
Modified: branches/community/Seam_2_2/build/ci.build.xml
===================================================================
--- branches/community/Seam_2_2/build/ci.build.xml 2010-04-27 22:14:24 UTC (rev 12657)
+++ branches/community/Seam_2_2/build/ci.build.xml 2010-04-28 10:39:40 UTC (rev 12658)
@@ -2,162 +2,158 @@
<!-- Continuous integration related targets -->
<project name="Seam2 Continuous Integration Support" basedir="." xmlns:artifact="urn:maven-artifact-ant">
- <property name="qualifier" value="-SNAPSHOT" />
- <property file="default.build.properties" />
- <property file="build.properties" />
+ <property name="qualifier" value="-SNAPSHOT" />
+ <property file="default.build.properties" />
+ <property file="build.properties" />
- <property name="seam.dir" value="${basedir}/../" />
- <property name="dist.location" value="${seam.dir}/dist" />
- <property name="doc.ref.dir" value="${seam.dir}/doc/Seam_Reference_Guide" />
-
- <property name="maven.settings.xml" location="ci.settings.xml" />
+ <property name="seam.dir" value="${basedir}/../" />
+ <property name="dist.location" value="${seam.dir}/dist" />
+ <property name="doc.ref.dir" value="${seam.dir}/doc/Seam_Reference_Guide" />
- <import file="common.build.xml" />
-
- <artifact:remoteRepository id="snapshots.jboss.org" url="dav:https://snapshots.jboss.org/maven2">
- <authentication username="hudson-services" password="${snapshots.password}" />
- </artifact:remoteRepository>
-
- <target name="deploySeamSnapshot" description="Deploy a Seam snapshot to snapshots.jboss.org" depends="initdav, initpoms">
- <deploySnapshotPom pom="${root.pom}" />
- <deploySnapshotPom pom="${parent.pom}" />
- <deploySnapshot pom="${core.pom}" jar="${lib.dir}/jboss-seam.jar" srcjar="${lib.dir}/src/jboss-seam-sources.jar" />
- <deploySnapshot pom="${debug.pom}" jar="${lib.dir}/jboss-seam-debug.jar" srcjar="${lib.dir}/src/jboss-seam-debug-sources.jar"/>
- <deploySnapshot pom="${jul.pom}" jar="${lib.dir}/interop/jboss-seam-jul.jar" srcjar="${lib.dir}/interop/src/jboss-seam-jul-sources.jar"/>
- <deploySnapshot pom="${wicket.pom}" jar="${lib.dir}/jboss-seam-wicket.jar" srcjar="${lib.dir}/src/jboss-seam-wicket-sources.jar"/>
- <deploySnapshot pom="${resteasy.pom}" jar="${lib.dir}/jboss-seam-resteasy.jar" srcjar="${lib.dir}/src/jboss-seam-resteasy-sources.jar"/>
- <deploySnapshot pom="${gen.pom}" jar="${lib.dir}/gen/jboss-seam-gen.jar" srcjar="${lib.dir}/gen/src/jboss-seam-gen-sources.jar"/>
- <deploySnapshot pom="${ioc.pom}" jar="${lib.dir}/jboss-seam-ioc.jar" srcjar="${lib.dir}/src/jboss-seam-ioc-sources.jar"/>
- <deploySnapshot pom="${mail.pom}" jar="${lib.dir}/jboss-seam-mail.jar" srcjar="${lib.dir}/src/jboss-seam-mail-sources.jar"/>
- <deploySnapshot pom="${pdf.pom}" jar="${lib.dir}/jboss-seam-pdf.jar" srcjar="${lib.dir}/src/jboss-seam-pdf-sources.jar"/>
- <deploySnapshot pom="${excel.pom}" jar="${lib.dir}/jboss-seam-excel.jar" srcjar="${lib.dir}/src/jboss-seam-excel-sources.jar"/>
- <deploySnapshot pom="${rss.pom}" jar="${lib.dir}/jboss-seam-rss.jar" srcjar="${lib.dir}/src/jboss-seam-rss-sources.jar"/>
- <deploySnapshot pom="${remoting.pom}" jar="${lib.dir}/jboss-seam-remoting.jar" srcjar="${lib.dir}/src/jboss-seam-remoting-sources.jar"/>
- <deploySnapshot pom="${ui.pom}" jar="${lib.dir}/jboss-seam-ui.jar" srcjar="${lib.dir}/src/jboss-seam-ui-sources.jar"/>
- </target>
+ <property name="maven.settings.xml" location="ci.settings.xml" />
- <target name="tests">
- <build target="cleanall" />
- <build target="coverageall" />
- <build target="copytestoutput" />
- <build target="testreport" />
- </target>
+ <import file="common.build.xml" />
- <target name="snapshot">
- <build target="cleanall" />
- <build target="dist" />
-
- <ant target="deploySeamSnapshot" antfile="${ant.file}" inheritall="false" inheritrefs="false" dir=".">
- <propertyset>
- <propertyref name="ant.version"/>
- </propertyset>
- <property name="qualifier" value="-SNAPSHOT" />
- </ant>
- <ant target="deployExamplesSnapshot" antfile="${ant.file}" inheritall="false" inheritrefs="false" dir=".">
- <propertyset>
- <propertyref name="ant.version"/>
- </propertyset>
- <property name="qualifier" value="-SNAPSHOT" />
- </ant>
- <ant target="tests" antfile="${ant.file}" inheritall="false" inheritrefs="false" dir=".">
- <propertyset>
- <propertyref name="ant.version"/>
- </propertyset>
- <property name="qualifier" value="-SNAPSHOT" />
- </ant>
- </target>
-
- <target name="justSnapshot">
- <build target="cleanall" />
- <build target="dist" />
-
- <ant target="deploySeamSnapshot" antfile="${ant.file}" inheritall="false" inheritrefs="false" dir=".">
- <propertyset>
- <propertyref name="ant.version"/>
- </propertyset>
- <property name="qualifier" value="-SNAPSHOT" />
- </ant>
- <ant target="deployExamplesSnapshot" antfile="${ant.file}" inheritall="false" inheritrefs="false" dir=".">
- <propertyset>
- <propertyref name="ant.version"/>
- </propertyset>
- <property name="qualifier" value="-SNAPSHOT" />
- </ant>
- </target>
-
- <target name="snapshotDocumentation">
- <build target="cleanall" />
- <build target="refdoc">
- <properties>
- <property name="build.translations" value="true" />
- </properties>
- </build>
- <ant target="deployDocumentation" antfile="${ant.file}" inheritall="false" inheritrefs="false" dir=".">
- <propertyset>
- <propertyref name="ant.version"/>
- </propertyset>
- <property name="qualifier" value="-SNAPSHOT" />
- </ant>
- </target>
-
- <target name="deployExamplesSnapshot" depends="initdav">
- <deployExample name="booking" repositoryId="snapshots.jboss.org" />
- <deployExampleNoDs name="numberguess" repositoryId="snapshots.jboss.org" />
- <deployExampleNoDs name="jpa" distdir="dist-jboss" type="war" repositoryId="snapshots.jboss.org" />
- <deployExample name="dvdstore" path="${seam.dir}/examples/dvdstore" repositoryId="snapshots.jboss.org" />
- </target>
-
- <target name="deployDocumentation" depends="initdav, initpoms">
- <artifact:deploy uniqueVersion="false" file="${docs.pom}" settingsFile="${maven.settings.xml}">
- <pom file="${docs.pom}" settingsFile="${maven.settings.xml}"/>
- <remoteRepository refId="snapshots.jboss.org" />
- <attach file="${doc.ref.dir}/target/docbook/publish/en-US/pdf/seam_reference.pdf" classifier="en-US" type="pdf" />
- <attach file="${doc.ref.dir}/target/docbook/publish/fr-FR/pdf/seam_reference.pdf" classifier="fr-FR" type="pdf" />
- <attach file="${doc.ref.dir}/target/docbook/publish/it-IT/pdf/seam_reference.pdf" classifier="it-IT" type="pdf" />
- <attach file="${doc.ref.dir}/target/docbook/publish/ja-JP/pdf/seam_reference.pdf" classifier="ja-JP" type="pdf" />
- </artifact:deploy>
- </target>
+ <target name="deploySeamSnapshot" description="Deploy a Seam snapshot to snapshots.jboss.org" depends="initdav, initpoms">
+ <deploySnapshotPom pom="${root.pom}" />
+ <deploySnapshotPom pom="${parent.pom}" />
+ <deploySnapshot pom="${core.pom}" jar="${lib.dir}/jboss-seam.jar" srcjar="${lib.dir}/src/jboss-seam-sources.jar" />
+ <deploySnapshot pom="${debug.pom}" jar="${lib.dir}/jboss-seam-debug.jar" srcjar="${lib.dir}/src/jboss-seam-debug-sources.jar" />
+ <deploySnapshot pom="${jul.pom}" jar="${lib.dir}/interop/jboss-seam-jul.jar" srcjar="${lib.dir}/interop/src/jboss-seam-jul-sources.jar" />
+ <deploySnapshot pom="${wicket.pom}" jar="${lib.dir}/jboss-seam-wicket.jar" srcjar="${lib.dir}/src/jboss-seam-wicket-sources.jar" />
+ <deploySnapshot pom="${resteasy.pom}" jar="${lib.dir}/jboss-seam-resteasy.jar" srcjar="${lib.dir}/src/jboss-seam-resteasy-sources.jar" />
+ <deploySnapshot pom="${gen.pom}" jar="${lib.dir}/gen/jboss-seam-gen.jar" srcjar="${lib.dir}/gen/src/jboss-seam-gen-sources.jar" />
+ <deploySnapshot pom="${ioc.pom}" jar="${lib.dir}/jboss-seam-ioc.jar" srcjar="${lib.dir}/src/jboss-seam-ioc-sources.jar" />
+ <deploySnapshot pom="${mail.pom}" jar="${lib.dir}/jboss-seam-mail.jar" srcjar="${lib.dir}/src/jboss-seam-mail-sources.jar" />
+ <deploySnapshot pom="${pdf.pom}" jar="${lib.dir}/jboss-seam-pdf.jar" srcjar="${lib.dir}/src/jboss-seam-pdf-sources.jar" />
+ <deploySnapshot pom="${excel.pom}" jar="${lib.dir}/jboss-seam-excel.jar" srcjar="${lib.dir}/src/jboss-seam-excel-sources.jar" />
+ <deploySnapshot pom="${rss.pom}" jar="${lib.dir}/jboss-seam-rss.jar" srcjar="${lib.dir}/src/jboss-seam-rss-sources.jar" />
+ <deploySnapshot pom="${remoting.pom}" jar="${lib.dir}/jboss-seam-remoting.jar" srcjar="${lib.dir}/src/jboss-seam-remoting-sources.jar" />
+ <deploySnapshot pom="${ui.pom}" jar="${lib.dir}/jboss-seam-ui.jar" srcjar="${lib.dir}/src/jboss-seam-ui-sources.jar" />
+ </target>
- <macrodef name="build">
- <attribute name="target" />
- <attribute name="testngjvmargs" default="" />
- <element name="properties" optional="true" />
- <sequential>
- <ant antfile="${seam.dir}/build.xml" target="@{target}" inheritall="false" inheritrefs="false" dir="../">
- <propertyset>
- <propertyref name="ant.version"/>
- </propertyset>
- <property name="dist.location" value="${dist.location}" />
- <property name="qualifier" value="-SNAPSHOT" />
- <property name="quietclean" value="true" />
- <property name="testng.jvmargs" value="@{testngjvmargs}" />
- <property name="maven.settings.xml" value="${maven.settings.xml}" />
- <properties />
- </ant>
- </sequential>
- </macrodef>
+ <target name="tests">
+ <build target="cleanall" />
+ <build target="coverageall" />
+ <build target="copytestoutput" />
+ <build target="testreport" />
+ </target>
+ <target name="snapshot">
+ <build target="cleanall" />
+ <build target="dist" />
+
+ <ant target="deploySeamSnapshot" antfile="${ant.file}" inheritall="false" inheritrefs="false" dir=".">
+ <propertyset>
+ <propertyref name="ant.version" />
+ </propertyset>
+ <property name="qualifier" value="-SNAPSHOT" />
+ </ant>
+ <ant target="deployExamplesSnapshot" antfile="${ant.file}" inheritall="false" inheritrefs="false" dir=".">
+ <propertyset>
+ <propertyref name="ant.version" />
+ </propertyset>
+ <property name="qualifier" value="-SNAPSHOT" />
+ </ant>
+ <ant target="tests" antfile="${ant.file}" inheritall="false" inheritrefs="false" dir=".">
+ <propertyset>
+ <propertyref name="ant.version" />
+ </propertyset>
+ <property name="qualifier" value="-SNAPSHOT" />
+ </ant>
+ </target>
+
+ <target name="justSnapshot">
+ <build target="cleanall" />
+ <build target="dist" />
+
+ <ant target="deploySeamSnapshot" antfile="${ant.file}" inheritall="false" inheritrefs="false" dir=".">
+ <propertyset>
+ <propertyref name="ant.version" />
+ </propertyset>
+ <property name="qualifier" value="-SNAPSHOT" />
+ </ant>
+ <ant target="deployExamplesSnapshot" antfile="${ant.file}" inheritall="false" inheritrefs="false" dir=".">
+ <propertyset>
+ <propertyref name="ant.version" />
+ </propertyset>
+ <property name="qualifier" value="-SNAPSHOT" />
+ </ant>
+ </target>
+
+ <target name="snapshotDocumentation">
+ <build target="cleanall" />
+ <build target="refdoc">
+ <properties>
+ <property name="build.translations" value="true" />
+ </properties>
+ </build>
+ <ant target="deployDocumentation" antfile="${ant.file}" inheritall="false" inheritrefs="false" dir=".">
+ <propertyset>
+ <propertyref name="ant.version" />
+ </propertyset>
+ <property name="qualifier" value="-SNAPSHOT" />
+ </ant>
+ </target>
+
+ <target name="deployExamplesSnapshot" depends="initdav">
+ <deployExample name="booking" repositoryId="jboss-snapshots" />
+ <deployExampleNoDs name="numberguess" repositoryId="jboss-snapshots" />
+ <deployExampleNoDs name="jpa" distdir="dist-jboss" type="war" repositoryId="jboss-snapshots" />
+ <deployExample name="dvdstore" path="${seam.dir}/examples/dvdstore" repositoryId="jboss-snapshots" />
+ </target>
+
+ <target name="deployDocumentation" depends="initdav, initpoms">
+ <artifact:deploy uniqueVersion="false" file="${docs.pom}" settingsFile="${maven.settings.xml}">
+ <pom file="${docs.pom}" settingsFile="${maven.settings.xml}" />
+ <remoteRepository refId="jboss-snapshots" />
+ <attach file="${doc.ref.dir}/target/docbook/publish/en-US/pdf/seam_reference.pdf" classifier="en-US" type="pdf" />
+ <attach file="${doc.ref.dir}/target/docbook/publish/fr-FR/pdf/seam_reference.pdf" classifier="fr-FR" type="pdf" />
+ <attach file="${doc.ref.dir}/target/docbook/publish/it-IT/pdf/seam_reference.pdf" classifier="it-IT" type="pdf" />
+ <attach file="${doc.ref.dir}/target/docbook/publish/ja-JP/pdf/seam_reference.pdf" classifier="ja-JP" type="pdf" />
+ </artifact:deploy>
+ </target>
+
+ <macrodef name="build">
+ <attribute name="target" />
+ <attribute name="testngjvmargs" default="" />
+ <element name="properties" optional="true" />
+ <sequential>
+ <ant antfile="${seam.dir}/build.xml" target="@{target}" inheritall="false" inheritrefs="false" dir="../">
+ <propertyset>
+ <propertyref name="ant.version" />
+ </propertyset>
+ <property name="dist.location" value="${dist.location}" />
+ <property name="qualifier" value="-SNAPSHOT" />
+ <property name="quietclean" value="true" />
+ <property name="testng.jvmargs" value="@{testngjvmargs}" />
+ <property name="maven.settings.xml" value="${maven.settings.xml}" />
+ <properties />
+ </ant>
+ </sequential>
+ </macrodef>
+
<macrodef name="deploySnapshotPom">
<attribute name="pom" />
<sequential>
<artifact:deploy uniqueVersion="true">
- <pom file="@{pom}" settingsFile="${maven.settings.xml}"/>
- <remoteRepository refid="snapshots.jboss.org" />
+ <pom file="@{pom}" settingsFile="${maven.settings.xml}" />
+ <remoteRepository refid="jboss-snapshots" />
</artifact:deploy>
</sequential>
</macrodef>
- <macrodef name="deploySnapshot">
- <attribute name="pom" />
- <attribute name="jar" />
+ <macrodef name="deploySnapshot">
+ <attribute name="pom" />
+ <attribute name="jar" />
<attribute name="srcjar" />
- <sequential>
- <artifact:deploy file="@{jar}" uniqueVersion="true">
- <pom file="@{pom}" settingsFile="${maven.settings.xml}" />
+ <sequential>
+ <artifact:deploy file="@{jar}" uniqueVersion="true">
+ <pom file="@{pom}" settingsFile="${maven.settings.xml}" />
<attach file="@{srcjar}" classifier="sources" />
- <remoteRepository refid="snapshots.jboss.org" />
- </artifact:deploy>
- </sequential>
- </macrodef>
+ <remoteRepository refid="jboss-snapshots" />
+ </artifact:deploy>
+ </sequential>
+ </macrodef>
</project>
Modified: branches/community/Seam_2_2/build/ci.settings.xml
===================================================================
--- branches/community/Seam_2_2/build/ci.settings.xml 2010-04-27 22:14:24 UTC (rev 12657)
+++ branches/community/Seam_2_2/build/ci.settings.xml 2010-04-28 10:39:40 UTC (rev 12658)
@@ -1,3 +1,6 @@
+<?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
@@ -7,8 +10,10 @@
"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
@@ -17,40 +22,43 @@
under the License.
-->
+
<!--
| This is the configuration file for Maven. It can be specified at two levels:
|
- | 1. User Level. This settings.xml file provides configuration for a single user,
- | and is normally provided in $HOME/.m2/settings.xml.
+ | 1. User Level. This settings.xml file provides configuration for a single user,
+ | and is normally provided in ${user.home}/.m2/settings.xml.
|
- | NOTE: This location can be overridden with the system property:
+ | NOTE: This location can be overridden with the CLI option:
|
- | -Dorg.apache.maven.user-settings=/path/to/user/settings.xml
+ | -s /path/to/user/settings.xml
|
- | 2. Global Level. This settings.xml file provides configuration for all maven
- | users on a machine (assuming they're all using the same maven
- | installation). It's normally provided in
+ | 2. Global Level. This settings.xml file provides configuration for all Maven
+ | users on a machine (assuming they're all using the same Maven
+ | installation). It's normally provided in
| ${maven.home}/conf/settings.xml.
|
- | NOTE: This location can be overridden with the system property:
+ | NOTE: This location can be overridden with the CLI option:
|
- | -Dorg.apache.maven.global-settings=/path/to/global/settings.xml
+ | -gs /path/to/global/settings.xml
|
| The sections in this sample file are intended to give you a running start at
| getting the most out of your Maven installation. Where appropriate, the default
| values (values used when the setting is not specified) are provided.
|
|-->
-<settings>
+<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
+ 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">
<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
| Default: ~/.m2/repository
<localRepository>/path/to/local/repo</localRepository>
-->
-
- <localRepository>${env.WORKSPACE}/m2/repository</localRepository>
+ <!-- <localRepository>${env.WORKSPACE}/m2/repository</localRepository> -->
+
<!-- interactiveMode
| This will determine whether maven prompts you when it needs input. If set to false,
| maven will use a sensible default value, perhaps based on some other setting, for
@@ -60,6 +68,7 @@
<interactiveMode>true</interactiveMode>
-->
+
<!-- offline
| Determines whether maven should attempt to connect to the network when executing a build.
| This will have an effect on artifact downloads, artifact deployment, and others.
@@ -68,6 +77,21 @@
<offline>false</offline>
-->
+
+ <!-- pluginGroups
+ | This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.
+ | when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers
+ | "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list.
+ |-->
+ <pluginGroups>
+ <!-- pluginGroup
+ | Specifies a further group identifier to use for plugin lookup.
+ <pluginGroup>com.your.plugins</pluginGroup>
+ -->
+ <pluginGroup>org.jboss.maven.plugins</pluginGroup>
+ </pluginGroups>
+
+
<!-- proxies
| This is a list of proxies which can be used on this machine to connect to the network.
| Unless otherwise specified (by system property or command-line switch), the first proxy
@@ -85,11 +109,12 @@
<password>proxypass</password>
<host>proxy.host.net</host>
<port>80</port>
- <nonProxyHosts>local.net,some.host.com</nonProxyHosts>
+ <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
-->
</proxies>
+
<!-- servers
| This is a list of authentication profiles, keyed by the server-id used within the system.
| Authentication profiles can be used whenever maven must make a connection to a remote server.
@@ -98,8 +123,8 @@
<!-- server
| Specifies the authentication information to use when connecting to a particular server, identified by
| a unique name within the system (referred to by the 'id' attribute below).
- |
- | NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are
+ |
+ | NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are
| used together.
|
<server>
@@ -108,7 +133,8 @@
<password>repopwd</password>
</server>
-->
-
+
+
<!-- Another sample, using keys to authenticate.
<server>
<id>siteServer</id>
@@ -118,15 +144,16 @@
-->
</servers>
+
<!-- mirrors
| This is a list of mirrors to be used in downloading artifacts from remote repositories.
- |
+ |
| It works like this: a POM may declare a repository to use in resolving certain artifacts.
| However, this repository may have problems with heavy traffic at times, so people have mirrored
| it to several places.
|
| That repository definition will have a unique id, so we can create a mirror reference for that
- | repository, to be used as an alternate download site. The mirror site will be the preferred
+ | repository, to be used as an alternate download site. The mirror site will be the preferred
| server for that repository.
|-->
<mirrors>
@@ -142,27 +169,22 @@
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
- <mirror>
- <id>fake.mirror.of.central</id>
- <mirrorOf>central</mirrorOf>
- <name>Fake mirror of central - reroutes central to repository.jboss.org</name>
- <url>http://repository.jboss.org/maven2</url>
- </mirror>
</mirrors>
-
+
+
<!-- profiles
| This is a list of profiles which can be activated in a variety of ways, and which can modify
| the build process. Profiles provided in the settings.xml are intended to provide local machine-
| specific paths and repository locations which allow the build to work in the local environment.
|
| For example, if you have an integration testing plugin - like cactus - that needs to know where
- | your Tomcat instance is installed, you can provide a variable here such that the variable is
+ | your Tomcat instance is installed, you can provide a variable here such that the variable is
| dereferenced during the build process to configure the cactus plugin.
|
| As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles
| section of this document (settings.xml) - will be discussed later. Another way essentially
| relies on the detection of a system property, either matching a particular value for the property,
- | or merely testing its existence. Profiles can also be activated by JDK version prefix, where a
+ | or merely testing its existence. Profiles can also be activated by JDK version prefix, where a
| value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.
| Finally, the list of active profiles can be specified directly from the command line.
|
@@ -186,22 +208,25 @@
<profile>
<id>jdk-1.4</id>
+
<activation>
<jdk>1.4</jdk>
</activation>
+
<repositories>
<repository>
- <id>jdk14</id>
- <name>Repository for JDK 1.4 builds</name>
- <url>http://www.myhost.com/maven/jdk14</url>
- <layout>default</layout>
- <snapshotPolicy>always</snapshotPolicy>
- </repository>
+ <id>jdk14</id>
+ <name>Repository for JDK 1.4 builds</name>
+ <url>http://www.myhost.com/maven/jdk14</url>
+ <layout>default</layout>
+ <snapshotPolicy>always</snapshotPolicy>
+ </repository>
</repositories>
</profile>
-->
+
<!--
| Here is another profile, activated by the system property 'target-env' with a value of 'dev',
| which provides a specific path to the Tomcat instance. To use this, your plugin configuration
@@ -211,7 +236,7 @@
| <plugin>
| <groupId>org.myco.myplugins</groupId>
| <artifactId>myplugin</artifactId>
- |
+ |
| <configuration>
| <tomcatLocation>${tomcatPath}</tomcatLocation>
| </configuration>
@@ -224,20 +249,83 @@
<profile>
<id>env-dev</id>
+
<activation>
<property>
- <name>target-env</name>
- <value>dev</value>
- </property>
+ <name>target-env</name>
+ <value>dev</value>
+ </property>
</activation>
+
<properties>
<tomcatPath>/path/to/tomcat/instance</tomcatPath>
</properties>
</profile>
-->
+
+
+ <profile>
+ <id>jboss-public-repository</id>
+ <repositories>
+ <repository>
+ <id>jboss-public-repository-group</id>
+ <name>JBoss Public Maven Repository Group</name>
+ <url>https://repository.jboss.org/nexus/content/groups/public/</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>jboss-public-repository-group</id>
+ <name>JBoss Public Maven Repository Group</name>
+ <url>https://repository.jboss.org/nexus/content/groups/public/</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+ </profile>
+
+
+ <profile>
+ <id>jboss-deprecated-repository</id>
+ <repositories>
+ <repository>
+ <id>jboss-deprecated-repository</id>
+ <name>JBoss Deprecated Maven Repository</name>
+ <url>https://repository.jboss.org/nexus/content/repositories/deprecated/</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+ </profile>
+
+
</profiles>
+
<!-- activeProfiles
| List of profiles that are active for all builds.
|
@@ -246,4 +334,12 @@
<activeProfile>anotherAlwaysActiveProfile</activeProfile>
</activeProfiles>
-->
+
+
+ <activeProfiles>
+ <activeProfile>jboss-public-repository</activeProfile>
+<!-- <activeProfile>jboss-deprecated-repository</activeProfile> -->
+ </activeProfiles>
+
+
</settings>
Modified: branches/community/Seam_2_2/build/settings.xml
===================================================================
--- branches/community/Seam_2_2/build/settings.xml 2010-04-27 22:14:24 UTC (rev 12657)
+++ branches/community/Seam_2_2/build/settings.xml 2010-04-28 10:39:40 UTC (rev 12658)
@@ -1,3 +1,6 @@
+<?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
@@ -7,8 +10,10 @@
"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
@@ -17,31 +22,34 @@
under the License.
-->
+
<!--
| This is the configuration file for Maven. It can be specified at two levels:
|
- | 1. User Level. This settings.xml file provides configuration for a single user,
- | and is normally provided in $HOME/.m2/settings.xml.
+ | 1. User Level. This settings.xml file provides configuration for a single user,
+ | and is normally provided in ${user.home}/.m2/settings.xml.
|
- | NOTE: This location can be overridden with the system property:
+ | NOTE: This location can be overridden with the CLI option:
|
- | -Dorg.apache.maven.user-settings=/path/to/user/settings.xml
+ | -s /path/to/user/settings.xml
|
- | 2. Global Level. This settings.xml file provides configuration for all maven
- | users on a machine (assuming they're all using the same maven
- | installation). It's normally provided in
+ | 2. Global Level. This settings.xml file provides configuration for all Maven
+ | users on a machine (assuming they're all using the same Maven
+ | installation). It's normally provided in
| ${maven.home}/conf/settings.xml.
|
- | NOTE: This location can be overridden with the system property:
+ | NOTE: This location can be overridden with the CLI option:
|
- | -Dorg.apache.maven.global-settings=/path/to/global/settings.xml
+ | -gs /path/to/global/settings.xml
|
| The sections in this sample file are intended to give you a running start at
| getting the most out of your Maven installation. Where appropriate, the default
| values (values used when the setting is not specified) are provided.
|
|-->
-<settings>
+<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
+ 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">
<!-- localRepository
| The path to the local repository maven will use to store artifacts.
|
@@ -49,6 +57,7 @@
<localRepository>/path/to/local/repo</localRepository>
-->
+
<!-- interactiveMode
| This will determine whether maven prompts you when it needs input. If set to false,
| maven will use a sensible default value, perhaps based on some other setting, for
@@ -58,6 +67,7 @@
<interactiveMode>true</interactiveMode>
-->
+
<!-- offline
| Determines whether maven should attempt to connect to the network when executing a build.
| This will have an effect on artifact downloads, artifact deployment, and others.
@@ -66,6 +76,21 @@
<offline>false</offline>
-->
+
+ <!-- pluginGroups
+ | This is a list of additional group identifiers that will be searched when resolving plugins by their prefix, i.e.
+ | when invoking a command line like "mvn prefix:goal". Maven will automatically add the group identifiers
+ | "org.apache.maven.plugins" and "org.codehaus.mojo" if these are not already contained in the list.
+ |-->
+ <pluginGroups>
+ <!-- pluginGroup
+ | Specifies a further group identifier to use for plugin lookup.
+ <pluginGroup>com.your.plugins</pluginGroup>
+ -->
+ <pluginGroup>org.jboss.maven.plugins</pluginGroup>
+ </pluginGroups>
+
+
<!-- proxies
| This is a list of proxies which can be used on this machine to connect to the network.
| Unless otherwise specified (by system property or command-line switch), the first proxy
@@ -83,11 +108,12 @@
<password>proxypass</password>
<host>proxy.host.net</host>
<port>80</port>
- <nonProxyHosts>local.net,some.host.com</nonProxyHosts>
+ <nonProxyHosts>local.net|some.host.com</nonProxyHosts>
</proxy>
-->
</proxies>
+
<!-- servers
| This is a list of authentication profiles, keyed by the server-id used within the system.
| Authentication profiles can be used whenever maven must make a connection to a remote server.
@@ -96,8 +122,8 @@
<!-- server
| Specifies the authentication information to use when connecting to a particular server, identified by
| a unique name within the system (referred to by the 'id' attribute below).
- |
- | NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are
+ |
+ | NOTE: You should either specify username/password OR privateKey/passphrase, since these pairings are
| used together.
|
<server>
@@ -106,7 +132,8 @@
<password>repopwd</password>
</server>
-->
-
+
+
<!-- Another sample, using keys to authenticate.
<server>
<id>siteServer</id>
@@ -116,15 +143,16 @@
-->
</servers>
+
<!-- mirrors
| This is a list of mirrors to be used in downloading artifacts from remote repositories.
- |
+ |
| It works like this: a POM may declare a repository to use in resolving certain artifacts.
| However, this repository may have problems with heavy traffic at times, so people have mirrored
| it to several places.
|
| That repository definition will have a unique id, so we can create a mirror reference for that
- | repository, to be used as an alternate download site. The mirror site will be the preferred
+ | repository, to be used as an alternate download site. The mirror site will be the preferred
| server for that repository.
|-->
<mirrors>
@@ -140,27 +168,22 @@
<url>http://my.repository.com/repo/path</url>
</mirror>
-->
- <mirror>
- <id>fake.mirror.of.central</id>
- <mirrorOf>central</mirrorOf>
- <name>Fake mirror of central - reroutes central to repository.jboss.org</name>
- <url>http://repository.jboss.org/maven2</url>
- </mirror>
</mirrors>
-
+
+
<!-- profiles
| This is a list of profiles which can be activated in a variety of ways, and which can modify
| the build process. Profiles provided in the settings.xml are intended to provide local machine-
| specific paths and repository locations which allow the build to work in the local environment.
|
| For example, if you have an integration testing plugin - like cactus - that needs to know where
- | your Tomcat instance is installed, you can provide a variable here such that the variable is
+ | your Tomcat instance is installed, you can provide a variable here such that the variable is
| dereferenced during the build process to configure the cactus plugin.
|
| As noted above, profiles can be activated in a variety of ways. One way - the activeProfiles
| section of this document (settings.xml) - will be discussed later. Another way essentially
| relies on the detection of a system property, either matching a particular value for the property,
- | or merely testing its existence. Profiles can also be activated by JDK version prefix, where a
+ | or merely testing its existence. Profiles can also be activated by JDK version prefix, where a
| value of '1.4' might activate a profile when the build is executed on a JDK version of '1.4.2_07'.
| Finally, the list of active profiles can be specified directly from the command line.
|
@@ -184,22 +207,25 @@
<profile>
<id>jdk-1.4</id>
+
<activation>
<jdk>1.4</jdk>
</activation>
+
<repositories>
<repository>
- <id>jdk14</id>
- <name>Repository for JDK 1.4 builds</name>
- <url>http://www.myhost.com/maven/jdk14</url>
- <layout>default</layout>
- <snapshotPolicy>always</snapshotPolicy>
- </repository>
+ <id>jdk14</id>
+ <name>Repository for JDK 1.4 builds</name>
+ <url>http://www.myhost.com/maven/jdk14</url>
+ <layout>default</layout>
+ <snapshotPolicy>always</snapshotPolicy>
+ </repository>
</repositories>
</profile>
-->
+
<!--
| Here is another profile, activated by the system property 'target-env' with a value of 'dev',
| which provides a specific path to the Tomcat instance. To use this, your plugin configuration
@@ -209,7 +235,7 @@
| <plugin>
| <groupId>org.myco.myplugins</groupId>
| <artifactId>myplugin</artifactId>
- |
+ |
| <configuration>
| <tomcatLocation>${tomcatPath}</tomcatLocation>
| </configuration>
@@ -222,20 +248,83 @@
<profile>
<id>env-dev</id>
+
<activation>
<property>
- <name>target-env</name>
- <value>dev</value>
- </property>
+ <name>target-env</name>
+ <value>dev</value>
+ </property>
</activation>
+
<properties>
<tomcatPath>/path/to/tomcat/instance</tomcatPath>
</properties>
</profile>
-->
+
+
+ <profile>
+ <id>jboss-public-repository</id>
+ <repositories>
+ <repository>
+ <id>jboss-public-repository-group</id>
+ <name>JBoss Public Maven Repository Group</name>
+ <url>https://repository.jboss.org/nexus/content/groups/public/</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>jboss-public-repository-group</id>
+ <name>JBoss Public Maven Repository Group</name>
+ <url>https://repository.jboss.org/nexus/content/groups/public/</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </pluginRepository>
+ </pluginRepositories>
+ </profile>
+
+
+ <profile>
+ <id>jboss-deprecated-repository</id>
+ <repositories>
+ <repository>
+ <id>jboss-deprecated-repository</id>
+ <name>JBoss Deprecated Maven Repository</name>
+ <url>https://repository.jboss.org/nexus/content/repositories/deprecated/</url>
+ <layout>default</layout>
+ <releases>
+ <enabled>true</enabled>
+ <updatePolicy>never</updatePolicy>
+ </releases>
+ <snapshots>
+ <enabled>false</enabled>
+ <updatePolicy>never</updatePolicy>
+ </snapshots>
+ </repository>
+ </repositories>
+ </profile>
+
+
</profiles>
+
<!-- activeProfiles
| List of profiles that are active for all builds.
|
@@ -244,4 +333,12 @@
<activeProfile>anotherAlwaysActiveProfile</activeProfile>
</activeProfiles>
-->
+
+
+ <activeProfiles>
+ <activeProfile>jboss-public-repository</activeProfile>
+ <activeProfile>jboss-deprecated-repository</activeProfile>
+ </activeProfiles>
+
+
</settings>
More information about the seam-commits
mailing list