Build process for developers? #4
-
Infinity-Library can be built for testing using traditional maven project practices, but how can It be compiled? And what is this process like from testing to production? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
1. Package the ApplicationAfter making any changes to your Java code, start by packaging your application into a production-ready JAR file using Maven: mvn package 2. Test the Packaged JARNext, test the newly created JAR file to ensure it functions correctly. You can do this from the command line by running: java -jar C:\Users\jaked\Documents\Infinity-Library-1\target\InfinityLibrary-1.1.0-jar-with-dependencies.jar 3. Convert JAR to ExecutableOnce you've confirmed that the JAR works as expected, use Launch4J to convert the JAR file into an executable (EXE) file. Use the Launch4J configuration file located in the 4. Create the Installer PackageFinally, after building the portable EXE with Launch4J, create a comprehensive installer package that includes the JRE and all necessary dependencies. Use the Inno Setup Compiler with the This is the exact build process I use to package releases of Infinity-library |
Beta Was this translation helpful? Give feedback.
1. Package the Application
After making any changes to your Java code, start by packaging your application into a production-ready JAR file using Maven:
2. Test the Packaged JAR
Next, test the newly created JAR file to ensure it functions correctly. You can do this from the command line by running:
3. Convert JAR to Executable
Once you've confirmed that the JAR works as expected, use Launch4J to convert the JAR file into an executable (EXE) file. Use the Launch4J configuration file located in the
/scripts
directory for this process.4. Create the Installer Package
Final…