From 3bfd07021cadddfb544908e84fb0c03db402e771 Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Thu, 24 Aug 2017 14:25:41 +0200 Subject: [PATCH] BUG-2643: enable checkstyle/findbugs in archetype New projects should have these set from the get go. Change-Id: Ic85cdd003ecb1fe49326d3d6a1b1099d09522ebb Signed-off-by: Robert Varga --- .../resources/archetype-resources/api/pom.xml | 19 +++++++++++++++++++ .../resources/archetype-resources/cli/pom.xml | 19 +++++++++++++++++++ .../archetype-resources/impl/pom.xml | 19 +++++++++++++++++++ 3 files changed, 57 insertions(+) diff --git a/opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/api/pom.xml b/opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/api/pom.xml index c18f665f70..eb64ff6e89 100644 --- a/opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/api/pom.xml +++ b/opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/api/pom.xml @@ -25,4 +25,23 @@ and is available at http://www.eclipse.org/legal/epl-v10.html build failure. Please do not modify this unless you have a good reason. --> ODL :: ${groupId} :: ${project.artifactId} bundle + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + checkstyle.violationSeverity=error + + + + org.codehaus.mojo + findbugs-maven-plugin + + true + + + + diff --git a/opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/cli/pom.xml b/opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/cli/pom.xml index b5aeef4447..79ae689bec 100644 --- a/opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/cli/pom.xml +++ b/opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/cli/pom.xml @@ -50,4 +50,23 @@ and is available at http://www.eclipse.org/legal/epl-v10.html ${karaf.version} + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + checkstyle.violationSeverity=error + + + + org.codehaus.mojo + findbugs-maven-plugin + + true + + + + diff --git a/opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/impl/pom.xml b/opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/impl/pom.xml index ea2c01215a..d046a95f07 100644 --- a/opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/impl/pom.xml +++ b/opendaylight/archetypes/opendaylight-startup/src/main/resources/archetype-resources/impl/pom.xml @@ -50,4 +50,23 @@ and is available at http://www.eclipse.org/legal/epl-v10.html test + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + + checkstyle.violationSeverity=error + + + + org.codehaus.mojo + findbugs-maven-plugin + + true + + + + -- 2.36.6