You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ivoru <iv...@gmail.com> on 2013/04/04 12:39:29 UTC

deploy on Artifactory repository a War not in target(default) directory

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]


Thanks for your help



--
View this message in context: http://maven.40175.n5.nabble.com/deploy-on-Artifactory-repository-a-War-not-in-target-default-directory-tp5752614.html
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: deploy on Artifactory repository a War not in target(default) directory

Posted by Jörg Schaible <Jo...@scalaris.com>.
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