[jboss-user] [JBoss Seam] - Re: Seam 2.0.0.0GA + Maven2 doesn`t work...
wiggum14
do-not-reply at jboss.com
Fri Nov 9 10:34:29 EST 2007
Howdy,
After three days of working, I finally have my Seam 2.0 project building and deploying to JBoss 4.2.2 using maven 2. I still don't have the unit tests working (the do work in Eclipse using the testng plugin). Anyway, I hope this helps...
I'm only including the dependencies.
EJB - some of the exclusions are there to avoid conflicts with the jars in JBoss 4.2.2. ${seam.version} is defined in another pom.
| <dependencies>
|
| <dependency>
| <groupId>jboss</groupId>
| <artifactId>javassist</artifactId>
| <version>3.4.ga</version>
| <scope>test</scope>
| </dependency>
|
| <dependency><!-- required to boot jboss embedded -->
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-embedded-api</artifactId>
| <version>${seam.version}</version>
| <scope>provided</scope>
| </dependency>
|
| <dependency><!-- required to boot jboss embedded -->
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-deployers</artifactId>
| <version>${seam.version}</version>
| <scope>provided</scope>
| </dependency>
|
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-embedded-all</artifactId>
| <version>${seam.version}</version>
| <scope>provided</scope>
| </dependency>
|
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>thirdparty-all</artifactId>
| <version>${seam.version}</version>
| <scope>provided</scope>
| </dependency>
|
| <dependency>
| <groupId>commons-lang</groupId>
| <artifactId>commons-lang</artifactId>
| <version>2.2</version>
| </dependency>
|
| <dependency>
| <groupId>org.hibernate</groupId>
| <artifactId>hibernate-annotations</artifactId>
| <version>3.3.0.ga</version>
| <scope>provided</scope>
| </dependency>
|
| <dependency>
| <groupId>org.hibernate</groupId>
| <artifactId>hibernate-entitymanager</artifactId>
| <version>3.3.1.ga</version>
| <scope>provided</scope>
| </dependency>
|
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam</artifactId>
| <version>${seam.version}</version>
| <scope>provided</scope>
| <exclusions>
| <exclusion>
| <groupId>javax.el</groupId>
| <artifactId>el-api</artifactId>
| </exclusion>
| <exclusion>
| <groupId>dom4j</groupId>
| <artifactId>dom4j</artifactId>
| </exclusion>
| </exclusions>
| </dependency>
|
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam-ui</artifactId>
| <version>${seam.version}</version>
| <exclusions>
| <exclusion>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam</artifactId>
| </exclusion>
| <exclusion>
| <groupId>javax.el</groupId>
| <artifactId>el-api</artifactId>
| </exclusion>
| </exclusions>
| </dependency>
|
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam-debug</artifactId>
| <version>${seam.version}</version>
| <exclusions>
| <exclusion>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam</artifactId>
| </exclusion>
| <exclusion>
| <groupId>javax.el</groupId>
| <artifactId>el-api</artifactId>
| </exclusion>
| </exclusions>
| </dependency>
|
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam-remoting</artifactId>
| <version>${seam.version}</version>
| <exclusions>
| <exclusion>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam</artifactId>
| </exclusion>
| </exclusions>
| </dependency>
|
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-el</artifactId>
| <version>${seam.version}</version>
| <scope>provided</scope>
| </dependency>
|
| <dependency>
| <groupId>com.lowagie</groupId>
| <artifactId>itext</artifactId>
| <version>2.0.1</version>
| <scope>provided</scope>
| </dependency>
|
| <dependency>
| <groupId>log4j</groupId>
| <artifactId>log4j</artifactId>
| <version>1.2.14</version>
| <scope>provided</scope>
| </dependency>
|
| <dependency>
| <groupId>javax.persistence</groupId>
| <artifactId>persistence-api</artifactId>
| <version>1.0</version>
| <scope>provided</scope>
| </dependency>
|
| <dependency>
| <groupId>org.testng</groupId>
| <artifactId>testng</artifactId>
| <version>5.5</version>
| <classifier>jdk15</classifier>
| <scope>test</scope>
| </dependency>
|
| </dependencies>
|
|
Web - I left out the dependency to my EJB above.
| <dependencies>
|
| <dependency>
| <groupId>org.hibernate</groupId>
| <artifactId>hibernate-validator</artifactId>
| <version>3.0.0.GA</version>
| <exclusions>
| <exclusion>
| <groupId>org.hibernate</groupId>
| <artifactId>hibernate</artifactId>
| </exclusion>
| </exclusions>
| </dependency>
|
| <dependency>
| <groupId>opensymphony</groupId>
| <artifactId>oscache</artifactId>
| <version>2.3.2</version>
| </dependency>
|
| <dependency>
| <groupId>richfaces</groupId>
| <artifactId>richfaces-api</artifactId>
| <version>3.1.2.GA</version>
| </dependency>
|
| <dependency>
| <groupId>richfaces</groupId>
| <artifactId>richfaces-impl</artifactId>
| <version>3.1.2.GA</version>
| </dependency>
|
| <dependency>
| <groupId>richfaces</groupId>
| <artifactId>richfaces-ui</artifactId>
| <version>3.1.2.GA</version>
| </dependency>
|
| <dependency> <!-- needed for richfaces -->
| <groupId>commons-collections</groupId>
| <artifactId>commons-collections</artifactId>
| <version>3.2</version>
| </dependency>
|
| <dependency>
| <groupId>com.sun.facelets</groupId>
| <artifactId>jsf-facelets</artifactId>
| <version>1.1.14</version>
| </dependency>
|
| <dependency>
| <groupId>org.apache.myfaces.tomahawk</groupId>
| <artifactId>tomahawk</artifactId>
| <version>1.1.6</version>
| <exclusions>
| <exclusion>
| <artifactId>commons-lang</artifactId>
| <groupId>commons-lang</groupId>
| </exclusion>
| <exclusion>
| <artifactId>commons-collections</artifactId>
| <groupId>commons-collections</groupId>
| </exclusion>
| </exclusions>
| </dependency>
|
| <dependency>
| <groupId>javax.faces</groupId>
| <artifactId>jsf-api</artifactId>
| <version>1.2</version>
| <scope>provided</scope>
| </dependency>
|
| </dependencies>
|
|
EAR:
| <dependencies>
| <dependency>
| <groupId>dom4j</groupId>
| <artifactId>dom4j</artifactId>
| <version>1.6.1</version>
| <scope>provided</scope>
| </dependency>
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-seam</artifactId>
| <version>${seam.version}</version>
| <exclusions>
| <exclusion>
| <groupId>javax.el</groupId>
| <artifactId>el-api</artifactId>
| </exclusion>
| <exclusion>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-el</artifactId>
| </exclusion>
| </exclusions>
| </dependency>
|
| <dependency>
| <groupId>org.jboss.seam</groupId>
| <artifactId>jboss-el</artifactId>
| <version>${seam.version}</version>
| <exclusions>
| <exclusion>
| <groupId>javax.el</groupId>
| <artifactId>el-api</artifactId>
| </exclusion>
| </exclusions>
| </dependency>
|
|
| <dependency>
| <groupId>com.emeds</groupId>
| <artifactId>ejb</artifactId>
| <version>${pom.parent.version}</version>
| <type>jar</type>
| </dependency>
|
| <dependency>
| <groupId>javax.persistence</groupId>
| <artifactId>persistence-api</artifactId>
| <version>1.0</version>
| </dependency>
|
| <dependency>
| <groupId>com.lowagie</groupId>
| <artifactId>itext</artifactId>
| <version>2.0.1</version>
| </dependency>
| </dependencies>
|
|
I know there is some duplication in the dependencies, mostly due to not cleaning things up yet. Please, if anyone see something wrong or can suggest a better way of doing things; let me know.
Thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103291#4103291
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103291
More information about the jboss-user
mailing list