Maven plugin for Mindustry
- Add debug template for editors (Ready for Visual Studio Code)
- Instead of
mvn
can be used- Windows:
.\\mvnw.cmd
,.\\mvnw
- U*ix:
./mvnw.sh
- Windows:
add this to pom.xml
file
<build>
<plugins>
<plugin>
<groupId>io.github.SSTentacleSS.mindustry</groupId>
<artifactId>mindustry-maven-plugin</artifactId>
<version>1.3</version>
<configuration>
<mindustryVersion>${mindustryVersion}</mindustryVersion> <!-- Required, debug mindustry version -->
<pluginJars>
<jar>target/${finalName}.jar</jar>
</pluginJars> <!-- Required, path to debug plugin jar -->
<suspend>false</suspend> <!-- Will the debugger wait for your connection? default false -->
<debugPort>8000</debugPort> <!-- Debug port, default 8000 -->
<force>false</force> <!-- Force the plugin to download the server assembly again, default false -->
<args> <!-- Args for mindustry server -->
<arg>args1</arg>
<arg>args2</arg>
<arg>args3</arg>
</args>
</configuration>
</plugin>
</plugins>
</build>
- Visual Studio Code
- run
mvn mindustry:generate-config -Deditor=vscode
- Use
Run and Debug
->♿ Build and Debug
- run
- Support for other code editors is planned, I will be glad for any help on this matter
run mvn mindustry:debug