Advertisement
Guest User

pom.xml

a guest
Jul 14th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.75 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3.         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4.         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5.     <modelVersion>4.0.0</modelVersion>
  6.  
  7.     <groupId>fr.mydomain</groupId>
  8.     <artifactId>myproject</artifactId>
  9.     <version>0.0.2</version>
  10.  
  11.     <dependencies>
  12.         <dependency>
  13.             <groupId>org.apache.httpcomponents</groupId>
  14.             <artifactId>httpclient</artifactId>
  15.             <version>4.1.1</version>
  16.         </dependency>
  17.         <dependency>
  18.             <groupId>org.json</groupId>
  19.             <artifactId>json</artifactId>
  20.             <version>20140107</version>
  21.         </dependency>
  22.     </dependencies>
  23.  
  24.     <build>
  25.         <plugins>
  26.             <plugin>
  27.                 <artifactId>maven-compiler-plugin</artifactId>
  28.                 <version>3.5</version>
  29.                 <configuration>
  30.                     <source>1.8</source>
  31.                     <target>1.8</target>
  32.                 </configuration>
  33.             </plugin>
  34.  
  35.             <plugin>
  36.                 <groupId>org.apache.maven.plugins</groupId>
  37.                 <artifactId>maven-shade-plugin</artifactId>
  38.                 <version>2.4.1</version>
  39.                 <executions>
  40.                     <execution>
  41.                         <phase>package</phase>
  42.                         <goals>
  43.                             <goal>shade</goal>
  44.                         </goals>
  45.                         <configuration>
  46.                             <artifactSet>
  47.                                 <includes>
  48.                                     <include>org.apache.httpcomponents:httpclient</include>
  49.                                     <include>org.apache.httpcomponents:httpcore</include>
  50.                                     <include>commons-logging:commons-logging</include>
  51.                                     <include>commons-codec:commons-codec</include>
  52.  
  53.                                     <include>org.json:json</include>
  54.                                 </includes>
  55.                             </artifactSet>
  56.                         </configuration>
  57.                     </execution>
  58.                 </executions>
  59.             </plugin>
  60.  
  61.             <plugin>
  62.                 <groupId>org.apache.maven.plugins</groupId>
  63.                 <artifactId>maven-javadoc-plugin</artifactId>
  64.                 <version>2.10.4</version>
  65.                 <configuration>
  66.                     <sourcepath>${basedir}/src/main/java</sourcepath>
  67.                     <includeDependencySources>false</includeDependencySources>
  68.                 </configuration>
  69.             </plugin>
  70.         </plugins>
  71.     </build>
  72. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement