pom.xml
author akhmetovlz
Mon, 20 Jun 2011 15:50:55 +0400
changeset 138 fd3b663230ed
parent 16 91dfd5dc276a
permissions -rw-r--r--
Help from example
     1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     2 	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
     3 	<modelVersion>4.0.0</modelVersion>
     4 	<groupId>ru.alphatech.icfpc</groupId>
     5 	<artifactId>icfpc-2011</artifactId>
     6 	<packaging>jar</packaging>
     7 	<version>0.0.1.0-SNAPSHOT</version>
     8 	<name>ICFPC-2011</name>
     9 	<build>
    10 		<plugins>
    11 			<plugin>
    12 				<groupId>org.apache.maven.plugins</groupId>
    13 				<artifactId>maven-compiler-plugin</artifactId>
    14 				<configuration>
    15 					<source>1.6</source>
    16 					<target>1.6</target>
    17 					<encoding>UTF-8</encoding>
    18 				</configuration>
    19 			</plugin>
    20 			<plugin>
    21 				<artifactId>maven-source-plugin</artifactId>
    22 				<configuration>
    23 					<attach>true</attach>
    24 				</configuration>
    25 				<executions>
    26 					<execution>
    27 						<phase>generate-sources</phase>
    28 						<goals>
    29 							<goal>jar</goal>
    30 						</goals>
    31 					</execution>
    32 				</executions>
    33 			</plugin>
    34 			<plugin>
    35 				<groupId>org.apache.maven.plugins</groupId>
    36 				<artifactId>maven-jar-plugin</artifactId>
    37 				<configuration>
    38 					<archive>
    39 						<manifest>
    40 							<addClasspath>true</addClasspath>
    41 							<mainClass>ru.alphatech.icfpc.game.Run</mainClass>
    42 						</manifest>
    43 					</archive>
    44 				</configuration>
    45 			</plugin>
    46 			<plugin>
    47 				<artifactId>maven-assembly-plugin</artifactId>
    48 				<version>2.2.1</version>
    49 				<configuration>
    50 					<descriptors>
    51 						<descriptor>src/main/assembly/assembly.xml</descriptor>
    52 					</descriptors>
    53 				</configuration>
    54 				<executions>
    55 					<execution>
    56 						<id>make-assembly</id>
    57 						<phase>package</phase>
    58 						<goals>
    59 							<goal>single</goal>
    60 						</goals>
    61 					</execution>
    62 				</executions>
    63 			</plugin>
    64 		</plugins>
    65 	</build>
    66 	<dependencies>
    67 		<dependency>
    68 			<groupId>junit</groupId>
    69 			<artifactId>junit</artifactId>
    70 			<version>4.8.2</version>
    71 			<scope>test</scope>
    72 		</dependency>
    73 	</dependencies>
    74 </project>