WSImport fail during maven build - java

I was trying build some java project, which should be work on java1.6 and maven 3.2.3. After downloading every dependencies i got error:
[ERROR] Failed to execute goal org.jvnet.jax-ws-commons:jaxws-maven-plugin:2.3:wsimport (importWSDL) on project CRIN_V2: Cannot execute: C:\Program Files\Java\jdk1.6.0_43\bin\wsimport.exe -> [Help 1]
Is there any reason why this plugin does not work with java1.6 and maven3.2.3? some ideas?

Related

Build is getting success in Command prompt but not in eclipse

Trying to build a Java Spring project using Maven 3.6.1
Build is getting success in command prompt but the same is failed in eclipse
In eclipse getting this below exception :
Failed to execute goal org.springframework.cloud:spring-cloud-contract-maven-plugin:1.0.3.RELEASE:generateTests (default-generateTests) on project abcd-web: The plugin org.springframework.cloud:spring-cloud-contract-maven-plugin:1.0.3.RELEASE requires Maven version 3.2.5 -> [Help 1]

Can't install hadoop2.8.0 correctly

I used Maven to install Hadoop 2.8.0,but it always says build failure.
Here's the error message:
[ERROR]Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:2.6:copy-resources (copy-resources) on project hadoop-build-tools: Cannot create resource output directory : ~/hadoop-build-tools/target/extra-resources -> [Help 1]
I checked help1 and it says MojoExecutionException is not generated by the Maven core itself but a plugin. It seems that the pom.xml needs to be corrected,but could you please help me how to revise it? Or any ideas how to resolve this?

Cannot get the branch information from the scm repository

I am getting following error in building the maven project. Any idea in solving this?
[ERROR] Failed to execute goal org.codehaus.mojo:buildnumber-maven-plugin:1.4:create (default) on project pwc-em: Cannot get the branch information from the scm repository :
[ERROR] Exception while executing SCM command. Error while executing command. Error while executing process. Cannot run program "git" (in directory "C:\Users\vmasama\Documents\workspace-sts-3.7.2.RELEASE\pwc-em"): CreateProcess error=2, The system cannot find the file specified
[ERROR] ->
I solved the same issue by updating my git version. But downgrading the version of the maven plugin to 1.13 will also solve this issue.
buildnumber-maven-plugin v1.4 works with git v2.9.2 but not with v1.9.*
buildnumber-maven-plugin v1.3 works with git v1.9.*

My project builds in my computer but not in local host jenkins

I am new to Jenikns. Please help to resolve this.
Mine is a Maven project and it builds successfully in Eclipse. But when I am trying to build it through local host Jenkins (Source code from SVN), its throwing error -
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven plugin:1.4.0:java (default-cli) on project IPR: An exception occured while executing the Java class. com.IPR.runner.IPRRunner-e -> [Help 1]
where IPRRunner is part of my framework and the framework library is in my company central repo.

How to build a RPM package using Maven on Travis?

I am trying to build my Maven project on Travis. The build process seems to work excepting the built of the RPM package.
I am using the plugin rpm-maven-plugin. The reason seems to be that the RPM binary is not available.
Is there a way to build my RPM package with Travis ?
Here is the location of my project:
https://travis-ci.org/qwazr/QWAZR
Thanks for help.
[ERROR] Failed to execute goal
org.codehaus.mojo:rpm-maven-plugin:2.1.3:rpm (generate-rpm) on project
qwazr: Unable to query for default vendor from RPM: Error while
executing process. Cannot run program "rpm": error=2, No such file or
directory -> [Help 1]
I finally found a full java implementation.
https://github.com/craigwblake/redline
I will test it and edit this response to confirm it works.

Categories