Did you try using additional executions of the jar plugin? I imagine with a combination of the classifier and includes you could accomplish this. It wouldn't be dynamic in the sense that you would need to specify each class file in a separate execution. I suspect you'd need to write your own plugin to handle this in a dynamic fashion.
Justin -----Original Message----- From: CheapLisa [mailto:[email protected]] Sent: Wednesday, December 17, 2008 1:01 PM To: [email protected] Subject: Re: How do I build one jar per class file controlling the name of the jar? Yes, I posted that I needed to create individual jar files for each class in my posting for help so my question is , How do I create individual jar files for each class? If you have any ideas, and have an example, please let me know. In my original posting I ask for help with creating individual jar modules for each .java file so what I am looking for is a way to create individual jar modules for each .java file so if you have any ideas on how to create an individual jar module for each .java file it would be appreciated because so far I have not found a way to create an individual jar module for each .java file when all .java files are in the same directory so if you have any ideas, please let me know. I suppose that I need to create an individual jar module for each .java file, what do you think? Also in my original posting, I do not believe I stated the need to group them together. I need the separate unless I am mistaken. thanks L Mick Knutson-4 wrote: > > 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-controlli >> ng-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] >> >> > > -- View this message in context: http://www.nabble.com/How-do-I-build-one-jar-per-class-file-controlling- the-name-of-the-jar--tp21044507p21058176.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] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
