| <?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> |
| |
| <name>JPA Spec OSGi Bundle</name> |
| <groupId>org.eclipse.persistence</groupId> |
| <artifactId>javax.persistence</artifactId> |
| <version>2.2.0-SNAPSHOT</version> |
| <packaging>eclipse-plugin</packaging> |
| |
| <properties> |
| <!-- TOOL Properties --> |
| <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| <tycho.version>1.0.0</tycho.version> |
| <release.version>2.2.0</release.version> |
| <maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format> |
| <build.qualifier>v${maven.build.timestamp}</build.qualifier> |
| <forceContextQualifier>${build.qualifier}</forceContextQualifier> |
| <!-- BUILD Properties --> |
| <eclipse.drop>luna</eclipse.drop> |
| </properties> |
| |
| <organization> |
| <name>Eclipse.org - EclipseLink Project</name> |
| <url>http://www.eclipse.org/eclipselink</url> |
| </organization> |
| |
| <profiles> |
| <profile> |
| <id>tycho.default</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| <repositories> |
| <repository> |
| <id>Eclipse</id> |
| <layout>p2</layout> |
| <url>http://download.eclipse.org/releases/${eclipse.drop}</url> |
| </repository> |
| </repositories> |
| </profile> |
| </profiles> |
| |
| <build> |
| <defaultGoal>verify</defaultGoal> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-enforcer-plugin</artifactId> |
| <version>1.4.1</version> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-maven-plugin</artifactId> |
| <version>${tycho.version}</version> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-compiler-plugin</artifactId> |
| <version>${tycho.version}</version> |
| </plugin> |
| <!-- section added so tycho won't add the maven poms to the artifacts it builds --> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-packaging-plugin</artifactId> |
| <version>${tycho.version}</version> |
| <configuration> |
| <archive> |
| <addMavenDescriptor>false</addMavenDescriptor> |
| </archive> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>target-platform-configuration</artifactId> |
| <version>${tycho.version}</version> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-source-plugin</artifactId> |
| <version>${tycho.version}</version> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-enforcer-plugin</artifactId> |
| <configuration> |
| <rules> |
| <requireMavenVersion> |
| <version>3.0</version> |
| </requireMavenVersion> |
| <requireJavaVersion> |
| <version>1.8</version> |
| </requireJavaVersion> |
| </rules> |
| </configuration> |
| <executions> |
| <execution> |
| <goals> |
| <goal>enforce</goal> |
| </goals> |
| <id>enforce</id> |
| </execution> |
| </executions> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-compiler-plugin</artifactId> |
| <configuration> |
| <!-- Set to force OSGi Compatability settings (defaults to "false") (Only available as of Tycho 0.16.0) --> |
| <!-- requireJREPackageImports>true</requireJREPackageImports --> |
| <!-- Not needed. Compiler compatibility setting gotten from "Bundle-RequiredExecutionEnvironment" in manifest --> |
| <!-- source>1.6</source --> |
| <!-- target>1.6</target --> |
| <!-- compilerArgument>-nowarn</compilerArgument> <disable all warnings --> |
| <!-- compilerArgument>-warn:[+|-]warning_tokens_separated_by_comma - Specify the set of enabled warnings </compilerArgument --> |
| <!-- compilerArgument>-err:warning_tokens_separated_by_comma - convert exactly the listed warnings to errors </compilerArgument --> |
| <!-- compilerArgument>-err:+warning_tokens_separated_by_comma - convert additional warnings to errors</compilerArgument --> |
| <!-- compilerArgument>-err:-warning_tokens_separated_by_comma - remove specific warnings from being converted to errors </compilerArgument --> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-maven-plugin</artifactId> |
| <extensions>true</extensions> |
| <configuration> |
| <resolver>p2</resolver> |
| </configuration> |
| </plugin> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>target-platform-configuration</artifactId> |
| <configuration> |
| <resolver>p2</resolver> |
| <environments> |
| <environment> |
| <os>linux</os> |
| <ws>gtk</ws> |
| <arch>x86_64</arch> |
| </environment> |
| <environment> |
| <os>linux</os> |
| <ws>gtk</ws> |
| <arch>x86</arch> |
| </environment> |
| <environment> |
| <os>macosx</os> |
| <ws>carbon</ws> |
| <arch>x86</arch> |
| </environment> |
| <environment> |
| <os>macosx</os> |
| <ws>cocoa</ws> |
| <arch>x86</arch> |
| </environment> |
| <environment> |
| <os>macosx</os> |
| <ws>cocoa</ws> |
| <arch>x86_64</arch> |
| </environment> |
| <environment> |
| <os>win32</os> |
| <ws>win32</ws> |
| <arch>x86</arch> |
| </environment> |
| <environment> |
| <os>win32</os> |
| <ws>win32</ws> |
| <arch>x86_64</arch> |
| </environment> |
| </environments> |
| </configuration> |
| </plugin> |
| <!-- Mostly working source bundle generation --> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-source-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>plugin-source</id> |
| <phase>package</phase> |
| <goals> |
| <goal>plugin-source</goal> |
| </goals> |
| <configuration> |
| <finalName>${project.artifactId}.source_${release.version}.${build.qualifier}</finalName> |
| <sourceBundle>true</sourceBundle> |
| <sourceBundleSuffix>.source</sourceBundleSuffix> |
| <qualifier>${build.qualifier}</qualifier> |
| <additionalFileSets> |
| <fileSet> |
| <directory>${project.basedir}/resource/</directory> |
| <includes> |
| <include>**/*.html</include> |
| </includes> |
| </fileSet> |
| </additionalFileSets> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| <sourceDirectory>./src</sourceDirectory> |
| <resources> |
| <resource> |
| <directory>./resource</directory> |
| </resource> |
| </resources> |
| <finalName>${project.artifactId}_${release.version}.${build.qualifier}</finalName> |
| </build> |
| |
| </project> |