So is anyone doing anything like this or is there a better way to
install outside of your target directory with AND have an option to
build a jar with the same series of parameters? 

-----Original Message-----
From: EJ Ciramella [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 23, 2007 12:06 PM
To: Maven Users List
Subject: RE: assembly question

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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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