Hi,
I don't understand the difference between
mvn -Dweblogic.home=C:/Dev/program/bea/weblogic92
and
System.setProperty("weblogic.home", "C:/Dev/program/bea/weblogic92");
in the implementation of Mojo.execute().
In the first case the java system property is send to the plugin thread
execution
In the second case it doesn't.
Details:
I'm using a plugin which needs a java system property (weblogic-maven-plugin
needs weblogic.home)
With
set MAVEN_OPTS=-Dweblogic.home=%WL_HOME%
mvn package
or
mvn -Dweblogic.home=%WL_HOME% package
It's OK: the Dweblogic.home java system property is find by the weblogic ant
task called by the weblogic-maven-plugin.
This value of weblogic.home will be the same in all executions of the plug
in.
I would like to have a different value of this java system property in order
to be linked to several version of weblogic. So I'm trying to customize the
plugin to set this java system property in the plugin....
but the variable
In the implementation of Mojo.execute(), I put this :
System.setProperty("weblogic.home", "C:/Dev/program/bea/weblogic92");
In order to validate that we can change the java system property. But it
doesn't work: this property is not send the plugin thread execution.
Regards,
Gerald Reinhart