<groupId>org.opendaylight.odlparent</groupId>
<artifactId>odlparent-lite</artifactId>
- <version>3.0.0-SNAPSHOT</version>
+ <version>6.0.0-SNAPSHOT</version>
<packaging>pom</packaging>
<name>ODL :: odlparent :: ${project.artifactId}</name>
</organization>
<issueManagement>
- <system>Bugzilla</system>
- <url>https://bugs.opendaylight.org/</url>
+ <system>JIRA</system>
+ <url>https://jira.opendaylight.org/</url>
</issueManagement>
<ciManagement>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
- <!-- This property is used in the pluginManagement and the q profile as well as -D set e.g. in releng/builder by c/53426
- to emulate a future "maven.gitcommitid.skip", which only a future not-yet-available-on-Maven-central maven-git-commit-id-plugin release has.
- (If we ever upgrade the version of the maven-git-commit-id-plugin we use, then this and re. pluginManagement config could be removed; BUT then
- the q profile and all -D in releng/builder etc. else would have to be changed from this "gitid.skip" to "maven.gitcommitid.skip.)
- -->
- <gitid.skip>false</gitid.skip>
+ <!-- This version property instead of just direct version in pluginManagement is the exception that confirms the rule
+ and is required so that downstream users of the archetype-packaging extension can use this (and get the same version
+ as the maven-archetype-plugin), because there is no "extensionManagement" in Maven -->
+ <maven.archetype.plugin.version>3.1.1</maven.archetype.plugin.version>
+
+ <!-- This property allows deployments to be skipped in child modules -->
+ <maven.deploy.skip>false</maven.deploy.skip>
+
+ <!-- This property allows installations to be skipped in child modules -->
+ <maven.install.skip>false</maven.install.skip>
+
+ <!-- Opt-out from running maven-checkstyle-plugin at all. Defaults to false,
+ set to 'true' in pom.xml of project which desires to completely skip
+ execution. -->
+ <odlparent.checkstyle.skip>false</odlparent.checkstyle.skip>
+
+ <!-- Opt-out from running modernizer-maven-plugin at all. Defaults to false,
+ set to 'true' in pom.xml of project which desires to completely skip
+ execution. -->
+ <odlparent.modernizer.skip>false</odlparent.modernizer.skip>
+
+ <!-- Opt-out from running spotbugs-maven-plugin at all. Defaults to false,
+ set to 'true' in pom.xml of project which desires to completely skip
+ execution. -->
+ <odlparent.spotbugs.skip>false</odlparent.spotbugs.skip>
+
+ <!-- Used in neutron, ovsdb -->
+ <jacoco.version>0.8.4</jacoco.version>
</properties>
<build>
<pluginManagement>
<plugins>
+ <plugin>
+ <artifactId>maven-archetype-plugin</artifactId>
+ <version>${maven.archetype.plugin.version}</version>
+ </plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
- <version>3.0.0</version>
+ <version>3.1.0</version>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
- <version>3.0.1</version>
+ <version>3.1.1</version>
+ <!-- Needed for https://issues.apache.org/jira/browse/MDEP-613, remove with 3.1.2 upgrade -->
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.maven.shared</groupId>
+ <artifactId>maven-dependency-analyzer</artifactId>
+ <version>1.11.1</version>
+ </dependency>
+ </dependencies>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
+ <configuration>
+ <skip>${maven.deploy.skip}</skip>
+ </configuration>
</plugin>
<plugin>
<artifactId>maven-help-plugin</artifactId>
- <version>2.2</version>
+ <version>3.2.0</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
+ <configuration>
+ <skip>${maven.install.skip}</skip>
+ </configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
- <version>2.10.4</version>
- <configuration>
+ <version>3.1.1</version>
+ <configuration combine.children="append">
<!-- Keep things quiet except for warnings/errors -->
<quiet>true</quiet>
<tags>
</tag>
<!-- end HelpMojo support -->
</tags>
- <detectLinks>false</detectLinks> <!-- TODO: It should work once https://issues.apache.org/jira/browse/MJAVADOC-427 is solved -->
- <detectOfflineLinks>true</detectOfflineLinks>
- <links>
- <link>http://www.atetric.com/atetric/javadoc/junit/junit/4.11/</link>
- <link>http://hamcrest.org/JavaHamcrest/javadoc/1.3/</link>
- <link>http://google.github.io/truth/api/0.28/</link>
- <link>https://www.slf4j.org/apidocs/</link>
- <link>https://xerces.apache.org/xerces2-j/javadocs/api/</link>
- <link>https://google.github.io/guava/releases/22.0/api/docs/</link>
- <link>http://doc.akka.io/japi/akka/2.4.18/</link>
- <link>http://netty.io/4.1/api/</link>
- <link>https://commons.apache.org/proper/commons-lang/javadocs/api-2.6/</link>
- <link>https://commons.apache.org/proper/commons-lang/javadocs/api-3.6/</link>
- <link>https://commons.apache.org/proper/commons-codec/apidocs/</link>
- </links>
</configuration>
<executions>
<execution>
</plugin>
<plugin>
<artifactId>maven-project-info-reports-plugin</artifactId>
- <version>2.9</version>
+ <version>3.0.0</version>
</plugin>
<plugin>
<artifactId>maven-release-plugin</artifactId>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
- <version>3.6</version>
+ <version>3.7.1</version>
<configuration>
<asciidoc>
<attributes>
</asciidoc>
</configuration>
<dependencies>
- <dependency>
- <!-- Downgrade Velocity; the Asciidoctor templates don't work with Velocity 1.7 -->
- <!-- See https://maven.apache.org/plugins/maven-site-plugin/migrate.html -->
- <groupId>org.apache.velocity</groupId>
- <artifactId>velocity</artifactId>
- <version>1.5</version>
- </dependency>
- <dependency>
- <groupId>org.apache.maven.doxia</groupId>
- <artifactId>doxia-core</artifactId>
- <version>1.7</version>
- </dependency>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctor-maven-plugin</artifactId>
- <version>1.5.3</version>
+ <version>1.5.7.1</version>
</dependency>
<dependency>
<groupId>org.asciidoctor</groupId>
<artifactId>asciidoctorj-diagram</artifactId>
- <version>1.3.1</version>
- </dependency>
-
- <!-- Needed for JDK-9 compatibility -->
- <dependency>
- <groupId>commons-lang</groupId>
- <artifactId>commons-lang</artifactId>
- <version>2.6</version>
+ <version>1.5.16</version>
</dependency>
</dependencies>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>build-helper-maven-plugin</artifactId>
+ <version>3.0.0</version>
+ </plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
- <version>1.5.0</version>
+ <version>1.6.0</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
</execution>
</executions>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>versions-maven-plugin</artifactId>
+ <version>2.7</version>
+ </plugin>
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
<plugin>
<groupId>org.eclipse.m2e</groupId>
</lifecycleMappingMetadata>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>${jacoco.version}</version>
+ </plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
- <version>1.4.1</version>
+ <version>3.0.0-M2</version>
<executions>
<execution>
<id>enforce-maven</id>
<configuration>
<rules>
<requireJavaVersion>
- <version>1.8.0</version>
+ <version>11</version>
</requireJavaVersion>
<requireMavenVersion>
- <version>[3.3.9,)</version>
+ <version>[3.5.0,)</version>
</requireMavenVersion>
</rules>
</configuration>
<plugin>
<groupId>pl.project13.maven</groupId>
<artifactId>git-commit-id-plugin</artifactId>
- <version>2.2.2</version>
+ <version>3.0.1</version>
<executions>
<execution>
<id>get-git-infos</id>
</execution>
</executions>
<configuration>
- <skip>${gitid.skip}</skip>
<failOnNoGitDirectory>false</failOnNoGitDirectory>
<generateGitPropertiesFile>true</generateGitPropertiesFile>
<generateGitPropertiesFilename>${project.build.outputDirectory}/META-INF/git.properties</generateGitPropertiesFilename>
<always>true</always>
<tags>true</tags>
</gitDescribe>
+ <!-- trust the working directory -->
+ <offline>true</offline>
</configuration>
</plugin>
</plugins>
<jacoco.skip>true</jacoco.skip>
<maven.javadoc.skip>true</maven.javadoc.skip>
<maven.source.skip>true</maven.source.skip>
- <checkstyle.skip>true</checkstyle.skip>
- <findbugs.skip>true</findbugs.skip>
+ <odlparent.checkstyle.skip>true</odlparent.checkstyle.skip>
+ <odlparent.modernizer.skip>true</odlparent.modernizer.skip>
+ <odlparent.spotbugs.skip>true</odlparent.spotbugs.skip>
<pmd.skip>true</pmd.skip>
<cpd.skip>true</cpd.skip>
<maven.site.skip>true</maven.site.skip>
<invoker.skip>true</invoker.skip>
<enforcer.skip>true</enforcer.skip>
+ <duplicate-finder.skip>true</duplicate-finder.skip>
<mdsal.skip.verbose>true</mdsal.skip.verbose> <!-- Bug 6236 -->
- <gitid.skip>true</gitid.skip>
+ <maven.gitcommitid.skip>true</maven.gitcommitid.skip>
</properties>
</profile>
<profile>
</plugins>
</reporting>
</profile>
+ <profile>
+ <!-- Javadocs with links -->
+ <id>javadoc-links</id>
+ <activation>
+ <file>
+ <exists>odl-javadoc-links-optin</exists>
+ </file>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration combine.children="append">
+ <links>
+ <link>https://junit.org/junit4/javadoc/4.11/</link>
+ <link>http://hamcrest.org/JavaHamcrest/javadoc/2.1/</link>
+ <link>http://google.github.io/truth/api/0.43/</link>
+ <link>https://www.slf4j.org/apidocs/</link>
+ <link>https://xerces.apache.org/xerces2-j/javadocs/api/</link>
+ <link>https://google.github.io/guava/releases/27.1-jre/api/docs/</link>
+ <link>http://doc.akka.io/japi/akka/2.5.25/</link>
+ <link>http://netty.io/4.1/api/</link>
+ <link>https://commons.apache.org/proper/commons-lang/javadocs/api-2.6/</link>
+ <link>https://commons.apache.org/proper/commons-lang/javadocs/api-3.9/</link>
+ <link>https://commons.apache.org/proper/commons-codec/apidocs/</link>
+ </links>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <!-- On JDK9-and-later specify html4 javadoc, if requested-->
+ <id>jdk9-javadoc</id>
+ <activation>
+ <jdk>[9,)</jdk>
+ <file>
+ <exists>odl-javadoc-html5-optout</exists>
+ </file>
+ </activation>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration combine.children="append">
+ <additionalOptions>
+ <additionalOption>-html4</additionalOption>
+ </additionalOptions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+
+ <profile>
+ <!-- Disable plugins which are not useful for sonar -->
+ <id>sonar-only</id>
+ <activation>
+ <property>
+ <name>sonar</name>
+ </property>
+ </activation>
+ <properties>
+ <checkstyle.skip>true</checkstyle.skip>
+ <duplicate-finder.skip>true</duplicate-finder.skip>
+ <skip.karaf.featureTest>true</skip.karaf.featureTest>
+ <maven.javadoc.skip>true</maven.javadoc.skip>
+ <maven.source.skip>true</maven.source.skip>
+ </properties>
+ </profile>
</profiles>
<distributionManagement>