BinaryJacob

pom.xml

May 14th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.20 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 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>com.mycompany</groupId>
  6.     <artifactId>mavenproject1</artifactId>
  7.     <version>1.0-SNAPSHOT</version>
  8.     <packaging>war</packaging>
  9.  
  10.     <name>mavenproject1</name>
  11.  
  12.     <properties>
  13.         <endorsed.dir>${project.build.directory}/endorsed</endorsed.dir>
  14.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15.         <timestamp>${maven.build.timestamp}</timestamp>
  16.         <maven.build.timestamp.format>yyyy_MM_dd_HH_mm</maven.build.timestamp.format>
  17.     </properties>
  18.    
  19.     <dependencies>
  20.         <dependency>
  21.             <groupId>javax</groupId>
  22.             <artifactId>javaee-web-api</artifactId>
  23.             <version>7.0</version>
  24.             <scope>provided</scope>
  25.         </dependency>
  26.     </dependencies>
  27.  
  28.     <build>
  29.         <finalName>${project.artifactId}-${project.version}-${timestamp}</finalName>
  30.         <plugins>
  31.             <plugin>
  32.                 <groupId>org.apache.maven.plugins</groupId>
  33.                 <artifactId>maven-compiler-plugin</artifactId>
  34.                 <version>3.1</version>
  35.                 <configuration>
  36.                     <source>1.7</source>
  37.                     <target>1.7</target>
  38.                     <compilerArguments>
  39.                         <endorseddirs>${endorsed.dir}</endorseddirs>                        
  40.                     </compilerArguments>                    
  41.                 </configuration>
  42.             </plugin>
  43.             <plugin>
  44.                 <groupId>org.apache.maven.plugins</groupId>
  45.                 <artifactId>maven-war-plugin</artifactId>
  46.                 <version>2.3</version>
  47.                 <configuration>
  48.                     <failOnMissingWebXml>false</failOnMissingWebXml>
  49.                 </configuration>
  50.             </plugin>
  51.             <plugin>
  52.                 <groupId>org.apache.maven.plugins</groupId>
  53.                 <artifactId>maven-dependency-plugin</artifactId>
  54.                 <version>2.6</version>
  55.                 <executions>
  56.                     <execution>
  57.                         <phase>validate</phase>
  58.                         <goals>
  59.                             <goal>copy</goal>
  60.                         </goals>
  61.                         <configuration>
  62.                             <outputDirectory>${endorsed.dir}</outputDirectory>
  63.                             <silent>true</silent>
  64.                             <artifactItems>
  65.                                 <artifactItem>
  66.                                     <groupId>javax</groupId>
  67.                                     <artifactId>javaee-endorsed-api</artifactId>
  68.                                     <version>7.0</version>
  69.                                     <type>jar</type>
  70.                                 </artifactItem>
  71.                             </artifactItems>
  72.                         </configuration>
  73.                     </execution>
  74.                 </executions>
  75.             </plugin>
  76.         </plugins>
  77.     </build>
  78.  
  79. </project>
Add Comment
Please, Sign In to add comment