Fixing the pom.xml to create executable jar
This commit is contained in:
Родитель
750ffd566d
Коммит
5580d3f40a
|
@ -10,7 +10,7 @@
|
|||
<relativePath>../pom.xml</relativePath>
|
||||
</parent>
|
||||
<groupId>com.microsoft.vmware.tools.vmopstool</groupId>
|
||||
<artifactId>vmOpsTool</artifactId>
|
||||
<artifactId>vmOpsTool</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<dependencies>
|
||||
|
@ -27,12 +27,11 @@
|
|||
<version>2.1</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
||||
<build>
|
||||
<sourceDirectory>./</sourceDirectory>
|
||||
<outputDirectory>../../../_build/src/tools/vmOpsTool</outputDirectory>
|
||||
<plugins>
|
||||
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>2.3.2</version>
|
||||
|
@ -42,23 +41,22 @@
|
|||
</includes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
|
||||
<plugin>
|
||||
<!-- Build an executable JAR -->
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>2.3.1</version>
|
||||
<version>2.4</version>
|
||||
<configuration>
|
||||
<outputDirectory>../../../_build/src/tasks/vmOperations</outputDirectory>
|
||||
<archive>
|
||||
<manifest>
|
||||
<addClasspath>true</addClasspath>
|
||||
<classpathPrefix>lib/</classpathPrefix>
|
||||
<mainClass>VmOpsTool</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
|
||||
</plugins>
|
||||
</build>
|
||||
<name>vmOpsTool</name>
|
||||
|
|
Загрузка…
Ссылка в новой задаче