magefree / mage

Magic Another Game Engine
http://xmage.today
MIT License
1.81k stars 749 forks source link

Cannot run assembly:assembly for client or server #11599

Open jimga150 opened 6 months ago

jimga150 commented 6 months ago

Trying to follow The 'Build your own Release' guide 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

This plugin is included in maven version 3.3.9, 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.

jimga150 commented 6 months ago

I figured out that running a maven job with package assembly:single appears to make the same output as described in the guide, but i havent tried doing a homebrew release with the zip files yet.