You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Andrew Davidson <ad...@apple.com> on 2014/06/17 00:51:21 UTC
newbie problem with deploy:deploy-file
Hi
I recently joined an existing project that uses the maven ant plug into to build artifacts that we need to distribute. I am trying to add support for deploy-file
$ mvn deploy:deploy-file -DskipTests 2>&1 | tee mvn.deploy-file.out
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8:deploy-file (default-cli) on project mary-aide-dist: The parameters 'file' for goal org.apache.maven.plugins:maven-deploy-plugin:2.8:deploy-file are missing or invalid -> [Help 1]
[ERROR]
I have tried using -X and -e how ever I can still can not figure out what the problem is.
any idea what I am doing wrong?
thanks
Andy
<distributionManagement> … </>
<properties>
<mary-aide-proxy.tar>mary-aide-proxy-${project.version}</mary-aide-proxy.tar>
<release.repositoryId>libs-release</release.repositoryId>
<release.url>http://maryx01-c.bogco.com:8081/artifactory/libs-release-local/
</release.url>
<snapshot.repositoryId>libs-snapshot</snapshot.repositoryId>
<snapshot.url>http://maryx01-c.bigco.com:8081/artifactory/libs-snapshot-local/
</snapshot.url>
</properties>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<executions>
<execution>
<id>mary-aide-proxy</id>
<phase>deploy</phase>
<goals>
<goal>deploy-file</goal>
</goals>
<configuration>
<file>target/${mary-aide-proxy.tar}.tar.gz</file>
<repositoryId>${release.repositoryId}</repositoryId>
<url>${release.url}</url>
<groupId>${project.parent.groupId}</groupId>
<artifactId>${project.parent.artifactId}</artifactId>
<version>${project.parent.version}</version>
<generatePom>false</generatePom>
<packaging>tar.gz</packaging>
</configuration>
</execution>
</executions>
Re: newbie problem with deploy:deploy-file
Posted by Andrew Davidson <ad...@apple.com>.
many many thanks
Andy
On Jun 17, 2014, at 11:28 AM, Robert Scholte <rf...@apache.org> wrote:
> Hi Andy,
>
> First of all: welcome in the world of Apache Maven!
> I won't go into detail too much right now, I'd suggest to do some getting-started tutorials[2] to understand the basics.
>
> Let's start with:
> With Maven you can call 2 things: a phase of a lifecycle[1] or a goal from a specific plugin.
> if you're running 'mvn deploy:deploy-file' you're only executing 1 goal.
> And 'mvn deploy' means you're executing all phases up to deploy, representing a chain of goals.
>
> Since you're using an execution-block I assume you just want to call 'mvn deploy'.
>
> thanks,
> Robert
>
> [1] http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
> [2] http://maven.apache.org/guides/index.html
>
> Op Tue, 17 Jun 2014 00:51:21 +0200 schreef Andrew Davidson <ad...@apple.com>:
>
>> Hi
>>
>> I recently joined an existing project that uses the maven ant plug into to build artifacts that we need to distribute. I am trying to add support for deploy-file
>>
>> $ mvn deploy:deploy-file -DskipTests 2>&1 | tee mvn.deploy-file.out
>> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.8:deploy-file (default-cli) on project mary-aide-dist: The parameters 'file' for goal org.apache.maven.plugins:maven-deploy-plugin:2.8:deploy-file are missing or invalid -> [Help 1]
>> [ERROR]
>>
>> I have tried using -X and -e how ever I can still can not figure out what the problem is.
>>
>> any idea what I am doing wrong?
>>
>> thanks
>>
>> Andy
>>
>>
>> <distributionManagement> … </>
>>
>> <properties>
>> <mary-aide-proxy.tar>mary-aide-proxy-${project.version}</mary-aide-proxy.tar>
>>
>> <release.repositoryId>libs-release</release.repositoryId>
>> <release.url>http://maryx01-c.bogco.com:8081/artifactory/libs-release-local/
>> </release.url>
>>
>> <snapshot.repositoryId>libs-snapshot</snapshot.repositoryId>
>> <snapshot.url>http://maryx01-c.bigco.com:8081/artifactory/libs-snapshot-local/
>> </snapshot.url>
>>
>> </properties>
>>
>> <plugin>
>> <groupId>org.apache.maven.plugins</groupId>
>> <artifactId>maven-deploy-plugin</artifactId>
>> <executions>
>>
>> <execution>
>> <id>mary-aide-proxy</id>
>> <phase>deploy</phase>
>> <goals>
>> <goal>deploy-file</goal>
>> </goals>
>> <configuration>
>> <file>target/${mary-aide-proxy.tar}.tar.gz</file>
>> <repositoryId>${release.repositoryId}</repositoryId>
>> <url>${release.url}</url>
>> <groupId>${project.parent.groupId}</groupId>
>> <artifactId>${project.parent.artifactId}</artifactId>
>> <version>${project.parent.version}</version>
>> <generatePom>false</generatePom>
>> <packaging>tar.gz</packaging>
>> </configuration>
>> </execution>
>> </executions>
>
> ---------------------------------------------------------------------
> 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
Re: newbie problem with deploy:deploy-file
Posted by Robert Scholte <rf...@apache.org>.
Hi Andy,
First of all: welcome in the world of Apache Maven!
I won't go into detail too much right now, I'd suggest to do some
getting-started tutorials[2] to understand the basics.
Let's start with:
With Maven you can call 2 things: a phase of a lifecycle[1] or a goal from
a specific plugin.
if you're running 'mvn deploy:deploy-file' you're only executing 1 goal.
And 'mvn deploy' means you're executing all phases up to deploy,
representing a chain of goals.
Since you're using an execution-block I assume you just want to call 'mvn
deploy'.
thanks,
Robert
[1]
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
[2] http://maven.apache.org/guides/index.html
Op Tue, 17 Jun 2014 00:51:21 +0200 schreef Andrew Davidson
<ad...@apple.com>:
> Hi
>
> I recently joined an existing project that uses the maven ant plug into
> to build artifacts that we need to distribute. I am trying to add
> support for deploy-file
>
> $ mvn deploy:deploy-file -DskipTests 2>&1 | tee mvn.deploy-file.out
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-deploy-plugin:2.8:deploy-file
> (default-cli) on project mary-aide-dist: The parameters 'file' for goal
> org.apache.maven.plugins:maven-deploy-plugin:2.8:deploy-file are missing
> or invalid -> [Help 1]
> [ERROR]
>
> I have tried using -X and -e how ever I can still can not figure out
> what the problem is.
>
> any idea what I am doing wrong?
>
> thanks
>
> Andy
>
>
> <distributionManagement> … </>
>
> <properties>
> <mary-aide-proxy.tar>mary-aide-proxy-${project.version}</mary-aide-proxy.tar>
>
> <release.repositoryId>libs-release</release.repositoryId>
> <release.url>http://maryx01-c.bogco.com:8081/artifactory/libs-release-local/
> </release.url>
>
> <snapshot.repositoryId>libs-snapshot</snapshot.repositoryId>
> <snapshot.url>http://maryx01-c.bigco.com:8081/artifactory/libs-snapshot-local/
> </snapshot.url>
>
> </properties>
>
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-deploy-plugin</artifactId>
> <executions>
>
> <execution>
> <id>mary-aide-proxy</id>
> <phase>deploy</phase>
> <goals>
> <goal>deploy-file</goal>
> </goals>
> <configuration>
> <file>target/${mary-aide-proxy.tar}.tar.gz</file>
> <repositoryId>${release.repositoryId}</repositoryId>
> <url>${release.url}</url>
> <groupId>${project.parent.groupId}</groupId>
> <artifactId>${project.parent.artifactId}</artifactId>
> <version>${project.parent.version}</version>
> <generatePom>false</generatePom>
> <packaging>tar.gz</packaging>
> </configuration>
> </execution>
> </executions>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org