Guest User

Untitled

a guest
Apr 25th, 2017
252
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"
  2.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3.     <modelVersion>4.0.0</modelVersion>
  4.     <groupId>my.org</groupId>
  5.     <artifactId>myproj</artifactId>
  6.     <packaging>${packaging.type}</packaging>
  7.     <version>1.0-SNAPSHOT</version>
  8.     <name>My Project</name>
  9.     <profiles>
  10.         <profile>
  11.             <id>dev</id>
  12.             <properties>
  13.                 <packaging.type>war</packaging.type>
  14.                 <outputFileNameMapping>@{artifactId}@.@{extension}@</outputFileNameMapping>
  15.             </properties>
  16.         </profile>
  17.         <profile>
  18.             <id>uat</id>
  19.             <activation>
  20.                 <activeByDefault>true</activeByDefault>
  21.             </activation>
  22.             <properties>
  23.                 <packaging.type>jar</packaging.type>
  24.                 <outputFileNameMapping>@{artifactId}@.@{extension}@.@{version}@</outputFileNameMapping>
  25.             </properties>
  26.         </profile>
  27.     </profiles>
  28.     <dependencies>
  29.         <dependency>
  30.             <groupId>junit</groupId>
  31.             <artifactId>junit</artifactId>
  32.             <version>4.11</version>
  33.             <scope>test</scope>
  34.         </dependency>
  35.         <dependency>
  36.             <groupId>org.jopendocument</groupId>
  37.             <artifactId>jOpenDocument</artifactId>
  38.             <version>1.3</version>
  39.         </dependency>
  40.         <dependency>
  41.             <groupId>javax.servlet</groupId>
  42.             <artifactId>javax.servlet-api</artifactId>
  43.             <version>3.1.0</version>
  44.             <scope>provided</scope>
  45.         </dependency>
  46.         <dependency>
  47.             <groupId>org.hibernate</groupId>
  48.             <artifactId>hibernate-core</artifactId>
  49.             <version>3.6.10.Final</version>
  50.         </dependency>
  51.         <dependency>
  52.             <groupId>org.datanucleus</groupId>
  53.             <artifactId>datanucleus-api-jdo</artifactId>
  54.             <version>5.0.7</version>
  55.         </dependency>
  56.         <dependency>
  57.             <groupId>javax.jdo</groupId>
  58.             <artifactId>jdo-api</artifactId>
  59.             <version>3.1</version>
  60.         </dependency>
  61.         <dependency>
  62.             <groupId>org.datanucleus</groupId>
  63.             <artifactId>javax.persistence</artifactId>
  64.             <version>2.1.2</version>
  65.         </dependency>
  66.         <dependency>
  67.             <groupId>org.datanucleus</groupId>
  68.             <artifactId>javax.jdo</artifactId>
  69.             <version>3.2.0-m1</version>
  70.         </dependency>
  71.         <dependency>
  72.             <groupId>org.datanucleus</groupId>
  73.             <artifactId>datanucleus-core</artifactId>
  74.             <version>5.0.7</version>
  75.         </dependency>
  76.         <dependency>
  77.             <groupId>org.datanucleus</groupId>
  78.             <artifactId>datanucleus-odf</artifactId>
  79.             <version>5.0.2</version>
  80.         </dependency>
  81.         <dependency>
  82.             <groupId>org.datanucleus</groupId>
  83.             <artifactId>datanucleus-enhancer</artifactId>
  84.             <version>3.1.1</version>
  85.         </dependency>
  86.         <dependency>
  87.             <groupId>org.apache.commons</groupId>
  88.             <artifactId>commons-lang3</artifactId>
  89.             <version>3.5</version>
  90.         </dependency>
  91.         <dependency>
  92.             <groupId>mysql</groupId>
  93.             <artifactId>mysql-connector-java</artifactId>
  94.             <version>6.0.6</version>
  95.         </dependency>
  96.         <dependency>
  97.             <groupId>org.tmatesoft.svnkit</groupId>
  98.             <artifactId>svnkit</artifactId>
  99.             <version>1.8.11</version>
  100.         </dependency>
  101.         <dependency>
  102.             <groupId>my.org</groupId>
  103.             <artifactId>app1-temp</artifactId>
  104.             <version>1.5-20170412.100057-50</version>
  105.         </dependency>
  106.         <dependency>
  107.             <groupId>com.sun.xml.bind</groupId>
  108.             <artifactId>jaxb-impl</artifactId>
  109.             <version>2.2.4-1</version>
  110.         </dependency>
  111.         <dependency>
  112.             <groupId>org.antlr</groupId>
  113.             <artifactId>antlr4</artifactId>
  114.             <version>4.5</version>
  115.         </dependency>
  116.     </dependencies>
  117.     <repositories>
  118.         <repository>
  119.             <id>myorg-snapshots</id>
  120.             <name>myorg Local Snapshot-Repo</name>
  121.             <url>http://10.1.2.12:8081/nexus/content/repositories/myorg-snapshots/</url>
  122.         </repository>
  123.         <repository>
  124.             <id>myorg-release</id>
  125.             <name>myorg Local Release-Repo</name>
  126.             <url>http://10.1.2.12:8081/nexus/content/repositories/myorg-release/</url>
  127.         </repository>
  128.     </repositories>
  129.     <build>
  130.         <finalName>myapp</finalName>
  131.         <pluginManagement>
  132.             <plugins>
  133.                 <plugin>
  134.                     <groupId>org.apache.maven.plugins</groupId>
  135.                     <artifactId>maven-compiler-plugin</artifactId>
  136.                     <version>2.1</version>
  137.                     <configuration>
  138.                         <source>1.8</source>
  139.                         <target>1.8</target>
  140.                     </configuration>
  141.                 </plugin>
  142.                 <plugin>
  143.                     <groupId>org.datanucleus</groupId>
  144.                     <artifactId>maven-datanucleus-plugin</artifactId>
  145.                     <version>1.1.0</version>
  146.                     <configuration>
  147.                         <mappingIncludes>**/*.class</mappingIncludes>
  148.                         <verbose>true</verbose>
  149.                         <enhancerName>ASM</enhancerName>
  150.                         <api>JPA</api>
  151.                     </configuration>
  152.                     <executions>
  153.                         <execution>
  154.                             <phase>compile</phase>
  155.                             <goals>
  156.                                 <goal>enhance</goal>
  157.                             </goals>
  158.                         </execution>
  159.                     </executions>
  160.                 </plugin>
  161.                 <plugin>
  162.                     <groupId>org.flywaydb</groupId>
  163.                     <artifactId>flyway-maven-plugin</artifactId>
  164.                     <version>4.1.2</version>
  165.                     <executions>
  166.                         <execution>
  167.                             <id>app2db-migration</id>
  168.                             <phase>compile</phase>
  169.                             <goals>
  170.                                 <goal>migrate</goal>
  171.                             </goals>
  172.                             <configuration>
  173.                                 <url>jdbc:postgresql://localhost:5432/myorg_cd</url>
  174.                                 <user>postgres</user>
  175.                                 <password>postgres</password>
  176.                                 <locations>
  177.                                     <location>
  178.                                         filesystem:src/main/resources/db/migration/myorg
  179.                                     </location>
  180.                                 </locations>
  181.                                 <placeholders>
  182.                                     <myorg_owner>postgres</myorg_owner>
  183.                                 </placeholders>
  184.                             </configuration>
  185.                         </execution>
  186.                         <execution>
  187.                             <id>appdb-migration</id>
  188.                             <phase>compile</phase>
  189.                             <goals>
  190.                                 <goal>migrate</goal>
  191.                             </goals>
  192.                             <configuration>
  193.                                 <url>jdbc:postgresql://localhost:5432/myorg_cd</url>
  194.                                 <user>postgres</user>
  195.                                 <password>postgres</password>
  196.                                 <locations>
  197.                                     <location>filesystem:src/main/resources/db/migration/myorg</location>
  198.                                 </locations>
  199.                                 <validateOnMigrate>false</validateOnMigrate>
  200.                             </configuration>
  201.                         </execution>
  202.                     </executions>
  203.                     <dependencies>
  204.                         <dependency>
  205.                             <groupId>org.postgresql</groupId>
  206.                             <artifactId>postgresql</artifactId>
  207.                             <version>9.4.1212</version>
  208.                         </dependency>
  209.                     </dependencies>
  210.                 </plugin>
  211.                 <plugin>
  212.                     <groupId>org.apache.maven.plugins</groupId>
  213.                     <artifactId>maven-project-info-reports-plugin</artifactId>
  214.                     <configuration>
  215.                         <dependencyLocationsEnabled>false</dependencyLocationsEnabled>
  216.                     </configuration>
  217.                 </plugin>
  218.             </plugins>
  219.         </pluginManagement>
  220.         <resources>
  221.             <resource>
  222.                 <directory>src/main/</directory>
  223.                 <includes>
  224.                     <include>webapp/admin/**/*</include>
  225.                     <include>webapp/config/**/*</include>
  226.                     <include>webapp/resources/**/*</include>
  227.                     <include>webapp/wsdl/**/*</include>
  228.                 </includes>
  229.             </resource>
  230.             <resource>
  231.                 <directory>src/main/resources</directory>
  232.             </resource>
  233.         </resources>
  234.         <plugins>
  235.             <plugin>
  236.                 <groupId>org.apache.maven.plugins</groupId>
  237.                 <artifactId>maven-jar-plugin</artifactId>
  238.                 <version>3.0.2</version>
  239.                 <configuration>
  240.                     <archive>
  241.                         <manifestFile>src/main/webapp/META-INF/MANIFEST.MF</manifestFile>
  242.                     </archive>
  243.                 </configuration>
  244.                 <executions>
  245.                     <execution>
  246.                         <goals>
  247.                             <goal>test-jar</goal>
  248.                         </goals>
  249.                     </execution>
  250.                 </executions>
  251.             </plugin>
  252.             <plugin>
  253.                 <groupId>org.apache.maven.plugins</groupId>
  254.                 <artifactId>maven-war-plugin</artifactId>
  255.                 <version>3.0.0</version>
  256.                 <configuration>
  257.                     <outputFileNameMapping>${outputFileNameMapping}</outputFileNameMapping>
  258.                     <archive>
  259.                         <manifestFile>src/main/webapp/META-INF/MANIFEST.MF</manifestFile>
  260.                     </archive>
  261.                 </configuration>
  262.             </plugin>
  263.             <plugin>
  264.                 <groupId>org.apache.tomcat.maven</groupId>
  265.                 <artifactId>tomcat7-maven-plugin</artifactId>
  266.                 <version>2.2</version>
  267.                 <configuration>
  268.                     <url>http://10.1.2.12:8080/manager/text</url>
  269.                     <server>tm12</server>
  270.                     <server>tomcat</server>
  271.                     <username>admin</username>
  272.                     <password>admin</password>
  273.                     <path>/${project.artifactId}</path>
  274.                 </configuration>
  275.             </plugin>
  276.         </plugins>
  277.     </build>
  278.     <distributionManagement>
  279.         <snapshotRepository>
  280.             <id>myorg-snapshots</id>
  281.             <url>http://10.1.2.12:8081/nexus/content/repositories/myorg-snapshots</url>
  282.         </snapshotRepository>
  283.     </distributionManagement>
  284.     <properties>
  285.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  286.     </properties>
  287. </project>
Add Comment
Please, Sign In to add comment