Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--
- ROOT pom.xml
- -->
- <?xml version="1.0" encoding="UTF-8"?>
- <project
- xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
- xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <modelVersion>4.0.0</modelVersion>
- <packaging>pom</packaging>
- <groupId>de.andre.osgitest</groupId>
- <artifactId>osgitest-parent</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <prerequisites>
- <maven>3.0</maven>
- </prerequisites>
- <properties>
- <tycho-version>0.23.1</tycho-version>
- <tycho-groupid>org.eclipse.tycho</tycho-groupid>
- <tycho.showEclipseLog>true</tycho.showEclipseLog>
- <project-build-sourceEncoding>UTF-8</project-build-sourceEncoding>
- <orbit-site>http://download.eclipse.org/tools/orbit/downloads/drops/R20140525021250/repository/</orbit-site>
- <mars-site>http://download.eclipse.org/releases/mars/</mars-site>
- <!-- Maven Plugin Versions -->
- <assembly-version>2.5.5</assembly-version>
- <replacer-version>1.4.1</replacer-version>
- <!-- Project specific properties -->
- <war-filename>osgitest</war-filename>
- <parent-dir>${basedir}</parent-dir>
- <output-directory>${basedir}/target/WEB-INF</output-directory>
- </properties>
- <modules>
- <module>de.andre.osgitest</module>
- <module>de.andre.osgitest.feature</module>
- <module>de.andre.osgitest.product</module>
- </modules>
- <repositories>
- <repository>
- <id>mars</id>
- <layout>p2</layout>
- <url>${mars-site}</url>
- </repository>
- <repository>
- <id>orbit</id>
- <layout>p2</layout>
- <url>${orbit-site}</url>
- </repository>
- </repositories>
- <build>
- <plugins>
- <!-- Enable Tycho -->
- <plugin>
- <groupId>${tycho-groupid}</groupId>
- <artifactId>tycho-maven-plugin</artifactId>
- <version>${tycho-version}</version>
- <extensions>true</extensions>
- </plugin>
- <!-- Configure Source Encoding -->
- <plugin>
- <groupId>${tycho-groupid}</groupId>
- <artifactId>tycho-compiler-plugin</artifactId>
- <version>${tycho-version}</version>
- <configuration>
- <encoding>${project.build.sourceEncoding}</encoding>
- </configuration>
- </plugin>
- <!-- Configure tycho to use p2 to get the target -->
- <plugin>
- <groupId>${tycho-groupid}</groupId>
- <artifactId>target-platform-configuration</artifactId>
- <version>${tycho-version}</version>
- <configuration>
- <resolver>p2</resolver>
- <pomDependencies>consider</pomDependencies>
- <ignoreTychoRepositories>true</ignoreTychoRepositories>
- <target>
- <artifact>
- <groupId>${project.groupId}</groupId>
- <artifactId>${project.artifactId}</artifactId>
- <version>${project.version}</version>
- <classifier>${project.relativePath}/../osgitest</classifier>
- </artifact>
- <dependency-resolution>
- <optionalDependencies>ignore</optionalDependencies>
- </dependency-resolution>
- </target>
- <environments>
- <environment>
- <os>linux</os>
- <ws>gtk</ws>
- <arch>x86</arch>
- </environment>
- </environments>
- </configuration>
- </plugin>
- <!-- Configure qualifier replacement -->
- <plugin>
- <groupId>${tycho-groupid}</groupId>
- <artifactId>tycho-packaging-plugin</artifactId>
- <version>${tycho-version}</version>
- <configuration>
- <format>yyyyMMdd-HHmm</format>
- </configuration>
- </plugin>
- </plugins>
- </build>
- </project>
- <!--
- de.andre.osgitest pom.xml
- -->
- <?xml version="1.0" encoding="UTF-8"?>
- <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">
- <modelVersion>4.0.0</modelVersion>
- <packaging>eclipse-plugin</packaging>
- <groupId>de.andre.osgitest</groupId>
- <artifactId>de.andre.osgitest</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <parent>
- <groupId>de.andre.osgitest</groupId>
- <artifactId>osgitest-parent</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </parent>
- </project>
- <!--
- de.andre.osgitest.feature pom.xml
- -->
- <?xml version="1.0" encoding="UTF-8"?>
- <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">
- <modelVersion>4.0.0</modelVersion>
- <packaging>eclipse-feature</packaging>
- <groupId>de.andre.osgitest</groupId>
- <artifactId>de.andre.osgitest.feature</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <parent>
- <groupId>de.andre.osgitest</groupId>
- <artifactId>osgitest-parent</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </parent>
- </project>
- <!--
- de.andre.osgitest.product pom.xml
- -->
- <?xml version="1.0" encoding="UTF-8"?>
- <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">
- <modelVersion>4.0.0</modelVersion>
- <packaging>eclipse-repository</packaging>
- <groupId>de.andre.osgitest</groupId>
- <artifactId>de.andre.osgitest.product</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- <parent>
- <groupId>de.andre.osgitest</groupId>
- <artifactId>osgitest-parent</artifactId>
- <version>0.0.1-SNAPSHOT</version>
- </parent>
- <build>
- <plugins>
- <!-- Configure the p2 director -->
- <plugin>
- <groupId>${tycho-groupid}</groupId>
- <artifactId>tycho-p2-director-plugin</artifactId>
- <version>${tycho-version}</version>
- <executions>
- <execution>
- <id>materialize-products</id>
- <goals>
- <goal>materialize-products</goal>
- </goals>
- </execution>
- <execution>
- <id>archive-products</id>
- <goals>
- <goal>archive-products</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <!-- Remove javax.servlet from the bundles.info -->
- <plugin>
- <groupId>com.google.code.maven-replacer-plugin</groupId>
- <artifactId>maven-replacer-plugin</artifactId>
- <version>${replacer-version}</version>
- <executions>
- <execution>
- <phase>verify</phase>
- <goals>
- <goal>replace</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <file>target/products/${project.artifactId}/linux/gtk/x86/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info</file>
- <token>javax\.servlet.*false|org\.hamcrest.*false|org\.junit.*false</token>
- <regexFlags>
- <regexFlag>CASE_INSENSITIVE</regexFlag>
- <regexFlag>UNIX_LINES</regexFlag>
- </regexFlags>
- </configuration>
- </plugin>
- <!-- Configure the assembly plugin to zip the war file -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-assembly-plugin</artifactId>
- <version>${assembly-version}</version>
- <configuration>
- <descriptors>
- <descriptor>assembly.xml</descriptor>
- </descriptors>
- <!-- Configure the war's filename -->
- <finalName>${war-filename}</finalName>
- <appendAssemblyId>false</appendAssemblyId>
- </configuration>
- <executions>
- <execution>
- <id>make-assembly</id>
- <phase>verify</phase>
- <goals>
- <goal>single</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement