blob: 8765657717d02d8aa553b3e7cbf6c38e42c7db40 [file] [log] [blame]
Ladue, David (dl3158)64292312017-08-23 11:27:58 -04001<?xml version="1.0"?>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -04002<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">
Ladue, David (dl3158)64292312017-08-23 11:27:58 -04003 <modelVersion>4.0.0</modelVersion>
4 <parent>
5 <groupId>org.onap.oparent</groupId>
6 <artifactId>oparent</artifactId>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -04007 <version>1.1.0</version>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -04008 </parent>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -04009 <!-- parent>
10 <groupId>org.onap.dcae.platform</groupId>
11 <artifactId>plugins</artifactId>
12 <version>1.0.0</version>
13 </parent -->
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040014
15 <!--- CHANGE THE FOLLOWING 3 OBJECTS for your own repo -->
16 <groupId>org.onap.dcaegen2.collectors</groupId>
17 <artifactId>snmptrap</artifactId>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -040018 <name>dcae_snmptrap</name>
19
20 <version>1.3.0-SNAPSHOT</version>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040021 <url>http://maven.apache.org</url>
22 <properties>
23 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
24 <sonar.sources>.</sonar.sources>
25 <!-- customize the SONARQUBE URL -->
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -040026 <sonar.host.url>http://localhost:9000</sonar.host.url>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040027 <!-- below are language dependent -->
28 <!-- for Python -->
29 <sonar.language>py</sonar.language>
30 <sonar.pluginName>Python</sonar.pluginName>
31 <sonar.inclusions>**/*.py</sonar.inclusions>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040032 </properties>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -040033
Ladue, David (dl3158)64292312017-08-23 11:27:58 -040034 <build>
35 <finalName>${project.artifactId}-${project.version}</finalName>
36 <pluginManagement>
37 <plugins>
Lusheng Ji7bb22602017-09-11 22:52:13 +000038 <plugin>
39 <groupId>org.codehaus.mojo</groupId>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -040040 <artifactId>sonar-maven-plugin</artifactId>
41 <version>2.7.1</version>
Lusheng Ji7bb22602017-09-11 22:52:13 +000042 </plugin>
Lusheng Ji1a86d532017-08-29 14:19:57 +000043 </plugins>
44 </pluginManagement>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -040045
Lusheng Ji1a86d532017-08-29 14:19:57 +000046 <plugins>
47 <!-- plugin>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -040048 <artifactId>maven-assembly-plugin</artifactId>
Lusheng Ji1a86d532017-08-29 14:19:57 +000049 <version>2.4.1</version>
50 <configuration>
51 <descriptors>
52 <descriptor>assembly/dep.xml</descriptor>
53 </descriptors>
54 </configuration>
55 <executions>
56 <execution>
57 <id>make-assembly</id>
58 <phase>package</phase>
59 <goals>
60 <goal>single</goal>
61 </goals>
62 </execution>
63 </executions>
64 </plugin -->
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -040065
66 <!-- first disable the default Java plugins at various stages -->
67 <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares the resources
68 dir. we do not need it -->
69 <plugin>
70 <groupId>org.apache.maven.plugins</groupId>
71 <artifactId>maven-resources-plugin</artifactId>
72 <version>2.6</version>
73 <configuration>
74 <skip>true</skip>
75 </configuration>
76 </plugin>
77
78 <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it -->
79 <plugin>
80 <groupId>org.apache.maven.plugins</groupId>
81 <artifactId>maven-compiler-plugin</artifactId>
82 <version>3.1</version>
83 <configuration>
84 <skip>true</skip>
85 </configuration>
86 </plugin>
87
88 <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it -->
89 <plugin>
90 <groupId>org.apache.maven.plugins</groupId>
91 <artifactId>maven-jar-plugin</artifactId>
92 <version>2.4</version>
93 <executions>
94 <execution>
95 <id>default-jar</id>
96 <phase/>
97 </execution>
98 </executions>
99 </plugin>
100
101 <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under
102 target dir to ~/.m2. we do not need it -->
103 <plugin>
104 <groupId>org.apache.maven.plugins</groupId>
105 <artifactId>maven-install-plugin</artifactId>
106 <version>2.4</version>
107 <configuration>
108 <skip>true</skip>
109 </configuration>
110 </plugin>
111
112 <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test.
113 we do not need it -->
114 <plugin>
115 <groupId>org.apache.maven.plugins</groupId>
116 <artifactId>maven-surefire-plugin</artifactId>
117 <version>2.12.4</version>
118 <configuration>
119 <skipTests>true</skipTests>
120 </configuration>
121 </plugin>
122
123
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400124 <!-- now we configure custom action (calling a script) at various lifecycle phases -->
125 <plugin>
126 <groupId>org.codehaus.mojo</groupId>
127 <artifactId>exec-maven-plugin</artifactId>
128 <version>1.2.1</version>
129 <executions>
130 <execution>
131 <id>clean phase script</id>
132 <phase>clean</phase>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400133 <goals><goal>exec</goal></goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400134 <configuration>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400135 <executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400136 <arguments>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400137 <argument>${project.artifactId}</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400138 <argument>clean</argument>
139 </arguments>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400140 <environmentVariables>
141 <!-- make mvn properties as env for our script -->
142 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
143 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
144 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
145 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
146 <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
147 </environmentVariables>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400148 </configuration>
149 </execution>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400150
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400151 <execution>
152 <id>generate-sources script</id>
153 <phase>generate-sources</phase>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400154 <goals><goal>exec</goal></goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400155 <configuration>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400156 <executable>mvn-phase-script.sh</executable>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400157 <arguments>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400158 <argument>${project.artifactId}</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400159 <argument>generate-sources</argument>
160 </arguments>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400161 <environmentVariables>
162 <!-- make mvn properties as env for our script -->
163 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
164 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
165 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
166 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
167 <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
168 </environmentVariables>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400169 </configuration>
170 </execution>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400171
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400172 <execution>
173 <id>compile script</id>
174 <phase>compile</phase>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400175 <goals><goal>exec</goal></goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400176 <configuration>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400177 <executable>mvn-phase-script.sh</executable>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400178 <arguments>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400179 <argument>${project.artifactId}</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400180 <argument>compile</argument>
181 </arguments>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400182 <environmentVariables>
183 <!-- make mvn properties as env for our script -->
184 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
185 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
186 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
187 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
188 <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
189 </environmentVariables>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400190 </configuration>
191 </execution>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400192
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400193 <execution>
194 <id>package script</id>
195 <phase>package</phase>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400196 <goals><goal>exec</goal></goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400197 <configuration>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400198 <executable>mvn-phase-script.sh</executable>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400199 <arguments>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400200 <argument>${project.artifactId}</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400201 <argument>package</argument>
202 </arguments>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400203 <environmentVariables>
204 <!-- make mvn properties as env for our script -->
205 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
206 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
207 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
208 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
209 <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
210 </environmentVariables>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400211 </configuration>
212 </execution>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400213
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400214 <execution>
215 <id>test script</id>
216 <phase>test</phase>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400217 <goals><goal>exec</goal></goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400218 <configuration>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400219 <executable>mvn-phase-script.sh</executable>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400220 <arguments>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400221 <argument>${project.artifactId}</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400222 <argument>test</argument>
223 </arguments>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400224 <environmentVariables>
225 <!-- make mvn properties as env for our script -->
226 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
227 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
228 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
229 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
230 <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
231 </environmentVariables>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400232 </configuration>
233 </execution>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400234
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400235 <execution>
236 <id>install script</id>
237 <phase>install</phase>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400238 <goals><goal>exec</goal></goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400239 <configuration>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400240 <executable>mvn-phase-script.sh</executable>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400241 <arguments>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400242 <argument>${project.artifactId}</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400243 <argument>install</argument>
244 </arguments>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400245 <environmentVariables>
246 <!-- make mvn properties as env for our script -->
247 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
248 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
249 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
250 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
251 <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
252 </environmentVariables>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400253 </configuration>
254 </execution>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400255
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400256 <execution>
257 <id>deploy script</id>
258 <phase>deploy</phase>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400259 <goals><goal>exec</goal></goals>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400260 <configuration>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400261 <executable>mvn-phase-script.sh</executable>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400262 <arguments>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400263 <argument>${project.artifactId}</argument>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400264 <argument>deploy</argument>
265 </arguments>
Ladue, David (dl3158)abb283c2018-03-14 14:01:36 -0400266 <environmentVariables>
267 <!-- make mvn properties as env for our script -->
268 <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID>
269 <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID>
270 <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION>
271 <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY>
272 <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL-->
273 </environmentVariables>
Ladue, David (dl3158)64292312017-08-23 11:27:58 -0400274 </configuration>
275 </execution>
276 </executions>
277 </plugin>
278 </plugins>
279 </build>
280</project>