Tony Hansen | 5ae237d | 2017-08-21 15:12:37 +0000 | [diff] [blame] | 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/xsd/maven-4.0.0.xsd"> |
| 3 | <modelVersion>4.0.0</modelVersion> |
| 4 | <parent> |
| 5 | <groupId>org.onap.oparent</groupId> |
| 6 | <artifactId>oparent</artifactId> |
| 7 | <version>1.0.0-SNAPSHOT</version> |
| 8 | </parent> |
| 9 | <!-- parent> |
| 10 | <groupId>org.onap.dcae.platform</groupId> |
| 11 | <artifactId>plugins</artifactId> |
| 12 | <version>1.0.0</version> |
| 13 | </parent --> |
Tony Hansen | bb38402 | 2017-09-19 18:49:04 +0000 | [diff] [blame] | 14 | <groupId>org.onap.ccsdk.storage.pgaas</groupId> |
Tony Hansen | 5ae237d | 2017-08-21 15:12:37 +0000 | [diff] [blame] | 15 | <artifactId>pgaas</artifactId> |
Dan Timoney | ea33ed4 | 2017-09-27 15:28:23 +0200 | [diff] [blame] | 16 | <packaging>pom</packaging> |
Jessica Wagantall | b367b94 | 2017-09-08 13:46:16 -0700 | [diff] [blame] | 17 | <name>ccsdk-storage-pgaas</name> |
Tony Hansen | 5ae237d | 2017-08-21 15:12:37 +0000 | [diff] [blame] | 18 | <version>1.0.0-SNAPSHOT</version> |
| 19 | <url>http://maven.apache.org</url> |
Tony Hansen | bb38402 | 2017-09-19 18:49:04 +0000 | [diff] [blame] | 20 | <dependencies> |
| 21 | <dependency> |
| 22 | <groupId>gnu.getopt</groupId> |
| 23 | <artifactId>java-getopt</artifactId> |
| 24 | <version>1.0.13</version> |
| 25 | </dependency> |
| 26 | </dependencies> |
Tony Hansen | 5ae237d | 2017-08-21 15:12:37 +0000 | [diff] [blame] | 27 | <properties> |
| 28 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 29 | <sonar.sources>.</sonar.sources> |
| 30 | <!-- customize the SONARQUBE URL --> |
| 31 | <sonar.host.url>http://localhost:9000</sonar.host.url> |
| 32 | <!-- below are language dependent --> |
| 33 | <!-- for Python --> |
| 34 | <sonar.language>py</sonar.language> |
| 35 | <sonar.pluginName>Python</sonar.pluginName> |
| 36 | <sonar.inclusions>**/*.py</sonar.inclusions> |
| 37 | <!-- for JavaScaript --> |
| 38 | <!-- |
| 39 | <sonar.language>js</sonar.language> |
| 40 | <sonar.pluginName>JS</sonar.pluginName> |
| 41 | <sonar.inclusions>**/*.js</sonar.inclusions> |
| 42 | --> |
| 43 | </properties> |
| 44 | |
| 45 | <build> |
| 46 | <finalName>${project.artifactId}-${project.version}</finalName> |
| 47 | <pluginManagement> |
| 48 | <plugins> |
| 49 | <plugin> |
| 50 | <groupId>org.codehaus.mojo</groupId> |
| 51 | <artifactId>sonar-maven-plugin</artifactId> |
| 52 | <version>2.7.1</version> |
| 53 | </plugin> |
| 54 | </plugins> |
| 55 | </pluginManagement> |
| 56 | |
| 57 | <plugins> |
| 58 | <!-- plugin> |
| 59 | <artifactId>maven-assembly-plugin</artifactId> |
| 60 | <version>2.4.1</version> |
| 61 | <configuration> |
| 62 | <descriptors> |
| 63 | <descriptor>assembly/dep.xml</descriptor> |
| 64 | </descriptors> |
| 65 | </configuration> |
| 66 | <executions> |
| 67 | <execution> |
| 68 | <id>make-assembly</id> |
| 69 | <phase>package</phase> |
| 70 | <goals> |
| 71 | <goal>single</goal> |
| 72 | </goals> |
| 73 | </execution> |
| 74 | </executions> |
| 75 | </plugin --> |
| 76 | |
| 77 | <!-- first disable the default Java plugins at various stages --> |
| 78 | <!-- maven-resources-plugin is called during "*resource" phases by default behavior. it prepares the resources |
| 79 | dir. we do not need it --> |
| 80 | <plugin> |
| 81 | <groupId>org.apache.maven.plugins</groupId> |
| 82 | <artifactId>maven-resources-plugin</artifactId> |
| 83 | <version>2.6</version> |
| 84 | <configuration> |
| 85 | <skip>true</skip> |
| 86 | </configuration> |
| 87 | </plugin> |
| 88 | |
| 89 | <!-- maven-compiler-plugin is called during "compile" phases by default behavior. we do not need it --> |
| 90 | <plugin> |
| 91 | <groupId>org.apache.maven.plugins</groupId> |
| 92 | <artifactId>maven-compiler-plugin</artifactId> |
| 93 | <version>3.1</version> |
| 94 | <configuration> |
| 95 | <skip>true</skip> |
| 96 | </configuration> |
| 97 | </plugin> |
| 98 | |
| 99 | <!-- maven-jar-plugin is called during "compile" phase by default behavior. we do not need it --> |
| 100 | <plugin> |
| 101 | <groupId>org.apache.maven.plugins</groupId> |
| 102 | <artifactId>maven-jar-plugin</artifactId> |
| 103 | <version>2.4</version> |
| 104 | <executions> |
| 105 | <execution> |
| 106 | <id>default-jar</id> |
| 107 | <phase/> |
| 108 | </execution> |
| 109 | </executions> |
| 110 | </plugin> |
| 111 | |
| 112 | <!-- maven-install-plugin is called during "install" phase by default behavior. it tries to copy stuff under |
| 113 | target dir to ~/.m2. we do not need it --> |
| 114 | <plugin> |
| 115 | <groupId>org.apache.maven.plugins</groupId> |
| 116 | <artifactId>maven-install-plugin</artifactId> |
| 117 | <version>2.4</version> |
| 118 | <configuration> |
| 119 | <skip>true</skip> |
| 120 | </configuration> |
| 121 | </plugin> |
| 122 | |
| 123 | <!-- maven-surefire-plugin is called during "test" phase by default behavior. it triggers junit test. |
| 124 | we do not need it --> |
| 125 | <plugin> |
| 126 | <groupId>org.apache.maven.plugins</groupId> |
| 127 | <artifactId>maven-surefire-plugin</artifactId> |
| 128 | <version>2.12.4</version> |
| 129 | <configuration> |
| 130 | <skipTests>true</skipTests> |
| 131 | </configuration> |
| 132 | </plugin> |
| 133 | |
| 134 | |
| 135 | <!-- now we configure custom action (calling a script) at various lifecycle phases --> |
| 136 | <plugin> |
| 137 | <groupId>org.codehaus.mojo</groupId> |
| 138 | <artifactId>exec-maven-plugin</artifactId> |
| 139 | <version>1.2.1</version> |
| 140 | <executions> |
| 141 | <execution> |
| 142 | <id>clean phase script</id> |
| 143 | <phase>clean</phase> |
| 144 | <goals><goal>exec</goal></goals> |
| 145 | <configuration> |
| 146 | <!-- executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable --> |
| 147 | <executable>make</executable> |
| 148 | <arguments> |
| 149 | <argument>${project.artifactId}</argument> |
| 150 | <argument>clean</argument> |
| 151 | </arguments> |
| 152 | <environmentVariables> |
| 153 | <!-- make mvn properties as env for our script --> |
| 154 | <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID> |
| 155 | <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID> |
| 156 | <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION> |
| 157 | <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY> |
Tony Hansen | 464f57c | 2017-10-27 12:44:06 +0000 | [diff] [blame^] | 158 | <MVN_RAWREPO_BASEURL_UPLOAD>${onap.nexus.rawrepo.baseurl.upload}</MVN_RAWREPO_BASEURL_UPLOAD> |
| 159 | <MVN_RAWREPO_BASEURL_DOWNLOAD>${onap.nexus.rawrepo.baseurl.download}</MVN_RAWREPO_BASEURL_DOWNLOAD> |
| 160 | <MVN_RAWREPO_SERVERID>${onap.nexus.rawrepo.serverid}</MVN_RAWREPO_SERVERID> |
Tony Hansen | 5ae237d | 2017-08-21 15:12:37 +0000 | [diff] [blame] | 161 | <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL--> |
| 162 | </environmentVariables> |
| 163 | </configuration> |
| 164 | </execution> |
| 165 | |
| 166 | <execution> |
| 167 | <id>generate-sources script</id> |
| 168 | <phase>generate-sources</phase> |
| 169 | <goals><goal>exec</goal></goals> |
| 170 | <configuration> |
| 171 | <!-- executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable --> |
| 172 | <executable>make</executable> |
| 173 | <arguments> |
| 174 | <argument>${project.artifactId}</argument> |
| 175 | <argument>generate-sources</argument> |
| 176 | </arguments> |
| 177 | <environmentVariables> |
| 178 | <!-- make mvn properties as env for our script --> |
| 179 | <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID> |
| 180 | <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID> |
| 181 | <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION> |
| 182 | <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY> |
| 183 | <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL--> |
| 184 | </environmentVariables> |
| 185 | </configuration> |
| 186 | </execution> |
| 187 | |
| 188 | <execution> |
| 189 | <id>compile script</id> |
| 190 | <phase>compile</phase> |
| 191 | <goals><goal>exec</goal></goals> |
| 192 | <configuration> |
| 193 | <!-- executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable --> |
| 194 | <executable>make</executable> |
| 195 | <arguments> |
| 196 | <argument>${project.artifactId}</argument> |
| 197 | <argument>compile</argument> |
| 198 | </arguments> |
| 199 | <environmentVariables> |
| 200 | <!-- make mvn properties as env for our script --> |
| 201 | <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID> |
| 202 | <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID> |
| 203 | <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION> |
| 204 | <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY> |
| 205 | <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL--> |
| 206 | </environmentVariables> |
| 207 | </configuration> |
| 208 | </execution> |
| 209 | |
| 210 | <execution> |
| 211 | <id>package script</id> |
| 212 | <phase>package</phase> |
| 213 | <goals><goal>exec</goal></goals> |
| 214 | <configuration> |
| 215 | <!-- executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable --> |
| 216 | <executable>make</executable> |
| 217 | <arguments> |
| 218 | <argument>${project.artifactId}</argument> |
| 219 | <argument>package</argument> |
| 220 | </arguments> |
| 221 | <environmentVariables> |
| 222 | <!-- make mvn properties as env for our script --> |
| 223 | <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID> |
| 224 | <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID> |
| 225 | <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION> |
| 226 | <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY> |
| 227 | <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL--> |
| 228 | </environmentVariables> |
| 229 | </configuration> |
| 230 | </execution> |
| 231 | |
| 232 | <execution> |
| 233 | <id>test script</id> |
| 234 | <phase>test</phase> |
| 235 | <goals><goal>exec</goal></goals> |
| 236 | <configuration> |
| 237 | <!-- executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable --> |
| 238 | <executable>make</executable> |
| 239 | <arguments> |
| 240 | <argument>${project.artifactId}</argument> |
| 241 | <argument>test</argument> |
| 242 | </arguments> |
| 243 | <environmentVariables> |
| 244 | <!-- make mvn properties as env for our script --> |
| 245 | <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID> |
| 246 | <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID> |
| 247 | <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION> |
| 248 | <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY> |
| 249 | <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL--> |
| 250 | </environmentVariables> |
| 251 | </configuration> |
| 252 | </execution> |
| 253 | |
| 254 | <execution> |
| 255 | <id>install script</id> |
| 256 | <phase>install</phase> |
| 257 | <goals><goal>exec</goal></goals> |
| 258 | <configuration> |
| 259 | <!-- executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable --> |
| 260 | <executable>make</executable> |
| 261 | <arguments> |
| 262 | <argument>${project.artifactId}</argument> |
| 263 | <argument>install</argument> |
| 264 | </arguments> |
| 265 | <environmentVariables> |
| 266 | <!-- make mvn properties as env for our script --> |
| 267 | <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID> |
| 268 | <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID> |
| 269 | <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION> |
| 270 | <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY> |
| 271 | <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL--> |
| 272 | </environmentVariables> |
| 273 | </configuration> |
| 274 | </execution> |
| 275 | |
| 276 | <execution> |
| 277 | <id>deploy script</id> |
| 278 | <phase>deploy</phase> |
| 279 | <goals><goal>exec</goal></goals> |
| 280 | <configuration> |
| 281 | <!-- executable>${session.executionRootDirectory}/mvn-phase-script.sh</executable --> |
| 282 | <executable>make</executable> |
| 283 | <arguments> |
| 284 | <argument>${project.artifactId}</argument> |
| 285 | <argument>deploy</argument> |
| 286 | </arguments> |
| 287 | <environmentVariables> |
| 288 | <!-- make mvn properties as env for our script --> |
| 289 | <MVN_PROJECT_GROUPID>${project.groupId}</MVN_PROJECT_GROUPID> |
| 290 | <MVN_PROJECT_ARTIFACTID>${project.artifactId}</MVN_PROJECT_ARTIFACTID> |
| 291 | <MVN_PROJECT_VERSION>${project.version}</MVN_PROJECT_VERSION> |
| 292 | <MVN_NEXUSPROXY>${onap.nexus.url}</MVN_NEXUSPROXY> |
| 293 | <!--MVN_DOCKERREG_URL>${docker.push.registry}</MVN_DOCKERREG_URL--> |
| 294 | </environmentVariables> |
| 295 | </configuration> |
| 296 | </execution> |
| 297 | </executions> |
| 298 | </plugin> |
| 299 | </plugins> |
| 300 | </build> |
| 301 | </project> |