Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mvn exec:java -Dexec.mainClass="com.example.Main" [-Dexec.args="argument1"]
- OR
- <pre><code>
- <project>
- ...
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.2.1</version>
- <executions>
- <execution>
- ...
- <goals>
- <goal>java</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <mainClass>com.example.Main</mainClass>
- <arguments>
- <argument>argument1</argument>
- ...
- </arguments>
- <systemProperties>
- <systemProperty>
- <key>myproperty</key>
- <value>myvalue</value>
- </systemProperty>
- ...
- </systemProperties>
- </configuration>
- </plugin>
- </plugins>
- </build>
- ...
- </project>
- </code></pre>
Add Comment
Please, Sign In to add comment