You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by mraible <ma...@raibledesigns.com> on 2008/05/09 19:22:24 UTC

Is it possible to automatically append -DperformRelease=true to mvn deploy

Hello, 

When I deploy to my company's repository, I want to include artifact
javadocs and sources. The easiest way I've found to do this is to use "mvn
deploy -DperformRelease=true". Is there anyway to automate the passing of
the flag so I can do "mvn deploy" and it has the same effect as "mvn deploy
-DperformRelease=true"?

Is using a profile (that gets activated on deploy) the best way to do this
or is it possible to define these plugins and have their executions run on
deploy?

Thanks,

Matt
-- 
View this message in context: http://www.nabble.com/Is-it-possible-to-automatically-append--DperformRelease%3Dtrue-to-mvn-deploy-tp17152685p17152685.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: Is it possible to automatically append -DperformRelease=true to mvn deploy

Posted by "Brian E. Fox" <br...@reply.infinity.nu>.
Just add the property to your settings file in a profile you always have
activated with activeProfiles. 

-----Original Message-----
From: Michael [mailto:sgfan@gmx.net] 
Sent: Friday, May 09, 2008 10:32 AM
To: Maven Users List
Subject: Re: Is it possible to automatically append
-DperformRelease=true to mvn deploy

mraible wrote:
> Hello, 
> 
> When I deploy to my company's repository, I want to include artifact
> javadocs and sources. The easiest way I've found to do this is to use
"mvn
> deploy -DperformRelease=true". Is there anyway to automate the passing
of
> the flag so I can do "mvn deploy" and it has the same effect as "mvn
deploy
> -DperformRelease=true"?
> 
> Is using a profile (that gets activated on deploy) the best way to do
this
> or is it possible to define these plugins and have their executions
run on
> deploy?

The best solution I have found is to attach the goals to the phase.

Take I look at my POM, have attached javadoc to jar, same could you do 
with source.

http://dev.fckeditor.net/browser/FCKeditor.Java/branches/2.4/pom.xml

Mike
-- 
<NO> OOXML - Say NO To Microsoft Office broken standard
http://www.noooxml.org

---------------------------------------------------------------------
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: Is it possible to automatically append -DperformRelease=true to mvn deploy

Posted by Michael <sg...@gmx.net>.
mraible wrote:
> Hello, 
> 
> When I deploy to my company's repository, I want to include artifact
> javadocs and sources. The easiest way I've found to do this is to use "mvn
> deploy -DperformRelease=true". Is there anyway to automate the passing of
> the flag so I can do "mvn deploy" and it has the same effect as "mvn deploy
> -DperformRelease=true"?
> 
> Is using a profile (that gets activated on deploy) the best way to do this
> or is it possible to define these plugins and have their executions run on
> deploy?

The best solution I have found is to attach the goals to the phase.

Take I look at my POM, have attached javadoc to jar, same could you do 
with source.

http://dev.fckeditor.net/browser/FCKeditor.Java/branches/2.4/pom.xml

Mike
-- 
<NO> OOXML - Say NO To Microsoft Office broken standard
http://www.noooxml.org

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