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?
Related
I imported my project and when did a maven clean build was successful, but when maven install is done this Build Failure occurs.
I have my maven in C\maven\maven 3.6 and I have given the settings and repo location of that location to this project.
My Env variables are correctly set up with reference to Java and Maven as well. Please help me on this to get it solved.
it may be because of the proxy ! Check you proxy and test if it's working.
I am using netbeans for creating my first RESTful API, Java with JSON to write a code. I tried to create the project but it gives this error.
A build failure error is encountered. It says :
Failed to execute goal org.apache.maven.plugins:maven-archetype-plugin:2.3:generate (default-cli)
on project standalone-pom: Archetype io.dropwizard.archetypes:java-simple:0.8.1-rc3-SNAPSHOT is not configured
Property name is missing.
More detailed is listed on this pastebin: http://pastebin.com/N1KtGypW
I tried to follow help topic Project properties: Maven Project to troubleshoot the issue, but were unable to fix it.
Please suggest measures to fix this issue.
Looking at the build output:
cd /home/aruns/NetBeansProjects; JAVA_HOME=/usr/lib/jvm/java-8-oracle
/home/aruns/netbeans-8.0.2/java/maven/bin/mvn
-DarchetypeGroupId=io.dropwizard.archetypes -DarchetypeArtifactId=java-simple -DarchetypeVersion=0.8.1-rc3-SNAPSHOT -DarchetypeRepository=https://oss.sonatype.org/content/repositories/snapshots
-DgroupId=com.mycompany -DartifactId=MyDropwizRESTfulProject -Dversion=1.0-SNAPSHOT -Dpackage=com.mycompany.mydropwizrestfulproject -Dbasedir=/home/aruns/NetBeansProjects -Dshaded=true -Dname= -Ddescription=null -Darchetype.interactive=false --batch-mode --update-snapshots archetype:generate
The option -Dname property is not set (in bold above) and it is this option I think Maven is complaining about.
I assume you created the project from the Netbeans 'Create From Archetype' and you used 'io.dropwizard.archetypes'. The window that comes up there is a table with 'Additional Creation Properties'. You need to specify the name in this I think.
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.
I have a maven project and i need to add dependency to Microsoft sqljdbc driver.
I have followed the steps shown in this article here
but when i try to do the fist step i get the following error
[ERROR] The goal you specified requires a project to execute but there is no POM in this directory (C:\soft\sqljdbc_4.1\
enu). Please verify you invoked Maven from the correct directory. -> [Help 1]
I found the solution for the issue. We need to give all the arguments wrapped in double quotas "" like this
mvn install:install-file "-DgroupId=com.microsoft.sqlserver" "-DartifactId=sqljdbc41" "-Dversion=4.1" "-Dpackaging=jar" "-Dfile=sqljdbc41.jar"
Then only maven will install the file without a pom file
Answer in this question helped me
I'm following along with the Java EE 7 updated version of FirstCup. I have glassfish 4 installed and am using NetBeans 7.3. I'm working on the very first example and I'm getting maven issues.
I generated the archetypes and am able to create the dukes-age project. However it has non-resolvable maven issues:
Could not find artifact org.glassfish.javaeetutorial.firstcup:firstcup:pom:7.0.1-SNAPSHOT
Here is the full error:
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project com.mycompany:dukes-age:1.0-SNAPSHOT (/Users/koblentz/NetBeansProjects/dukes-age/pom.xml) has 1 error
[ERROR] Non-resolvable parent POM: Could not find artifact org.glassfish.javaeetutorial.firstcup:firstcup:pom:7.0.1-SNAPSHOT and 'parent.relativePath' points at wrong local POM # line 5, column 13 -> [Help 2]
[ERROR]
I'm not really sure what to do/how to fix this. I deleted my local cache in the .m2 repo and tried building from the commandline instead of using NB to run the maven commands.
Any ideas?
Filed this issue as:
https://java.net/jira/browse/FIRSTCUP-14
The workaround is to replace the parent definition:
<parent>
<artifactId>firstcup</artifactId>
<groupId>org.glassfish.javaeetutorial.firstcup</groupId>
<version>7.0.1</version>
I'm working on getting an updated package in the Update Center.
Fixed it. The pom generated by the archetype is looking for 7.0.1-SNAPSHOT and the actual version in m2 repo is 7.0.1 without the SNAPSHOT on the end.
To get it to resolve the parent pom, you also need to install the examples application tutorial at NetBeans/glassfish-4.0/docs/firstcup/example/pom.xml.
I had the same error, in my case it was because I copied the glassfish folder with the example in to the C:\programs folder and Netbeans, after i copied it in Documents all works fine.