5 Replies Latest reply: Nov 5, 2008 11:33 AM by Andrew Rubinger RSS

Dependencies via jboss-as-thirdparty

Andrew Rubinger Master

I'm looking to bring *all* of the JBossAS dependencies into my project via org.jboss.jbossas:jboss-as-thirdparty.

So I've got a POM with:

<!-- Dependencies -->
 <dependencies>

 <!-- Bring in JBossAS Dependencies Transitively via 3rdparty -->
 <dependency>
 <groupId>org.jboss.jbossas</groupId>
 <artifactId>jboss-as-thirdparty</artifactId>
 <version>${version.org.jboss.jbossas}</version>
 <type>pom</type>
 </dependency>

 </dependencies>


...upon "mvn dependency:tree", getting:

Missing:
----------
1) jboss.jbossts:jbossts-tools:jboss-sar:4.4.0.GA

...

 Path to dependency:
 1) org.jboss.embedded:jboss-embedded-as:jar:0.1.0-SNAPSHOT
 2) org.jboss.jbossas:jboss-as-thirdparty:pom:5.0.0-SNAPSHOT
 3) jboss.jbossts:jbossts-tools:jboss-sar:4.4.0.GA

2) org.jboss.jaxr:juddi-service:jboss-sar:1.2.1.GA

...

 Path to dependency:
 1) org.jboss.embedded:jboss-embedded-as:jar:0.1.0-SNAPSHOT
 2) org.jboss.jbossas:jboss-as-thirdparty:pom:5.0.0-SNAPSHOT
 3) org.jboss.jaxr:juddi-service:jboss-sar:1.2.1.GA


What's up, doc?

S,
ALR

  • 1. Re: Dependencies via jboss-as-thirdparty
    Andrew Rubinger Master

    BTW, I'm confused why this does work in thirdparty, but not my project.

    [alrubinger@localhost thirdparty]$ mvn dependency:tree -Dincludes=org.jboss.jaxr
    ...
    [INFO] [dependency:tree]
    [INFO] org.jboss.jbossas:jboss-as-thirdparty:pom:5.0.0-SNAPSHOT
    [INFO] +- org.jboss.jaxr:juddi-saaj:jar:1.2.1.GA:compile
    [INFO] \- org.jboss.jaxr:juddi-service:jboss-sar:1.2.1.GA:compile


    S,
    ALR

  • 2. Re: Dependencies via jboss-as-thirdparty
    Paul Gier Master

    It can't find the thirdparty pom because no one ever deployed it. It's not used in the maven build, so it doesn't automatically get deployed during a "mvn deploy" from the root dir.
    I deployed a snapshot, so you should be able to pick it up from the snapshots repository now.
    I'll make a note to remember to deploy it for the GA release also.

  • 3. Re: Dependencies via jboss-as-thirdparty
    Andrew Rubinger Master

     

    "pgier" wrote:
    It can't find the thirdparty pom because no one ever deployed it.


    I deployed the thirdparty POM locally, so my project finds it.

    It's the 2 transitive dependencies that are missing. But the thirdparty POM itself finds these just fine.

    S,
    ALR

  • 4. Re: Dependencies via jboss-as-thirdparty
    Paul Gier Master

    Ok, so the real solution I think is to add the jboss-packaging plugin to your pom.

     <plugin>
     <groupId>org.codehaus.mojo</groupId>
     <artifactId>jboss-packaging-maven-plugin</artifactId>
     <version>2.0-beta-1</version>
     <extensions>true</extensions>
     </plugin>
    


    I didn't see at first that the two dependencies that it's complaining about are sar files.

  • 5. Re: Dependencies via jboss-as-thirdparty
    Andrew Rubinger Master

    Paul got me the solution.

    Thirdparty POM's parent has:

    <plugin>
     <groupId>org.codehaus.mojo</groupId>
     <artifactId>jboss-packaging-maven-plugin</artifactId>
     <version>2.0-beta-1</version>
     <extensions>true</extensions>
     </plugin>


    ...which defines the artifact type "jboss-sar".

    Hurray.

    S,
    ALR