| <?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> |
| <parent> |
| <artifactId>org.eclipse.scada.core-parent</artifactId> |
| <groupId>org.eclipse.scada.core</groupId> |
| <version>0.2.1.RC3</version> |
| <relativePath>../org.eclipse.scada.core-parent</relativePath> |
| </parent> |
| |
| <groupId>org.eclipse.scada.core</groupId> |
| <artifactId>org.eclipse.scada.core.p2-incubation</artifactId> |
| <packaging>eclipse-repository</packaging> |
| |
| <profiles> |
| |
| <profile> |
| <id>deb</id> |
| <build> |
| <plugins> |
| <plugin> |
| <artifactId>jdeb</artifactId> |
| <groupId>org.vafer</groupId> |
| <executions> |
| <execution> |
| <phase>package</phase> |
| <goals> |
| <goal>jdeb</goal> |
| </goals> |
| <configuration> |
| <dataSet> |
| <data> |
| <src>target/repository</src> |
| <type>directory</type> |
| <mapper> |
| <type>perm</type> |
| <prefix>/usr/share/eclipsescada/p2/${project.groupId}</prefix> |
| </mapper> |
| </data> |
| </dataSet> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| <profile> |
| <id>rpm</id> |
| |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.codehaus.mojo</groupId> |
| <artifactId>rpm-maven-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>generate-rpm</id> |
| <goals> |
| <goal>rpm</goal> |
| </goals> |
| </execution> |
| </executions> |
| <configuration> |
| <copyright>EPL</copyright> |
| <distribution>Eclipse SCADA ${project.version} (Incubation)</distribution> |
| <group>Application/Misc</group> |
| <packager>Eclipse SCADA Project</packager> |
| <changelogFile>rpm/changelog</changelogFile> |
| <defineStatements> |
| <!-- <defineStatement>_unpackaged_files_terminate_build 0</defineStatement> --> |
| </defineStatements> |
| <requires> |
| <require>org.eclipse.scada.external.p2-incubation</require> |
| <require>org.eclipse.scada.utils.p2-incubation</require> |
| <require>org.eclipse.scada.base.p2-incubation</require> |
| <require>org.eclipse.scada.protocols.p2-incubation</require> |
| </requires> |
| <mappings> |
| <mapping> |
| <directory>/usr/share/eclipsescada/p2/${project.groupId}</directory> |
| <filemode>0755</filemode> |
| <username>root</username> |
| <groupname>root</groupname> |
| <sources> |
| <source> |
| <location>target/repository</location> |
| </source> |
| </sources> |
| </mapping> |
| </mappings> |
| |
| </configuration> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> <!-- rpm --> |
| |
| <profile> |
| <id>eclipse-hudson</id> |
| <build> |
| <plugins> |
| <plugin> |
| <groupId>org.apache.maven.plugins</groupId> |
| <artifactId>maven-antrun-plugin</artifactId> |
| <executions> |
| <execution> |
| <id>ant-post-proc</id> |
| <phase>verify</phase> |
| <goals> |
| <goal>run</goal> |
| </goals> |
| <configuration> |
| <target> |
| <ant antfile="post.ant"> |
| <property name="package" value="${project.artifactId}" /> |
| <property name="repo" value="${project.groupId}" /> |
| </ant> |
| </target> |
| </configuration> |
| </execution> |
| </executions> |
| </plugin> |
| </plugins> |
| </build> |
| </profile> |
| |
| </profiles> |
| |
| |
| </project> |