On 4/20/10 4:35 PM, ZedroS Schwart wrote: > hi > > thanks a lot for this input. I struggled a bit at first to understand > this plugin and then I found this page > http://people.apache.org/~epunzalan/maven-assembly-plugin/ which > helped a lot. This looks like a very out of date version of http://maven.apache.org/plugins/maven-assembly-plugin/. You should look at that site instead.
One other thought - don't do this with Maven (or Ant for that matter). Build systems like Maven are really good at repeating the same tasks (or sequence of tasks) many times. Whereas you need to create this jar file exactly once. Focus on the code (which you can certainly build with Maven) and then when you're ready to submit it to Oracle, zip up the files you need in the directory structure you need them in. Just a thought... Justin > > I'm now looking closer at it :) > > best > zedros > > On Tue, Apr 20, 2010 at 12:35 AM, Justin Edelson > <[email protected]> wrote: >> You should be able to do this with the assembly plugin. >> >> Justin >> >> On Apr 19, 2010, at 5:57 PM, ZedroS Schwart >> <[email protected]> wrote: >> >>> hi >>> >>> I'm a long time user of Maven and recently I decided to go for the Sun >>> Certified Java Developer. >>> >>> This assignment requires the developer to create a quite complex jar, >>> containing (from the root) : >>> - a jar with the actual code >>> - some files from the assignment >>> - a directory with the (src/main/java) code in it >>> - another directory with >>> -- the javadoc in a dedicated folder >>> -- some various files (explanation, doc from the assignment) >>> >>> For sure, in order to limit risks, the jar content should be that and >>> nothing else at all... >>> >>> I've just looked at maven buid resources, jar plugin, source plugin >>> and the like, and I feel like building such a complex pom isn't really >>> doable with maven (at least reusing the plugins I spoke of). At least, >>> nesting my jar this way looked like not doable. >>> >>> Am I wrong ? Did I miss something obvious ? Any hint or advice maybe ? >>> >>> On the other hand, should I stop there and swith to some ant based >>> script ? >>> >>> thanks in advance >>> zedros >>> >>> --------------------------------------------------------------------- >>> 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]
