Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
MODE-1849 - Updated kit as per review
  • Loading branch information
Horia Chiorean authored and rhauch committed Mar 14, 2013
1 parent cec8868 commit 6297ea8
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 61 deletions.
13 changes: 12 additions & 1 deletion README.md
Expand Up @@ -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 $ 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: That command takes a while -- we do have over 12K unit tests. So if need be, your builds can skip the tests:


Expand Down
18 changes: 0 additions & 18 deletions modeshape-parent/pom.xml
Expand Up @@ -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-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> <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 RHQ
--> -->
Expand Down Expand Up @@ -1839,19 +1836,4 @@
</plugin> </plugin>
</plugins> </plugins>
</reporting> </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> </project>
105 changes: 63 additions & 42 deletions settings.xml
@@ -1,48 +1,69 @@
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" <settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd"> http://maven.apache.org/xsd/settings-1.0.0.xsd">


<profiles> <profiles>
<profile> <profile>
<id>jboss-public-repository</id> <id>jboss-public-repository</id>
<repositories> <repositories>
<repository> <repository>
<id>jboss-public-repository-group</id> <id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name> <name>JBoss Public Maven Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public/</url> <url>http://repository.jboss.org/nexus/content/groups/public/</url>
<layout>default</layout> <layout>default</layout>
<releases> <releases>
<enabled>true</enabled> <enabled>true</enabled>
<updatePolicy>never</updatePolicy> <updatePolicy>never</updatePolicy>
</releases> </releases>
<snapshots> <snapshots>
<enabled>true</enabled> <enabled>true</enabled>
<updatePolicy>never</updatePolicy> <updatePolicy>never</updatePolicy>
</snapshots> </snapshots>
</repository> </repository>
</repositories> </repositories>
<pluginRepositories> <pluginRepositories>
<pluginRepository> <pluginRepository>
<id>jboss-public-repository-group</id> <id>jboss-public-repository-group</id>
<name>JBoss Public Maven Repository Group</name> <name>JBoss Public Maven Repository Group</name>
<url>http://repository.jboss.org/nexus/content/groups/public/</url> <url>http://repository.jboss.org/nexus/content/groups/public/</url>
<layout>default</layout> <layout>default</layout>
<releases> <releases>
<enabled>true</enabled> <enabled>true</enabled>
<updatePolicy>never</updatePolicy> <updatePolicy>never</updatePolicy>
</releases> </releases>
<snapshots> <snapshots>
<enabled>true</enabled> <enabled>true</enabled>
<updatePolicy>never</updatePolicy> <updatePolicy>never</updatePolicy>
</snapshots> </snapshots>
</pluginRepository> </pluginRepository>
</pluginRepositories> </pluginRepositories>
</profile> </profile>
</profiles>


<activeProfiles> <profile>
<activeProfile>jboss-public-repository</activeProfile> <id>jboss-eap-repository</id>
</activeProfiles> <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> </settings>

0 comments on commit 6297ea8

Please sign in to comment.