maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glenn Brown <ghbrown60...@gmail.com>
Subject Re: Overriding Plugin Configuration of POM on Command Line
Date Fri, 04 Jul 2014 13:59:04 GMT
You can set the class as a property and override it
On Jul 4, 2014 6:00 AM, "ck_" <conny.kuehne@web.de> wrote:

> Hi all,
>
> is it generally possible to override the plugin configuration of the
> pom.xml
> on the command line?
> Specifically, I have configured the exec-maven-plugin to execute some
> class:
>
> <plugin>
>   <groupId>org.codehaus.mojo</groupId>
>   <artifactId>exec-maven-plugin</artifactId>
>   ...
>   <configuration>
>     <mainClass>com.someClass</mainClass>
>     <includePluginDependencies>true</includePluginDependencies>
>   </configuration>
> …
> </plugin>
>
> However, sometimes I would like to execute some other class from the
> command
> line:
> mvn exec:java -Dexec.mainClass="com.somOtherClass"
>
> But maven only executes the one specified in the pom.xml (com.someClass).
>
> Is this possible?
>
> Best,
> Conny
>
>
>
>
> --
> View this message in context:
> http://maven.40175.n5.nabble.com/Overriding-Plugin-Configuration-of-POM-on-Command-Line-tp5799270.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
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message