Re: [m2.0.4] assembly fails during install when format is dir

2006-06-21 Thread Barrie Treloar
On 6/21/06, Ivo Limmen <[EMAIL PROTECTED]> wrote: Strange thing is: my dependencies are like to one you descibe but my builds are not re-run. assembly:assembly goal in pom = re-run of lifecycle assembly:attached goal in pom = no re-run of lifecycle -

Re: [m2.0.4] assembly fails during install when format is dir

2006-06-20 Thread Ivo Limmen
Strange thing is: my dependencies are like to one you descibe but my builds are not re-run. On 6/21/06, Barrie Treloar <[EMAIL PROTECTED]> wrote: > What about re-running of the build lifecycle. If you are finding that your lifecyles are being re-rerun check http://jira.codehaus.org/browse/MASS

Re: [m2.0.4] assembly fails during install when format is dir

2006-06-20 Thread Barrie Treloar
On 6/21/06, dan tran <[EMAIL PROTECTED]> wrote: you may want to try http://maven.apache.org/plugins/maven-assembly-plugin/directory-inline-mojo.html The "attached" goal was the one I needed. I don't see the "dir" format being any different than the other formats being created, except that dir

Re: [m2.0.4] assembly fails during install when format is dir

2006-06-20 Thread Barrie Treloar
I've found a JIRA issue that already talks about dir format and repository installation http://jira.codehaus.org/browse/MASSEMBLY-39 However it is closed and the documentation doesn't really resolve the issues around "directory" format not being something that should be placed into the repository

Re: [m2.0.4] assembly fails during install when format is dir

2006-06-20 Thread Barrie Treloar
On 6/21/06, Barrie Treloar <[EMAIL PROTECTED]> wrote: > What about re-running of the build lifecycle. If you are finding that your lifecyles are being re-rerun check http://jira.codehaus.org/browse/MASSEMBLY-37. You should not be using the "assembly" goal but instead the "attached" goal (and do

Re: [m2.0.4] assembly fails during install when format is dir

2006-06-20 Thread dan tran
you may want to try http://maven.apache.org/plugins/maven-assembly-plugin/directory-inline-mojo.html -D On 6/20/06, Barrie Treloar <[EMAIL PROTECTED]> wrote: > What about re-running of the build lifecycle. If you are finding that your lifecyles are being re-rerun check http://jira.codehaus.

Re: [m2.0.4] assembly fails during install when format is dir

2006-06-20 Thread Barrie Treloar
What about re-running of the build lifecycle. If you are finding that your lifecyles are being re-rerun check http://jira.codehaus.org/browse/MASSEMBLY-37. You should not be using the "assembly" goal but instead the "attached" goal (and dont specify a phase) The pom should look like:

Re: [m2.0.4] assembly fails during install when format is dir

2006-06-20 Thread Barrie Treloar
On 6/20/06, Ivo Limmen <[EMAIL PROTECTED]> wrote: Did you try using a different phase and / or goal? I personally only include and configure the asembly plugin and don't attach it to a specific phase or goal. [del] But still I never used the dir format. My distribution is only created once. W

Re: [m2.0.4] assembly fails during install when format is dir

2006-06-20 Thread Ivo Limmen
Did you try using a different phase and / or goal? I personally only include and configure the asembly plugin and don't attach it to a specific phase or goal. Like this: maven-assembly-plugin src/main/assembly/full.xml

Re: [m2.0.4] assembly fails during install when format is dir

2006-06-19 Thread Barrie Treloar
So why does the "dir" format want to install the artifact but the "zip" format doesn't? Now that I have zip only I noticed this during the install phase: [INFO] [install:install] [INFO] Installing \\target\-0.0.1-SNAPSHOT.jar to \.m2\repository\\\0.0.1-SNAPSHOT\-0.0.1-SNAPSHOT.jar [INFO] Instal

Re: [m2.0.4] assembly fails during install when format is dir

2006-06-19 Thread Barrie Treloar
On 6/20/06, Ivo Limmen <[EMAIL PROTECTED]> wrote: AFAIK the assembly plugin only supports the following formats: zip, bzip2 and tar. I never heared of the 'dir' format. Can you point me to the documentation where you read of this feature? Sure, it's not well documented and actually buried in th

Re: [m2.0.4] assembly fails during install when format is dir

2006-06-19 Thread Ivo Limmen
AFAIK the assembly plugin only supports the following formats: zip, bzip2 and tar. I never heared of the 'dir' format. Can you point me to the documentation where you read of this feature? Best regards, Ivo On 6/20/06, Barrie Treloar <[EMAIL PROTECTED]> wrote: > When I run with -X the root cau

Re: [m2.0.4] assembly fails during install when format is dir

2006-06-19 Thread Barrie Treloar
When I run with -X the root cause error is: Caused by: java.io.FileNotFoundException: \target\-0.0.1-SNAPSHOT-bin. dir (Access is denied) I should have also included: at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.(FileInputStream.java:106) at or

[m2.0.4] assembly fails during install when format is dir

2006-06-19 Thread Barrie Treloar
Back on 2005-11-09, ramfree17 send an email [m2] assembly:directory requires an install? (see http://www.nabble.com/-m2--assembly%3Adirectory-requires-an-install--t512277.html#a1387406) This thread was hijacked and no answer was provided. I am finding that if I removed the dir from my assembly