magefree / magefree/mage

Cannot run assembly:assembly for client or server

Open
#11,599 1 comment 0 reactions 1 assignee Claimed by @JayDi85 View on GitHub
bug support
Dominant language
Java
Stars
2.4k
Forks
940
Avg merge
2d 12h
Merged PRs (30d)
160

Description

Trying to follow [The 'Build your own Release' guide](https://github.com/magefree/mage/wiki/Development-Workflow#build-your-own-release) and i found that the assembly:assembly mojo cannot be found:

```
"C:\Program Files\Java\jdk1.8.0_181\bin\java.exe" -Dmaven.multiModuleProjectDirectory=C:\Users\Jim\IdeaProjects\mage\Mage.Server -Djansi.passthrough=true "-Dmaven.home=C:\Users\Jim\AppData\Local\Programs\IntelliJ IDEA Ultimate\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Users\Jim\AppData\Local\Programs\IntelliJ IDEA Ultimate\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=C:\Users\Jim\AppData\Local\Programs\IntelliJ IDEA Ultimate\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Users\Jim\AppData\Local\Programs\IntelliJ IDEA Ultimate\lib\idea_rt.jar=61387:C:\Users\Jim\AppData\Local\Programs\IntelliJ IDEA Ultimate\bin" -Dfile.encoding=UTF-8 -classpath "C:\Users\Jim\AppData\Local\Programs\IntelliJ IDEA Ultimate\plugins\maven\lib\maven3\boot\plexus-classworlds-2.7.0.jar;C:\Users\Jim\AppData\Local\Programs\IntelliJ IDEA Ultimate\plugins\maven\lib\maven3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version=2023.3.2 assembly:assembly
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.266 s
[INFO] Finished at: 2024-01-01T13:17:18-05:00
[INFO] ------------------------------------------------------------------------
[ERROR] Could not find goal 'assembly' in plugin org.apache.maven.plugins:maven-assembly-plugin:3.6.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

Process finished with exit code 1
```

Upon digging through the mojos of maven's assembly plugin, it looks like assembly:assembly was depreciated years ago in favor of assembly:single, which has slightly different behavior.
This is an archive of the latest released version of the assembly plugin that supports assembly:assembly: https://maven.apache.org/plugins-archives/maven-assembly-plugin-2.4.1/plugin-info.html
![image](https://github.com/magefree/mage/assets/17803304/17c87915-ead3-45e9-a5b4-a766c6f705c4)

This plugin is included in [maven version 3.3.9](https://maven.apache.org/ref/3.3.9/plugin-management.html), which was released in 2015 for Java 7.

I must be missing something here because it seems like no one else has this issue, and the development setup guides don't mention downloading any specific archived version of Maven.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.