public
Last active

Arquillian Getting Started Guide - No Containers

  • Download Gist
pom.xml
XML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
 
<groupId>org.arquillian.example</groupId>
<artifactId>arquillian-tutorial</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>jar</packaging>
 
<name>arquillian-tutorial</name>
<url>http://arquillian.org</url>
 
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
 
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.12</version>
</plugin>
</plugins>
</build>
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>
<version>1.0.0.Final</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.spec</groupId>
<artifactId>jboss-javaee-6.0</artifactId>
<version>1.0.0.Final</version>
<type>pom</type>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.jboss.arquillian.junit</groupId>
<artifactId>arquillian-junit-container</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
</project>

Note: You must use:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>
<version>1.0.0.Final-SNAPSHOT</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>

As <version>1.0.0.Final</version> no longer exists

Ah, yes. That was forward looking, a bit prematurely :)

Sent from my CyanogenMod-powered
Android device, an open platform for
carriers, developers and consumers.
On Mar 20, 2012 9:22 PM, "Craig Schwarzwald" <
reply@reply.github.com>
wrote:

Note: You must use:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>

<version>1.0.0.Final-SNAPSHOT</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>

As <version>1.0.0.Final</version> no longer exists


Reply to this email directly or view it on GitHub:
https://gist.github.com/1263892

Just sent a pull request for the arquillian github guides for this update
and 1 other 1 liner.

The guide was missing a needed import for the @Inject for the first time
you tried to run the test as a Junit.

Thanks.

On Tue, Mar 20, 2012 at 11:18 PM, Dan Allen <
reply@reply.github.com

wrote:

Ah, yes. That was forward looking, a bit prematurely :)

Sent from my CyanogenMod-powered
Android device, an open platform for
carriers, developers and consumers.
On Mar 20, 2012 9:22 PM, "Craig Schwarzwald" <
reply@reply.github.com>
wrote:

Note: You must use:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.jboss.arquillian</groupId>
<artifactId>arquillian-bom</artifactId>

<version>1.0.0.Final-SNAPSHOT</version>
<scope>import</scope>
<type>pom</type>
</dependency>
</dependencies>
</dependencyManagement>

As <version>1.0.0.Final</version> no longer exists


Reply to this email directly or view it on GitHub:
https://gist.github.com/1263892


Reply to this email directly or view it on GitHub:
https://gist.github.com/1263892

On Tue, Mar 20, 2012 at 23:23, Craig Schwarzwald
reply@reply.github.com
wrote:

Just sent a pull request for the arquillian github guides for this update
and 1 other 1 liner.

The guide was missing a needed import for the @Inject for the first time
you tried to run the test as a Junit.

Good catch.

For the version, I'm working on replacing it with variables so that it
is kept up to date with the latest release. That way, we can be sure
it's CR7 now and Final when it's own. Thanks for the heads up. I
actually didn't realize we even had a reference to Final :)

-Dan

Thanks.

On Tue, Mar 20, 2012 at 11:18 PM, Dan Allen <
reply@reply.github.com

wrote:

Ah, yes. That was forward looking, a bit prematurely :)

Sent from my CyanogenMod-powered
Android device, an open platform for
carriers, developers and consumers.
On Mar 20, 2012 9:22 PM, "Craig Schwarzwald" <
reply@reply.github.com>
wrote:

Note: You must use:
   <dependencyManagement>
       <dependencies>
           <dependency>
               <groupId>org.jboss.arquillian</groupId>
               <artifactId>arquillian-bom</artifactId>

 <version>1.0.0.Final-SNAPSHOT</version>
               <scope>import</scope>
               <type>pom</type>
           </dependency>
       </dependencies>
   </dependencyManagement>

As <version>1.0.0.Final</version> no longer exists


Reply to this email directly or view it on GitHub:
https://gist.github.com/1263892


Reply to this email directly or view it on GitHub:
https://gist.github.com/1263892


Reply to this email directly or view it on GitHub:
https://gist.github.com/1263892

Dan Allen
Principal Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597

http://google.com/profiles/dan.j.allen
http://mojavelinux.com
http://mojavelinux.com/seaminaction

So, do we use Final-SNAPSHOT, or CR7? I'm confused about how versions work...

Hopefully this will clear things up:

http://arquillian.org/modules/core-platform/

At least, that's the first step towards making this clearer...live
documentation :)

On Thu, Mar 22, 2012 at 12:27, cpoile <
reply@reply.github.com

wrote:

So, do we use Final-SNAPSHOT, or CR7? I'm confused about how versions
work...


Reply to this email directly or view it on GitHub:
https://gist.github.com/1263892

Dan Allen
Principal Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597

http://google.com/profiles/dan.j.allen
http://mojavelinux.com
http://mojavelinux.com/seaminaction

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.