Maven How To Execute Java Classes

Do you like this?

Summary:
This post shows you the snippet of code you have to add to run a specific Java class in Maven


Content:

<build>	
	<plugin>
			<groupId>org.codehaus.mojo</groupId>
			<artifactId>exec-maven-plugin</artifactId>
			<executions>
				<execution>
					<goals>
						<goal>exec</goal>
					</goals>
				</execution>
			</executions>
			<configuration>
				<mainClass>org.company.Main</mainClass>
				<arguments>
				</arguments>
			</configuration>
		</plugin>
	</plugins>
</build>

 
comments powered by Disqus