Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update to contain new use case BOM

  • Loading branch information...
commit 6ca37f8760896e063e147a74d23b1bbdc9577af3 1 parent ab27063
Karel Piwko kpiwko authored sgilda committed
Showing with 28 additions and 41 deletions.
  1. +28 −41 bean-validation/pom.xml
69 bean-validation/pom.xml
View
@@ -28,20 +28,11 @@
<!-- You can reference property in pom.xml or filtered resources (must
enable third-party plugin if using Maven < 2.1) -->
<maven.build.timestamp.format>yyyyMMdd'T'HHmmss</maven.build.timestamp.format>
- <!-- Specify the JBoss AS directory to be the JBOSS_HOME environment
- variable -->
- <jboss.home>${env.JBOSS_HOME}</jboss.home>
- <!-- Define the version of JBoss' Java EE 6 APIs we want to import.
+ <!-- Define the version of JBoss' Java EE 6 APIs with Tools support we want to import.
Any dependencies from org.jboss.spec will have their version defined by this
BOM -->
- <javaee6.spec.version>3.0.0.Beta1</javaee6.spec.version>
- <!-- Alternatively, comment out the above line, and un-comment the line below to
- use version 3.0.0.Beta1-redhat-1 which is a release certified
- to work with JBoss EAP 6. It requires you have access to the JBoss EAP 6 maven repository. -->
- <!--
- <javaee6.spec.version>3.0.0.Beta1-redhat-1</javaee6.spec.version>
- -->
+ <javaee6.with.tools.spec.version>1.0.0-SNAPSHOT</javaee6.with.tools.spec.version>
</properties>
<dependencyManagement>
@@ -53,24 +44,17 @@
read this as the JBoss stack of the Java EE Web Profile 6 APIs), and we use
version 3.0.0.Beta1 which is the latest release of the stack. You can actually
use this stack with any version of JBoss AS that implements Java EE 6, not
- just JBoss AS 7! -->
+ just JBoss AS 7!
+
+ Following stack is enhanced with Arquillian support
+ -->
<dependency>
<groupId>org.jboss.spec</groupId>
- <artifactId>jboss-javaee-web-6.0</artifactId>
- <version>${javaee6.spec.version}</version>
+ <artifactId>jboss-javaee-web-6.0-with-tools</artifactId>
+ <version>${javaee6.with.tools.spec.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
-
- <!-- Here we use the Arquillian stack -->
- <dependency>
- <groupId>org.jboss.arquillian</groupId>
- <artifactId>arquillian-bom</artifactId>
- <version>1.0.0.CR7</version>
- <type>pom</type>
- <scope>import</scope>
- </dependency>
-
</dependencies>
</dependencyManagement>
@@ -126,7 +110,6 @@
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
- <version>4.10</version>
<scope>test</scope>
</dependency>
@@ -144,9 +127,27 @@
<!-- Maven will append the version to the finalName (which is the name
given to the generated war, and hence the context root) -->
<finalName>${project.artifactId}</finalName>
+
+ <pluginManagement>
+ <plugins>
+ <!-- The Maven Surefire plugin tests your application. Here we ensure we are using a version compatible with Arquillian -->
+ <plugin>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.10</version>
+ </plugin>
+ <!-- The JBoss AS plugin deploys your war to a local JBoss AS container -->
+ <!-- To use, set the JBOSS_HOME environment variable and run:
+ mvn package jboss-as:deploy -->
+ <plugin>
+ <groupId>org.jboss.as.plugins</groupId>
+ <artifactId>jboss-as-maven-plugin</artifactId>
+ <version>7.1.0.CR1b</version>
+ </plugin>
+ </plugins>
+ </pluginManagement>
+
<plugins>
- <!-- Compiler plugin enforces Java 1.6 compatibility and activates
- annotation processors -->
+ <!-- Compiler plugin enforces Java 1.6 compatibility and activates annotation processors -->
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.1</version>
@@ -155,17 +156,6 @@
<target>1.6</target>
</configuration>
</plugin>
- <!-- Versions prior 2.9 contains a bug -->
- <plugin>
- <artifactId>maven-surefire-plugin</artifactId>
- <version>2.10</version>
- <!-- Propagate JBoss Home from environment to a process spawned by Maven Surefire -->
- <configuration>
- <systemPropertyVariables>
- <jboss.home>${jboss.home}</jboss.home>
- </systemPropertyVariables>
- </configuration>
- </plugin>
</plugins>
</build>
@@ -194,7 +184,6 @@
<plugin>
<groupId>org.jboss.as.plugins</groupId>
<artifactId>jboss-as-maven-plugin</artifactId>
- <version>7.1.0.Beta1b</version>
</plugin>
</plugins>
</build>
@@ -212,7 +201,6 @@
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-arquillian-container-managed</artifactId>
- <version>7.1.0.Beta1b</version>
<scope>test</scope>
</dependency>
</dependencies>
@@ -227,7 +215,6 @@
<dependency>
<groupId>org.jboss.as</groupId>
<artifactId>jboss-as-arquillian-container-remote</artifactId>
- <version>7.1.0.Beta1b</version>
<scope>test</scope>
</dependency>
</dependencies>
Please sign in to comment.
Something went wrong with that request. Please try again.