hho

exec-maven-plugin demo

hho
Jul 1st, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.27 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3.         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5.     <parent>
  6.         <artifactId>test</artifactId>
  7.         <groupId>test</groupId>
  8.         <version>1.0-SNAPSHOT</version>
  9.     </parent>
  10.     <modelVersion>4.0.0</modelVersion>
  11.  
  12.     <artifactId>exec-demo</artifactId>
  13.  
  14.     <properties>
  15.         <maven.compiler.source>1.8</maven.compiler.source>
  16.         <maven.compiler.target>1.8</maven.compiler.target>
  17.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18.     </properties>
  19.  
  20.     <build>
  21.         <plugins>
  22.             <plugin>
  23.                 <groupId>org.apache.maven.plugins</groupId>
  24.                 <artifactId>maven-compiler-plugin</artifactId>
  25.                 <version>3.8.1</version>
  26.             </plugin>
  27.             <plugin>
  28.                 <groupId>org.codehaus.mojo</groupId>
  29.                 <artifactId>exec-maven-plugin</artifactId>
  30.                 <version>1.6.0</version>
  31.                 <configuration>
  32.                     <mainClass>fully.qualified.name.of.your.apps.MainClass</mainClass>
  33.                 </configuration>
  34.                 <executions>
  35.                     <execution>
  36.                         <id>run</id>
  37.                         <goals><goal>java</goal></goals>
  38.                         <phase>test</phase>
  39.                     </execution>
  40.                 </executions>
  41.             </plugin>
  42.         </plugins>
  43.     </build>
  44. </project>
Advertisement
Add Comment
Please, Sign In to add comment