Guest User

Untitled

a guest
May 22nd, 2015
295
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 8.30 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><!-- Config --></groupId>
  4.     <artifactId><!-- Config --></artifactId>
  5.     <version>1.0.0-SNAPSHOT</version>
  6.     <packaging>pom</packaging>
  7.     <name><!-- Config --></name>
  8.     <modules>
  9.         <!-- Config -->
  10.     </modules>
  11.     <scm>
  12.         <!-- Config -->
  13.     </scm>
  14.     <distributionManagement>
  15.         <repository>
  16.             <!-- Config -->
  17.         </repository>
  18.         <snapshotRepository>
  19.             <!-- Config -->
  20.         </snapshotRepository>
  21.     </distributionManagement>
  22.     <properties>
  23.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  24.     </properties>
  25.     <dependencies>
  26.         <!-- Config -->
  27.     </dependencies>
  28.     <repositories>
  29.         <repository>
  30.             <releases>
  31.                 <enabled>true</enabled>
  32.             </releases>
  33.             <snapshots>
  34.                 <enabled>false</enabled>
  35.             </snapshots>
  36.             <id>Releases</id>
  37.             <name>our.repository.site.com-releases</name>
  38.             <url>http://our.repository.site.com/artifactory/releases</url>
  39.         </repository>
  40.         <repository>
  41.             <releases>
  42.                 <enabled>true</enabled>
  43.             </releases>
  44.             <snapshots>
  45.                 <enabled>false</enabled>
  46.             </snapshots>
  47.             <id>Libs Releases</id>
  48.             <name>our.repository.site.com-libs-releases</name>
  49.             <url>http://our.repository.site.com/artifactory/libs-release-local</url>
  50.         </repository>
  51.         <repository>
  52.             <snapshots>
  53.                 <enabled>true</enabled>
  54.                 <updatePolicy>always</updatePolicy>
  55.             </snapshots>
  56.             <id>Snapshots</id>
  57.             <name>our.repository.site.com-snapshots</name>
  58.             <url>http://our.repository.site.com/artifactory/snapshots</url>
  59.         </repository>
  60.         <repository>
  61.             <snapshots>
  62.                 <enabled>true</enabled>
  63.                 <updatePolicy>always</updatePolicy>
  64.             </snapshots>
  65.             <id>Libs Snapshots</id>
  66.             <name>our.repository.site.com-snapshots</name>
  67.             <url>http://our.repository.site.com/artifactory/libs-snapshot-local</url>
  68.         </repository>
  69.         <repository>
  70.             <snapshots>
  71.                 <enabled>false</enabled>
  72.             </snapshots>
  73.             <id>central</id>
  74.             <name>Central Repository</name>
  75.             <url>https://repo.maven.apache.org/maven2</url>
  76.         </repository>
  77.     </repositories>
  78.     <pluginRepositories>
  79.         <pluginRepository>
  80.             <snapshots>
  81.                 <enabled>false</enabled>
  82.             </snapshots>
  83.             <id>central</id>
  84.             <name>plugins-release</name>
  85.             <url>http://our.repository.site.com/artifactory/plugins-release</url>
  86.         </pluginRepository>
  87.         <pluginRepository>
  88.             <snapshots>
  89.                 <enabled>true</enabled>
  90.                 <updatePolicy>always</updatePolicy>
  91.             </snapshots>
  92.             <id>snapshots</id>
  93.             <name>plugins-snapshot</name>
  94.             <url>http://our.repository.site.com/artifactory/plugins-snapshot</url>
  95.         </pluginRepository>
  96.     </pluginRepositories>
  97.     <build>
  98.         <sourceDirectory>C:\Fake-Path\src\main\java</sourceDirectory>
  99.         <scriptSourceDirectory>C:\Fake-Path\src\main\scripts</scriptSourceDirectory>
  100.         <testSourceDirectory>C:\Fake-Path\src\test\java</testSourceDirectory>
  101.         <outputDirectory>C:\Fake-Path\target\classes</outputDirectory>
  102.         <testOutputDirectory>C:\Fake-Path\target\test-classes</testOutputDirectory>
  103.         <resources>
  104.             <resource>
  105.                 <directory>C:\Fake-Path\src\main\resources</directory>
  106.             </resource>
  107.         </resources>
  108.         <testResources>
  109.             <testResource>
  110.                 <directory>C:\Fake-Path\src\test\resources</directory>
  111.             </testResource>
  112.         </testResources>
  113.         <directory>C:\Fake-Path\target</directory>
  114.         <finalName>MyFileName.ear</finalName>
  115.         <pluginManagement>
  116.             <plugins>
  117.                 <plugin>
  118.                     <artifactId>maven-antrun-plugin</artifactId>
  119.                     <version>1.3</version>
  120.                 </plugin>
  121.                 <plugin>
  122.                     <artifactId>maven-assembly-plugin</artifactId>
  123.                     <version>2.2-beta-5</version>
  124.                 </plugin>
  125.                 <plugin>
  126.                     <artifactId>maven-dependency-plugin</artifactId>
  127.                     <version>2.8</version>
  128.                 </plugin>
  129.                 <plugin>
  130.                     <artifactId>maven-release-plugin</artifactId>
  131.                     <version>2.3.2</version>
  132.                 </plugin>
  133.             </plugins>
  134.         </pluginManagement>
  135.         <plugins>
  136.             <plugin>
  137.                 <artifactId>maven-dependency-plugin</artifactId>
  138.                 <version>2.9</version>
  139.                 <executions>
  140.                     <execution>
  141.                         <id>copy-dependencies</id>
  142.                         <phase>package</phase>
  143.                         <goals>
  144.                             <goal>copy-dependencies</goal>
  145.                         </goals>
  146.                         <configuration>
  147.                             <outputDirectory>C:\Fake-Path\target</outputDirectory>
  148.                             <overWriteReleases>false</overWriteReleases>
  149.                             <overWriteSnapshots>false</overWriteSnapshots>
  150.                             <overWriteIfNewer>true</overWriteIfNewer>
  151.                             <includeGroupIds>My.group.ids</includeGroupIds>
  152.                         </configuration>
  153.                     </execution>
  154.                 </executions>
  155.             </plugin>
  156.             <plugin>
  157.                 <groupId>my.group.id.mavenplugins</groupId>
  158.                 <artifactId>my.artifact.id</artifactId>
  159.                 <version>1.0.1</version>
  160.                 <executions>
  161.                     <execution>
  162.                         <phase>package</phase>
  163.                         <goals>
  164.                             <goal>mygoal</goal>
  165.                         </goals>
  166.                         <configuration>
  167.                             <params>
  168.                                 <!-- My Params -->
  169.                             </params>
  170.                         </configuration>
  171.                     </execution>
  172.                 </executions>
  173.                 <configuration>
  174.                     <params>
  175.                         <!-- My Params -->
  176.                     </params>
  177.                 </configuration>
  178.             </plugin>
  179.             <plugin>
  180.                 <artifactId>maven-release-plugin</artifactId>
  181.                 <version>2.4</version>
  182.                 <configuration>
  183.                     <goals>clean package deploy</goals>
  184.                     <tagBase>MyTagBase</tagBase>
  185.                 </configuration>
  186.             </plugin>
  187.             <plugin>
  188.                 <groupId>org.codehaus.mojo</groupId>
  189.                 <artifactId>build-helper-maven-plugin</artifactId>
  190.                 <version>1.9.1</version>
  191.                 <executions>
  192.                     <execution>
  193.                         <id>attach-artifacts</id>
  194.                         <phase>package</phase>
  195.                         <goals>
  196.                             <goal>attach-artifact</goal>
  197.                         </goals>
  198.                         <configuration>
  199.                             <artifacts>
  200.                                 <artifact>
  201.                                     <file>C:\Fake-Path\target/MyFinalFile.ear</file>
  202.                                     <type>ear</type>
  203.                                 </artifact>
  204.                             </artifacts>
  205.                         </configuration>
  206.                     </execution>
  207.                 </executions>
  208.             </plugin>
  209.             <plugin>
  210.                 <artifactId>maven-clean-plugin</artifactId>
  211.                 <version>2.5</version>
  212.                 <executions>
  213.                     <execution>
  214.                         <id>default-clean</id>
  215.                         <phase>clean</phase>
  216.                         <goals>
  217.                             <goal>clean</goal>
  218.                         </goals>
  219.                     </execution>
  220.                 </executions>
  221.             </plugin>
  222.             <plugin>
  223.                 <artifactId>maven-install-plugin</artifactId>
  224.                 <version>2.4</version>
  225.                 <executions>
  226.                     <execution>
  227.                         <id>default-install</id>
  228.                         <phase>install</phase>
  229.                         <goals>
  230.                             <goal>install</goal>
  231.                         </goals>
  232.                     </execution>
  233.                 </executions>
  234.             </plugin>
  235.             <plugin>
  236.                 <artifactId>maven-deploy-plugin</artifactId>
  237.                 <version>2.7</version>
  238.                 <executions>
  239.                     <execution>
  240.                         <id>default-deploy</id>
  241.                         <phase>deploy</phase>
  242.                         <goals>
  243.                             <goal>deploy</goal>
  244.                         </goals>
  245.                     </execution>
  246.                 </executions>
  247.             </plugin>
  248.             <plugin>
  249.                 <artifactId>maven-site-plugin</artifactId>
  250.                 <version>3.3</version>
  251.                 <executions>
  252.                     <execution>
  253.                         <id>default-site</id>
  254.                         <phase>site</phase>
  255.                         <goals>
  256.                             <goal>site</goal>
  257.                         </goals>
  258.                         <configuration>
  259.                             <outputDirectory>C:\Fake-Path\target\site</outputDirectory>
  260.                             <reportPlugins>
  261.                                 <reportPlugin>
  262.                                     <groupId>org.apache.maven.plugins</groupId>
  263.                                     <artifactId>maven-project-info-reports-plugin</artifactId>
  264.                                 </reportPlugin>
  265.                             </reportPlugins>
  266.                         </configuration>
  267.                     </execution>
  268.                     <execution>
  269.                         <id>default-deploy</id>
  270.                         <phase>site-deploy</phase>
  271.                         <goals>
  272.                             <goal>deploy</goal>
  273.                         </goals>
  274.                         <configuration>
  275.                             <outputDirectory>C:\Fake-Path\target\site</outputDirectory>
  276.                             <reportPlugins>
  277.                                 <reportPlugin>
  278.                                     <groupId>org.apache.maven.plugins</groupId>
  279.                                     <artifactId>maven-project-info-reports-plugin</artifactId>
  280.                                 </reportPlugin>
  281.                             </reportPlugins>
  282.                         </configuration>
  283.                     </execution>
  284.                 </executions>
  285.                 <configuration>
  286.                     <outputDirectory>C:\Fake-Path\target\site</outputDirectory>
  287.                     <reportPlugins>
  288.                         <reportPlugin>
  289.                             <groupId>org.apache.maven.plugins</groupId>
  290.                             <artifactId>maven-project-info-reports-plugin</artifactId>
  291.                         </reportPlugin>
  292.                     </reportPlugins>
  293.                 </configuration>
  294.             </plugin>
  295.         </plugins>
  296.     </build>
  297.     <reporting>
  298.         <outputDirectory>C:\Fake-Path\target\site</outputDirectory>
  299.     </reporting>
  300. </project>
Advertisement
Add Comment
Please, Sign In to add comment