Hi Patrik,

thank you for this. Just a note for those who read this:
There is a small copy/paste error, the second dependency must be artifact id
jboss-ejb3x:
<dependency>
        <groupId>jboss</groupId>
        <artifactId>jboss-j2ee</artifactId>
        <version>4.0.5</version>
        <scope>provided</scope>
</dependency>
<dependency>
        <groupId>jboss</groupId>
        <artifactId>jboss-ejb3x</artifactId>
        <version>4.0.5</version>
        <scope>provided</scope>
</dependency>




Patrik Nordwall wrote:
> 
> It is possible to use 2 jar files from JBoss instead of javaee.jar from
> Java EE 5 SDK.
> 
> Install jboss-j2ee.jar and jboss-ejb3x.jar in your local maven repository.
> 
> mvn install:install-file -DgroupId=jboss -DartifactId=jboss-j2ee
> -Dversion=4.0.5 -Dpackaging=jar
> -Dfile=C:\jboss-4.0.5.GA\server\default\lib\jboss-j2ee.jar
> 
> mvn install:install-file -DgroupId=jboss -DartifactId=jboss-ejb3x
> -Dversion=4.0.5 -Dpackaging=jar
> -Dfile=C:\jboss-4.0.5.GA\server\default\deploy\ejb3.deployer\jboss-ejb3x.jar
> 
> Change the dependency in both helloworld-ejb and helloworld-web
> 
> <dependency>
>       <groupId>jboss</groupId>
>       <artifactId>jboss-j2ee</artifactId>
>       <version>4.0.5</version>
>       <scope>provided</scope>
> </dependency>
> <dependency>
>       <groupId>jboss</groupId>
>       <artifactId>jboss-j2ee</artifactId>
>       <version>4.0.5</version>
>       <scope>provided</scope>
> </dependency>
> <!--
> <dependency>
>       <groupId>javaee</groupId>
>       <artifactId>javaee</artifactId>
>       <version>5</version>
>       <scope>provided</scope>
> </dependency>
> -->
> 
> Run mvn eclipse:eclipse from helloworld-parent
> 

-- 
View this message in context: 
http://www.nabble.com/-sculptor--Problems-executing-Unittests-from-JavaEE-HelloWorld-tutorial-tf3897267s17564.html#a11062299
Sent from the Fornax-Platform mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Fornax-developer mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Reply via email to