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'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
Related
I am trying to setup Maven by creatiing m2/settings.xmlm file using command mvn -q org.sonatype.plugins:nexus-m2settings-maven-plugin:1.6.8:download -DnexusUrl=https://artifact.devsnc.com -DtemplateId=devsnc
but i am getting error as below:
[ERROR] Failed to execute goal org.sonatype.plugins:nexus-m2settings-maven-plugin:1.6.8:download (default-cli) on project standalone-pom: Connection failed: com.sun.jersey.api.client.ClientHandlerException: java.net.ConnectException: Connection timed out: connect -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Kindly help me
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
I am trying to integrate allure-report with my junit code.
To try this, i was first trying to run the allure-junit example from https://github.com/allure-examples/allure-junit-example
When i run this code, i get the below error.
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire- plugin:2.18:test (default-test) on project SampleAllureTest: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.18:test failed: There was an error in the forked process
[ERROR] java.lang.NoSuchMethodError: org.apache.commons.beanutils.ConvertUtilsBean.register(ZZI)V
[ERROR] at ru.yandex.qatools.properties.decorators.DefaultFieldDecorator.<init>(DefaultFieldDecorator.java:24)
[ERROR] at ru.yandex.qatools.properties.PropertyLoader.populate(PropertyLoader.java:29)
[ERROR] at ru.yandex.qatools.properties.PropertyLoader.populate(PropertyLoader.java:23)
[ERROR] at ru.yandex.qatools.allure.config.AllureConfig.<init>(AllureConfig.java:80)
[ERROR] at ru.yandex.qatools.allure.config.AllureConfig.newInstance(AllureConfig.java:84)
[ERROR] at ru.yandex.qatools.allure.Allure.getVersion(Allure.java:266)
[ERROR] at ru.yandex.qatools.allure.Allure.fire(Allure.java:187)
[ERROR] at ru.yandex.qatools.allure.junit.AllureRunListener.testSuiteFinished(AllureRunListener.java:89)
[ERROR] at ru.yandex.qatools.allure.junit.AllureRunListener.testRunFinished(AllureRunListener.java:95)
[ERROR] at org.junit.runner.notification.SynchronizedRunListener.testRunFinished(SynchronizedRunListener.java:42)
[ERROR] at org.junit.runner.notification.RunNotifier$2.notifyListener(RunNotifier.java:103)
[ERROR] at org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:72)
[ERROR] at org.junit.runner.notification.RunNotifier.fireTestRunFinished(RunNotifier.java:100)
[ERROR] at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:131)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.invokeProviderInSameClassLoader(ForkedBooter.java:203)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:155)
[ERROR] at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:103)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
Could anyone please help me in fixing this issue.Please note, i didnt do any changes to the code in the sample.
You need to add commons-beanutils to your dependencies.
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.
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.