An Ant BuildException has occured - maven

Try to do mvn clean install for some project.
In the end the build failed with this error:
Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (default)
on project abc-sm-wsdl: An Ant BuildException has occured:
The following error occurred while executing this line:
[ERROR] C:\ABC\wsdl\build-aif.xml:67:
The following error occurred while executing this line:
[ERROR] C:\ABC\wsdl\build-aif.xml:125: Java returned: 1
Try to googling but ineffectually.
Maybe somebody know hot to resolve it.

Related

How to fixe An error is occurred in the checkin process: Exception while executing SCM command in mvn release:prepare?

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:3.0.0-M1:prepare (default-cli) on project ***: An error is occurred in the checkin process: Exception while executing SCM command.: JGit checkin failure! Exception caught during execution of push command: Source ref refs/heads/d865f6170aaa91ed8860420f7bbe586243b7ecae doesn't resolve to any object. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:3.0.0-M1:prepare (default-cli) on project qure-api: An error is occurred in the checkin process: Exception while executing SCM command.
Hello,
I try to execute a release jenkins pipeline and I got this error when try do to: mvn release:prepare
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-release-plugin:3.0.0-M1:prepare (default-cli) on project qure-api: An error is occurred in the checkin process: Exception while executing SCM command.: JGit checkin failure! Exception caught during execution of push command: Source ref refs/heads/d865f6170aaa91ed8860420f7bbe586243b7ecae doesn't resolve to any object. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-release-plugin:3.0.0-M1:prepare (default-cli) on project qure-api: An error is occurred in the checkin process: Exception while executing SCM command.

MI test Module-Transport error on installation

I am trying to install micro-integrator from https://github.com/wso2/micro-integrator. I followed the instructions, but encountered an error. The below log shows the error message:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project org.wso2.carbon.ei.tests.transport: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? -

Maven compilation failure error

When i compile my bdd frame work in java getting the following compilation error.I am new to this.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.
2:compile (default-compile) on project workflows.automation: Compilation
failure: Compilation failure:
[ERROR] /C:/OFFICIAL/BDDFramework/workflows.automation/src/main/java/bdd
/automation/pages/LoginPage.java:[23,1] package org.jbehave.core
.annotations does not exist
[ERROR] /C:/OFFICIAL/BDDFramework/workflows.automation/src/main/java/bdd
/automation/pages/LoginPage.java:[31,11] cannot find symbol
[ERROR] symbol: class BeforeStory
[ERROR] location: class bdd.automation.pages.LoginPage
[ERROR] -> [Help 1]
The error says that jbehave core is missing at compilation time. Add jbehave-core into your pom.xml as a new maven dependency.
See https://mvnrepository.com/artifact/org.jbehave/jbehave-core

An Ant BuildException has occured: unbalanced qoutes

I get the following error in an Ant file:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (callAppc) on project SalesEdge_CMPD_Session_EJB: An Ant BuildException has occured: The following error occurred while executing this line:
[ERROR] E:\NetApp-CED\April'15\MyNetApp\MyNetApp\SalesEdge_CMPD_Session_EJB\generateSalesEdgeCmpdSessionEJB.xml:27: unbalanced quotes in E:\NetApp-CED\April'15\MyNetApp\MyNetApp\SalesEdge_CMPD_Session_EJB\target/SalesEdge_CMPD_Session_EJB-0.0.1-SNAPSHOT.jar
[ERROR] around Ant part ...<ant antfile="E:\NetApp-CED\April&apos;15\MyNetApp\MyNetApp\SalesEdge_CMPD_Session_EJB/generateSalesEdgeCmpdSessionEJB.xml">... # 5:127 in E:\NetApp-CED\April'15\MyNetApp\MyNetApp\SalesEdge_CMPD_Session_EJB\target\antrun\build-main.xml
[ERROR] -> [Help 1]
[ERROR]
What is the cause?
I think that the issue is the quote in April'15

Execute failed: java.io.IOException: Cannot run program "mkdir"

I am trying to build maven project.I am getting following error. The complete stack trace is below
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.7:run (rpmbuild) on project ers: An Ant BuildException has occured: The following error occurred while executing this line:
[ERROR] C:\Users\XYZ-PC\git\ers\target\rpm-spec-template\rpmbuild.xml:4: Execute failed: java.io.IOException: Cannot run program "mkdir": CreateProcess error=2, The system cannot find the file specified
[ERROR] around Ant part ...<ant antfile="C:\Users\XYZ-PC\git\ers\target/rpm-spec-template/rpmbuild.xml"/>... # 4:93 in C:\Users\XYZ-PC\git\ers\target\antrun\build-main.xml
[ERROR] -> [Help 1]
I have tried searching out this problem but all I found is that may be its JRE problem, I have checked and made sure that my source is using JDK not JRE.
I am stuck and any help would be appreciated.

Resources