Permalink
Browse files

[EJBBOOK-40] Work around Maven3 dependency ordering

  • Loading branch information...
1 parent 3488d58 commit ffa075928d6eb3870c7c9e2b317c1a1d13004c63 @ALRubinger ALRubinger committed Dec 14, 2010
Showing with 36 additions and 0 deletions.
  1. +10 −0 build/pom.xml
  2. +14 −0 ch09-14-employeeregistry/pom.xml
  3. +12 −0 ch17-transactions/pom.xml
View
@@ -95,6 +95,16 @@
</plugins>
+
+ <pluginManagement>
+ <plugins>
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.6</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
</build>
<!-- Dependency Versioning -->
@@ -82,6 +82,14 @@
<scope>compile</scope> <!-- Should be "test", but I can't find the GAV for JPA APIs -->
</dependency>
+ <dependency>
+ <groupId>org.jboss.jbossas.osgi</groupId>
+ <artifactId>jboss-as-osgi-distribution</artifactId>
+ <version>${version.org.jboss.jbossas}</version>
+ <type>pom</type>
+ </dependency>
+
+
</dependencies>
<!--
@@ -100,6 +108,12 @@
<version>${version.org.jboss.jbossas}</version>
<type>pom</type>
<scope>import</scope>
+ <exclusions>
+ <exclusion>
+ <groupId>org.jboss.jbossas.osgi</groupId>
+ <artifactId>jboss-as-osgi-distribution</artifactId>
+ </exclusion>
+ </exclusions>
</dependency>
</dependencies>
View
@@ -78,6 +78,18 @@
<version>${version.org.jboss.jbossas}</version>
<type>pom</type>
<scope>compile</scope> <!-- Should be "test", but I can't find the GAV for JPA APIs -->
+ <exclusions>
+ <exclusion>
+ <groupId>org.jboss.jbossas.osgi</groupId>
+ <artifactId>jboss-as-osgi-distribution</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.jbossas.osgi</groupId>
+ <artifactId>jboss-as-osgi-distribution</artifactId>
+ <version>${version.org.jboss.jbossas}</version>
+ <type>pom</type>
</dependency>
</dependencies>

0 comments on commit ffa0759

Please sign in to comment.