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-source-plugin.git
commit 4ee5b2039bfc15ae72816526789abb9322650fe4 Author: Sylwester Lachiewicz <[email protected]> AuthorDate: Thu Nov 26 06:01:12 2026 +0000 Remove ITs now covered by unit tests --- src/it/jar-classifier/invoker.properties | 18 ------ src/it/jar-classifier/pom.xml | 69 --------------------- src/it/jar-classifier/src/main/java/MyClass.java | 23 ------- .../src/main/resources/main.properties | 17 ------ src/it/jar-classifier/src/test/java/MyTest.java | 23 ------- .../src/test/resources/test.properties | 17 ------ src/it/jar-classifier/verify.groovy | 38 ------------ src/it/jar-includes-excludes/pom.xml | 70 ---------------------- .../src/main/java/MyClass.java | 23 ------- .../src/main/java/MyClass2.java | 23 ------- .../src/main/resources/main.properties | 17 ------ .../src/test/java/MyTest.java | 23 ------- .../src/test/java/MyTest2.java | 23 ------- .../src/test/resources/test.properties | 17 ------ src/it/jar-includes-excludes/verify.groovy | 57 ------------------ src/it/project-without-sources/invoker.properties | 18 ------ src/it/project-without-sources/pom.xml | 42 ------------- src/it/project-without-sources/verify.groovy | 26 -------- src/it/test-jar-classifier/invoker.properties | 18 ------ src/it/test-jar-classifier/pom.xml | 69 --------------------- .../test-jar-classifier/src/main/java/MyClass.java | 23 ------- .../src/main/resources/main.properties | 17 ------ .../test-jar-classifier/src/test/java/MyTest.java | 23 ------- .../src/test/resources/test.properties | 17 ------ src/it/test-jar-classifier/verify.groovy | 38 ------------ .../invoker.properties | 18 ------ .../pom.xml | 42 ------------- .../verify.groovy | 45 -------------- .../invoker.properties | 18 ------ src/it/verify-parameter-goal-jar-no-fork/pom.xml | 42 ------------- .../verify.groovy | 45 -------------- .../invoker.properties | 18 ------ .../verify-parameter-goal-test-jar-no-fork/pom.xml | 42 ------------- .../verify.groovy | 45 -------------- .../invoker.properties | 18 ------ src/it/verify-parameter-goal-test-jar/pom.xml | 42 ------------- .../verify-parameter-goal-test-jar/verify.groovy | 45 -------------- 37 files changed, 1169 deletions(-) diff --git a/src/it/jar-classifier/invoker.properties b/src/it/jar-classifier/invoker.properties deleted file mode 100644 index 47840a1..0000000 --- a/src/it/jar-classifier/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}:jar diff --git a/src/it/jar-classifier/pom.xml b/src/it/jar-classifier/pom.xml deleted file mode 100644 index 4cf075e..0000000 --- a/src/it/jar-classifier/pom.xml +++ /dev/null @@ -1,69 +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/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <groupId>org.apache.maven.its.ejb</groupId> - <artifactId>jar-classifier</artifactId> - <version>1.0-SNAPSHOT</version> - - <name>Test for jar with classifier</name> - - <properties> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - </properties> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-source-plugin</artifactId> - <version>@project.version@</version> - <configuration> - <classifier>foo</classifier> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-antrun-plugin</artifactId> - <version>1.3</version> - <executions> - <execution> - <id>generated-sources</id> - <phase>generate-sources</phase> - <goals> - <goal>run</goal> - </goals> - <configuration> - <tasks> - <touch file="target/generated-sources/ant/generated.properties" mkdirs="true"/> - </tasks> - <sourceRoot>target/generated-sources/ant</sourceRoot> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - -</project> diff --git a/src/it/jar-classifier/src/main/java/MyClass.java b/src/it/jar-classifier/src/main/java/MyClass.java deleted file mode 100644 index 4945381..0000000 --- a/src/it/jar-classifier/src/main/java/MyClass.java +++ /dev/null @@ -1,23 +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. - */ - -public class MyClass -{ - -} diff --git a/src/it/jar-classifier/src/main/resources/main.properties b/src/it/jar-classifier/src/main/resources/main.properties deleted file mode 100644 index 00ae6c0..0000000 --- a/src/it/jar-classifier/src/main/resources/main.properties +++ /dev/null @@ -1,17 +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. - diff --git a/src/it/jar-classifier/src/test/java/MyTest.java b/src/it/jar-classifier/src/test/java/MyTest.java deleted file mode 100644 index 9d124be..0000000 --- a/src/it/jar-classifier/src/test/java/MyTest.java +++ /dev/null @@ -1,23 +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. - */ - -public class MyTest -{ - -} diff --git a/src/it/jar-classifier/src/test/resources/test.properties b/src/it/jar-classifier/src/test/resources/test.properties deleted file mode 100644 index 00ae6c0..0000000 --- a/src/it/jar-classifier/src/test/resources/test.properties +++ /dev/null @@ -1,17 +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. - diff --git a/src/it/jar-classifier/verify.groovy b/src/it/jar-classifier/verify.groovy deleted file mode 100644 index cafb5b0..0000000 --- a/src/it/jar-classifier/verify.groovy +++ /dev/null @@ -1,38 +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 java.util.jar.* - -File jarFile = new File(basedir, "target/jar-classifier-1.0-SNAPSHOT-foo.jar") -System.out.println("Checking for existence of " + jarFile) -assert jarFile.isFile() - -JarFile jar = new JarFile(jarFile) - -String[] includedEntries = ["META-INF/MANIFEST.MF", "MyClass.java", "main.properties", "generated.properties",] -for (String included : includedEntries) { - System.out.println("Checking for existence of " + included) - assert jar.getEntry(included) != null -} - -String[] excludedEntries = ["MyTest.java", "test.properties",] -for (String excluded : excludedEntries) { - System.out.println("Checking for absence of " + excluded) - assert jar.getEntry(excluded) == null -} diff --git a/src/it/jar-includes-excludes/pom.xml b/src/it/jar-includes-excludes/pom.xml deleted file mode 100644 index b0c3f75..0000000 --- a/src/it/jar-includes-excludes/pom.xml +++ /dev/null @@ -1,70 +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/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <groupId>org.apache.maven.its.ejb</groupId> - <artifactId>jar-includes-excludes</artifactId> - <version>1.0-SNAPSHOT</version> - - <name>Test of jar with includes/excludes</name> - - <properties> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - </properties> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-source-plugin</artifactId> - <version>@project.version@</version> - <executions> - <execution> - <id>jar</id> - <goals> - <goal>jar</goal> - </goals> - <configuration> - <includes> - <include>MyClass2.java</include> - </includes> - </configuration> - </execution> - <execution> - <id>test-jar</id> - <goals> - <goal>test-jar</goal> - </goals> - <configuration> - <excludes> - <exclude>MyTest2.java</exclude> - </excludes> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - -</project> diff --git a/src/it/jar-includes-excludes/src/main/java/MyClass.java b/src/it/jar-includes-excludes/src/main/java/MyClass.java deleted file mode 100644 index 4945381..0000000 --- a/src/it/jar-includes-excludes/src/main/java/MyClass.java +++ /dev/null @@ -1,23 +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. - */ - -public class MyClass -{ - -} diff --git a/src/it/jar-includes-excludes/src/main/java/MyClass2.java b/src/it/jar-includes-excludes/src/main/java/MyClass2.java deleted file mode 100644 index 9c66faa..0000000 --- a/src/it/jar-includes-excludes/src/main/java/MyClass2.java +++ /dev/null @@ -1,23 +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. - */ - -public class MyClass2 -{ - -} diff --git a/src/it/jar-includes-excludes/src/main/resources/main.properties b/src/it/jar-includes-excludes/src/main/resources/main.properties deleted file mode 100644 index 00ae6c0..0000000 --- a/src/it/jar-includes-excludes/src/main/resources/main.properties +++ /dev/null @@ -1,17 +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. - diff --git a/src/it/jar-includes-excludes/src/test/java/MyTest.java b/src/it/jar-includes-excludes/src/test/java/MyTest.java deleted file mode 100644 index 9d124be..0000000 --- a/src/it/jar-includes-excludes/src/test/java/MyTest.java +++ /dev/null @@ -1,23 +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. - */ - -public class MyTest -{ - -} diff --git a/src/it/jar-includes-excludes/src/test/java/MyTest2.java b/src/it/jar-includes-excludes/src/test/java/MyTest2.java deleted file mode 100644 index 6a8440e..0000000 --- a/src/it/jar-includes-excludes/src/test/java/MyTest2.java +++ /dev/null @@ -1,23 +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. - */ - -public class MyTest2 -{ - -} diff --git a/src/it/jar-includes-excludes/src/test/resources/test.properties b/src/it/jar-includes-excludes/src/test/resources/test.properties deleted file mode 100644 index 00ae6c0..0000000 --- a/src/it/jar-includes-excludes/src/test/resources/test.properties +++ /dev/null @@ -1,17 +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. - diff --git a/src/it/jar-includes-excludes/verify.groovy b/src/it/jar-includes-excludes/verify.groovy deleted file mode 100644 index 6d6ed20..0000000 --- a/src/it/jar-includes-excludes/verify.groovy +++ /dev/null @@ -1,57 +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 java.util.jar.* - -File jarFile = new File(basedir, "target/jar-includes-excludes-1.0-SNAPSHOT-sources.jar") -System.out.println("Checking for existence of " + jarFile) -assert jarFile.isFile() - -JarFile jar = new JarFile(jarFile) - -String[] includedEntries = ["META-INF/MANIFEST.MF", "MyClass2.java"] -for (String included : includedEntries) { - System.out.println("Checking for existence of " + included) - assert jar.getEntry(included) != null -} - -String[] excludedEntries = ["MyTest.java", "test.properties", "MyClass.java", "main.properties",] -for (String excluded : excludedEntries) { - System.out.println("Checking for absence of " + excluded) - assert jar.getEntry(excluded) == null -} - - -jarFile = new File(basedir, "target/jar-includes-excludes-1.0-SNAPSHOT-test-sources.jar") -System.out.println("Checking for existence of " + jarFile) -assert jarFile.isFile() - -jar = new JarFile(jarFile) - -includedEntries = ["META-INF/MANIFEST.MF", "MyTest.java", "test.properties",] -for (String included : includedEntries) { - System.out.println("Checking for existence of " + included) - assert jar.getEntry(included) != null -} - -excludedEntries = ["MyTest2.java", "MyClass.java"] -for (String excluded : excludedEntries) { - System.out.println("Checking for absence of " + excluded) - assert jar.getEntry(excluded) == null -} diff --git a/src/it/project-without-sources/invoker.properties b/src/it/project-without-sources/invoker.properties deleted file mode 100755 index e36313c..0000000 --- a/src/it/project-without-sources/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}:jar,${project.groupId}:${project.artifactId}:${project.version}:test-jar diff --git a/src/it/project-without-sources/pom.xml b/src/it/project-without-sources/pom.xml deleted file mode 100755 index f08ace1..0000000 --- a/src/it/project-without-sources/pom.xml +++ /dev/null @@ -1,42 +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/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <groupId>org.apache.maven.its.ejb</groupId> - <artifactId>project-without-sources</artifactId> - <version>1.0-SNAPSHOT</version> - - <name>Test for a project without sources</name> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-source-plugin</artifactId> - <version>@project.version@</version> - </plugin> - </plugins> - </build> - -</project> diff --git a/src/it/project-without-sources/verify.groovy b/src/it/project-without-sources/verify.groovy deleted file mode 100755 index f3ce3b7..0000000 --- a/src/it/project-without-sources/verify.groovy +++ /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. - */ - -File jarFile = new File(basedir, "target/project-without-sources-1.0-SNAPSHOT-sources.jar") -System.out.println("Checking for non-existence of " + jarFile) -assert !jarFile.isFile() - -File testJarFile = new File(basedir, "target/project-without-sources-1.0-SNAPSHOT-test-sources.jar") -System.out.println("Checking for non-existence of " + testJarFile) -assert !testJarFile.exists() diff --git a/src/it/test-jar-classifier/invoker.properties b/src/it/test-jar-classifier/invoker.properties deleted file mode 100644 index 1dc843a..0000000 --- a/src/it/test-jar-classifier/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}:test-jar diff --git a/src/it/test-jar-classifier/pom.xml b/src/it/test-jar-classifier/pom.xml deleted file mode 100644 index 9261396..0000000 --- a/src/it/test-jar-classifier/pom.xml +++ /dev/null @@ -1,69 +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/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <groupId>org.apache.maven.its.ejb</groupId> - <artifactId>test-jar-classifier</artifactId> - <version>1.0-SNAPSHOT</version> - - <name>Test for test-jar with classifier</name> - - <properties> - <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> - </properties> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-source-plugin</artifactId> - <version>@project.version@</version> - <configuration> - <classifier>bar</classifier> - </configuration> - </plugin> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-antrun-plugin</artifactId> - <version>1.3</version> - <executions> - <execution> - <id>generated-sources</id> - <phase>generate-sources</phase> - <goals> - <goal>run</goal> - </goals> - <configuration> - <tasks> - <touch file="target/generated-sources/ant/generated.properties" mkdirs="true"/> - </tasks> - <testSourceRoot>target/generated-sources/ant</testSourceRoot> - </configuration> - </execution> - </executions> - </plugin> - </plugins> - </build> - -</project> diff --git a/src/it/test-jar-classifier/src/main/java/MyClass.java b/src/it/test-jar-classifier/src/main/java/MyClass.java deleted file mode 100644 index 4945381..0000000 --- a/src/it/test-jar-classifier/src/main/java/MyClass.java +++ /dev/null @@ -1,23 +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. - */ - -public class MyClass -{ - -} diff --git a/src/it/test-jar-classifier/src/main/resources/main.properties b/src/it/test-jar-classifier/src/main/resources/main.properties deleted file mode 100644 index 00ae6c0..0000000 --- a/src/it/test-jar-classifier/src/main/resources/main.properties +++ /dev/null @@ -1,17 +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. - diff --git a/src/it/test-jar-classifier/src/test/java/MyTest.java b/src/it/test-jar-classifier/src/test/java/MyTest.java deleted file mode 100644 index 9d124be..0000000 --- a/src/it/test-jar-classifier/src/test/java/MyTest.java +++ /dev/null @@ -1,23 +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. - */ - -public class MyTest -{ - -} diff --git a/src/it/test-jar-classifier/src/test/resources/test.properties b/src/it/test-jar-classifier/src/test/resources/test.properties deleted file mode 100644 index 00ae6c0..0000000 --- a/src/it/test-jar-classifier/src/test/resources/test.properties +++ /dev/null @@ -1,17 +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. - diff --git a/src/it/test-jar-classifier/verify.groovy b/src/it/test-jar-classifier/verify.groovy deleted file mode 100644 index 0f28a08..0000000 --- a/src/it/test-jar-classifier/verify.groovy +++ /dev/null @@ -1,38 +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 java.util.jar.* - -File jarFile = new File(basedir, "target/test-jar-classifier-1.0-SNAPSHOT-bar.jar") -System.out.println("Checking for existence of " + jarFile) -assert jarFile.isFile() - -JarFile jar = new JarFile(jarFile) - -String[] includedEntries = ["META-INF/MANIFEST.MF", "MyTest.java", "test.properties", "generated.properties",] -for (String included : includedEntries) { - System.out.println("Checking for existence of " + included) - assert jar.getEntry(included) != null -} - -String[] excludedEntries = ["MyClass.java", "main.properties",] -for (String excluded : excludedEntries) { - System.out.println("Checking for absence of " + excluded) - assert jar.getEntry(excluded) == null -} diff --git a/src/it/verify-parameter-goal-generated-test-jar/invoker.properties b/src/it/verify-parameter-goal-generated-test-jar/invoker.properties deleted file mode 100644 index 1ca79fd..0000000 --- a/src/it/verify-parameter-goal-generated-test-jar/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}:help -Dgoal=generated-test-jar -Ddetail=true diff --git a/src/it/verify-parameter-goal-generated-test-jar/pom.xml b/src/it/verify-parameter-goal-generated-test-jar/pom.xml deleted file mode 100755 index 4fb98cf..0000000 --- a/src/it/verify-parameter-goal-generated-test-jar/pom.xml +++ /dev/null @@ -1,42 +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/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <groupId>org.apache.maven.its.source</groupId> - <artifactId>checkparameter-goal-generated-test-jar</artifactId> - <version>1.0-SNAPSHOT</version> - - <name>Test for parameters in goal: generated-test-jar</name> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-source-plugin</artifactId> - <version>@project.version@</version> - </plugin> - </plugins> - </build> - -</project> diff --git a/src/it/verify-parameter-goal-generated-test-jar/verify.groovy b/src/it/verify-parameter-goal-generated-test-jar/verify.groovy deleted file mode 100644 index 424257b..0000000 --- a/src/it/verify-parameter-goal-generated-test-jar/verify.groovy +++ /dev/null @@ -1,45 +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. - */ - -File buildLog = new File(basedir, 'build.log') - -assert buildLog.exists() - -assert buildLog.text.contains('source:test-jar') -assert buildLog.text.contains(' archive') -assert buildLog.text.contains(' attach (Default: true)') -assert buildLog.text.contains(' classifier (Default: test-sources)') -assert buildLog.text.contains(' defaultManifestFile (Default:') -assert buildLog.text.contains(' ${project.build.outputDirectory}/META-INF/MANIFEST.MF)') -assert buildLog.text.contains(' excludeResources (Default: false)') -assert buildLog.text.contains(' excludes') -assert buildLog.text.contains(' finalName (Default: ${project.build.finalName})') -assert buildLog.text.contains(' forceCreation (Default: false)') -assert buildLog.text.contains(' includePom (Default: false)') -assert buildLog.text.contains(' includes') -assert buildLog.text.contains(' outputDirectory (Default: ${project.build.directory})') -assert buildLog.text.contains(' skipSource (Default: false)') -assert buildLog.text.contains(' useDefaultExcludes (Default: true)') -assert buildLog.text.contains(' useDefaultManifestFile (Default: false)') - -// Make sure the session/reactorProjects will not be visible for users -assert !buildLog.text.contains(' session (Default: ${session})') -assert !buildLog.text.contains(' reactorProjects (Default: ${reactorProjects})') - diff --git a/src/it/verify-parameter-goal-jar-no-fork/invoker.properties b/src/it/verify-parameter-goal-jar-no-fork/invoker.properties deleted file mode 100644 index 3c9b5aa..0000000 --- a/src/it/verify-parameter-goal-jar-no-fork/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}:help -Dgoal=jar-no-fork -Ddetail=true diff --git a/src/it/verify-parameter-goal-jar-no-fork/pom.xml b/src/it/verify-parameter-goal-jar-no-fork/pom.xml deleted file mode 100755 index bfec931..0000000 --- a/src/it/verify-parameter-goal-jar-no-fork/pom.xml +++ /dev/null @@ -1,42 +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/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <groupId>org.apache.maven.its.source</groupId> - <artifactId>checkparameter-goal-jar-no-fork</artifactId> - <version>1.0-SNAPSHOT</version> - - <name>Test for parameters in goal: jar-no-fork</name> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-source-plugin</artifactId> - <version>@project.version@</version> - </plugin> - </plugins> - </build> - -</project> diff --git a/src/it/verify-parameter-goal-jar-no-fork/verify.groovy b/src/it/verify-parameter-goal-jar-no-fork/verify.groovy deleted file mode 100644 index a44f5a5..0000000 --- a/src/it/verify-parameter-goal-jar-no-fork/verify.groovy +++ /dev/null @@ -1,45 +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. - */ - -File buildLog = new File(basedir, 'build.log') - -assert buildLog.exists() - -assert buildLog.text.contains('source:jar-no-fork') -assert buildLog.text.contains(' archive') -assert buildLog.text.contains(' attach (Default: true)') -assert buildLog.text.contains(' classifier (Default: sources)') -assert buildLog.text.contains(' defaultManifestFile (Default:') -assert buildLog.text.contains(' ${project.build.outputDirectory}/META-INF/MANIFEST.MF)') -assert buildLog.text.contains(' excludeResources (Default: false)') -assert buildLog.text.contains(' excludes') -assert buildLog.text.contains(' finalName (Default: ${project.build.finalName})') -assert buildLog.text.contains(' forceCreation (Default: false)') -assert buildLog.text.contains(' includePom (Default: false)') -assert buildLog.text.contains(' includes') -assert buildLog.text.contains(' outputDirectory (Default: ${project.build.directory})') -assert buildLog.text.contains(' skipSource (Default: false)') -assert buildLog.text.contains(' useDefaultExcludes (Default: true)') -assert buildLog.text.contains(' useDefaultManifestFile (Default: false)') - -// Make sure the session/reactorProjects will not be visible for users -assert !buildLog.text.contains(' session (Default: ${session})') -assert !buildLog.text.contains(' reactorProjects (Default: ${reactorProjects})') - diff --git a/src/it/verify-parameter-goal-test-jar-no-fork/invoker.properties b/src/it/verify-parameter-goal-test-jar-no-fork/invoker.properties deleted file mode 100644 index 5d1726c..0000000 --- a/src/it/verify-parameter-goal-test-jar-no-fork/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}:help -Dgoal=test-jar-no-fork -Ddetail=true diff --git a/src/it/verify-parameter-goal-test-jar-no-fork/pom.xml b/src/it/verify-parameter-goal-test-jar-no-fork/pom.xml deleted file mode 100755 index 8a8e1ad..0000000 --- a/src/it/verify-parameter-goal-test-jar-no-fork/pom.xml +++ /dev/null @@ -1,42 +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/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <groupId>org.apache.maven.its.source</groupId> - <artifactId>checkparameter-goal-test-jar-no-fork</artifactId> - <version>1.0-SNAPSHOT</version> - - <name>Test for parameters in goal: test-jar-no-fork</name> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-source-plugin</artifactId> - <version>@project.version@</version> - </plugin> - </plugins> - </build> - -</project> diff --git a/src/it/verify-parameter-goal-test-jar-no-fork/verify.groovy b/src/it/verify-parameter-goal-test-jar-no-fork/verify.groovy deleted file mode 100644 index b490b6e..0000000 --- a/src/it/verify-parameter-goal-test-jar-no-fork/verify.groovy +++ /dev/null @@ -1,45 +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. - */ - -File buildLog = new File(basedir, 'build.log') - -assert buildLog.exists() - -assert buildLog.text.contains('source:test-jar-no-fork') -assert buildLog.text.contains(' archive') -assert buildLog.text.contains(' attach (Default: true)') -assert buildLog.text.contains(' classifier (Default: test-sources)') -assert buildLog.text.contains(' defaultManifestFile (Default:') -assert buildLog.text.contains(' ${project.build.outputDirectory}/META-INF/MANIFEST.MF)') -assert buildLog.text.contains(' excludeResources (Default: false)') -assert buildLog.text.contains(' excludes') -assert buildLog.text.contains(' finalName (Default: ${project.build.finalName})') -assert buildLog.text.contains(' forceCreation (Default: false)') -assert buildLog.text.contains(' includePom (Default: false)') -assert buildLog.text.contains(' includes') -assert buildLog.text.contains(' outputDirectory (Default: ${project.build.directory})') -assert buildLog.text.contains(' skipSource (Default: false)') -assert buildLog.text.contains(' useDefaultExcludes (Default: true)') -assert buildLog.text.contains(' useDefaultManifestFile (Default: false)') - -// Make sure the session/reactorProjects will not be visible for users -assert !buildLog.text.contains(' session (Default: ${session})') -assert !buildLog.text.contains(' reactorProjects (Default: ${reactorProjects})') - diff --git a/src/it/verify-parameter-goal-test-jar/invoker.properties b/src/it/verify-parameter-goal-test-jar/invoker.properties deleted file mode 100644 index 965f21c..0000000 --- a/src/it/verify-parameter-goal-test-jar/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}:help -Dgoal=test-jar -Ddetail=true diff --git a/src/it/verify-parameter-goal-test-jar/pom.xml b/src/it/verify-parameter-goal-test-jar/pom.xml deleted file mode 100755 index 8591932..0000000 --- a/src/it/verify-parameter-goal-test-jar/pom.xml +++ /dev/null @@ -1,42 +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/maven-v4_0_0.xsd"> - <modelVersion>4.0.0</modelVersion> - - <groupId>org.apache.maven.its.source</groupId> - <artifactId>checkparameter-goal-test-jar</artifactId> - <version>1.0-SNAPSHOT</version> - - <name>Test for parameters in goal: test-jar</name> - - <build> - <plugins> - <plugin> - <groupId>org.apache.maven.plugins</groupId> - <artifactId>maven-source-plugin</artifactId> - <version>@project.version@</version> - </plugin> - </plugins> - </build> - -</project> diff --git a/src/it/verify-parameter-goal-test-jar/verify.groovy b/src/it/verify-parameter-goal-test-jar/verify.groovy deleted file mode 100644 index 424257b..0000000 --- a/src/it/verify-parameter-goal-test-jar/verify.groovy +++ /dev/null @@ -1,45 +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. - */ - -File buildLog = new File(basedir, 'build.log') - -assert buildLog.exists() - -assert buildLog.text.contains('source:test-jar') -assert buildLog.text.contains(' archive') -assert buildLog.text.contains(' attach (Default: true)') -assert buildLog.text.contains(' classifier (Default: test-sources)') -assert buildLog.text.contains(' defaultManifestFile (Default:') -assert buildLog.text.contains(' ${project.build.outputDirectory}/META-INF/MANIFEST.MF)') -assert buildLog.text.contains(' excludeResources (Default: false)') -assert buildLog.text.contains(' excludes') -assert buildLog.text.contains(' finalName (Default: ${project.build.finalName})') -assert buildLog.text.contains(' forceCreation (Default: false)') -assert buildLog.text.contains(' includePom (Default: false)') -assert buildLog.text.contains(' includes') -assert buildLog.text.contains(' outputDirectory (Default: ${project.build.directory})') -assert buildLog.text.contains(' skipSource (Default: false)') -assert buildLog.text.contains(' useDefaultExcludes (Default: true)') -assert buildLog.text.contains(' useDefaultManifestFile (Default: false)') - -// Make sure the session/reactorProjects will not be visible for users -assert !buildLog.text.contains(' session (Default: ${session})') -assert !buildLog.text.contains(' reactorProjects (Default: ${reactorProjects})') -
