| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Copyright (c) 2012 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: |
| Stephan Leicht Vogt - initial implementation |
| --> |
| <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> |
| |
| <parent> |
| <groupId>org.eclipse.scout</groupId> |
| <artifactId>org.eclipse.scout.parent</artifactId> |
| <version>4.2.0-SNAPSHOT</version> |
| <relativePath>../org.eclipse.scout.parent</relativePath> |
| </parent> |
| |
| <artifactId>org.eclipse.scout.rt.rap.target</artifactId> |
| <packaging>eclipse-plugin</packaging> |
| <name>Eclipse Scout Rap Target</name> |
| |
| <properties> |
| <target-template>${basedir}/org.eclipse.scout.rt.rap.target_template.target</target-template> |
| <target-gen-file-dir>${basedir}/generated</target-gen-file-dir> |
| <target-gen-filename>${project.artifactId}.target</target-gen-filename> |
| <target-gen-file>${target-gen-file-dir}/${target-gen-filename}</target-gen-file> |
| <target-gen-repo-dir>${target-gen-file-dir}/${project.artifactId}.repo</target-gen-repo-dir> |
| <target-output>${basedir}/resources/${project.artifactId}.repo</target-output> |
| <scout-rt-rap-repo-target-location>${project.baseUri}../org.eclipse.scout.rt/org.eclipse.scout.rt.rap-repository/target/repository/</scout-rt-rap-repo-target-location> |
| </properties> |
| |
| <pluginRepositories> |
| <pluginRepository> |
| <id>jboss-releases</id> |
| <snapshots> |
| <enabled>false</enabled> |
| </snapshots> |
| <releases> |
| <enabled>true</enabled> |
| </releases> |
| <url>https://repository.jboss.org/nexus/content/repositories/releases/</url> |
| </pluginRepository> |
| <pluginRepository> |
| <id>jboss-snapshots</id> |
| <snapshots> |
| <enabled>true</enabled> |
| </snapshots> |
| <url>https://repository.jboss.org/nexus/content/repositories/snapshots/</url> |
| </pluginRepository> |
| </pluginRepositories> |
| |
| <profiles> |
| <profile> |
| <id>rap-target-build</id> |
| <activation> |
| <activeByDefault>true</activeByDefault> |
| </activation> |
| <build> |
| <pluginManagement> |
| <plugins> |
| <plugin> |
| <groupId>org.eclipse.tycho</groupId> |
| <artifactId>tycho-packaging-plugin</artifactId> |
| <version>${tycho.version}</version> |
| <configuration> |
| <strictBinIncludes>false</strictBinIncludes> |
| <format>yyyyMMdd-HHmm</format> |
| <timestampProvider>default</timestampProvider> |
| </configuration> |
| </plugin> |
| </plugins> |
| </pluginManagement> |
| |
| <plugins> |
| <plugin> |
| <artifactId>maven-clean-plugin</artifactId> |
| <version>2.6.1</version> |
| <executions> |
| <execution> |
| <id>auto-clean</id> |
| <phase>clean</phase> |
| <goals> |
| <goal>clean</goal> |
| </goals> |
| <configuration> |
| <filesets> |
| <fileset> |
| <directory>${target-gen-file-dir}</directory> |
| <includes> |
| <include>**/*</include> |
| </includes> |
| </fileset> |
| <fileset> |
| <directory>${target-output}</directory> |
| <includes> |
| <include>**/*</include> |
| </includes> |
| </fileset> |
| </filesets> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <groupId>com.google.code.maven-replacer-plugin</groupId> |
| <artifactId>replacer</artifactId> |
| <version>1.5.3</version> |
| <executions> |
| <execution> |
| <phase>generate-sources</phase> |
| <goals> |
| <goal>replace</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <ignoreMissingFile>true</ignoreMissingFile> |
| <file>${target-template}</file> |
| <outputFile>${target-gen-file}</outputFile> |
| <regex>false</regex> |
| <replacements> |
| <replacement> |
| <token>$SCOUT_RT_RAP_REPO_TARGET_LOCATION$</token> |
| <value>${scout-rt-rap-repo-target-location}</value> |
| </replacement> |
| </replacements> |
| </configuration> |
| </plugin> |
| |
| <plugin> |
| <groupId>org.jboss.tools.tycho-plugins</groupId> |
| <artifactId>target-platform-utils</artifactId> |
| <version>0.22.0</version> |
| <executions> |
| <execution> |
| <id>create-mirror-repo</id> |
| <phase>generate-resources</phase> |
| <goals> |
| <goal>mirror-target-to-repo</goal> |
| </goals> |
| <configuration> |
| <sourceTargetFile>${target-gen-file}</sourceTargetFile> |
| <outputRepository>${target-gen-repo-dir}</outputRepository> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| <plugin> |
| <artifactId>maven-resources-plugin</artifactId> |
| <version>2.6</version> |
| <executions> |
| <execution> |
| <id>copy-resources</id> |
| <phase>process-resources</phase> |
| <goals> |
| <goal>copy-resources</goal> |
| </goals> |
| <configuration> |
| <outputDirectory>${target-output}</outputDirectory> |
| <overwrite>true</overwrite> |
| <resources> |
| <resource> |
| <directory>${target-gen-repo-dir}</directory> |
| <filtering>false</filtering> |
| <includes> |
| <include>**/*.jar</include> |
| </includes> |
| <excludes> |
| <exclude>**/*.pack.gz</exclude> |
| </excludes> |
| </resource> |
| </resources> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| |
| </plugins> |
| </build> |
| </profile> |
| </profiles> |
| </project> |