s243a

POM to build sone via eclipse

Jun 2nd, 2015
619
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 5.70 KB | None | 0 0
  1. <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">
  2.     <modelVersion>4.0.0</modelVersion>
  3.     <groupId>net.pterodactylus</groupId>
  4.     <artifactId>sone</artifactId>
  5.     <version>0.8.9</version>
  6.     <dependencies>
  7.         <dependency>
  8.             <groupId>net.pterodactylus</groupId>
  9.             <artifactId>utils</artifactId>
  10.             <version>${version.utils}</version>
  11.         </dependency>
  12.         <dependency>
  13.             <groupId>junit</groupId>
  14.             <artifactId>junit</artifactId>
  15.             <version>4.11</version>
  16.             <scope>test</scope>
  17.         </dependency>
  18.         <dependency>
  19.             <groupId>org.mockito</groupId>
  20.             <artifactId>mockito-all</artifactId>
  21.             <version>1.9.5</version>
  22.             <scope>test</scope>
  23.         </dependency>
  24.         <dependency>
  25.             <groupId>com.google.inject</groupId>
  26.             <artifactId>guice</artifactId>
  27.             <version>3.0</version>
  28.         </dependency>
  29.         <dependency>
  30.             <groupId>com.google.guava</groupId>
  31.             <artifactId>guava</artifactId>
  32.             <version>14.0-rc1</version>
  33.         </dependency>
  34.         <dependency>
  35.             <groupId>commons-lang</groupId>
  36.             <artifactId>commons-lang</artifactId>
  37.             <version>2.6</version>
  38.         </dependency>
  39.         <dependency>
  40.             <groupId>com.fasterxml.jackson.core</groupId>
  41.             <artifactId>jackson-databind</artifactId>
  42.             <version>2.1.2</version>
  43.         </dependency>
  44.         <dependency>
  45.             <groupId>com.google.code.findbugs</groupId>
  46.             <artifactId>jsr305</artifactId>
  47.             <version>2.0.1</version>
  48.         </dependency>
  49.     </dependencies>
  50.     <repositories>
  51.         <repository>
  52.             <id>pterodactylus</id>
  53.             <url>http://maven.pterodactylus.net/</url>
  54.         </repository>
  55.     </repositories>
  56.     <properties>
  57.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  58.         <version.utils>0.12.4</version.utils>
  59.         <findbugs.timeout>600000</findbugs.timeout>
  60.     </properties>
  61.     <build>
  62.         <plugins>
  63.             <plugin>
  64.                 <groupId>org.codehaus.mojo</groupId>
  65.                 <artifactId>findbugs-maven-plugin</artifactId>
  66.                 <version>2.5.2</version>
  67.                 <configuration>
  68.                     <timeout>${findbugs.timeout}</timeout>
  69.                 </configuration>
  70.             </plugin>
  71.             <plugin>
  72.                 <groupId>org.apache.maven.plugins</groupId>
  73.                 <artifactId>maven-compiler-plugin</artifactId>
  74.                 <version>2.0.2</version>
  75.                 <configuration>
  76.                     <source>1.6</source>
  77.                     <target>1.6</target>
  78.                     <encoding>UTF-8</encoding>
  79.                 </configuration>
  80.             </plugin>
  81.                    
  82.                         <plugin>
  83.                 <groupId>org.apache.maven.plugins</groupId>
  84.                 <artifactId>maven-dependency-plugin</artifactId>
  85.                 <version>2.8</version>
  86.                 <executions>
  87.                     <execution>
  88.                         <id>copy</id>
  89.                         <phase>package</phase>
  90.                         <goals>
  91.                             <goal>unpack-dependencies</goal>
  92.                         </goals>
  93.                         <configuration>
  94.                             <outputDirectory>${project.build.directory}/classes</outputDirectory>
  95.                         </configuration>
  96.                     </execution>
  97.                 </executions>
  98.             </plugin>
  99.             <plugin>
  100.                 <groupId>org.apache.maven.plugins</groupId>
  101.                 <artifactId>maven-jar-plugin</artifactId>
  102.                 <version>2.2</version>
  103.                 <configuration>
  104.                     <archive>
  105.                         <manifestEntries>
  106.                             <Plugin-Main-Class>net.pterodactylus.sone.main.SonePlugin</Plugin-Main-Class>
  107.                         </manifestEntries>
  108.                     </archive>
  109.                 </configuration>
  110.             </plugin>
  111.             <plugin>
  112.                 <groupId>org.apache.maven.plugins</groupId>
  113.                 <artifactId>maven-assembly-plugin</artifactId>
  114.                 <version>2.2-beta-5</version>
  115.                 <configuration>
  116.                     <descriptorRefs>
  117.                         <descriptorRef>jar-with-dependencies</descriptorRef>
  118.                     </descriptorRefs>
  119.                     <archiverConfig>
  120.                         <duplicateBehavior>skip</duplicateBehavior>
  121.                     </archiverConfig>
  122.                     <archive>
  123.                         <manifestEntries>
  124.                             <Plugin-Main-Class>net.pterodactylus.sone.main.SonePlugin</Plugin-Main-Class>
  125.                         </manifestEntries>
  126.                     </archive>
  127.                 </configuration>
  128.                 <executions>
  129.                     <execution>
  130.                         <id>make-assembly</id>
  131.                         <phase>package</phase>
  132.                         <goals>
  133.                             <goal>single</goal>
  134.                         </goals>
  135.                     </execution>
  136.                 </executions>
  137.             </plugin>
  138.             <plugin>
  139.                 <groupId>org.apache.maven.plugins</groupId>
  140.                 <artifactId>maven-javadoc-plugin</artifactId>
  141.                 <version>2.7</version>
  142.                 <configuration>
  143.                     <detectLinks>true</detectLinks>
  144.                     <detectJavaApiLink>true</detectJavaApiLink>
  145.                     <show>private</show>
  146.                     <footer>© 2010–2013 David ‘Bombe’ Roden</footer>
  147.                 </configuration>
  148. </plugin>
  149.                 <!-- Ignore/Execute plugin execution -->
  150.     <plugin>
  151.         <groupId>org.eclipse.m2e</groupId>
  152.         <artifactId>lifecycle-mapping</artifactId>
  153.         <version>1.0.0</version>
  154.         <configuration>
  155.             <lifecycleMappingMetadata>
  156.                 <pluginExecutions>
  157.                     <!-- copy-dependency plugin -->
  158.                     <pluginExecution>
  159.                         <pluginExecutionFilter>
  160.                             <groupId>org.apache.maven.plugins</groupId>
  161.                             <artifactId>maven-dependency-plugin</artifactId>
  162.                             <versionRange>[1.0.0,)</versionRange>
  163.                             <goals>
  164.                                 <goal>copy-dependencies</goal>
  165.                             </goals>
  166.                         </pluginExecutionFilter>
  167.                         <action>
  168.                             <ignore />
  169.                         </action>
  170.                     </pluginExecution>
  171.                 </pluginExecutions>
  172.             </lifecycleMappingMetadata>
  173.         </configuration>
  174.     </plugin>
  175.         </plugins>
  176.     </build>
  177. </project>
Advertisement
Add Comment
Please, Sign In to add comment