Advertisement
drenad

Untitled

Aug 7th, 2015
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.42 KB | None | 0 0
  1. <!--
  2.  
  3.     ROOT pom.xml
  4.  
  5. -->
  6. <?xml version="1.0" encoding="UTF-8"?>
  7. <project
  8.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
  9.     xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  10.  
  11.     <modelVersion>4.0.0</modelVersion>
  12.     <packaging>pom</packaging>
  13.    
  14.     <groupId>de.andre.osgitest</groupId>
  15.     <artifactId>osgitest-parent</artifactId>
  16.     <version>0.0.1-SNAPSHOT</version>
  17.  
  18.     <prerequisites>
  19.         <maven>3.0</maven>
  20.     </prerequisites>
  21.  
  22.  
  23.     <properties>
  24.         <tycho-version>0.23.1</tycho-version>
  25.         <tycho-groupid>org.eclipse.tycho</tycho-groupid>
  26.         <tycho.showEclipseLog>true</tycho.showEclipseLog>
  27.         <project-build-sourceEncoding>UTF-8</project-build-sourceEncoding>
  28.         <orbit-site>http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository/</orbit-site>
  29.         <mars-site>http://download.eclipse.org/releases/mars/</mars-site>
  30.  
  31.         <!-- Maven Plugin Versions -->
  32.         <assembly-version>2.5.5</assembly-version>
  33.         <replacer-version>1.4.1</replacer-version>
  34.        
  35.         <!-- Project specific properties -->
  36.         <war-filename>osgitest</war-filename>
  37.         <parent-dir>${basedir}</parent-dir>
  38.         <output-directory>${basedir}/target/WEB-INF</output-directory>
  39.     </properties>
  40.  
  41.     <modules>
  42.         <module>de.andre.osgitest</module>
  43.         <module>de.andre.osgitest.feature</module>
  44.         <module>de.andre.osgitest.product</module>
  45.     </modules>
  46.  
  47.     <repositories>
  48.         <repository>
  49.             <id>mars</id>
  50.             <layout>p2</layout>
  51.             <url>${mars-site}</url>
  52.         </repository>
  53.         <repository>
  54.             <id>orbit</id>
  55.             <layout>p2</layout>
  56.             <url>${orbit-site}</url>
  57.         </repository>
  58.     </repositories>
  59.  
  60.     <build>
  61.         <plugins>
  62.             <!-- Enable Tycho -->
  63.             <plugin>
  64.                 <groupId>${tycho-groupid}</groupId>
  65.                 <artifactId>tycho-maven-plugin</artifactId>
  66.                 <version>${tycho-version}</version>
  67.                 <extensions>true</extensions>
  68.             </plugin>
  69.  
  70.             <!-- Configure Source Encoding -->
  71.             <plugin>
  72.                 <groupId>${tycho-groupid}</groupId>
  73.                 <artifactId>tycho-compiler-plugin</artifactId>
  74.                 <version>${tycho-version}</version>
  75.                 <configuration>
  76.                     <encoding>${project.build.sourceEncoding}</encoding>
  77.                 </configuration>
  78.             </plugin>
  79.  
  80.             <!-- Configure tycho to use p2 to get the target -->
  81.             <plugin>
  82.                 <groupId>${tycho-groupid}</groupId>
  83.                 <artifactId>target-platform-configuration</artifactId>
  84.                 <version>${tycho-version}</version>
  85.                 <configuration>
  86.                     <resolver>p2</resolver>
  87.                     <pomDependencies>consider</pomDependencies>
  88.                     <ignoreTychoRepositories>true</ignoreTychoRepositories>
  89.                     <target>
  90.                     <artifact>
  91.                         <groupId>${project.groupId}</groupId>
  92.                         <artifactId>${project.artifactId}</artifactId>
  93.                         <version>${project.version}</version>
  94.                         <classifier>${project.relativePath}/../osgitest</classifier>
  95.                     </artifact>
  96.                     <dependency-resolution>
  97.                         <optionalDependencies>ignore</optionalDependencies>
  98.                     </dependency-resolution>
  99.                     </target>
  100.                     <environments>
  101.                     <environment>
  102.                         <os>linux</os>
  103.                         <ws>gtk</ws>
  104.                         <arch>x86</arch>
  105.                     </environment>
  106.                     </environments>
  107.                 </configuration>
  108.             </plugin>
  109.  
  110.             <!-- Configure qualifier replacement -->
  111.             <plugin>
  112.                 <groupId>${tycho-groupid}</groupId>
  113.                 <artifactId>tycho-packaging-plugin</artifactId>
  114.                 <version>${tycho-version}</version>
  115.                 <configuration>
  116.                     <format>yyyyMMdd-HHmm</format>
  117.                 </configuration>
  118.             </plugin>
  119.  
  120.            
  121.         </plugins>
  122.     </build>
  123. </project>
  124.  
  125. <!--
  126.  
  127.     de.andre.osgitest pom.xml
  128.  
  129. -->
  130. <?xml version="1.0" encoding="UTF-8"?>
  131. <project
  132.     xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  133.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  134.  
  135.     <modelVersion>4.0.0</modelVersion>
  136.     <packaging>eclipse-plugin</packaging>
  137.  
  138.     <groupId>de.andre.osgitest</groupId>
  139.     <artifactId>de.andre.osgitest</artifactId>
  140.     <version>0.0.1-SNAPSHOT</version>
  141.  
  142.     <parent>
  143.         <groupId>de.andre.osgitest</groupId>
  144.         <artifactId>osgitest-parent</artifactId>
  145.         <version>0.0.1-SNAPSHOT</version>
  146.     </parent>
  147.  
  148. </project>
  149.  
  150.  
  151. <!--
  152.  
  153.     de.andre.osgitest.feature pom.xml
  154.  
  155. -->
  156. <?xml version="1.0" encoding="UTF-8"?>
  157. <project
  158.     xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  159.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  160.  
  161.     <modelVersion>4.0.0</modelVersion>
  162.     <packaging>eclipse-feature</packaging>
  163.    
  164.     <groupId>de.andre.osgitest</groupId>
  165.     <artifactId>de.andre.osgitest.feature</artifactId>
  166.     <version>0.0.1-SNAPSHOT</version>
  167.  
  168.     <parent>
  169.         <groupId>de.andre.osgitest</groupId>
  170.         <artifactId>osgitest-parent</artifactId>
  171.         <version>0.0.1-SNAPSHOT</version>
  172.     </parent>
  173.  
  174. </project>
  175.  
  176.  
  177. <!--
  178.  
  179.     de.andre.osgitest.product pom.xml
  180.  
  181. -->
  182. <?xml version="1.0" encoding="UTF-8"?>
  183. <project
  184.     xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  185.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  186.  
  187.     <modelVersion>4.0.0</modelVersion>
  188.     <packaging>eclipse-repository</packaging>
  189.    
  190.     <groupId>de.andre.osgitest</groupId>
  191.     <artifactId>de.andre.osgitest.product</artifactId>
  192.     <version>0.0.1-SNAPSHOT</version>
  193.  
  194.     <parent>
  195.         <groupId>de.andre.osgitest</groupId>
  196.         <artifactId>osgitest-parent</artifactId>
  197.         <version>0.0.1-SNAPSHOT</version>
  198.     </parent>
  199.  
  200.     <build>
  201.         <plugins>
  202.             <!-- Configure the p2 director -->
  203.             <plugin>
  204.                 <groupId>${tycho-groupid}</groupId>
  205.                 <artifactId>tycho-p2-director-plugin</artifactId>
  206.                 <version>${tycho-version}</version>
  207.                 <executions>
  208.                     <execution>
  209.                         <id>materialize-products</id>
  210.                         <goals>
  211.                             <goal>materialize-products</goal>
  212.                         </goals>
  213.                     </execution>
  214.                     <execution>
  215.                         <id>archive-products</id>
  216.                         <goals>
  217.                             <goal>archive-products</goal>
  218.                         </goals>
  219.                     </execution>
  220.                 </executions>
  221.             </plugin>
  222.  
  223.             <!-- Remove javax.servlet from the bundles.info -->
  224.             <plugin>
  225.                 <groupId>com.google.code.maven-replacer-plugin</groupId>
  226.                 <artifactId>maven-replacer-plugin</artifactId>
  227.                 <version>${replacer-version}</version>
  228.                 <executions>
  229.                     <execution>
  230.                         <phase>verify</phase>
  231.                         <goals>
  232.                             <goal>replace</goal>
  233.                         </goals>
  234.                     </execution>
  235.                 </executions>
  236.                 <configuration>
  237.                     <file>target/products/${project.artifactId}/linux/gtk/x86/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info</file>
  238.                     <token>javax\.servlet.*false|org\.hamcrest.*false|org\.junit.*false</token>
  239.                     <regexFlags>
  240.                         <regexFlag>CASE_INSENSITIVE</regexFlag>
  241.                         <regexFlag>UNIX_LINES</regexFlag>
  242.                     </regexFlags>
  243.                 </configuration>
  244.             </plugin>
  245.  
  246.             <!-- Configure the assembly plugin to zip the war file -->
  247.             <plugin>
  248.                 <groupId>org.apache.maven.plugins</groupId>
  249.                 <artifactId>maven-assembly-plugin</artifactId>
  250.                 <version>${assembly-version}</version>
  251.                 <configuration>
  252.                     <descriptors>
  253.                         <descriptor>assembly.xml</descriptor>
  254.                     </descriptors>
  255.                     <!-- Configure the war's filename -->
  256.                     <finalName>${war-filename}</finalName>
  257.                     <appendAssemblyId>false</appendAssemblyId>
  258.                 </configuration>
  259.                 <executions>
  260.                     <execution>
  261.                         <id>make-assembly</id>
  262.                         <phase>verify</phase>
  263.                         <goals>
  264.                             <goal>single</goal>
  265.                         </goals>
  266.                     </execution>
  267.                 </executions>
  268.             </plugin>
  269.         </plugins>
  270.     </build>
  271. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement