Advertisement
Guest User

Untitled

a guest
Jul 8th, 2012
399
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 9.29 KB | None | 0 0
  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>org.bukkit</groupId>
  5.   <artifactId>craftbukkit</artifactId>
  6.   <packaging>jar</packaging>
  7.   <version>1.2.5-R4.1-SNAPSHOT</version>
  8.   <name>CraftBukkit</name>
  9.   <url>http://www.bukkit.org</url>
  10.  
  11.   <properties>
  12.     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13.     <api.version>unknown</api.version>
  14.     <junit.version>4.10</junit.version>
  15.   </properties>
  16.  
  17.   <scm>
  18.     <connection>scm:git:git://github.com/Bukkit/CraftBukkit.git</connection>
  19.     <developerConnection>scm:git:ssh://git@github.com/Bukkit/CraftBukkit.git</developerConnection>
  20.     <url>https://github.com/Bukkit/CraftBukkit</url>
  21.   </scm>
  22.  
  23.   <distributionManagement>
  24.     <repository>
  25.       <id>repobo-rel</id>
  26.       <name>repo.bukkit.org Releases</name>
  27.       <url>http://repo.bukkit.org/content/repositories/releases/</url>
  28.     </repository>
  29.     <snapshotRepository>
  30.       <id>repobo-snap</id>
  31.       <name>repo.bukkit.org Snapshots</name>
  32.       <url>http://repo.bukkit.org/content/repositories/snapshots/</url>
  33.     </snapshotRepository>
  34.   </distributionManagement>
  35.  
  36.   <repositories>
  37.     <repository>
  38.       <id>repobo-snap</id>
  39.       <url>http://repo.bukkit.org/content/groups/public</url>
  40.     </repository>
  41.   </repositories>
  42.  
  43.   <pluginRepositories>
  44.     <pluginRepository>
  45.       <id>bukkit-plugins</id>
  46.       <url>http://repo.bukkit.org/content/groups/public</url>
  47.     </pluginRepository>
  48.   </pluginRepositories>
  49.  
  50.   <dependencies>
  51.     <dependency>
  52.       <groupId>org.bukkit</groupId>
  53.       <artifactId>bukkit</artifactId>
  54.       <version>1.2.5-R4.1-SNAPSHOT</version>
  55.       <type>jar</type>
  56.       <scope>system</scope>
  57.       <systemPath>${project.basedir}/lib/bukkit.jar</systemPath>
  58.     </dependency>
  59.     <dependency>
  60.       <groupId>org.bukkit</groupId>
  61.       <artifactId>minecraft-server</artifactId>
  62.       <version>1.2.5</version>
  63.       <type>jar</type>
  64.       <scope>compile</scope>
  65.     </dependency>
  66.     <dependency>
  67.       <groupId>net.sf.jopt-simple</groupId>
  68.       <artifactId>jopt-simple</artifactId>
  69.       <version>3.2</version>
  70.       <type>jar</type>
  71.       <scope>compile</scope>
  72.     </dependency>
  73.     <!-- jline and jansi versions must be kept in sync -->
  74.     <dependency>
  75.       <groupId>jline</groupId>
  76.       <artifactId>jline</artifactId>
  77.       <version>2.6</version>
  78.       <type>jar</type>
  79.       <scope>compile</scope>
  80.     </dependency>
  81.     <dependency>
  82.       <groupId>org.fusesource.jansi</groupId>
  83.       <artifactId>jansi</artifactId>
  84.       <version>1.8</version>
  85.       <type>jar</type>
  86.       <scope>compile</scope>
  87.     </dependency>
  88.     <dependency>
  89.       <groupId>org.xerial</groupId>
  90.       <artifactId>sqlite-jdbc</artifactId>
  91.       <version>3.7.2</version>
  92.       <type>jar</type>
  93.       <scope>compile</scope>
  94.     </dependency>
  95.     <dependency>
  96.       <groupId>mysql</groupId>
  97.       <artifactId>mysql-connector-java</artifactId>
  98.       <version>5.1.14</version>
  99.       <type>jar</type>
  100.       <scope>compile</scope>
  101.     </dependency>
  102.     <dependency>
  103.       <groupId>org.avaje</groupId>
  104.       <artifactId>ebean</artifactId>
  105.       <version>2.7.3</version>
  106.       <type>jar</type>
  107.       <scope>provided</scope>
  108.     </dependency>
  109.     <dependency>
  110.       <groupId>org.yaml</groupId>
  111.       <artifactId>snakeyaml</artifactId>
  112.       <version>1.9</version>
  113.       <type>jar</type>
  114.       <scope>provided</scope>
  115.     </dependency>
  116.     <dependency>
  117.       <groupId>com.google.guava</groupId>
  118.       <artifactId>guava</artifactId>
  119.       <version>10.0</version>
  120.       <type>jar</type>
  121.       <scope>provided</scope>
  122.     </dependency>
  123.     <dependency>
  124.         <groupId>commons-lang</groupId>
  125.         <artifactId>commons-lang</artifactId>
  126.         <version>2.3</version>
  127.         <scope>provided</scope>
  128.     </dependency>
  129.     <!-- testing -->
  130.     <dependency>
  131.       <groupId>junit</groupId>
  132.       <artifactId>junit-dep</artifactId>
  133.       <version>${junit.version}</version>
  134.       <scope>test</scope>
  135.       <exclusions>
  136.         <exclusion>
  137.           <artifactId>hamcrest-core</artifactId>
  138.           <groupId>org.hamcrest</groupId>
  139.         </exclusion>
  140.       </exclusions>
  141.     </dependency>
  142.     <dependency>
  143.       <groupId>org.hamcrest</groupId>
  144.       <artifactId>hamcrest-library</artifactId>
  145.       <version>1.2.1</version>
  146.       <scope>test</scope>
  147.     </dependency>
  148.     <dependency>
  149.       <groupId>com.google.code.gson</groupId>
  150.       <artifactId>gson</artifactId>
  151.       <version>2.1</version>
  152.     </dependency>
  153.   </dependencies>
  154.  
  155.   <!-- This builds a completely 'ready to start' jar with all dependencies inside -->
  156.   <build>
  157.     <defaultGoal>clean install</defaultGoal>
  158.     <plugins>
  159.       <plugin>
  160.         <groupId>com.lukegb.mojo</groupId>
  161.         <artifactId>gitdescribe-maven-plugin</artifactId>
  162.         <version>1.3</version>
  163.         <configuration>
  164.           <outputPrefix>git-Bukkit-</outputPrefix>
  165.           <outputPostfix></outputPostfix>
  166.         </configuration>
  167.         <executions>
  168.           <execution>
  169.             <phase>compile</phase>
  170.             <goals>
  171.               <goal>gitdescribe</goal>
  172.             </goals>
  173.           </execution>
  174.         </executions>
  175.       </plugin>
  176.       <plugin>
  177.         <groupId>org.apache.maven.plugins</groupId>
  178.         <artifactId>maven-jar-plugin</artifactId>
  179.         <version>2.1</version>
  180.         <configuration>
  181.           <archive>
  182.             <manifestEntries>
  183.               <Main-Class>org.bukkit.craftbukkit.Main</Main-Class>
  184.               <Implementation-Title>CraftBukkit</Implementation-Title>
  185.               <Implementation-Version>${describe}</Implementation-Version>
  186.               <Implementation-Vendor>Bukkit Team</Implementation-Vendor>
  187.               <Specification-Title>Bukkit</Specification-Title>
  188.               <Specification-Version>${api.version}</Specification-Version>
  189.               <Specification-Vendor>Bukkit Team</Specification-Vendor>
  190.               <Sealed>true</Sealed>
  191.             </manifestEntries>
  192.             <manifestSections>
  193.               <manifestSection>
  194.                 <name>net/bukkit/</name>
  195.                 <manifestEntries>
  196.                   <Sealed>true</Sealed>
  197.                 </manifestEntries>
  198.               </manifestSection>
  199.               <manifestSection>
  200.                 <name>com/bukkit/</name>
  201.                 <manifestEntries>
  202.                   <Sealed>true</Sealed>
  203.                 </manifestEntries>
  204.               </manifestSection>
  205.               <manifestSection>
  206.                 <name>org/bukkit/</name>
  207.                 <manifestEntries>
  208.                   <Sealed>true</Sealed>
  209.                 </manifestEntries>
  210.               </manifestSection>
  211.             </manifestSections>
  212.           </archive>
  213.         </configuration>
  214.        </plugin>
  215.       <plugin>
  216.         <groupId>org.apache.maven.plugins</groupId>
  217.         <artifactId>maven-shade-plugin</artifactId>
  218.         <version>1.4</version>
  219.         <executions>
  220.           <execution>
  221.             <phase>package</phase>
  222.             <goals>
  223.               <goal>shade</goal>
  224.             </goals>
  225.             <configuration>
  226.               <artifactSet>
  227.                 <excludes>
  228.                   <exclude>junit:junit</exclude>
  229.                 </excludes>
  230.               </artifactSet>
  231.             </configuration>
  232.           </execution>
  233.         </executions>
  234.       </plugin>
  235.       <plugin>
  236.         <groupId>org.apache.maven.plugins</groupId>
  237.         <artifactId>maven-compiler-plugin</artifactId>
  238.         <version>2.0.2</version>
  239.         <configuration>
  240.           <source>1.5</source>
  241.           <target>1.5</target>
  242.         </configuration>
  243.       </plugin>
  244.       <plugin>
  245.         <groupId>org.apache.maven.plugins</groupId>
  246.         <artifactId>maven-surefire-plugin</artifactId>
  247.         <version>2.11</version>
  248.         <configuration>
  249.           <workingDirectory>${basedir}/target/test-server</workingDirectory>
  250.         </configuration>
  251.       </plugin>
  252.     </plugins>
  253.     <pluginManagement>
  254.       <plugins>
  255.         <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
  256.         <plugin>
  257.           <groupId>org.eclipse.m2e</groupId>
  258.           <artifactId>lifecycle-mapping</artifactId>
  259.           <version>1.0.0</version>
  260.           <configuration>
  261.             <lifecycleMappingMetadata>
  262.               <pluginExecutions>
  263.                 <pluginExecution>
  264.                   <pluginExecutionFilter>
  265.                     <groupId>com.lukegb.mojo</groupId>
  266.                     <artifactId>
  267.                       gitdescribe-maven-plugin
  268.                     </artifactId>
  269.                     <versionRange>[1.3,)</versionRange>
  270.                     <goals>
  271.                       <goal>gitdescribe</goal>
  272.                     </goals>
  273.                   </pluginExecutionFilter>
  274.                   <action>
  275.                     <ignore></ignore>
  276.                   </action>
  277.                 </pluginExecution>
  278.               </pluginExecutions>
  279.             </lifecycleMappingMetadata>
  280.           </configuration>
  281.         </plugin>
  282.       </plugins>
  283.     </pluginManagement>
  284.   </build>
  285. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement