You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ZedroS Schwart <ze...@gmail.com> on 2010/04/19 23:57:45 UTC

complex jar generation for SCJD assignment

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: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: complex jar generation for SCJD assignment

Posted by zedros schwartz <ze...@gmail.com>.
On Wed, Apr 21, 2010 at 6:17 AM, Wayne Fay <wa...@gmail.com> wrote:
>> 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.
>
> Agreed wholeheartedly. Unless he's building a Maven config that he
> plans to share for the benefit of others in the future, perhaps.
>
> Wayne
>

that was part of the idea indeed + the added benefit of digging more
into maven :)

now I wonder if SCJD will still be part of oracle's plans...

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: complex jar generation for SCJD assignment

Posted by Wayne Fay <wa...@gmail.com>.
> 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.

Agreed wholeheartedly. Unless he's building a Maven config that he
plans to share for the benefit of others in the future, perhaps.

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: complex jar generation for SCJD assignment

Posted by zedros schwartz <ze...@gmail.com>.
> 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.

in fact I found it more "user friendly". But then if it's outdated...
I'll check :)

thx again !

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: complex jar generation for SCJD assignment

Posted by Justin Edelson <ju...@gmail.com>.
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
> <ju...@gmail.com> wrote:
>> You should be able to do this with the assembly plugin.
>>
>> Justin
>>
>> On Apr 19, 2010, at 5:57 PM, ZedroS Schwart
>> <ze...@gmail.com> 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: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: complex jar generation for SCJD assignment

Posted by ZedroS Schwart <ze...@gmail.com>.
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.

I'm now looking closer at it :)

best
zedros

On Tue, Apr 20, 2010 at 12:35 AM, Justin Edelson
<ju...@gmail.com> wrote:
> You should be able to do this with the assembly plugin.
>
> Justin
>
> On Apr 19, 2010, at 5:57 PM, ZedroS Schwart
> <ze...@gmail.com> 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: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: complex jar generation for SCJD assignment

Posted by Justin Edelson <ju...@gmail.com>.
You should be able to do this with the assembly plugin.

Justin

On Apr 19, 2010, at 5:57 PM, ZedroS Schwart
<ze...@gmail.com> 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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org