talran

How to compile/build mercury trade

Jun 17th, 2019
113
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Install maven/mvn
  2. Make sure `mvn -v` has correct output
  3. Edit main pom.xml so that build block at bottom has the execution-goal of single as at bottom.
  4. Run `mvn clean install` from the base project source directory
  5.  
  6. Final .jar should be in ./app/target/app-<version>-jar-with-dependencies.jar
  7. You should be able to just rename that MercuryTrade.jar and go hog wild.
  8. Disc:`はい、カズマです。#6969`
  9.  
  10.  
  11.     <build>
  12.         <plugins>
  13.             <plugin>
  14.                 <artifactId>maven-assembly-plugin</artifactId>
  15.                 <configuration>
  16.                     <archive>
  17.                         <manifest>
  18.                             <mainClass>com.mercury.platform.AppMain</mainClass>
  19.                         </manifest>
  20.                     </archive>
  21.                     <descriptorRefs>
  22.                         <descriptorRef>jar-with-dependencies</descriptorRef>
  23.                     </descriptorRefs>
  24.                 </configuration>
  25.                 <executions>
  26.                     <execution>
  27.                         <id>make-assembly</id> <!-- this is used for inheritance merges -->
  28.                         <phase>package</phase> <!-- bind to the packaging phase -->
  29.                         <goals>
  30.                             <goal>single</goal>
  31.                         </goals>
  32.                     </execution>
  33.                 </executions>
  34.             </plugin>
  35.         </plugins>
  36.     </build>
RAW Paste Data Copied