That's actually what I was getting at... It sounds like he wants to pack an uberjar into another jar. I just don't see that as a valid use case.
I completely understand the uberjar use case!! Wayne On 3/6/06, Brett Porter <[EMAIL PROTECTED]> wrote: > This isn't routing around it: it seems to be a common use case > (usually, the incorporated jars are unpacked into the other one since > its impossible to use jars in jars as is). > > However, there is a limitation that the transitive dependencies will > still be pulled in, even though the jars are included in the jar. Not > sure if that will bit in this scenario or not - if they are not > unpacked, then I'd say not. > > - Brett > > On 3/7/06, Wayne Fay <[EMAIL PROTECTED]> wrote: > > I think you need a classifier. ;-) > > > > <dependency> > > <groupId>com.me</groupId> > > <artifactId>MyApp</artifactId> > > <version>1.0-SNAPSHOT</version> > > <classifier>with-dependencies</classifier> > > <type>jar</type> > > <scope>compile</scope> > > </dependency> > > > > Let us know if this works! > > > > Of course, I have to ask why you are doing this, effectively routing > > around the built-in dependency management features of Maven... > > > > Wayne > > > > On 3/6/06, Brad O'Hearne <[EMAIL PROTECTED]> wrote: > > > 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] > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
