[maven-release-plugin] How to disable repository deployment for release:perform?

View: New views
2 Messages — Rating Filter:   Alert me  

[maven-release-plugin] How to disable repository deployment for release:perform?

by Andreas Schildbach-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello everyone,

I am using the release plugin just locally. When I do a release:perform,
I expect the artifacts just to be deployed to the local repository, like
install does.

Unfortunately, everytime I get an error message:

Failed to configure plugin parameters for:
org.apache.maven.plugins:maven-deploy-plugin:2.3
check that the following section of the pom.xml is present and correct:
<distributionManagement>
<repository>
[...]

I don't have a repository and I have no real need for one.

How can I disable that external repository deployment?

Regards,

Andreas



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


Re: [maven-release-plugin] How to disable repository deployment for release:perform?

by dennisl-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

You need to configure the release plugin to use different goals during
release:perform.

http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#goals

Try this configuration

         <configuration>
           <goals>install</goals>
         </configuration>

The default value is either "deploy" or "deploy site-deploy", if the
project has a <distributionManagement>/<site> element.


Andreas Schildbach wrote:

> Hello everyone,
>
> I am using the release plugin just locally. When I do a release:perform,
> I expect the artifacts just to be deployed to the local repository, like
> install does.
>
> Unfortunately, everytime I get an error message:
>
> Failed to configure plugin parameters for:
> org.apache.maven.plugins:maven-deploy-plugin:2.3
> check that the following section of the pom.xml is present and correct:
> <distributionManagement>
> <repository>
> [...]
>
> I don't have a repository and I have no real need for one.
>
> How can I disable that external repository deployment?
>
> Regards,
>
> Andreas
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>


--
Dennis Lundberg

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