Hi Andreas

I gave up my aesthetic view on POMs long ago  ;-) 

Seriously, though, it looks like you're only repacking existing dependencies. 
So you might want to look into the Assembly plugin (after reading the chapters 
in the Sonatype book).

Best regards,
Eric

-----Ursprüngliche Nachricht-----
Von: Andreas Sewe [mailto:[email protected]] 
Gesendet: Dienstag, 8. Juni 2010 13:01
An: Maven Users List
Betreff: Re: AW: Maven Best Pratices: Where to place generate re(sources)?

Hi Eric,

> I don't know if my practice is "best", but I certainly advise you to unpack 
> to the ${project.build.directory}, since
> a) it's deleted during clear
> b) you don't want to mess up your source directories, especially if you use 
> SCM

true.

> And yes, you then need the buildhelper.

Yes, the builderhelper-m-p does the job; the reuslting POM's not pretty, 
though.

> However, reading your message makes me wonder why you're unpacking a 
> dependency at all. I don't know your use case, but if you use the resources, 
> you could just load them from the classpath.

No, unfortunately, I cannot do that. I have to build a JAR which has a 
specific internal structure (a couple of directories containing further 
JARs and sources) which is then unzipped by a third-party application 
during its  execution. Not my design choice, but one I have to live 
with. :-(

Best wishes,

Andreas


---------------------------------------------------------------------
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]

Reply via email to