Guest User

Untitled

a guest
Oct 23rd, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.92 KB | None | 0 0
  1. mvn exec:java -Dexec.mainClass="com.example.Main" [-Dexec.args="argument1"]
  2.  
  3. OR
  4. <pre><code>
  5. <project>
  6. ...
  7. <build>
  8. <plugins>
  9. <plugin>
  10. <groupId>org.codehaus.mojo</groupId>
  11. <artifactId>exec-maven-plugin</artifactId>
  12. <version>1.2.1</version>
  13. <executions>
  14. <execution>
  15. ...
  16. <goals>
  17. <goal>java</goal>
  18. </goals>
  19. </execution>
  20. </executions>
  21. <configuration>
  22. <mainClass>com.example.Main</mainClass>
  23. <arguments>
  24. <argument>argument1</argument>
  25. ...
  26. </arguments>
  27. <systemProperties>
  28. <systemProperty>
  29. <key>myproperty</key>
  30. <value>myvalue</value>
  31. </systemProperty>
  32. ...
  33. </systemProperties>
  34. </configuration>
  35. </plugin>
  36. </plugins>
  37. </build>
  38. ...
  39. </project>
  40. </code></pre>
Add Comment
Please, Sign In to add comment