Hello,

I believe the usage of profiles is the right way to pass arguments. But you're wrong saying you have to specify which profile when invoking the goals.

In your case, you can do something like that :

   <profile>
     <id>env-dev</id>
     <properties>
       <maven.test.skip>true</maven.test.skip>
     </properties>
   </profile>
 </profiles>

 <activeProfiles>
<activeProfile>env-dev</activeProfile> </activeProfiles>

by adding the activeProfile tag, you'll be able to select a profile which will be always used on that machine.

Arnaud

Marcel Schutte a écrit :
Hello all,

Is there a way to specify different configurations for the release:prepare and 
release:perform goals without using profiles?

Specifically, what I'm trying to do is pass
              <configuration>
                <arguments>-Dmaven.test.skip=false</arguments>
              </configuration>
to release:prepare but run release:perform with
              <configuration>
                <arguments>-Dmaven.test.skip=true</arguments>
              </configuration>

I know this can be done using different profiles, but the problem is that you 
need to specify them when invoking the goals. What I want is to describe the 
default behavior when invoking 'mvn release:prepare'..

Using two executions didn't work, they simply aren't used. This is in line with what is stated at the bottom of http://maven.apache.org/guides/mini/guide-configuring-plugins.html
So, any other suggestions?

Regards,
Marcel




____________________________________________________________________________________ Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=list&sid=396545433

---------------------------------------------------------------------
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