You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Saloucious <sa...@gmail.com> on 2007/11/14 15:01:57 UTC
RE: assembly question
Haven't succeed too
May be i've miss something in maven lifecycle, but i really don't understand
why it's not possible ...
You must attach your execution to a goal (e.g package) but don't know why
...
EJ Ciramella-2 wrote:
>
> Yeah, I've been trying this:
>
> <plugin>
> <artifactId>maven-assembly-plugin</artifactId>
> <executions>
> <execution>
> <id>assembler-dir</id>
> <phase>assembly:directory</phase>
> <goals>
> <goal>directory</goal>
> </goals>
> <configuration>
> <descriptors>
>
> <descriptor>src/main/assembly/dep.xml</descriptor>
> </descriptors>
>
> <outputDirectory>E:/testdirectory</outputDirectory>
> </configuration>
> </execution>
> <execution>
> <id>assembler-bin</id>
> <phase>assembly:assembly</phase>
> <goals>
> <goal>assembly</goal>
> </goals>
> <configuration>
> <descriptors>
>
> <descriptor>src/main/assembly/dep.xml</descriptor>
> </descriptors>
> </configuration>
> </execution>
> </executions>
> </plugin>
>
> But when maven runs, it can't find the descriptor:
>
> [INFO] [assembly:assembly]
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] No assembly descriptors found.
> [INFO]
> ------------------------------------------------------------------------
>
>
> -----Original Message-----
> From: tommy.knowlton@gmail.com [mailto:tommy.knowlton@gmail.com] On
> Behalf Of Tommy Knowlton
> Sent: Friday, March 23, 2007 11:59 AM
> To: Maven Users List
> Subject: Re: assembly question
>
> I'm not positive, but I believe where you said <phase> you should say
> <goal>. I haven't tried this in a POM of my own, but I've been using
> the maven-assembly-plugin alot lately, and I think you've got it
> exactly right, modulo that one change.
>
> HTH
> --
> Tommy
>
> On 3/23/07, EJ Ciramella <ej...@upromise.com> wrote:
>> Is it possible to do something like the following:
>>
>> <plugins>
>> <plugin>
>> <artifactId>maven-assembly-plugin</artifactId>
>> <configuration>
>> <descriptor>src/main/assembly/dep.xml</descriptor>
>> </configuration>
>> <executions>
>> <execution>
>> <id>assembler-dir</id>
>> <phase>assembly:directory</phase>
>> <configuration>
>>
>> <outputDirectory>E:/testdirectory</outputDirectory>
>> </configuration>
>> </execution>
>> <execution>
>> <id>assembler-bin</id>
>> <phase>assembly:assembly</phase>
>> <configuration></configuration>
>> </execution>
>> </executions>
>> </plugin>
>> </plugins>
>>
>> Basically, I want the assembly:directory to output to one location and
>> the zip output to go to the regular target directory...
>>
>
>
> --
> --
> Tommy
>
> ---------------------------------------------------------------------
> 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
>
>
>
--
View this message in context: http://www.nabble.com/assembly-question-tf3454471s177.html#a13747046
Sent from the Maven - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org