Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Install maven/mvn
- Make sure `mvn -v` has correct output
- Edit main pom.xml so that build block at bottom has the execution-goal of single as at bottom.
- Run `mvn clean install` from the base project source directory
- Final .jar should be in ./app/target/app-<version>-jar-with-dependencies.jar
- You should be able to just rename that MercuryTrade.jar and go hog wild.
- Disc:`はい、カズマです。#6969`
- <build>
- <plugins>
- <plugin>
- <artifactId>maven-assembly-plugin</artifactId>
- <configuration>
- <archive>
- <manifest>
- <mainClass>com.mercury.platform.AppMain</mainClass>
- </manifest>
- </archive>
- <descriptorRefs>
- <descriptorRef>jar-with-dependencies</descriptorRef>
- </descriptorRefs>
- </configuration>
- <executions>
- <execution>
- <id>make-assembly</id> <!-- this is used for inheritance merges -->
- <phase>package</phase> <!-- bind to the packaging phase -->
- <goals>
- <goal>single</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
Add Comment
Please, Sign In to add comment