eclipse - How to change default properties in Maven Release Plugin for WSDL builds -
i require default properties of mvn release:prepare , mvn release:perform modified. source code i'm trying build has wsdl files.
the jar file generated in non maven format , achieved 2 step build process, using i'm able generate maven based wsdl compiled jar file.
mvn exec:exec mvn install:install-file -dgroupid=com.stackoverflow.abc -dartifactid=xyz -dversion=${build_version} -dpackaging=jar -dfile=path-of-jar -dpomfile=path-of-pom.xml
this builds jar file mainfest.mf , no pom.properties , pom.xml, i'm trying convert jar generated in non maven format maven format.
when try using release:prepare , release:perform, i'm unable override default properties used in mvn install:install-file , there no way generate jar pom properties
is there way can override mvn release plugin properties me build jar files?
plugin used build wsdl:
<plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>exec-maven-plugin</artifactid> <extensions>false</extensions> <version>1.2.1</version> <configuration> <executable>java</executable> <arguments> <argument>-classpath</argument> <classpath /> <argument>com.sforce.ws.tools.wsdlc</argument> <argument>src/main/resources//enterprise.wsdl</argument> <argument>target/wsdl-${version}.jar</argument> </arguments> </configuration> </plugin>
what i've tried using is:
mvn -s settings.xml -dusername=${svn_user} -dpassword=${svn_password} release:prepare exec:exec release:perform -dgroupid=com.stackoverflow.abc -dartifactid=xyz -dversion=${build_version} -dpackaging=jar -dfile=${workspace}/target/wsdl-${build_version}.jar -dpomfile=${workspace}/pom.xml
below plugin required build wsdl files, post usual mvn clean install should job
<plugin> <groupid>org.codehaus.mojo</groupid> <artifactid>exec-maven-plugin</artifactid> <extensions>false</extensions> <version>1.2.1</version> <executions> <execution> <id>custom-compile</id> <phase>compile</phase> <goals> <goal>exec</goal> </goals> </execution> </executions> <configuration> <executable>java</executable> <arguments> <argument>-classpath</argument> <classpath /> <argument>com.sforce.ws.tools.wsdlc</argument> <argument>src/main/resources/com/salesforce/wsdl/abc.wsdl</argument> <!-- <argument>target/salesforce-wsdl-${project.version}.jar</argument> --> <argument>target/salesforce-wsdl.jar</argument> </arguments> </configuration> </plugin>
Comments
Post a Comment