/opennms-assemblies/http-remoting/pom.xml
https://github.com/ajakubo1/opennms · XML · 239 lines · 221 code · 4 blank · 14 comment · 0 complexity · aad878046b79534d47604e7dd6713330 MD5 · raw file
- <?xml version="1.0"?>
- <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/maven-v4_0_0.xsd">
- <parent>
- <groupId>org.opennms</groupId>
- <artifactId>org.opennms.assemblies</artifactId>
- <version>1.13.5-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <groupId>org.opennms.assemblies</groupId>
- <artifactId>org.opennms.assemblies.http-remoting</artifactId>
- <packaging>war</packaging>
- <name>OpenNMS HTTP Remoting Backend</name>
- <!--
- On Windows and Linux, we should be able to build the opennms-remote-poller-windows EXE installer
- so include the installer EXE in the webapp on those platforms.
- If you edit the profile's <build>, make sure to change both profiles since they are identical.
- -->
- <profiles>
- <profile>
- <id>linux</id>
- <activation>
- <os>
- <name>Linux</name>
- </os>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy</id>
- <goals>
- <goal>copy</goal>
- </goals>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>org.opennms.assemblies</groupId>
- <artifactId>opennms-remote-poller-windows</artifactId>
- <version>${project.version}</version>
- <type>exe</type>
- <overWrite>true</overWrite>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- <profile>
- <id>windows</id>
- <activation>
- <os>
- <family>windows</family>
- </os>
- </activation>
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>copy</id>
- <goals>
- <goal>copy</goal>
- </goals>
- <configuration>
- <artifactItems>
- <artifactItem>
- <groupId>org.opennms.assemblies</groupId>
- <artifactId>opennms-remote-poller-windows</artifactId>
- <version>${project.version}</version>
- <type>exe</type>
- <overWrite>true</overWrite>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- </profiles>
- <build>
- <resources>
- <resource>
- <directory>src/main/filtered</directory>
- <filtering>true</filtering>
- </resource>
- </resources>
- <plugins>
- <plugin>
- <artifactId>maven-deploy-plugin</artifactId>
- <configuration>
- <skip>true</skip>
- </configuration>
- </plugin>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-dependency-plugin</artifactId>
- <executions>
- <execution>
- <id>unpack</id>
- <goals>
- <goal>unpack</goal>
- </goals>
- <configuration>
- <artifactItems>
- <artifactItem>org.opennms.features:org.opennms.features.remote-poller-jnlp:tar.gz:jnlp
- <groupId>org.opennms.features</groupId>
- <artifactId>org.opennms.features.remote-poller-jnlp</artifactId>
- <version>${project.version}</version>
- <classifier>jnlp</classifier>
- <type>tar.gz</type>
- <overWrite>true</overWrite>
- <outputDirectory>${project.build.directory}/dependency/webstart</outputDirectory>
- </artifactItem>
- </artifactItems>
- </configuration>
- </execution>
- </executions>
- </plugin>
- <!--
- Add the dependency directory to the list of webapp resources so that the
- installer EXE and JNLP files are included in the webapp.
- -->
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-war-plugin</artifactId>
- <configuration>
- <webResources>
- <resource>
- <directory>${project.build.directory}/dependency</directory>
- </resource>
- <resource>
- <directory>${project.build.directory}/classes</directory>
- </resource>
- </webResources>
- </configuration>
- </plugin>
- </plugins>
- </build>
- <dependencies>
- <!-- dependencies that should be included directly -->
- <dependency>
- <groupId>org.opennms.dependencies</groupId>
- <artifactId>jnlp-dependencies</artifactId>
- <type>pom</type>
- </dependency>
- <!-- Make sure that the Windows EXE installer builds before this assembly -->
- <dependency>
- <groupId>org.opennms.assemblies</groupId>
- <artifactId>opennms-remote-poller-windows</artifactId>
- <type>pom</type>
- <scope>provided</scope>
- </dependency>
- <!-- dependencies that should exist in $OPENNMS_HOME/lib -->
- <dependency>
- <groupId>org.opennms</groupId>
- <artifactId>opennms-services</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.opennms.dependencies</groupId>
- <artifactId>spring-dependencies</artifactId>
- <type>pom</type>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.opennms.dependencies</groupId>
- <artifactId>spring-security-dependencies</artifactId>
- <type>pom</type>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.opennms.dependencies</groupId>
- <artifactId>spring-web-dependencies</artifactId>
- <type>pom</type>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.opennms.features</groupId>
- <artifactId>org.opennms.features.springframework-security</artifactId>
- <scope>provided</scope>
- </dependency>
- <!-- test dependencies -->
- <dependency>
- <groupId>org.opennms</groupId>
- <artifactId>opennms-test</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.opennms.tests</groupId>
- <artifactId>org.opennms.tests.mock-elements</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.opennms.core.test-api</groupId>
- <artifactId>org.opennms.core.test-api.db</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.opennms.core.test-api</groupId>
- <artifactId>org.opennms.core.test-api.http</artifactId>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.opennms.dependencies</groupId>
- <artifactId>spring-test-dependencies</artifactId>
- <type>pom</type>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.opennms</groupId>
- <artifactId>opennms-rrd-jrobin</artifactId>
- <scope>test</scope>
- </dependency>
- </dependencies>
- <repositories>
- <repository>
- <snapshots><enabled>false</enabled></snapshots>
- <releases><enabled>true</enabled></releases>
- <id>opennms-repo</id>
- <name>OpenNMS Repository</name>
- <url>http://maven.opennms.org/content/groups/opennms.org-release</url>
- </repository>
- </repositories>
- </project>