From ef950622826435c55c4dd03d533e9184541d2288 Mon Sep 17 00:00:00 2001 From: Anton Klaren Date: Wed, 21 Feb 2018 14:55:46 +0100 Subject: [PATCH] Added enforcing of package naming to maven and java classes --- community/cypher/pom.xml | 34 ++++++++++++---------------------- enterprise/cypher/pom.xml | 34 ++++++++++++---------------------- pom.xml | 32 ++++++++++++++++++++++++++++++++ 3 files changed, 56 insertions(+), 44 deletions(-) diff --git a/community/cypher/pom.xml b/community/cypher/pom.xml index 8bd573bea4d8..65d290cd24be 100644 --- a/community/cypher/pom.xml +++ b/community/cypher/pom.xml @@ -106,28 +106,18 @@ org.apache.maven.plugins maven-enforcer-plugin - 1.3.1 - - - enforce-dont-exist - - enforce - - - - - - cypher-compiler-3.2 - cypher-compiler-3.1 - cypher-compiler-3.0 - cypher-compiler-2.3 - - - - true - - - + + + + + cypher-compiler-3.2 + cypher-compiler-3.1 + cypher-compiler-3.0 + cypher-compiler-2.3 + + + + diff --git a/enterprise/cypher/pom.xml b/enterprise/cypher/pom.xml index 7732fd66ec8e..21041d0ab1d0 100644 --- a/enterprise/cypher/pom.xml +++ b/enterprise/cypher/pom.xml @@ -106,28 +106,18 @@ org.apache.maven.plugins maven-enforcer-plugin - 1.3.1 - - - enforce-dont-exist - - enforce - - - - - - cypher-compiler-3.2 - cypher-compiler-3.1 - cypher-compiler-3.0 - cypher-compiler-2.3 - - - - true - - - + + + + + cypher-compiler-3.2 + cypher-compiler-3.1 + cypher-compiler-3.0 + cypher-compiler-2.3 + + + + diff --git a/pom.xml b/pom.xml index bfae51c6b4c4..57ee5d9439e6 100644 --- a/pom.xml +++ b/pom.xml @@ -139,6 +139,17 @@ + + org.apache.maven.plugins + maven-enforcer-plugin + + + + enforce + + + + @@ -162,6 +173,27 @@ maven-source-plugin 3.0.1 + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M1 + + + + Maven module has to be in a "groupId" beginning with "org.neo4j" + String s = "${project.groupId}"; s.startsWith("org.neo4j") + + + You are not allowed to have classes in "com" package + + ${project.build.sourceDirectory}/com + ${project.build.testSourceDirectory}/com + + + + true + + org.neo4j.build.plugins clirr-maven-plugin