You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jp4 <jo...@hnpsolutions.com> on 2007/06/21 20:03:00 UTC

Install & Deploy an artifact generated with Assembly Plugin

I use the assembly plugin to create an executable jar file that contains all
of it's dependencies.  The file name is
foo-1.0-SNAPSHOT-jar-with-dependencies.jar.  I would like to be able to
install this artifact locally and/or deploy to a remote repository.  How can
I do this?

I have included the assembly plugin configuration below if that helps.

        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-assembly-plugin</artifactId>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <configuration>
                            <descriptors>
                               
<descriptor>jar-with-dependencies.xml</descriptor>
                            </descriptors>
                           
<workDirectory>target/assembly/work</workDirectory>
                            <archive>
                               
<manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
                            </archive>
                        </configuration>
                        <goals><goal>assembly</goal></goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>

Thanks,

jp4
-- 
View this message in context: http://www.nabble.com/Install---Deploy-an-artifact-generated-with-Assembly-Plugin-tf3960408s177.html#a11238491
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


Re: Install & Deploy an artifact generated with Assembly Plugin

Posted by jp4 <jo...@hnpsolutions.com>.
Tim,

That was exactly what I was looking for.

Thanks!

John


Tim Kettler wrote:
> 
> John,
> 
> you can attach the jar file with the attach:artifact goal from 
> build-helper-maven-plugin [1] over at the mojo project.
> 
> -Tim
> 
> [1] http://mojo.codehaus.org/build-helper-maven-plugin/
> 
> jp4 schrieb:
>> I use the assembly plugin to create an executable jar file that contains
>> all
>> of it's dependencies.  The file name is
>> foo-1.0-SNAPSHOT-jar-with-dependencies.jar.  I would like to be able to
>> install this artifact locally and/or deploy to a remote repository.  How
>> can
>> I do this?
>> 
>> I have included the assembly plugin configuration below if that helps.
>> 
>>         <plugins>
>>             <plugin>
>>                 <groupId>org.apache.maven.plugins</groupId>
>>                 <artifactId>maven-assembly-plugin</artifactId>
>>                 <executions>
>>                     <execution>
>>                         <phase>package</phase>
>>                         <configuration>
>>                             <descriptors>
>>                                
>> <descriptor>jar-with-dependencies.xml</descriptor>
>>                             </descriptors>
>>                            
>> <workDirectory>target/assembly/work</workDirectory>
>>                             <archive>
>>                                
>> <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
>>                             </archive>
>>                         </configuration>
>>                         <goals><goal>assembly</goal></goals>
>>                     </execution>
>>                 </executions>
>>             </plugin>
>>         </plugins>
>> 
>> Thanks,
>> 
>> jp4
> 
> 
> ---------------------------------------------------------------------
> 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/Install---Deploy-an-artifact-generated-with-Assembly-Plugin-tf3960408s177.html#a11254277
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


Re: Install & Deploy an artifact generated with Assembly Plugin

Posted by Tim Kettler <ti...@udo.edu>.
John,

you can attach the jar file with the attach:artifact goal from 
build-helper-maven-plugin [1] over at the mojo project.

-Tim

[1] http://mojo.codehaus.org/build-helper-maven-plugin/

jp4 schrieb:
> I use the assembly plugin to create an executable jar file that contains all
> of it's dependencies.  The file name is
> foo-1.0-SNAPSHOT-jar-with-dependencies.jar.  I would like to be able to
> install this artifact locally and/or deploy to a remote repository.  How can
> I do this?
> 
> I have included the assembly plugin configuration below if that helps.
> 
>         <plugins>
>             <plugin>
>                 <groupId>org.apache.maven.plugins</groupId>
>                 <artifactId>maven-assembly-plugin</artifactId>
>                 <executions>
>                     <execution>
>                         <phase>package</phase>
>                         <configuration>
>                             <descriptors>
>                                
> <descriptor>jar-with-dependencies.xml</descriptor>
>                             </descriptors>
>                            
> <workDirectory>target/assembly/work</workDirectory>
>                             <archive>
>                                
> <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
>                             </archive>
>                         </configuration>
>                         <goals><goal>assembly</goal></goals>
>                     </execution>
>                 </executions>
>             </plugin>
>         </plugins>
> 
> Thanks,
> 
> jp4


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org