Advertisement
Guest User

Untitled

a guest
Apr 9th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.98 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/maven-v4_0_0.xsd">
  2.   <modelVersion>4.0.0</modelVersion>
  3.   <groupId>my.tool</groupId>
  4.   <artifactId>util</artifactId>
  5.   <packaging>jar</packaging>
  6.   <version>1.0.0-SNAPSHOT</version>
  7.   <name>my.tool.util</name>
  8.   <url>http://maven.apache.org</url>
  9.  
  10.   <scm>
  11.     <connection>scm:git:https://github.com/user/package.git</connection>
  12.     <developerConnection>scm:git:git@github.com:user/package.git</developerConnection>
  13.     <url>https://github.com/user/package</url>
  14.     <tag>HEAD</tag>
  15.   </scm>
  16.  
  17.     <distributionManagement>
  18.         <repository>
  19.             <id>bintray-user-maven-package</id>
  20.             <name>user-maven-package</name>
  21.             <url>https://api.bintray.com/maven/user/maven/package</url>
  22.         </repository>
  23.     </distributionManagement>
  24.  
  25.   <properties>
  26.     <swt.version>[3.0,4.3)</swt.version>
  27.   </properties>
  28.  
  29.   <repositories>
  30.     <repository>
  31.         <id>swt-repo</id>
  32.         <url>https://swt-repo.googlecode.com/svn/repo/</url>
  33.     </repository>
  34.   </repositories>
  35.   <dependencies>
  36.     <dependency>
  37.       <groupId>junit</groupId>
  38.       <artifactId>junit</artifactId>
  39.       <version>4.10</version>
  40.       <scope>test</scope>
  41.     </dependency>
  42.     <!-- SWT -->
  43.     <dependency>
  44.         <groupId>${swt.groupId}</groupId>
  45.         <artifactId>${swt.artifactId}</artifactId>
  46.         <version>${swt.version}</version>
  47.     </dependency>
  48.   </dependencies>
  49.  
  50.   <profiles>
  51.     <profile>
  52.       <id>linux64</id>
  53.       <activation>
  54.         <os>
  55.           <family>linux</family>
  56.           <arch>amd64</arch>
  57.         </os>
  58.       </activation>
  59.       <properties>
  60.         <swt.groupId>org.eclipse.swt</swt.groupId>
  61.         <swt.artifactId>org.eclipse.swt.gtk.linux.x86_64</swt.artifactId>
  62.       </properties>
  63.     </profile>
  64.     <profile>
  65.         <id>release</id>
  66.         <build>
  67.           <plugins>
  68.             <plugin>
  69.               <artifactId>maven-source-plugin</artifactId>
  70.               <executions>
  71.                 <execution>
  72.                   <id>attach-sources</id>
  73.                   <goals>
  74.                     <goal>jar</goal>
  75.                   </goals>
  76.                 </execution>
  77.               </executions>
  78.             </plugin>
  79.             <plugin>
  80.               <artifactId>maven-javadoc-plugin</artifactId>
  81.               <executions>
  82.                 <execution>
  83.                   <id>attach-javadocs</id>
  84.                   <goals>
  85.                     <goal>jar</goal>
  86.                   </goals>
  87.                 </execution>
  88.               </executions>
  89.             </plugin>
  90.           </plugins>
  91.         </build>
  92.       </profile>
  93.   </profiles>
  94.  
  95.   <build>
  96.      <defaultGoal>install</defaultGoal>
  97.      <plugins>
  98.           <plugin>
  99.                <groupId>org.apache.maven.plugins</groupId>
  100.                <artifactId>maven-compiler-plugin</artifactId>
  101.                <version>3.1</version>
  102.                <configuration>
  103.                     <source>1.7</source>
  104.                     <target>1.7</target>
  105.                </configuration>
  106.           </plugin>
  107.           <plugin>
  108.                 <groupId>com.mycila</groupId>
  109.                 <artifactId>license-maven-plugin</artifactId>
  110.                 <version>2.6</version>
  111.                 <configuration>
  112.                     <header>${basedir}/src/etc/header.txt</header>
  113.                     <includes>
  114.                         <include>src/main/java/**</include>
  115.                         <include>src/test/java/**</include>
  116.                     </includes>
  117.                 </configuration>
  118.                 <executions>
  119.                     <execution>
  120.                         <goals>
  121.                             <goal>check</goal>
  122.                         </goals>
  123.                     </execution>
  124.                 </executions>
  125.             </plugin>
  126.             <plugin>
  127.               <artifactId>maven-release-plugin</artifactId>
  128.               <version>2.5</version>
  129.               <configuration>
  130.                 <useReleaseProfile>false</useReleaseProfile>
  131.                 <releaseProfiles>release</releaseProfiles>
  132.                 <autoVersionSubmodules>true</autoVersionSubmodules>
  133.               </configuration>
  134.             </plugin>
  135.       </plugins>
  136.   </build>
  137.  
  138.  
  139. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement