[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-2371) Integration testing Seam components with Maven

Jason Grant (JIRA) jira-events at lists.jboss.org
Thu May 29 21:32:47 EDT 2008


    [ http://jira.jboss.com/jira/browse/JBSEAM-2371?page=comments#action_12414937 ] 
            
Jason Grant commented on JBSEAM-2371:
-------------------------------------

I now have it working for me.  Main fix was to include el-api.jar as a dependency in the web pom.  I am unclear on how this was working for others.

I also include the embedded dependencies at the top of the web pom.  From what I've read, it is important that these occur first in the classpath.  Without this, the surefire classpath in the web pom (as shown above) places the embedded jars towards the end of the classpath.  The classpath creation algorithm is described here:

http://jira.codehaus.org/browse/MNG-1412

Hope this helps others.

J.


----------------------------------
My additions to testproject-web/pom.xml:
----------------------------------

  <dependencies>
<!-- JG added for classpath -->
		<dependency>
			<groupId>org.jboss.seam.embedded</groupId>
			<artifactId>jboss-embedded-all</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.jboss.seam.embedded</groupId>
			<artifactId>thirdparty-all</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.jboss.seam.embedded</groupId>
			<artifactId>jboss-embedded-api</artifactId>
			<scope>test</scope>
		</dependency> 

<!-- JG added for classpath -->
		<dependency>
	  		<groupId>javax.el</groupId>
	  		<artifactId>el-api</artifactId>
			<scope>test</scope>
		</dependency>

...

> Integration testing Seam components with Maven
> ----------------------------------------------
>
>                 Key: JBSEAM-2371
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2371
>             Project: Seam
>          Issue Type: Task
>          Components: Test Harness, Build
>    Affects Versions: 2.0.0.GA
>         Environment: Maven 2.0.7
>            Reporter: Siarhei Dudzin
>            Priority: Critical
>             Fix For: 2.1.0.BETA1
>
>         Attachments: maven-seam-microcontainer-testng-template.zip, tech-stack-1.0.1.pom, testproject-master-JBSEAM-2371.zip
>
>
> Various users have reported integration testing with Seam is not working in 'Mavenized' projects.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list