This is an automated email from the ASF dual-hosted git repository. slachiewicz pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-dependency-plugin.git
commit d3de059b463e126df63b29c515d29380a16f4c20 Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Thu Nov 26 06:50:23 2026 +0000 Remove build-classpath ITs covered by unit tests --- .../invoker.properties | 18 ----- .../projects/build-classpath-changeparams/pom.xml | 68 ----------------- .../build-classpath-changeparams/test.properties | 26 ------- .../build-classpath-changeparams/verify.groovy | 43 ----------- .../invoker.properties | 18 ----- .../pom.xml | 89 ---------------------- .../test.properties | 22 ------ .../verify.groovy | 25 ------ 8 files changed, 309 deletions(-) diff --git a/src/it/projects/build-classpath-changeparams/invoker.properties b/src/it/projects/build-classpath-changeparams/invoker.properties deleted file mode 100644 index 68eb44ce..00000000 --- a/src/it/projects/build-classpath-changeparams/invoker.properties +++ /dev/null @@ -1,18 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -invoker.goals = ${project.groupId}:${project.artifactId}:${project.version}:build-classpath diff --git a/src/it/projects/build-classpath-changeparams/pom.xml b/src/it/projects/build-classpath-changeparams/pom.xml deleted file mode 100644 index 74963ba1..00000000 --- a/src/it/projects/build-classpath-changeparams/pom.xml +++ /dev/null @@ -1,68 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - ~ Licensed to the Apache Software Foundation (ASF) under one - ~ or more contributor license agreements. See the NOTICE file - ~ distributed with this work for additional information - ~ regarding copyright ownership. The ASF licenses this file - ~ to you under the Apache License, Version 2.0 (the - ~ "License"); you may not use this file except in compliance - ~ with the License. You may obtain a copy of the License at - ~ - ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ - ~ Unless required by applicable law or agreed to in writing, - ~ software distributed under the License is distributed on an - ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - ~ KIND, either express or implied. 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> - - <groupId>org.apache.maven.its.dependency</groupId> - <artifactId>build-classpath-changeparams</artifactId> - <version>1.0-SNAPSHOT</version> - - <name>Test</name> - <description> - Test dependency:build-classpath with changed default parameters - </description> - - <properties> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - </properties> - - <dependencies> - <dependency> - <groupId>org.apache.maven</groupId> - <artifactId>maven-profile</artifactId> - <version>2.0.6</version> - <exclusions> - <exclusion> - <!-- NOTE: Excluded because of questionable handling of dependencyManagement in maven-profile:pom:2.0.6 --> - <groupId>classworlds</groupId> - <artifactId>classworlds</artifactId> - </exclusion> - </exclusions> - </dependency> - - <!-- one dependency with classifier --> - <dependency> - <groupId>org.apache.maven</groupId> - <artifactId>maven-project</artifactId> - <version>2.0.6</version> - <classifier>sources</classifier> - <exclusions> - <exclusion> - <groupId>*</groupId> - <artifactId>*</artifactId> - </exclusion> - </exclusions> - </dependency> - </dependencies> - -</project> diff --git a/src/it/projects/build-classpath-changeparams/test.properties b/src/it/projects/build-classpath-changeparams/test.properties deleted file mode 100644 index dda8dd88..00000000 --- a/src/it/projects/build-classpath-changeparams/test.properties +++ /dev/null @@ -1,26 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -mdep.outputFile = target/classpath.txt -mdep.fileSeparator = / -mdep.pathSeparator = : - -# for test, we change default parameters -mdep.prependGroupId = true -mdep.stripClassifier = true -mdep.prefix = PREFIX - diff --git a/src/it/projects/build-classpath-changeparams/verify.groovy b/src/it/projects/build-classpath-changeparams/verify.groovy deleted file mode 100644 index 838d376a..00000000 --- a/src/it/projects/build-classpath-changeparams/verify.groovy +++ /dev/null @@ -1,43 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -import org.codehaus.plexus.util.* - -String classpath = new File(basedir, "target/classpath.txt").getText("UTF-8") - -classpath = StringUtils.replace(classpath, "PREFIX/", "") - -List actual = Arrays.asList(classpath.split(":")) - -List expected = new ArrayList() -expected.add("org.apache.maven.maven-profile-2.0.6.jar") -expected.add("org.apache.maven.maven-model-2.0.6.jar") -expected.add("org.codehaus.plexus.plexus-utils-1.4.1.jar") -expected.add("org.codehaus.plexus.plexus-container-default-1.0-alpha-9-stable-1.jar") -expected.add("junit.junit-3.8.1.jar") -// dependency with classifier in pom -expected.add("org.apache.maven.maven-project-2.0.6.jar") - -System.out.println("Checking classpath... ") -System.out.println("Actual : " + actual) -System.out.println("Expected: " + expected) - -assert actual.equals(expected) : "Unexpected classpath" - -return true diff --git a/src/it/projects/build-classpath-output-file-and-property/invoker.properties b/src/it/projects/build-classpath-output-file-and-property/invoker.properties deleted file mode 100644 index 2e199f7b..00000000 --- a/src/it/projects/build-classpath-output-file-and-property/invoker.properties +++ /dev/null @@ -1,18 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -invoker.goals = clean package diff --git a/src/it/projects/build-classpath-output-file-and-property/pom.xml b/src/it/projects/build-classpath-output-file-and-property/pom.xml deleted file mode 100644 index eb8a9837..00000000 --- a/src/it/projects/build-classpath-output-file-and-property/pom.xml +++ /dev/null @@ -1,89 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- - ~ Licensed to the Apache Software Foundation (ASF) under one - ~ or more contributor license agreements. See the NOTICE file - ~ distributed with this work for additional information - ~ regarding copyright ownership. The ASF licenses this file - ~ to you under the Apache License, Version 2.0 (the - ~ "License"); you may not use this file except in compliance - ~ with the License. You may obtain a copy of the License at - ~ - ~ http://www.apache.org/licenses/LICENSE-2.0 - ~ - ~ Unless required by applicable law or agreed to in writing, - ~ software distributed under the License is distributed on an - ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - ~ KIND, either express or implied. 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> - - <groupId>org.apache.maven.its.dependency</groupId> - <artifactId>test</artifactId> - <version>1.0-SNAPSHOT</version> - <url>https://issues.apache.org/jira/browse/MDEP-482</url> - <description> - Test dependency:build-classpath when setting both an output file and an output property - </description> - - <properties> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - </properties> - - <dependencies> - <dependency> - <groupId>org.apache.maven.its.dependency</groupId> - <artifactId>get-artifact</artifactId> - <version>1.0</version> - </dependency> - </dependencies> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-dependency-plugin</artifactId> - <version>@project.version@</version> - <executions> - <execution> - <id>its</id> - <goals> - <goal>build-classpath</goal> - </goals> - <phase>package</phase> - </execution> - </executions> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-enforcer-plugin</artifactId> - <version>@version.maven-enforcer-plugin@</version> - <executions> - <execution> - <id>enforce-property</id> - <goals> - <goal>enforce</goal> - </goals> - <phase>package</phase> - <configuration> - <rules> - <evaluateBeanshell> - <!-- Makes sure that the output property was correctly set. --> - <condition> - "${classpath.property}".equals( "PREFIX/get-artifact-1.0.jar:PREFIX/get-artifact-transitive-1.0.jar" ) - </condition> - </evaluateBeanshell> - </rules> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - -</project> diff --git a/src/it/projects/build-classpath-output-file-and-property/test.properties b/src/it/projects/build-classpath-output-file-and-property/test.properties deleted file mode 100644 index d61123ae..00000000 --- a/src/it/projects/build-classpath-output-file-and-property/test.properties +++ /dev/null @@ -1,22 +0,0 @@ -# Licensed to the Apache Software Foundation (ASF) under one -# or more contributor license agreements. See the NOTICE file -# distributed with this work for additional information -# regarding copyright ownership. The ASF licenses this file -# to you under the Apache License, Version 2.0 (the -# "License"); you may not use this file except in compliance -# with the License. You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, -# software distributed under the License is distributed on an -# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY -# KIND, either express or implied. See the License for the -# specific language governing permissions and limitations -# under the License. - -mdep.outputFile = target/classpath.txt -mdep.outputProperty = classpath.property -mdep.fileSeparator = / -mdep.pathSeparator = : -mdep.prefix = PREFIX \ No newline at end of file diff --git a/src/it/projects/build-classpath-output-file-and-property/verify.groovy b/src/it/projects/build-classpath-output-file-and-property/verify.groovy deleted file mode 100644 index f2939112..00000000 --- a/src/it/projects/build-classpath-output-file-and-property/verify.groovy +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -String classpath = new File(basedir, "target/classpath.txt").getText("UTF-8") -String expected = "PREFIX/get-artifact-1.0.jar:PREFIX/get-artifact-transitive-1.0.jar" - -assert classpath.equals(expected) : "Unexpected classpath" - -return true
