Am 16.01.2013 22:26, schrieb Ron Wheeler:
If you want them both in one artifact: Use a "pom" packaging type with the dependencies lib.jar and lib-sources.jar. Use the Assembly plugin to make a jar with both jars inside.
Hmm... does that mean that a Maven project can install at most a single jar per classifier? I'd find that surprising enough to be worthy of being documented in the 30-minute introduction.
If you want them as individual artifacts: If you are running Nexus as your Maven Repository, I think that you can just upload each jar and Nexus will generate a minimal POM with the specified GAV that can be downloaded by Maven just like any jar that you built from sources.
No Nexus here, just a local repository that's deployed to from the command line via mvn deploy. Shared data is exchanged via Bitbucket, so we haven't seen a use case for Nexus yet.
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
