You can set the class as a property and override it On Jul 4, 2014 6:00 AM, "ck_" <[email protected]> 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: [email protected] > For additional commands, e-mail: [email protected] > >
