You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Mick Knutson <mi...@gmail.com> on 2007/07/18 22:43:15 UTC

[m2] Plugin cfg issue between developers...

I have a plugin I purchased that needs to be run each time the integration
build server runs. This plugin is only available on 1 machine, not every
machine for licensing restrictions.
But it is run as part of the whole build, not individually as a task.

So how do I configure my pom.xml to have just this one machine run this, and
not the other developers in the project?

-- 

Thanks,
Mick Knutson

http://www.baselogic.com
http://www.blincmagazine.com
http://www.djmick.com
http://www.myspace.com/mickknutson
http://www.myspace.com/djmick_dot_com
http://www.myspace.com/sexybeotches
http://www.thumpradio.com
---

Re: [m2] Plugin cfg issue between developers...

Posted by Michael Meyer <mi...@bluewin.ch>.
Hi,
you could define a profile [1] in your pom.xml file.

<profiles>
   <profile>
     <activation>
       <property>
         <name>environment</name>
         <value>integration-tests</value>
       </property>
     </activation>
     <build>
       <plugins>
         <plugin>
           groupId>com.thecompany</groupId>
           <artifactId>the-plugin</artifactId>
           <executions>
             <execution>
               <phase>deploy</phase>
               <goals>
                 <goal>the-goal</goal>
               </goals>
             </execution>
           </executions>
         </plugin>
       </plugins>
     </build>
   </profile>
</profiles>

You can then use the following command on your "special" machine with the license:
mvn clean deploy -Denvironment=integration-tests

Hope this helps.

Cheers, michael

[1] http://maven.apache.org/guides/introduction/introduction-to-profiles.html


Mick Knutson schrieb:
> I have a plugin I purchased that needs to be run each time the integration
> build server runs. This plugin is only available on 1 machine, not every
> machine for licensing restrictions.
> But it is run as part of the whole build, not individually as a task.
> 
> So how do I configure my pom.xml to have just this one machine run this, 
> and
> not the other developers in the project?
> 


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


Re: [m2] Plugin cfg issue between developers...

Posted by Ralf Quebbemann <ra...@gmx.de>.
My first thought is to use a profile for running this particular plugin.

	Ralf

Mick Knutson wrote:
> I have a plugin I purchased that needs to be run each time the integration
> build server runs. This plugin is only available on 1 machine, not every
> machine for licensing restrictions.
> But it is run as part of the whole build, not individually as a task.
> 
> So how do I configure my pom.xml to have just this one machine run this, 
> and
> not the other developers in the project?
> 

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