creating maven project without IDE get build faliure - java

I try to create maven project from command line, i am using apache maven 3.3.3 with jdk 7.
C:\MVN\CubeGenerator>mvn archetype:generate -DgroupId= com.mavapp -DartifactId=C
ubeGenerator -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=
false
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.169 s
[INFO] Finished at: 2015-08-07T00:13:23+05:30
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] The goal you specified requires a project to execute but there is no POM
in this directory (C:\MVN\CubeGenerator). Please verify you invoked Maven from
the correct directory. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[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 rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
Exception

You have some extra spaces after the "=" for two properties.
I think you want:
mvn archetype:generate -DgroupId=com.mavapp -DartifactId=CubeGenerator -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false

Related

Maven build failure for Spring boot with Alexa skill kit

I tried to build the spring boot project for AWS lambda and deploy it. I try to use the following command:
mvn assembly:assembly -DdescriptorId=jar-with-dependencies package
to create a .JAR file.
My output:
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.9.RELEASE:repackage (default) # requestTestDemoFromAWSLambda ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 13.668 s
[INFO] Finished at: 2018-01-23T17:06:21+02:00
[INFO] Final Memory: 89M/538M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:1.5.9.RELEASE:repackage (default) on project requestTestDemoFromAWSLambda: Execution default of goal org.springframework.boot:spring-boot-maven-plugin:1.5.9.RELEASE:repackage failed: Unable to rename 'D:\alexaWork\requestTestDemoFromAWSLambda\target\requestTestDemoFromAWSLambda-0.0.1-SNAPSHOT.jar' to 'D:\alexaWork\requestTestDemoFromAWSLambda\target\requestTestDemoFromAWSLambda-0.0.1-SNAPSHOT.jar.original' -> [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
As you see is not working

Maven: Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:assembly

I am trying to compile a project with Maven. I have used this command mvn assembly:assembly and I get the following error. This is with OPENIMAJ. I use option 7 (7: internal -> org.apache.maven.archetypes:maven-archetype-quickstart (An archetype which contains a sample Maven project.)) as an archtype.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 4.021 s
[INFO] Finished at: 2017-03-27T17:19:42+01:00
[INFO] Final Memory: 11M/243M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.2-beta-5:assembly (default-cli) on project tester: Error reading assemblies: No assembly descriptors found. -> [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
How can I fix this?

Maven and open Km build failure

I am facing this issue when I am deploying my openkm application using Maven:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.316 sError log,
[INFO] Finished at: 2016-12-15T09:31:54+03:00
[INFO] Final Memory: 20M/122M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.5.1:compile (default-cli) on project openkm: GWT Module com.googlecode.gwt.crypto.Crypto not found in project sources or resources. -> [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
com.googlecode.gwt.crypto.Crypto not found in project sources
Please make sure your dependencies include
<dependency>
<groupId>com.googlecode.gwt-crypto</groupId>
<artifactId>gwt-crypto</artifactId>
<version>2.3.0</version>
</dependency>

Zeppelin build failure - Failed to run task: 'grunt --no-color' failed

I want to install Apache Zeppelin on OSX 10.8, but build fails for some mysterious reasons. Specs: Java 1.7, Maven 3.3, node v0.12.4 and grunt v0.1.13.
I'm running the following command:
mvn clean package -DskipTests
And I am getting the following output :
[INFO] Zeppelin: web Application .......................... FAILURE [ 18.310 s]
[INFO] Zeppelin: Server ................................... SKIPPED
[INFO] Zeppelin: Packaging distribution ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 07:53 min
[INFO] Finished at: 2016-01-14T18:32:13-05:00
[INFO] Final Memory: 78M/387M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.23:grunt (grunt build) on project zeppelin-web: Failed to run task: 'grunt --no-color' failed. (error code 3) -> [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/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :zeppelin-web
It seems to be some errors with grunt, but I'm not sure.

Cannot run mvn clean

When i run "mvn clean " getting error message like below on windows 7 PC.
i tried re-installing maven still error not solved. All other command except mvn clean is running fine.
[INFO] Scanning for projects...
[INFO]
[INFO] Using the builder org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder with a thread count of 1
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SpringMVC Maven Webapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for org.apache.maven.plugins:maven-clean-plugin:jar:2.5 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.222 s
[INFO] Finished at: 2014-03-24T13:02:22+05:30
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5: 1 problem was encountered while building the effective model
[ERROR] [FATAL] Non-parseable POM C:\Users\suresh\.m2\repository\org\apache\maven\plugins\maven-clean-plugin\2.5\maven-clean-plugin-2.5.pom: end tag name </head> must be the same as start tag <meta> from line 4 (position: TEXT seen ...<meta http-equiv="pragma" content="no-cache">\r\n</head>... #5:8) # line 5, column 8
[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/PluginResolutionException
Seems like somehow your clean plugin got corrupted when downloading. Just delete the C:\Users\suresh\.m2\repository\org\apache\maven\plugins\maven-clean-plugin\2.5 directory entirely and retry.

Categories