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 |
|
---|
5 | <groupId>cn.ac.ihep.csns</groupId>
|
---|
6 | <artifactId>maven-test-project</artifactId>
|
---|
7 | <version>1.0-SNAPSHOT</version>
|
---|
8 | <packaging>war</packaging>
|
---|
9 |
|
---|
10 | <name>maven-test-project</name>
|
---|
11 |
|
---|
12 | <properties>
|
---|
13 | <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
|
---|
14 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
---|
15 | </properties>
|
---|
16 |
|
---|
17 | <dependencies>
|
---|
18 | <dependency>
|
---|
19 | <groupId>junit</groupId>
|
---|
20 | <artifactId>junit</artifactId>
|
---|
21 | <version>4.10</version>
|
---|
22 | <scope>test</scope>
|
---|
23 | </dependency>
|
---|
24 | <dependency>
|
---|
25 | <groupId>javax</groupId>
|
---|
26 | <artifactId>javaee-web-api</artifactId>
|
---|
27 | <version>6.0</version>
|
---|
28 | <scope>provided</scope>
|
---|
29 | </dependency>
|
---|
30 | </dependencies>
|
---|
31 |
|
---|
32 | <build>
|
---|
33 | <plugins>
|
---|
34 | <plugin>
|
---|
35 | <groupId>org.apache.maven.plugins</groupId>
|
---|
36 | <artifactId>maven-compiler-plugin</artifactId>
|
---|
37 | <version>2.3.2</version>
|
---|
38 | <configuration>
|
---|
39 | <source>1.6</source>
|
---|
40 | <target>1.6</target>
|
---|
41 | <compilerArguments>
|
---|
42 | <endorseddirs>${endorsed.dir}</endorseddirs>
|
---|
43 | </compilerArguments>
|
---|
44 | </configuration>
|
---|
45 | </plugin>
|
---|
46 | <plugin>
|
---|
47 | <groupId>org.apache.maven.plugins</groupId>
|
---|
48 | <artifactId>maven-war-plugin</artifactId>
|
---|
49 | <version>2.1.1</version>
|
---|
50 | <configuration>
|
---|
51 | <failOnMissingWebXml>false</failOnMissingWebXml>
|
---|
52 | </configuration>
|
---|
53 | </plugin>
|
---|
54 | <plugin>
|
---|
55 | <groupId>org.apache.maven.plugins</groupId>
|
---|
56 | <artifactId>maven-dependency-plugin</artifactId>
|
---|
57 | <version>2.1</version>
|
---|
58 | <executions>
|
---|
59 | <execution>
|
---|
60 | <phase>validate</phase>
|
---|
61 | <goals>
|
---|
62 | <goal>copy</goal>
|
---|
63 | </goals>
|
---|
64 | <configuration>
|
---|
65 | <outputDirectory>${endorsed.dir}</outputDirectory>
|
---|
66 | <silent>true</silent>
|
---|
67 | <artifactItems>
|
---|
68 | <artifactItem>
|
---|
69 | <groupId>javax</groupId>
|
---|
70 | <artifactId>javaee-endorsed-api</artifactId>
|
---|
71 | <version>6.0</version>
|
---|
72 | <type>jar</type>
|
---|
73 | </artifactItem>
|
---|
74 | </artifactItems>
|
---|
75 | </configuration>
|
---|
76 | </execution>
|
---|
77 | </executions>
|
---|
78 | </plugin>
|
---|
79 | </plugins>
|
---|
80 | </build>
|
---|
81 |
|
---|
82 | <distributionManagement>
|
---|
83 | <repository>
|
---|
84 | <id>releases</id>
|
---|
85 | <name>CSNS Nexus Release Repository</name>
|
---|
86 | <url>http://ccode.ihep.ac.cn:8080/nexus/content/repositories/releases/</url>
|
---|
87 | </repository>
|
---|
88 | <repository>
|
---|
89 | <id>snapshots</id>
|
---|
90 | <name>CSNS Nexus Release Repository</name>
|
---|
91 | <url>http://ccode.ihep.ac.cn:8080/nexus/content/repositories/snapshots/</url>
|
---|
92 | </repository>
|
---|
93 | </distributionManagement>
|
---|
94 |
|
---|
95 | </project>
|
---|