Could not find goal 'assembly' in plugin org.apache.maven.plugins:maven-assembly-plugin:3.1.0

See original GitHub issue

When building from master.

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.120 s
[INFO] Finished at: 2018-08-15T11:52:35+02:00
[INFO] Final Memory: 7M/240M
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find goal 'assembly' in plugin org.apache.maven.plugins:maven-assembly-plugin:3.1.0 among available goals help, single -> [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/MojoNotFoundException

npm: 6.3.0 nodejs: 10.8.0

This seems related: https://github.com/sharispe/slib/pull/53/files

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
ceredacommented, Aug 15, 2018

Does this work?

mvn compile assembly:single
1reaction
ceredacommented, Aug 15, 2018

If you run mvn assembly:single without compile, Maven gives this warning:

[WARNING] Cannot include project artifact: com.github.cereda:arara:jar:4.0;
it doesn't have an associated file or directory.

And when I try to run the resulting .jar file:

LANG=C java -jar target/arara-4.0-jar-with-dependencies.jar 
Error: Could not find or load main class com.github.cereda.arara.Arara

We have to run mvn compile assembly:single in order to work. Either together or in two separate steps, like:

mvn compile
mvn assembly:single
Read more comments on GitHub >

github_iconTop Results From Across the Web

Could not find goal 'single' with Maven running mvn package
I would like to produce a stand alone jar file like explained here https://maven.apache.org/plugins/maven-assembly-plugin/usage.html.
Read more >
Apache Maven Assembly Plugin – Usage
When the assembly is created it will use the assemblyId as the artifact's classifier and will attach the created assembly to the project...
Read more >
Could not find goal 'setup' in plugin org.apache.maven.plugins ...
plugins pluginGroup in .m2/settings.xml to ensure that Maven will not try to resolve 'clover' goals to a very old Clover 2.4 (org.apache.maven ......
Read more >
org.apache.maven.plugins : maven-assembly-plugin : 3.1.0
Apache Maven Assembly Plugin - A Maven plugin to create archives of your project's sources, classes, dependencies etc. from flexible assembly descriptors.
Read more >
could not find goal 'download' in plugin org.apache.maven ...
However when i run this command it gives me an error that 'could not find goal 'download' in plugin org.apache.maven.plugins' . Can anyone...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found