Just add the property to your settings file in a profile you always have
activated with activeProfiles. 

-----Original Message-----
From: Michael [mailto:[EMAIL PROTECTED] 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to