aboutsummaryrefslogtreecommitdiffstats
path: root/pom.xml
diff options
context:
space:
mode:
authorSINGAL, KAPIL (ks220y) <ks220y@att.com>2019-09-17 16:36:59 +0000
committerBrinda Santh Muthuramalingam <brindasanth@in.ibm.com>2019-09-17 17:01:40 +0000
commit24f39fda67bec6f622c25effcd2a1626efae772a (patch)
tree44a81cd9a479c2d01535a609775e8c9122828934 /pom.xml
parentfdc1a2b71f8fa2c8071310d38116d608c0466f6b (diff)
Plugin to format/validate POM
Adding tidy-maven-plugin and related profile to format/vaidate pom files To format POM Files just run mvn process-sources -P format Issue-ID: CCSDK-1739 Signed-off-by: SINGAL, KAPIL (ks220y) <ks220y@att.com> Change-Id: I58dc261ac7b3179a91a0ab5a06237990707543f5
Diffstat (limited to 'pom.xml')
-rw-r--r--pom.xml55
1 files changed, 47 insertions, 8 deletions
diff --git a/pom.xml b/pom.xml
index 5d58742ec..8350e1e5a 100644
--- a/pom.xml
+++ b/pom.xml
@@ -16,6 +16,7 @@ See the License for the specific language governing permissions and
limitations under the License.
-->
<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">
+ <modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.onap.ccsdk.parent</groupId>
@@ -24,8 +25,6 @@ limitations under the License.
<relativePath/>
</parent>
- <modelVersion>4.0.0</modelVersion>
-
<groupId>org.onap.ccsdk.cds</groupId>
<artifactId>parent</artifactId>
<version>0.7.0-SNAPSHOT</version>
@@ -33,17 +32,16 @@ limitations under the License.
<name>cds-parent</name>
<description>CCSDK Controller Design Studio</description>
+ <url>https://wiki.onap.org</url>
+ <organization>
+ <name>ONAP</name>
+ </organization>
<modules>
<module>cds-ui</module>
<module>ms</module>
</modules>
- <url>https://wiki.onap.org</url>
- <organization>
- <name>ONAP</name>
- </organization>
-
<properties>
<!--Don't set any language to let sonar enable multi-language support-->
<sonar.language/>
@@ -57,6 +55,10 @@ limitations under the License.
<sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml
</sonar.coverage.jacoco.xmlReportPaths>
<jacoco.version>0.8.3</jacoco.version>
+
+ <!-- Properties for POM Format -->
+ <format.skipValidate>false</format.skipValidate>
+ <format.skipExecute>true</format.skipExecute>
</properties>
<build>
@@ -66,6 +68,35 @@ limitations under the License.
<artifactId>jacoco-maven-plugin</artifactId>
<version>${jacoco.version}</version>
</plugin>
+
+ <!-- Plugin to Format/Validate POM Files -->
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>tidy-maven-plugin</artifactId>
+ <version>1.1.0</version>
+ <executions>
+ <execution>
+ <id>format-pom</id>
+ <phase>process-sources</phase>
+ <goals>
+ <goal>pom</goal>
+ </goals>
+ <configuration>
+ <skip>${format.skipExecute}</skip>
+ </configuration>
+ </execution>
+ <execution>
+ <id>validate-pom</id>
+ <phase>validate</phase>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <configuration>
+ <skip>${format.skipValidate}</skip>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
@@ -101,6 +132,14 @@ limitations under the License.
</plugins>
</build>
</profile>
- </profiles>
+ <!-- Profile to format skip validate or execute -->
+ <profile>
+ <id>format</id>
+ <properties>
+ <format.skipValidate>true</format.skipValidate>
+ <format.skipExecute>false</format.skipExecute>
+ </properties>
+ </profile>
+ </profiles>
</project>