PageRenderTime 24ms CodeModel.GetById 14ms app.highlight 6ms RepoModel.GetById 1ms app.codeStats 0ms

/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
  1<?xml version="1.0"?>
  2<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">
  3  <parent>
  4    <groupId>org.opennms</groupId>
  5    <artifactId>org.opennms.assemblies</artifactId>
  6    <version>1.13.5-SNAPSHOT</version>
  7  </parent>
  8  <modelVersion>4.0.0</modelVersion>
  9  <groupId>org.opennms.assemblies</groupId>
 10  <artifactId>org.opennms.assemblies.http-remoting</artifactId>
 11  <packaging>war</packaging>
 12  <name>OpenNMS HTTP Remoting Backend</name>
 13  <!-- 
 14    On Windows and Linux, we should be able to build the opennms-remote-poller-windows EXE installer
 15    so include the installer EXE in the webapp on those platforms.
 16
 17    If you edit the profile's <build>, make sure to change both profiles since they are identical.
 18  -->
 19  <profiles>
 20    <profile>
 21      <id>linux</id>
 22      <activation>
 23        <os>
 24          <name>Linux</name>
 25        </os>
 26      </activation>
 27      <build>
 28        <plugins>
 29          <plugin>
 30            <groupId>org.apache.maven.plugins</groupId>
 31            <artifactId>maven-dependency-plugin</artifactId>
 32            <executions>
 33              <execution>
 34                <id>copy</id>
 35                <goals>
 36                  <goal>copy</goal>
 37                </goals>
 38                <configuration>
 39                  <artifactItems>
 40                    <artifactItem>
 41                      <groupId>org.opennms.assemblies</groupId>
 42                      <artifactId>opennms-remote-poller-windows</artifactId>
 43                      <version>${project.version}</version>
 44                      <type>exe</type>
 45                      <overWrite>true</overWrite>
 46                    </artifactItem>
 47                  </artifactItems>
 48                </configuration>
 49              </execution>
 50            </executions>
 51          </plugin>
 52        </plugins>
 53      </build>
 54    </profile>
 55    <profile>
 56      <id>windows</id>
 57      <activation>
 58        <os>
 59          <family>windows</family>
 60        </os>
 61      </activation>
 62      <build>
 63        <plugins>
 64          <plugin>
 65            <groupId>org.apache.maven.plugins</groupId>
 66            <artifactId>maven-dependency-plugin</artifactId>
 67            <executions>
 68              <execution>
 69                <id>copy</id>
 70                <goals>
 71                  <goal>copy</goal>
 72                </goals>
 73                <configuration>
 74                  <artifactItems>
 75                    <artifactItem>
 76                      <groupId>org.opennms.assemblies</groupId>
 77                      <artifactId>opennms-remote-poller-windows</artifactId>
 78                      <version>${project.version}</version>
 79                      <type>exe</type>
 80                      <overWrite>true</overWrite>
 81                    </artifactItem>
 82                  </artifactItems>
 83                </configuration>
 84              </execution>
 85            </executions>
 86          </plugin>
 87        </plugins>
 88      </build>
 89    </profile>
 90  </profiles>
 91  <build>
 92    <resources>
 93      <resource>
 94        <directory>src/main/filtered</directory>
 95        <filtering>true</filtering>
 96      </resource>
 97    </resources>
 98    <plugins>
 99      <plugin>
100        <artifactId>maven-deploy-plugin</artifactId>
101        <configuration>
102          <skip>true</skip>
103        </configuration>
104      </plugin>
105      <plugin>
106        <groupId>org.apache.maven.plugins</groupId>
107        <artifactId>maven-dependency-plugin</artifactId>
108        <executions>
109          <execution>
110            <id>unpack</id>
111            <goals>
112              <goal>unpack</goal>
113            </goals>
114            <configuration>
115              <artifactItems>
116                <artifactItem>org.opennms.features:org.opennms.features.remote-poller-jnlp:tar.gz:jnlp
117                  <groupId>org.opennms.features</groupId>
118                  <artifactId>org.opennms.features.remote-poller-jnlp</artifactId>
119                  <version>${project.version}</version>
120                  <classifier>jnlp</classifier>
121                  <type>tar.gz</type>
122                  <overWrite>true</overWrite>
123                  <outputDirectory>${project.build.directory}/dependency/webstart</outputDirectory>
124                </artifactItem>
125              </artifactItems>
126            </configuration>
127          </execution>
128        </executions>
129      </plugin>
130      <!--
131           Add the dependency directory to the list of webapp resources so that the
132           installer EXE and JNLP files are included in the webapp.
133      -->
134      <plugin>
135        <groupId>org.apache.maven.plugins</groupId>
136        <artifactId>maven-war-plugin</artifactId>
137        <configuration>
138          <webResources>
139            <resource>
140              <directory>${project.build.directory}/dependency</directory>
141            </resource>
142            <resource>
143              <directory>${project.build.directory}/classes</directory>
144            </resource>
145          </webResources>
146        </configuration>
147      </plugin>
148    </plugins>
149  </build>
150  <dependencies>
151    <!-- dependencies that should be included directly -->
152    <dependency>
153      <groupId>org.opennms.dependencies</groupId>
154      <artifactId>jnlp-dependencies</artifactId>
155      <type>pom</type>
156    </dependency>
157    <!-- Make sure that the Windows EXE installer builds before this assembly -->
158    <dependency>
159      <groupId>org.opennms.assemblies</groupId>
160      <artifactId>opennms-remote-poller-windows</artifactId>
161      <type>pom</type>
162      <scope>provided</scope>
163    </dependency>
164
165    <!-- dependencies that should exist in $OPENNMS_HOME/lib -->
166    <dependency>
167      <groupId>org.opennms</groupId>
168      <artifactId>opennms-services</artifactId>
169      <scope>provided</scope>
170    </dependency>
171    <dependency>
172      <groupId>org.opennms.dependencies</groupId>
173      <artifactId>spring-dependencies</artifactId>
174      <type>pom</type>
175      <scope>provided</scope>
176    </dependency>
177    <dependency>
178      <groupId>org.opennms.dependencies</groupId>
179      <artifactId>spring-security-dependencies</artifactId>
180      <type>pom</type>
181      <scope>provided</scope>
182    </dependency>
183    <dependency>
184      <groupId>org.opennms.dependencies</groupId>
185      <artifactId>spring-web-dependencies</artifactId>
186      <type>pom</type>
187      <scope>provided</scope>
188    </dependency>
189    <dependency>
190      <groupId>org.opennms.features</groupId>
191      <artifactId>org.opennms.features.springframework-security</artifactId>
192      <scope>provided</scope>
193    </dependency>
194
195    <!-- test dependencies -->
196    <dependency>
197      <groupId>org.opennms</groupId>
198      <artifactId>opennms-test</artifactId>
199      <scope>test</scope>
200    </dependency>
201    <dependency>
202      <groupId>org.opennms.tests</groupId>
203      <artifactId>org.opennms.tests.mock-elements</artifactId>
204      <scope>test</scope>
205    </dependency>
206    <dependency>
207      <groupId>org.opennms.core.test-api</groupId>
208      <artifactId>org.opennms.core.test-api.db</artifactId>
209      <scope>test</scope>
210    </dependency>
211    <dependency>
212      <groupId>org.opennms.core.test-api</groupId>
213      <artifactId>org.opennms.core.test-api.http</artifactId>
214      <scope>test</scope>
215    </dependency>
216    <dependency>
217      <groupId>org.opennms.dependencies</groupId>
218      <artifactId>spring-test-dependencies</artifactId>
219      <type>pom</type>
220      <scope>test</scope>
221    </dependency>
222    <dependency>
223      <groupId>org.opennms</groupId>
224      <artifactId>opennms-rrd-jrobin</artifactId>
225      <scope>test</scope>
226    </dependency>
227  </dependencies>
228
229  <repositories>
230    <repository>
231      <snapshots><enabled>false</enabled></snapshots>
232      <releases><enabled>true</enabled></releases>
233      <id>opennms-repo</id>
234      <name>OpenNMS Repository</name>
235      <url>http://maven.opennms.org/content/groups/opennms.org-release</url>
236    </repository>
237  </repositories>
238
239</project>