You need to create individual jar modules for each class, then use the assembly plugin to group them together.
--- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://linkedin.com/in/mickknutson Vacation Rental: http://tahoe.baselogic.com --- On Tue, Dec 16, 2008 at 3:54 PM, CheapLisa <[email protected]> wrote: > > I am using an open source product that requires a jar to be built for every > single .java > file. > > The java files are all in the same directory like so: > src/main/java/com/acme/product/Name1.java > src/main/java/com/acme/product/Name2.java > src/main/java/com/acme/product/Name3.java > > What I need to build are 3 jar files with only one class in each > and have the name of each jar file be the same as the Java class > name so like: > Name1.jar > Name2.jar > Name3.jar > > and then I need to copy these files to a specific directory. > > Is there a way to do this with maven? ( examples please !!!) > -- > View this message in context: > http://www.nabble.com/How-do-I-build-one-jar-per-class-file-controlling-the-name-of-the-jar--tp21044507p21044507.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
