maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Schaible <Joerg.Schai...@scalaris.com>
Subject Re: deploy on Artifactory repository a War not in target(default) directory
Date Thu, 04 Apr 2013 11:48:09 GMT
ivoru wrote:

> Hi
> 
> I need your help MavenCommunity,
> 
> I've a sh that build a war inside a directory...
> I want to deploy that one inside my artifcatory repositoy...
> But my configuration does not work:
> 
> i paste my deploy configuration:
> 
>   <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-deploy-plugin</artifactId>
>         <executions>
>           <execution>
>             <phase>deploy</phase>
>             <goals>
>                 <goal>deploy-file</goal>
>             </goals>
>             <configuration>
>                 <packaging>war</packaging>
>                 <generatePom>false</generatePom>
>                
> <url>http://artifactory.au-sdc.com:8080/artifactory/plugins-snapshots</url>
>                 <artifactId>prova.prova</artifactId>
>                 <groupId>prova.prova.ivo</groupId>
>                 <version>1.0-SNAPSHOT</version>
>                
> <file>/home/builder/AUTOMATION/mine/WebRatio/deploy/mine.war</file>
>             </configuration>
>           </execution>
>         </executions>
> 
> 
> but when i run:
> 
> mvn deploy:deploly-file
> 
> i've some errors, like:
> 
> Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file (default-cli)
> on project UIS-BUILD: The parameters 'file', 'url' for goal
> org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy-file are missing
> or invalid -> [Help 1]


You execute a goal directly and not as part of Maven's lifecylce. Therefore 
you the configuration is not present, you have to set the properties also on 
command line.

- Jörg


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


Mime
View raw message