pom.xml 2.53 KB
<?xml version="1.0"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" 
xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  	<modelVersion>4.0.0</modelVersion>
  	<parent>
    	<groupId>fr.tlse.irap.pt</groupId>
    	<artifactId>pt</artifactId>
    	<version>2.2.0</version>
  	</parent>

  	<artifactId>dpc</artifactId>
  	<name>dpc</name>
  
  	<url>http://maven.apache.org</url>
  	<properties>
    	<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  	</properties>
  	<dependencies>
		<!-- Common -->
		<dependency>
			<groupId>fr.tlse.irap.pt</groupId>
			<artifactId>common</artifactId>
			<version>2.2.0</version>
		</dependency>
		<dependency>
			<groupId>fr.tlse.irap.pt</groupId>
			<artifactId>server</artifactId>
			<version>2.2.0</version>
			<classifier>classes</classifier>
		</dependency>
	</dependencies>
	
	<build>
		<directory>target</directory>
		<outputDirectory>target/classes</outputDirectory>
		<sourceDirectory>src/main/java</sourceDirectory>
		<resources>
			<resource>
				<filtering>false</filtering>
				<directory>${basedir}/src/main/resources</directory>
				<includes>
					<include>**/*.*</include>
				</includes>
			</resource>
		</resources>
		<plugins>
			<plugin>
				<!-- copy all dependencies of your app to target folder -->
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<version>2.3</version>
				<executions>
					<execution>
						<id>copy-dependencies</id>
						<phase>package</phase>
						<configuration>
							<overWriteReleases>false</overWriteReleases>
							<overWriteSnapshots>false</overWriteSnapshots>
							<overWriteIfNewer>true</overWriteIfNewer>
						</configuration>
						<goals>
							<goal>copy-dependencies</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<version>${jar-plugin-version}</version>
				<configuration>
					<archive>
						<manifestEntries>
							<Application-Name>dpc</Application-Name>
							<Main-Class>fr.tlse.irap.dpc.ComputeCatalog</Main-Class>
							<implementation-version>1.0</implementation-version>
							<Permissions>all-permissions</Permissions>
						</manifestEntries>
						<manifest>
							<addClasspath>true</addClasspath>
						</manifest>
					</archive>
				</configuration>
			</plugin>
		</plugins>
		<finalName>catalog</finalName>
	</build>
	
</project>