Permalink
Browse files

MODE-1849 - Updated kit as per review

  • Loading branch information...
1 parent cec8868 commit 6297ea8117b28e0deb37d77554ede4e072a011ab Horia Chiorean committed with rhauch Mar 14, 2013
Showing with 75 additions and 61 deletions.
  1. +12 −1 README.md
  2. +0 −18 modeshape-parent/pom.xml
  3. +63 −42 settings.xml
View
@@ -41,7 +41,18 @@ Then, we use Maven 3.x to build our software. The following command compiles all
$ mvn clean install -s settings.xml
-BTW, that '-s settings.xml' argument uses the 'settings.xml' file in our codebase, which is set up to use the JBoss Maven repository.
+BTW, that '-s settings.xml' argument uses the 'settings.xml' file in our codebase, which is set up to use 2 Maven repositories:
+
+ The JBoss Maven repository - is the main repository, where most of the required artifacts are located
+ The JBoss EAP Techpreview repository - is an additional repository which contains the artifacts necessary for building ModeShape's EAP kit.
+
+Normally, during a normal "$ mvn clean install" build, the EAP kit is not built and therefore only the JBoss Maven repository would suffice.
+However, if you are interested in building & contributing to the EAP kit as well, you need to make sure the second Maven repository is active.
+For building the kit itself, you need to activate either the "integration" or the "assembly" Maven profiles:
+
+ $ mvn clean install -s settings.xml -DskipTests -Pintegration
+
+As an alternative to always passing the "-s settings.xml" parameter, you can modify your local ~/.m2/settings.xml file and add the above mentioned repositories, making sure they are active by default during a build.
That command takes a while -- we do have over 12K unit tests. So if need be, your builds can skip the tests:
View
@@ -353,9 +353,6 @@
<jboss-javaee-6.0-with-tools.version>1.0.4.Final-redhat-1</jboss-javaee-6.0-with-tools.version>
<jboss-as-arquillian-container-managed.version>7.2.0.Final</jboss-as-arquillian-container-managed.version>
- <!--Url where the artifacts that make up an EAP release are found -->
- <eap.maven.repository.url>http://maven.repository.redhat.com/techpreview/eap6/6.1.0.Alpha1/maven-repository</eap.maven.repository.url>
-
<!--
RHQ
-->
@@ -1839,19 +1836,4 @@
</plugin>
</plugins>
</reporting>
-
- <repositories>
- <!--This is a non-standard repository, where EAP/AS components artifacts are located-->
- <repository>
- <id>eap6</id>
- <name>EAP components repository</name>
- <url>${eap.maven.repository.url}</url>
- <releases>
- <enabled>true</enabled>
- </releases>
- <snapshots>
- <enabled>false</enabled>
- </snapshots>
- </repository>
- </repositories>
</project>
View
@@ -1,48 +1,69 @@
<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
+ 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">
- <profiles>
- <profile>
- <id>jboss-public-repository</id>
- <repositories>
- <repository>
- <id>jboss-public-repository-group</id>
- <name>JBoss Public Maven Repository Group</name>
- <url>http://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>http://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>
- </profiles>
+ <profiles>
+ <profile>
+ <id>jboss-public-repository</id>
+ <repositories>
+ <repository>
+ <id>jboss-public-repository-group</id>
+ <name>JBoss Public Maven Repository Group</name>
+ <url>http://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>http://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>
- <activeProfiles>
- <activeProfile>jboss-public-repository</activeProfile>
- </activeProfiles>
+ <profile>
+ <id>jboss-eap-repository</id>
+ <repositories>
+ <!--This is a non-standard repository, where EAP/AS components artifacts are located-->
+ <repository>
+ <id>jboss-eap-techpreview</id>
+ <name>JBoss.org Public EAP Repository</name>
+ <url>http://maven.repository.redhat.com/techpreview/eap6/6.1.0.Alpha1/maven-repository</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>
+ <activeProfile>jboss-public-repository</activeProfile>
+ <activeProfile>jboss-eap-repository</activeProfile>
+ </activeProfiles>
</settings>

0 comments on commit 6297ea8

Please sign in to comment.