[jboss-user] [JBoss Tools] - Re: broken jboss tools - generated maven seam project?

Lars Bohl do-not-reply at jboss.com
Wed Nov 10 04:20:27 EST 2010


Lars Bohl [http://community.jboss.org/people/bohl] created the discussion

"Re: broken jboss tools - generated maven seam project?"

To view the discussion, visit: http://community.jboss.org/message/570431#570431

--------------------------------------------------------------
Thanks John, I can build the projects "xxxx-ejb" and "xxxx" now. However, mvn-install still fails for "xxxx-test",  "xxxx-ear" and  "xxxx-parent". Apparently, the root cause is that "xxxx-ear", which the other two depend on, doesn't compile, and that is because it has a dependency on "xxxx" with a packaging type of "war". Here's a snippet from the pom.xml of "xxxx-ear":

   <dependency>
      <groupId>de.xplace.myxplace</groupId>
      <artifactId>myxplace3.0</artifactId>
      <version>0.0.1-SNAPSHOT</version>
      <type>war</type>
      <scope>runtime</scope>
    </dependency>
   <dependency>
      <artifactId>xxxx</artifactId>
      <groupId>my.group</groupId>
      <version>0.0.1-SNAPSHOT</version>
      <type>war</type>
    </dependency>

and here's a snippet from the pom of "xxxx":

<project>
   ...  
  <artifactId>xxxx</artifactId>
  <groupId>my.group</groupId>  
  <version>0.0.1-SNAPSHOT</version>
  <packaging>ear</packaging>
    ...
</project>

I think the problem is that xxxx-ear depends on a project with <type>war</war>, but xxxx has <packaging>ear</packaging>. I tried changing the dependency declaration to <type>ear</type>, but get the following error message:

"Failed to execute goal org.apache.maven.plugins:maven-ear-plugin:2.3.1:generate-application-xml
Artifact[war:my.group:xxxx] is not a dependency of the project."

I have done some Java SE maven projects, but I'm new to web development with maven, and I haven't got a clue how to fix that.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/570431#570431]

Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20101110/ce4a3cfb/attachment-0001.html 


More information about the jboss-user mailing list