diff --git a/apache-maven/pom.xml b/apache-maven/pom.xml index 857e2d88cc14..d46aa209cd43 100644 --- a/apache-maven/pom.xml +++ b/apache-maven/pom.xml @@ -220,6 +220,46 @@ under the License. + + eu.maveniverse.maven.plugins + bom-builder3 + 1.0.1 + + + skinny-bom + + build-bom + + + org.apache.maven + maven-bom + ${project.version} + skinny + Maven Dependencies Skinny BOM + Bill Of Materials for Apache Maven - Maven JARS only + maven-skinny-bom.xml + true + + + + fat-bom + + build-bom + + + org.apache.maven + maven-bom + ${project.version} + fat + Maven Dependencies Fat BOM + Bill Of Materials for Apache Maven - All dependencies + maven-fat-bom.xml + true + true + + + + diff --git a/maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java b/maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java index 8867a8257357..56f3fde5f3f4 100644 --- a/maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java +++ b/maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java @@ -471,7 +471,13 @@ public void validateFileModel( } validate20RawDependencies( - problems, m.getDependencies(), "dependencies.dependency.", EMPTY, validationLevel, request); + problems, + m.getDependencies(), + "dependencies.dependency.", + EMPTY, + isModelVersion41OrMore, + validationLevel, + request); validate20RawDependenciesSelfReferencing( problems, m, m.getDependencies(), "dependencies.dependency", request); @@ -482,6 +488,7 @@ public void validateFileModel( m.getDependencyManagement().getDependencies(), "dependencyManagement.dependencies.dependency.", EMPTY, + isModelVersion41OrMore, validationLevel, request); } @@ -539,6 +546,7 @@ public void validateFileModel( profile.getDependencies(), prefix, "dependencies.dependency.", + isModelVersion41OrMore, validationLevel, request); @@ -548,6 +556,7 @@ public void validateFileModel( profile.getDependencyManagement().getDependencies(), prefix, "dependencyManagement.dependencies.dependency.", + isModelVersion41OrMore, validationLevel, request); } @@ -982,6 +991,7 @@ private void validate20RawDependencies( List dependencies, String prefix, String prefix2, + boolean is41OrBeyond, int validationLevel, ModelBuilderRequest request) { Severity errOn30 = getSeverity(validationLevel, ModelValidator.VALIDATION_LEVEL_MAVEN_3_0); @@ -1002,7 +1012,8 @@ private void validate20RawDependencies( key, "must be 'pom' to import the managed dependencies.", dependency); - } else if (dependency.getClassifier() != null + } else if (!is41OrBeyond + && dependency.getClassifier() != null && !dependency.getClassifier().isEmpty()) { addViolation( problems, diff --git a/maven-bom/pom.xml b/maven-bom/pom.xml deleted file mode 100644 index 164027d419c9..000000000000 --- a/maven-bom/pom.xml +++ /dev/null @@ -1,209 +0,0 @@ - - - - 4.0.0 - - org.apache - apache - 33 - - - - org.apache.maven - maven-bom - 4.0.0-beta-5-SNAPSHOT - pom - - Maven Dependencies BOM - Bill Of Materials for Apache Maven dependencies - https://maven.apache.org/ref/${project.version}/${project.artifactId} - - - scm:git:https://gitbox.apache.org/repos/asf/maven.git - scm:git:https://gitbox.apache.org/repos/asf/maven.git - maven-4.0.0-beta-3 - https://github.com/apache/maven/tree/${project.scm.tag}/${project.artifactId} - - - jira - https://issues.apache.org/jira/browse/MNG - - - Jenkins - https://ci-maven.apache.org/job/Maven/job/maven-box/job/maven/ - - - - apache.website - scm:svn:https://svn.apache.org/repos/asf/maven/website/components/${maven.site.path} - - https://maven.apache.org/download.html - - - - ref/4-LATEST/${project.artifactId} - - - - - - - org.apache.maven - maven-artifact - ${project.version} - - - org.apache.maven - maven-builder-support - ${project.version} - - - org.apache.maven - maven-core - ${project.version} - - - org.apache.maven - maven-embedder - ${project.version} - - - org.apache.maven - maven-model - ${project.version} - - - org.apache.maven - maven-api-core - ${project.version} - - - org.apache.maven - maven-api-meta - ${project.version} - - - org.apache.maven - maven-api-model - ${project.version} - - - org.apache.maven - maven-api-settings - ${project.version} - - - org.apache.maven - maven-api-spi - ${project.version} - - - org.apache.maven - maven-api-toolchain - ${project.version} - - - org.apache.maven - maven-api-plugin - ${project.version} - - - org.apache.maven - maven-api-xml - ${project.version} - - - org.apache.maven - maven-model-builder - ${project.version} - - - org.apache.maven - maven-plugin-api - ${project.version} - - - org.apache.maven - maven-repository-metadata - ${project.version} - - - org.apache.maven - maven-resolver-provider - ${project.version} - - - org.apache.maven - maven-settings - ${project.version} - - - org.apache.maven - maven-settings-builder - ${project.version} - - - org.apache.maven - maven-toolchain-model - ${project.version} - - - org.apache.maven - maven-toolchain-builder - ${project.version} - - - org.apache.maven - maven-logging - ${project.version} - - - org.apache.maven - maven-xml-impl - ${project.version} - - - - - - - - maven-site-plugin - - ${project.distributionManagement.site.url}/.. - - - - org.apache.rat - apache-rat-plugin - - - rat-check - none - - - - - - diff --git a/pom.xml b/pom.xml index 7ca7b86abf65..2642063ab94f 100644 --- a/pom.xml +++ b/pom.xml @@ -23,7 +23,6 @@ under the License. org.apache.maven maven-parent - 43 @@ -122,7 +121,6 @@ under the License. apache-maven maven-toolchain-model maven-toolchain-builder - maven-bom maven-docgen