Ignore:
Timestamp:
05/19/15 08:25:16 (9 years ago)
Author:
Twan Goosen
Message:

comments and pom to make executable jar

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ComponentRegistry/trunk/ComponentSpecFixer/pom.xml

    r6221 r6223  
    2727        <maven.compiler.target>1.7</maven.compiler.target>
    2828    </properties>
     29    <build>
     30        <plugins>
     31            <!-- produce executable JAR with external libraries -->
     32            <plugin>
     33                <groupId>org.apache.maven.plugins</groupId>
     34                <artifactId>maven-jar-plugin</artifactId>
     35                <version>2.6</version>
     36                <configuration>
     37                    <archive>
     38                        <manifest>
     39                            <mainClass>nl.mpi.componentspecfixer.ComponentSpecFixer</mainClass>
     40                            <addClasspath>true</addClasspath>
     41                            <classpathPrefix>lib/</classpathPrefix>
     42                        </manifest>
     43                    </archive>
     44                </configuration>
     45            </plugin>
     46
     47            <plugin>
     48                <groupId>org.apache.maven.plugins</groupId>
     49                <artifactId>maven-dependency-plugin</artifactId>
     50                <version>2.10</version>
     51                <executions>
     52                    <execution>
     53                        <id>copy-dependencies</id>
     54                        <phase>package</phase>
     55                        <goals>
     56                            <goal>copy-dependencies</goal>
     57                        </goals>
     58                        <configuration>
     59                            <outputDirectory>${project.build.directory}/lib</outputDirectory>
     60                            <overWriteReleases>false</overWriteReleases>
     61                            <overWriteSnapshots>false</overWriteSnapshots>
     62                            <overWriteIfNewer>true</overWriteIfNewer>
     63                        </configuration>
     64                    </execution>
     65                </executions>
     66            </plugin>
     67        </plugins>
     68    </build>
    2969</project>
Note: See TracChangeset for help on using the changeset viewer.