| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright (c) 2015 BSI Business Systems Integration AG. |
| All rights reserved. This program and the accompanying materials |
| are made available under the terms of the Eclipse Public License v1.0 |
| which accompanies this distribution, and is available at |
| http://www.eclipse.org/legal/epl-v10.html |
| |
| Contributors: |
| BSI Business Systems Integration AG - initial API and implementation |
| --> |
| <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> |
| |
| <parent> |
| <groupId>org.eclipse.scout</groupId> |
| <artifactId>maven_plugin_config-master</artifactId> |
| <version>1.6.5</version> |
| <relativePath>../maven_plugin_config-master</relativePath> |
| </parent> |
| |
| <artifactId>maven_sdk_plugin_config-master</artifactId> |
| <packaging>pom</packaging> |
| |
| <properties> |
| <build.timestamp>${maven.build.timestamp}</build.timestamp> |
| <maven.build.timestamp.format>yyyyMMdd-HHmm</maven.build.timestamp.format> |
| </properties> |
| |
| <build> |
| <resources> |
| <resource> |
| <directory>src/main/resources</directory> |
| </resource> |
| <resource> |
| <directory>.</directory> |
| <includes> |
| <include>plugin.xml</include> |
| <include>about.html</include> |
| <include>epl-v10.html</include> |
| <include>schema/**</include> |
| <include>icons/**</include> |
| </includes> |
| </resource> |
| </resources> |
| |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.felix</groupId> |
| <artifactId>maven-bundle-plugin</artifactId> |
| <extensions>true</extensions> |
| <configuration> |
| <manifestLocation>META-INF</manifestLocation> |
| <instructions> |
| <Bundle-SymbolicName>${bundle.symbolicName};singleton:=true</Bundle-SymbolicName> |
| <Bundle-Name>${project.name}</Bundle-Name> |
| <Bundle-Version>${project.version}</Bundle-Version> |
| <Bundle-RequiredExecutionEnvironment>JavaSE-1.7</Bundle-RequiredExecutionEnvironment> |
| <Export-Package>${bundle.namespace}.*;version="${bundle.version}"</Export-Package> |
| <Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy> |
| <!-- Do not calculate the uses: directive. --> |
| <_nouses>true</_nouses> |
| <!-- Include sources --> |
| <_sources>false</_sources> |
| <!-- Replacement for the .SNAPSHOT qualifier used in maven. --> |
| <_snapshot>${build.timestamp}</_snapshot> |
| </instructions> |
| <obrRepository>NONE</obrRepository> |
| </configuration> |
| </plugin> |
| |
| <!-- source maven plugin creates the source bundle and adds manifest --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <configuration> |
| <excludeResources>true</excludeResources> |
| <excludes> |
| <exclude>**/jars/**</exclude> |
| </excludes> |
| <archive> |
| <manifestEntries> |
| <Bundle-ManifestVersion>2</Bundle-ManifestVersion> |
| <Bundle-Name>${project.name}</Bundle-Name> |
| <Bundle-SymbolicName>${bundle.symbolicName}.source</Bundle-SymbolicName> |
| <Bundle-Vendor>${project.organization.name}</Bundle-Vendor> |
| <Bundle-Version>${parsedVersion.osgiVersion}</Bundle-Version> |
| <Eclipse-SourceBundle>${bundle.symbolicName};version="${parsedVersion.osgiVersion}";roots:="."</Eclipse-SourceBundle> |
| </manifestEntries> |
| </archive> |
| </configuration> |
| <executions> |
| <execution> |
| <id>attach-sources</id> |
| <goals> |
| <goal>jar-no-fork</goal> |
| </goals> |
| <phase>verify</phase> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| |
| <plugins> |
| <!-- Build helper maven plugin sets the parsedVersion.osgiVersion property --> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>set-osgi-version</id> |
| <goals> |
| <goal>parse-version</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <!-- source maven plugin creates the source bundle and adds manifest --> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-source-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>attach-sources</id> |
| <goals> |
| <goal>jar-no-fork</goal> |
| </goals> |
| <phase>verify</phase> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| |
| <reporting> |
| <plugins /> |
| </reporting> |
| |
| <profiles> |
| <profile> |
| <id>fixture_src_folder</id> |
| <activation> |
| <file> |
| <exists>${basedir}/src/main/fixture</exists> |
| </file> |
| </activation> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>build-helper-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>add-source</id> |
| <goals> |
| <goal>add-source</goal> |
| </goals> |
| <phase>generate-sources</phase> |
| <configuration> |
| <sources> |
| <source>src/main/fixture</source> |
| </sources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>include_manifest_in_jar</id> |
| <activation> |
| <file> |
| <exists>${basedir}/META-INF/MANIFEST.MF</exists> |
| </file> |
| </activation> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>maven-jar-plugin</artifactId> |
| <configuration> |
| <archive> |
| <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> |
| </archive> |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>eclipse-pack</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.tycho.extras</groupId> |
| <artifactId>tycho-pack200a-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>pack200-normalize</id> |
| <goals> |
| <goal>normalize</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.eclipse.tycho.extras</groupId> |
| <artifactId>tycho-pack200b-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>pack200-pack</id> |
| <goals> |
| <goal>pack</goal> |
| </goals> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |