Singal, Kapil (ks220y) | aa74865 | 2018-08-09 20:47:29 +0000 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
| 2 | <!--
|
| 3 | ~ Copyright © 2017-2018 AT&T Intellectual Property.
|
| 4 | ~
|
| 5 | ~ Licensed under the Apache License, Version 2.0 (the "License");
|
| 6 | ~ you may not use this file except in compliance with the License.
|
| 7 | ~ You may obtain a copy of the License at
|
| 8 | ~
|
| 9 | ~ http://www.apache.org/licenses/LICENSE-2.0
|
| 10 | ~
|
| 11 | ~ Unless required by applicable law or agreed to in writing, software
|
| 12 | ~ distributed under the License is distributed on an "AS IS" BASIS,
|
| 13 | ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 14 | ~ See the License for the specific language governing permissions and
|
| 15 | ~ limitations under the License.
|
| 16 | -->
|
| 17 |
|
| 18 | <project
|
| 19 | xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
|
| 20 | xmlns="http://maven.apache.org/POM/4.0.0"
|
| 21 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
| 22 | <modelVersion>4.0.0</modelVersion>
|
| 23 | <parent>
|
Muthuramalingam, Brinda Santh(bs2796) | d3efe72 | 2018-08-23 15:54:30 +0000 | [diff] [blame] | 24 | <groupId>org.onap.ccsdk.apps.controllerblueprints</groupId>
|
| 25 | <artifactId>parent</artifactId>
|
Singal, Kapil (ks220y) | aa74865 | 2018-08-09 20:47:29 +0000 | [diff] [blame] | 26 | <version>0.3.0-SNAPSHOT</version>
|
| 27 | <relativePath>../parent</relativePath>
|
| 28 | </parent>
|
Muthuramalingam, Brinda Santh(bs2796) | d3efe72 | 2018-08-23 15:54:30 +0000 | [diff] [blame] | 29 | <artifactId>application</artifactId>
|
Singal, Kapil (ks220y) | aa74865 | 2018-08-09 20:47:29 +0000 | [diff] [blame] | 30 | <name>Controller Blueprints Application</name>
|
| 31 | <properties>
|
| 32 | <swagger.directory>${basedir}/src/main/resources/swagger-ui/dist</swagger.directory>
|
| 33 | <java.version>1.8</java.version>
|
Singal, Kapil (ks220y) | aa74865 | 2018-08-09 20:47:29 +0000 | [diff] [blame] | 34 | <name.space>org.onap.ccsdk.apps</name.space> <!-- <name.space>${namespace}</name.space> -->
|
Singal, Kapil (ks220y) | aa74865 | 2018-08-09 20:47:29 +0000 | [diff] [blame] | 35 | <serviceArtifactName>controllerblueprints</serviceArtifactName>
|
Singal, Kapil (ks220y) | aa74865 | 2018-08-09 20:47:29 +0000 | [diff] [blame] | 36 | <!-- Sonar -->
|
| 37 | <sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
|
| 38 | <sonar.dynamicAnalysis>reuseReports</sonar.dynamicAnalysis>
|
| 39 | <sonar.surefire.reportsPath>${basedir}/target/surefire-reports</sonar.surefire.reportsPath>
|
| 40 | <sonar.failsafe.reportsPath>${basedir}/target/failsafe-reports</sonar.failsafe.reportsPath>
|
| 41 | <jacoco.path>${basedir}/target/jacoco_report</jacoco.path>
|
| 42 | <jacoco.itPath>${basedir}/target/jacoco_itReport</jacoco.itPath>
|
| 43 | <sonar.jacoco.reportPath>${basedir}/target/jacoco-ut.exec</sonar.jacoco.reportPath>
|
| 44 | <sonar.jacoco.itReportPath>${basedir}/target/jacoco-it.exec</sonar.jacoco.itReportPath>
|
| 45 | <sonar.language>java</sonar.language>
|
| 46 | <ilib.version>2.0.7</ilib.version>
|
Singal, Kapil (ks220y) | aa74865 | 2018-08-09 20:47:29 +0000 | [diff] [blame] | 47 | </properties>
|
| 48 |
|
| 49 | <dependencies>
|
Singal, Kapil (ks220y) | aa74865 | 2018-08-09 20:47:29 +0000 | [diff] [blame] | 50 | <dependency>
|
Muthuramalingam, Brinda Santh(bs2796) | d3efe72 | 2018-08-23 15:54:30 +0000 | [diff] [blame] | 51 | <groupId>org.onap.ccsdk.apps.controllerblueprints</groupId>
|
| 52 | <artifactId>service</artifactId>
|
Singal, Kapil (ks220y) | aa74865 | 2018-08-09 20:47:29 +0000 | [diff] [blame] | 53 | </dependency>
|
| 54 | <dependency>
|
| 55 | <groupId>org.springframework.boot</groupId>
|
| 56 | <artifactId>spring-boot-starter-actuator</artifactId>
|
| 57 | </dependency>
|
| 58 | <dependency>
|
| 59 | <groupId>org.springframework.boot</groupId>
|
| 60 | <artifactId>spring-boot-devtools</artifactId>
|
| 61 | <optional>true</optional>
|
| 62 | </dependency>
|
| 63 | <dependency>
|
Singal, Kapil (ks220y) | aa74865 | 2018-08-09 20:47:29 +0000 | [diff] [blame] | 64 | <groupId>org.springframework.boot</groupId>
|
| 65 | <artifactId>spring-boot-starter-test</artifactId>
|
| 66 | <scope>test</scope>
|
| 67 | </dependency>
|
| 68 | </dependencies>
|
| 69 | <build>
|
| 70 | <resources>
|
| 71 | <resource>
|
| 72 | <!--config and resource files -->
|
| 73 | <directory>${basedir}/etc</directory>
|
| 74 | <targetPath>${basedir}/target/etc</targetPath>
|
| 75 | <filtering>true</filtering>
|
| 76 | <includes>
|
| 77 | <include>**/*</include>
|
| 78 | </includes>
|
| 79 | </resource>
|
| 80 | <resource>
|
| 81 | <!--config and resource files -->
|
| 82 | <directory>${basedir}/src/main/resources</directory>
|
| 83 | <targetPath>${basedir}/target/src/main/resources</targetPath>
|
| 84 | <filtering>true</filtering>
|
| 85 | <includes>
|
| 86 | <include>**/*</include>
|
| 87 | </includes>
|
| 88 | </resource>
|
| 89 | <resource>
|
| 90 | <directory>src/main/resources</directory>
|
| 91 | <includes>
|
| 92 | <include>**/*</include>
|
| 93 | </includes>
|
| 94 | <filtering>true</filtering>
|
| 95 | </resource>
|
Singal, Kapil (ks220y) | aa74865 | 2018-08-09 20:47:29 +0000 | [diff] [blame] | 96 | </resources>
|
| 97 | <plugins>
|
| 98 | <plugin>
|
Muthuramalingam, Brinda Santh(bs2796) | d3efe72 | 2018-08-23 15:54:30 +0000 | [diff] [blame] | 99 | <artifactId>maven-resources-plugin</artifactId>
|
| 100 | <version>2.6</version>
|
| 101 | <executions>
|
| 102 | <execution>
|
| 103 | <id>copy-dockerfile</id>
|
| 104 | <goals>
|
| 105 | <goal>copy-resources</goal>
|
| 106 | </goals><!-- here the phase you need -->
|
| 107 | <phase>validate</phase>
|
| 108 | <configuration>
|
| 109 | <outputDirectory>${basedir}/target/docker-stage</outputDirectory>
|
| 110 | <resources>
|
| 111 | <resource>
|
| 112 | <directory>src/main/docker</directory>
|
| 113 | <includes>
|
| 114 | <include>*</include>
|
| 115 | </includes>
|
| 116 | <filtering>true</filtering>
|
| 117 | </resource>
|
| 118 | </resources>
|
| 119 | </configuration>
|
| 120 | </execution>
|
| 121 | </executions>
|
| 122 | </plugin>
|
| 123 |
|
| 124 | <plugin>
|
Singal, Kapil (ks220y) | aa74865 | 2018-08-09 20:47:29 +0000 | [diff] [blame] | 125 | <groupId>org.jacoco</groupId>
|
| 126 | <artifactId>jacoco-maven-plugin</artifactId>
|
| 127 | <version>0.7.5.201505241946</version>
|
| 128 | <executions>
|
| 129 | <!-- Prepares the property pointing to the JaCoCo runtime agent which
|
| 130 | is passed as VM argument when Maven the Surefire plugin is executed. -->
|
| 131 | <execution>
|
| 132 | <id>pre-unit-test</id>
|
| 133 | <goals>
|
| 134 | <goal>prepare-agent</goal>
|
| 135 | </goals>
|
| 136 | <configuration>
|
| 137 | <!-- Sets the path to the file which contains the execution data. -->
|
| 138 | <destFile>${sonar.jacoco.reportPath}</destFile>
|
| 139 | <propertyName>surefireArgLine</propertyName>
|
| 140 | </configuration>
|
| 141 | </execution>
|
| 142 | <!-- Ensures that the code coverage report for unit tests is created
|
| 143 | after unit tests have been run. -->
|
| 144 | <execution>
|
| 145 | <id>post-unit-test</id>
|
| 146 | <phase>test</phase>
|
| 147 | <goals>
|
| 148 | <goal>report</goal>
|
| 149 | </goals>
|
| 150 | <configuration>
|
| 151 | <!-- Sets the path to the file which contains the execution data. -->
|
| 152 | <dataFile>${sonar.jacoco.reportPath}</dataFile>
|
| 153 | <!-- Sets the output directory for the code coverage report. -->
|
| 154 | <outputDirectory>${jacoco.path}</outputDirectory>
|
| 155 | </configuration>
|
| 156 | </execution>
|
| 157 | </executions>
|
| 158 | </plugin>
|
| 159 | <plugin>
|
Singal, Kapil (ks220y) | aa74865 | 2018-08-09 20:47:29 +0000 | [diff] [blame] | 160 | <groupId>org.apache.maven.plugins</groupId>
|
| 161 | <artifactId>maven-antrun-plugin</artifactId>
|
| 162 | <executions>
|
| 163 | <execution>
|
| 164 | <id>ant-test</id>
|
| 165 | <phase>package</phase>
|
| 166 | <configuration>
|
| 167 | <tasks>
|
| 168 | <fixcrlf srcdir="${basedir}" eol="unix"
|
| 169 | includes="**/*.sh, **/*.source"/>
|
| 170 | </tasks>
|
| 171 | </configuration>
|
| 172 | <goals>
|
| 173 | <goal>run</goal>
|
| 174 | </goals>
|
| 175 | </execution>
|
| 176 | </executions>
|
| 177 | </plugin>
|
| 178 | <plugin>
|
Singal, Kapil (ks220y) | aa74865 | 2018-08-09 20:47:29 +0000 | [diff] [blame] | 179 | <artifactId>maven-compiler-plugin</artifactId>
|
| 180 | <version>3.1</version>
|
| 181 | <configuration>
|
| 182 | <!-- <skip>${skip.compile}</skip>-->
|
| 183 | <source>1.8</source>
|
| 184 | <target>1.8</target>
|
| 185 | </configuration>
|
| 186 | </plugin>
|
| 187 | </plugins>
|
| 188 | </build>
|
| 189 | </project>
|
| 190 |
|