Fixing the pom.xml to create executable jar

This commit is contained in:
Subrahmanyam Mandavilli 2015-12-24 09:25:35 +05:30
Родитель 750ffd566d
Коммит 5580d3f40a
1 изменённых файлов: 11 добавлений и 13 удалений

Просмотреть файл

@ -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>