- Revision
- 755
- Author
- mauro
- Date
- 2008-06-25 07:49:47 -0500 (Wed, 25 Jun 2008)
Log Message
Added Maven settings.xml template. Updated build notes.
Modified Paths
Added Paths
Diff
Modified: trunk/BUILD.txt (754 => 755)
--- trunk/BUILD.txt 2008-06-22 07:36:52 UTC (rev 754) +++ trunk/BUILD.txt 2008-06-25 12:49:47 UTC (rev 755) @@ -27,6 +27,9 @@ Rather than configuring lots of remote repositories to the root POM, which implies lots of redundant lookups to several remote servers, it is the responsibility of the user building the code to ensure that these are configured in the user ~/.m2/settings.xml, as profiles, and then build (just once) with the corresponding profiles to retrieve the dependency. + +A template of ~/.m2/settings.xml is found in http://svn.codehaus.org/waffle/trunk/waffle-distribution/src/config/settings.xml + A good practice is to leave a note next to dependency declaration where it is found, if not in central repo. Another option is to define a waffle profile with all the remote repositories needed by project and activate it on demand. @@ -34,33 +37,8 @@ mvn clean install -Popenqa -where the definition of openqa profile would look something like: - <profiles> - <profile> - <id>openqa</id> - <repositories> - <repository> - <id>openqa-releases</id> - <url>http://archiva.openqa.org/repository/releases/</url> - <snapshots> - <enabled>false</enabled> - </snapshots> - <releases> - <enabled>true</enabled> - </releases> - </repository> - </repositories> - <pluginRepositories> - <pluginRepository> - <id>openqa-releases</id> - <url>http://archiva.openqa.org/repository/releases/</url> - <snapshots> - <enabled>false</enabled> - </snapshots> - <releases> - <enabled>true</enabled> - </releases> - </pluginRepository> - </pluginRepositories> - </profile> - </profiles> \ No newline at end of file +Similar reasoning for snapshots. Eg to build using codehaus snapshots (say for picocontainer): + +mvn clean install -Pcodehaus + +
Added: trunk/waffle-distribution/src/config/settings.xml (0 => 755)
--- trunk/waffle-distribution/src/config/settings.xml (rev 0) +++ trunk/waffle-distribution/src/config/settings.xml 2008-06-25 12:49:47 UTC (rev 755) @@ -0,0 +1,143 @@ +<!-- Maven settings.xml containing profiles defining serveral remote repos and access to codehaus.org --> +<settings> + <profiles> + <profile> + <id>apache</id> + <repositories> + <repository> + <id>apache-snapshots</id> + <url>http://people.apache.org/repo/m2-snapshot-repository</url> + <snapshots> + <enabled>true</enabled> + </snapshots> + <releases> + <enabled>false</enabled> + </releases> + </repository> + </repositories> + <pluginRepositories> + <pluginRepository> + <id>apache-snapshots</id> + <url>http://people.apache.org/repo/m2-snapshot-repository</url> + <snapshots> + <enabled>true</enabled> + </snapshots> + <releases> + <enabled>false</enabled> + </releases> + </pluginRepository> + </pluginRepositories> + </profile> + <profile> + <id>codehaus</id> + <repositories> + <repository> + <id>codehaus-releases</id> + <url>http://repository.codehaus.org</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + <releases> + <enabled>true</enabled> + </releases> + </repository> + <repository> + <id>codehaus-snapshots</id> + <url>http://snapshots.repository.codehaus.org</url> + <snapshots> + <enabled>true</enabled> + </snapshots> + <releases> + <enabled>false</enabled> + </releases> + </repository> + </repositories> + <pluginRepositories> + <pluginRepository> + <id>codehaus-releases</id> + <url>http://repository.codehaus.org</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + <releases> + <enabled>true</enabled> + </releases> + </pluginRepository> + <pluginRepository> + <id>codehaus-snapshots</id> + <url>http://snapshots.repository.codehaus.org</url> + <snapshots> + <enabled>true</enabled> + </snapshots> + <releases> + <enabled>false</enabled> + </releases> + </pluginRepository> + </pluginRepositories> + </profile> + <profile> + <id>jboss</id> + <repositories> + <repository> + <id>jboss-releases</id> + <url>http://repository.jboss.com/maven2</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + <releases> + <enabled>true</enabled> + </releases> + </repository> + </repositories> + <pluginRepositories> + <pluginRepository> + <id>jboss-releases</id> + <url>http://repository.jboss.com/maven2</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + <releases> + <enabled>true</enabled> + </releases> + </pluginRepository> + </pluginRepositories> + </profile> + <profile> + <id>openqa</id> + <repositories> + <repository> + <id>openqa-releases</id> + <url>http://archiva.openqa.org/repository/releases/</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + <releases> + <enabled>true</enabled> + </releases> + </repository> + </repositories> + <pluginRepositories> + <pluginRepository> + <id>openqa-releases</id> + <url>http://archiva.openqa.org/repository/releases/</url> + <snapshots> + <enabled>false</enabled> + </snapshots> + <releases> + <enabled>true</enabled> + </releases> + </pluginRepository> + </pluginRepositories> + </profile> + </profiles> + <servers> + <server> + <id>codehaus.org</id> + <!-- TODO: set your username and password --> + <username>[username]</username> + <password>[password]</password> + </server> + </servers> + +</settings> +
To unsubscribe from this list please visit:
