Using the assembly plugin, I have created assembly jars, and deployed them to my snapshot repository. The problem is, I am not finding a way to reference this jar as a dependency. The assembly creates two jar files when run named:

MyApp-1.0-SNAPSHOT.jar
MyApp-1.0-SNAPSHOT-with-dependencies.jar

The second jar is the one which I need to use. In my dependent project, I have the following in my pom.xml:

<dependency>
   <groupId>com.me</groupId>
   <artifactId>MyApp</artifactId>
   <version>1.0-SNAPSHOT</version>
   <type>jar</type>
   <scope>compile</scope>
</dependency>

The problem is, this of course pulls the first jar, which does not contain the dependencies needed. So I changed my pom to this:

<dependency>
   <groupId>com.me</groupId>
   <artifactId>MyApp</artifactId>
   <version>1.0-SNAPSHOT-with-dependencies</version>
   <type>jar</type>
   <scope>compile</scope>
</dependency>

This time though, I get this error:

[INFO] Failed to resolve artifact.

required artifacts missing:
 com.me.MyApp:jar:1.0-SNAPSHOT-with-dependencies

The jar file is in my repository. How to I reference my assembly jar that contains a dependency? The descriptor file requires a value in the ID element, which becomes the suffix appended to your jar. Any ideas?

Brad

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to