On 5 Feb 07, at 1:43 PM 5 Feb 07, Gary Kind wrote:

I need to zip up a source directory subtree within my pom.xml. Probably the best place to do this for me would be in the compile phase or when using the surefire plugin to to mvn test. How do I do this? I tried the assembly plugin, but I could not control the root directory in my zip file. No matter what I did, the assembly plugin inserted a root directory that I did not want. Please help. This is blocking me at present.

If you are trying to produce an archive of your sources I would highly suggest that you use what we typically use. Running

mvn source:jar

Will do the trick and it takes care of generating any sources before creating the JAR file.

Jason.


I am not against running a simple zip OS command. I know there is a way of running an OS command (like 'rm' or delete) but I cannot find it on the web. And I am NOT using Ant. Thanks!!!!

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