This is an automated email from the ASF dual-hosted git repository. gnodet pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/maven-source-plugin.git
commit 13f1f876f95adbdab8ff4e202710ae8f3de3cb86 Author: Guillaume Nodet <[email protected]> AuthorDate: Mon Jun 24 21:46:27 2024 +0200 Code formatting on ITs --- pom.xml | 16 ++++++++++ src/it/MSOURCES-121/pom.xml | 10 ++---- src/it/MSOURCES-121/src/main/java/MyClass.java | 10 ++---- src/it/MSOURCES-121/src/test/java/MyTest.java | 10 ++---- src/it/MSOURCES-140/pom.xml | 5 +-- src/it/MSOURCES-140/src/main/java/MyClass.java | 10 ++---- src/it/MSOURCES-140/src/test/java/MyTest.java | 10 ++---- src/it/MSOURCES-62/pom.xml | 4 +-- src/it/MSOURCES-64/pom.xml | 4 +-- src/it/MSOURCES-95/pom.xml | 5 +-- src/it/jar-attached/pom.xml | 8 ++--- src/it/jar-attached/src/main/java/MyClass.java | 10 ++---- src/it/jar-classifier/pom.xml | 9 ++---- src/it/jar-classifier/src/main/java/MyClass.java | 10 ++---- src/it/jar-classifier/src/test/java/MyTest.java | 10 ++---- src/it/jar-includes-excludes/pom.xml | 5 +-- .../src/main/java/MyClass.java | 10 ++---- .../src/main/java/MyClass2.java | 10 ++---- .../src/test/java/MyTest.java | 10 ++---- .../src/test/java/MyTest2.java | 10 ++---- src/it/jar-no-fork/pom.xml | 5 +-- src/it/jar-no-fork/src/main/java/MyClass.java | 10 ++---- src/it/jar-no-fork/src/test/java/MyTest.java | 10 ++---- src/it/jar-with-archive-config/pom.xml | 5 +-- .../src/main/java/MyClass.java | 10 ++---- .../src/test/java/MyTest.java | 10 ++---- src/it/jar-without-descriptor-config/pom.xml | 5 +-- .../src/main/java/MyClass.java | 10 ++---- .../src/test/java/MyTest.java | 10 ++---- src/it/jar/pom.xml | 9 ++---- src/it/jar/src/main/java/MyClass.java | 10 ++---- src/it/jar/src/test/java/MyTest.java | 10 ++---- src/it/manifest-content/pom.xml | 5 +-- src/it/manifest-content/src/main/java/MyClass.java | 10 ++---- src/it/project-without-sources/pom.xml | 5 +-- src/it/reproducible/pom.xml | 5 +-- src/it/test-jar-classifier/pom.xml | 9 ++---- .../test-jar-classifier/src/main/java/MyClass.java | 10 ++---- .../test-jar-classifier/src/test/java/MyTest.java | 10 ++---- src/it/test-jar-generated/pom.xml | 13 +++----- .../test-jar-generated/src/main/java/MyClass.java | 10 ++---- .../test-jar-generated/src/test/java/MyTest.java | 10 ++---- src/it/test-jar-no-fork/pom.xml | 5 +-- src/it/test-jar-no-fork/src/main/java/MyClass.java | 10 ++---- src/it/test-jar-no-fork/src/test/java/MyTest.java | 10 ++---- src/it/test-jar/pom.xml | 9 ++---- src/it/test-jar/src/main/java/MyClass.java | 10 ++---- src/it/test-jar/src/test/java/MyTest.java | 10 ++---- .../pom.xml | 5 +-- src/it/verify-parameter-goal-jar-no-fork/pom.xml | 5 +-- src/it/verify-parameter-goal-jar/pom.xml | 5 +-- .../verify-parameter-goal-test-jar-no-fork/pom.xml | 5 +-- src/it/verify-parameter-goal-test-jar/pom.xml | 5 +-- src/test/resources/unit/project-001/pom.xml | 8 ++--- .../src/main/java/foo/project001/App.java | 26 ++++++++++++--- .../src/test/java/foo/project001/AppTest.java | 37 +++++++++++++++------- src/test/resources/unit/project-003/pom.xml | 10 +++--- .../src/main/java/foo/project003/App.java | 26 ++++++++++++--- .../src/test/java/foo/project003/AppTest.java | 37 +++++++++++++++------- src/test/resources/unit/project-005/pom.xml | 8 ++--- src/test/resources/unit/project-007/pom.xml | 8 ++--- .../src/main/java/foo/project007/App.java | 26 ++++++++++++--- src/test/resources/unit/project-009/pom.xml | 8 ++--- .../src/main/java/foo/project009/App.java | 26 ++++++++++++--- src/test/resources/unit/project-010/pom.xml | 8 ++--- .../src/main/java/foo/project010/App.java | 26 ++++++++++++--- .../src/test/java/foo/project010/AppTest.java | 37 +++++++++++++++------- 67 files changed, 338 insertions(+), 399 deletions(-) diff --git a/pom.xml b/pom.xml index 17c90b2..2443c1f 100644 --- a/pom.xml +++ b/pom.xml @@ -163,6 +163,22 @@ under the License. <build> <plugins> + <plugin> + <groupId>com.diffplug.spotless</groupId> + <artifactId>spotless-maven-plugin</artifactId> + <configuration> + <java> + <includes> + <include>src/**/*.java</include> + </includes> + </java> + <pom> + <includes> + <include>**/pom.xml</include> + </includes> + </pom> + </configuration> + </plugin> <plugin> <groupId>org.apache.rat</groupId> <artifactId>apache-rat-plugin</artifactId> diff --git a/src/it/MSOURCES-121/pom.xml b/src/it/MSOURCES-121/pom.xml index 975b8c2..0a0946c 100644 --- a/src/it/MSOURCES-121/pom.xml +++ b/src/it/MSOURCES-121/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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.sources</groupId> @@ -28,12 +25,11 @@ <version>1.0-SNAPSHOT</version> <name>Test for multiple attachments of files</name> - <description>This build should fail based on the duplicate + <description>This build should fail based on the duplicate execution with the same configuration. This will erroneously add the classifier/file twice. MSOURCES-121. - update with MSOURCES-141: do not fail but detect and not add twice - </description> + update with MSOURCES-141: do not fail but detect and not add twice</description> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> diff --git a/src/it/MSOURCES-121/src/main/java/MyClass.java b/src/it/MSOURCES-121/src/main/java/MyClass.java index 4945381..22ad741 100644 --- a/src/it/MSOURCES-121/src/main/java/MyClass.java +++ b/src/it/MSOURCES-121/src/main/java/MyClass.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyClass -{ - -} +public class MyClass {} diff --git a/src/it/MSOURCES-121/src/test/java/MyTest.java b/src/it/MSOURCES-121/src/test/java/MyTest.java index 9d124be..b4eec60 100644 --- a/src/it/MSOURCES-121/src/test/java/MyTest.java +++ b/src/it/MSOURCES-121/src/test/java/MyTest.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyTest -{ - -} +public class MyTest {} diff --git a/src/it/MSOURCES-140/pom.xml b/src/it/MSOURCES-140/pom.xml index c22d234..6dba478 100644 --- a/src/it/MSOURCES-140/pom.xml +++ b/src/it/MSOURCES-140/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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.sources</groupId> diff --git a/src/it/MSOURCES-140/src/main/java/MyClass.java b/src/it/MSOURCES-140/src/main/java/MyClass.java index 4945381..22ad741 100644 --- a/src/it/MSOURCES-140/src/main/java/MyClass.java +++ b/src/it/MSOURCES-140/src/main/java/MyClass.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyClass -{ - -} +public class MyClass {} diff --git a/src/it/MSOURCES-140/src/test/java/MyTest.java b/src/it/MSOURCES-140/src/test/java/MyTest.java index 9d124be..b4eec60 100644 --- a/src/it/MSOURCES-140/src/test/java/MyTest.java +++ b/src/it/MSOURCES-140/src/test/java/MyTest.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyTest -{ - -} +public class MyTest {} diff --git a/src/it/MSOURCES-62/pom.xml b/src/it/MSOURCES-62/pom.xml index 672b413..582ea44 100644 --- a/src/it/MSOURCES-62/pom.xml +++ b/src/it/MSOURCES-62/pom.xml @@ -17,9 +17,7 @@ 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"> +<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.ejb</groupId> diff --git a/src/it/MSOURCES-64/pom.xml b/src/it/MSOURCES-64/pom.xml index 8bd16b7..8875adf 100644 --- a/src/it/MSOURCES-64/pom.xml +++ b/src/it/MSOURCES-64/pom.xml @@ -17,9 +17,7 @@ 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"> +<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.ejb</groupId> diff --git a/src/it/MSOURCES-95/pom.xml b/src/it/MSOURCES-95/pom.xml index e16d8c6..c817554 100644 --- a/src/it/MSOURCES-95/pom.xml +++ b/src/it/MSOURCES-95/pom.xml @@ -17,10 +17,7 @@ ~ 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-4.0.0.xsd"> +<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-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>org.apache.maven.its.source</groupId> diff --git a/src/it/jar-attached/pom.xml b/src/it/jar-attached/pom.xml index 7610fd5..5c6eb1c 100644 --- a/src/it/jar-attached/pom.xml +++ b/src/it/jar-attached/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> @@ -42,11 +39,10 @@ <executions> <execution> <id>attach-sources</id> - <configuration> - </configuration> <goals> <goal>jar</goal> </goals> + <configuration /> </execution> </executions> </plugin> diff --git a/src/it/jar-attached/src/main/java/MyClass.java b/src/it/jar-attached/src/main/java/MyClass.java index 4945381..22ad741 100644 --- a/src/it/jar-attached/src/main/java/MyClass.java +++ b/src/it/jar-attached/src/main/java/MyClass.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyClass -{ - -} +public class MyClass {} diff --git a/src/it/jar-classifier/pom.xml b/src/it/jar-classifier/pom.xml index 4cf075e..95cc2e2 100644 --- a/src/it/jar-classifier/pom.xml +++ b/src/it/jar-classifier/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> @@ -50,13 +47,13 @@ <executions> <execution> <id>generated-sources</id> - <phase>generate-sources</phase> <goals> <goal>run</goal> </goals> + <phase>generate-sources</phase> <configuration> <tasks> - <touch file="target/generated-sources/ant/generated.properties" mkdirs="true"/> + <touch file="target/generated-sources/ant/generated.properties" mkdirs="true" /> </tasks> <sourceRoot>target/generated-sources/ant</sourceRoot> </configuration> diff --git a/src/it/jar-classifier/src/main/java/MyClass.java b/src/it/jar-classifier/src/main/java/MyClass.java index 4945381..22ad741 100644 --- a/src/it/jar-classifier/src/main/java/MyClass.java +++ b/src/it/jar-classifier/src/main/java/MyClass.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyClass -{ - -} +public class MyClass {} diff --git a/src/it/jar-classifier/src/test/java/MyTest.java b/src/it/jar-classifier/src/test/java/MyTest.java index 9d124be..b4eec60 100644 --- a/src/it/jar-classifier/src/test/java/MyTest.java +++ b/src/it/jar-classifier/src/test/java/MyTest.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyTest -{ - -} +public class MyTest {} diff --git a/src/it/jar-includes-excludes/pom.xml b/src/it/jar-includes-excludes/pom.xml index b0c3f75..f651d95 100644 --- a/src/it/jar-includes-excludes/pom.xml +++ b/src/it/jar-includes-excludes/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> diff --git a/src/it/jar-includes-excludes/src/main/java/MyClass.java b/src/it/jar-includes-excludes/src/main/java/MyClass.java index 4945381..22ad741 100644 --- a/src/it/jar-includes-excludes/src/main/java/MyClass.java +++ b/src/it/jar-includes-excludes/src/main/java/MyClass.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyClass -{ - -} +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 index 9c66faa..0a27e41 100644 --- a/src/it/jar-includes-excludes/src/main/java/MyClass2.java +++ b/src/it/jar-includes-excludes/src/main/java/MyClass2.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyClass2 -{ - -} +public class MyClass2 {} diff --git a/src/it/jar-includes-excludes/src/test/java/MyTest.java b/src/it/jar-includes-excludes/src/test/java/MyTest.java index 9d124be..b4eec60 100644 --- a/src/it/jar-includes-excludes/src/test/java/MyTest.java +++ b/src/it/jar-includes-excludes/src/test/java/MyTest.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyTest -{ - -} +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 index 6a8440e..f5063f0 100644 --- a/src/it/jar-includes-excludes/src/test/java/MyTest2.java +++ b/src/it/jar-includes-excludes/src/test/java/MyTest2.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyTest2 -{ - -} +public class MyTest2 {} diff --git a/src/it/jar-no-fork/pom.xml b/src/it/jar-no-fork/pom.xml index 22967cc..9f01a1b 100644 --- a/src/it/jar-no-fork/pom.xml +++ b/src/it/jar-no-fork/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> diff --git a/src/it/jar-no-fork/src/main/java/MyClass.java b/src/it/jar-no-fork/src/main/java/MyClass.java index 4945381..22ad741 100644 --- a/src/it/jar-no-fork/src/main/java/MyClass.java +++ b/src/it/jar-no-fork/src/main/java/MyClass.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyClass -{ - -} +public class MyClass {} diff --git a/src/it/jar-no-fork/src/test/java/MyTest.java b/src/it/jar-no-fork/src/test/java/MyTest.java index 9d124be..b4eec60 100644 --- a/src/it/jar-no-fork/src/test/java/MyTest.java +++ b/src/it/jar-no-fork/src/test/java/MyTest.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyTest -{ - -} +public class MyTest {} diff --git a/src/it/jar-with-archive-config/pom.xml b/src/it/jar-with-archive-config/pom.xml index c89d03f..ae9e01f 100644 --- a/src/it/jar-with-archive-config/pom.xml +++ b/src/it/jar-with-archive-config/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> diff --git a/src/it/jar-with-archive-config/src/main/java/MyClass.java b/src/it/jar-with-archive-config/src/main/java/MyClass.java index 4945381..22ad741 100644 --- a/src/it/jar-with-archive-config/src/main/java/MyClass.java +++ b/src/it/jar-with-archive-config/src/main/java/MyClass.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyClass -{ - -} +public class MyClass {} diff --git a/src/it/jar-with-archive-config/src/test/java/MyTest.java b/src/it/jar-with-archive-config/src/test/java/MyTest.java index 9d124be..b4eec60 100644 --- a/src/it/jar-with-archive-config/src/test/java/MyTest.java +++ b/src/it/jar-with-archive-config/src/test/java/MyTest.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyTest -{ - -} +public class MyTest {} diff --git a/src/it/jar-without-descriptor-config/pom.xml b/src/it/jar-without-descriptor-config/pom.xml index b2801d9..7806151 100644 --- a/src/it/jar-without-descriptor-config/pom.xml +++ b/src/it/jar-without-descriptor-config/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> diff --git a/src/it/jar-without-descriptor-config/src/main/java/MyClass.java b/src/it/jar-without-descriptor-config/src/main/java/MyClass.java index 4945381..22ad741 100644 --- a/src/it/jar-without-descriptor-config/src/main/java/MyClass.java +++ b/src/it/jar-without-descriptor-config/src/main/java/MyClass.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyClass -{ - -} +public class MyClass {} diff --git a/src/it/jar-without-descriptor-config/src/test/java/MyTest.java b/src/it/jar-without-descriptor-config/src/test/java/MyTest.java index 9d124be..b4eec60 100644 --- a/src/it/jar-without-descriptor-config/src/test/java/MyTest.java +++ b/src/it/jar-without-descriptor-config/src/test/java/MyTest.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyTest -{ - -} +public class MyTest {} diff --git a/src/it/jar/pom.xml b/src/it/jar/pom.xml index 5d58b14..d80aec8 100644 --- a/src/it/jar/pom.xml +++ b/src/it/jar/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> @@ -47,13 +44,13 @@ <executions> <execution> <id>generated-sources</id> - <phase>generate-sources</phase> <goals> <goal>run</goal> </goals> + <phase>generate-sources</phase> <configuration> <tasks> - <touch file="target/generated-sources/ant/generated.properties" mkdirs="true"/> + <touch file="target/generated-sources/ant/generated.properties" mkdirs="true" /> </tasks> <sourceRoot>target/generated-sources/ant</sourceRoot> </configuration> diff --git a/src/it/jar/src/main/java/MyClass.java b/src/it/jar/src/main/java/MyClass.java index 4945381..22ad741 100644 --- a/src/it/jar/src/main/java/MyClass.java +++ b/src/it/jar/src/main/java/MyClass.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyClass -{ - -} +public class MyClass {} diff --git a/src/it/jar/src/test/java/MyTest.java b/src/it/jar/src/test/java/MyTest.java index 9d124be..b4eec60 100644 --- a/src/it/jar/src/test/java/MyTest.java +++ b/src/it/jar/src/test/java/MyTest.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyTest -{ - -} +public class MyTest {} diff --git a/src/it/manifest-content/pom.xml b/src/it/manifest-content/pom.xml index f7fcb96..ab8f4b2 100644 --- a/src/it/manifest-content/pom.xml +++ b/src/it/manifest-content/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> diff --git a/src/it/manifest-content/src/main/java/MyClass.java b/src/it/manifest-content/src/main/java/MyClass.java index 4945381..22ad741 100644 --- a/src/it/manifest-content/src/main/java/MyClass.java +++ b/src/it/manifest-content/src/main/java/MyClass.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyClass -{ - -} +public class MyClass {} diff --git a/src/it/project-without-sources/pom.xml b/src/it/project-without-sources/pom.xml index f08ace1..7adb6eb 100755 --- a/src/it/project-without-sources/pom.xml +++ b/src/it/project-without-sources/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> diff --git a/src/it/reproducible/pom.xml b/src/it/reproducible/pom.xml index 2945352..d726b19 100644 --- a/src/it/reproducible/pom.xml +++ b/src/it/reproducible/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> <parent> diff --git a/src/it/test-jar-classifier/pom.xml b/src/it/test-jar-classifier/pom.xml index 9261396..68e1b91 100644 --- a/src/it/test-jar-classifier/pom.xml +++ b/src/it/test-jar-classifier/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> @@ -50,13 +47,13 @@ <executions> <execution> <id>generated-sources</id> - <phase>generate-sources</phase> <goals> <goal>run</goal> </goals> + <phase>generate-sources</phase> <configuration> <tasks> - <touch file="target/generated-sources/ant/generated.properties" mkdirs="true"/> + <touch file="target/generated-sources/ant/generated.properties" mkdirs="true" /> </tasks> <testSourceRoot>target/generated-sources/ant</testSourceRoot> </configuration> diff --git a/src/it/test-jar-classifier/src/main/java/MyClass.java b/src/it/test-jar-classifier/src/main/java/MyClass.java index 4945381..22ad741 100644 --- a/src/it/test-jar-classifier/src/main/java/MyClass.java +++ b/src/it/test-jar-classifier/src/main/java/MyClass.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyClass -{ - -} +public class MyClass {} diff --git a/src/it/test-jar-classifier/src/test/java/MyTest.java b/src/it/test-jar-classifier/src/test/java/MyTest.java index 9d124be..b4eec60 100644 --- a/src/it/test-jar-classifier/src/test/java/MyTest.java +++ b/src/it/test-jar-classifier/src/test/java/MyTest.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyTest -{ - -} +public class MyTest {} diff --git a/src/it/test-jar-generated/pom.xml b/src/it/test-jar-generated/pom.xml index 7b75d28..e83a133 100644 --- a/src/it/test-jar-generated/pom.xml +++ b/src/it/test-jar-generated/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> @@ -47,26 +44,26 @@ <executions> <execution> <id>generated-sources</id> - <phase>generate-sources</phase> <goals> <goal>run</goal> </goals> + <phase>generate-sources</phase> <configuration> <tasks> - <touch file="target/generated-sources/ant/generated.properties" mkdirs="true"/> + <touch file="target/generated-sources/ant/generated.properties" mkdirs="true" /> </tasks> <testSourceRoot>target/generated-sources/ant</testSourceRoot> </configuration> </execution> <execution> <id>generate-test-sources</id> - <phase>generate-test-sources</phase> <goals> <goal>run</goal> </goals> + <phase>generate-test-sources</phase> <configuration> <tasks> - <touch file="target/generated-sources/ant/generate-test-sources.properties" mkdirs="true"/> + <touch file="target/generated-sources/ant/generate-test-sources.properties" mkdirs="true" /> </tasks> <testSourceRoot>target/generated-sources/ant</testSourceRoot> </configuration> diff --git a/src/it/test-jar-generated/src/main/java/MyClass.java b/src/it/test-jar-generated/src/main/java/MyClass.java index 4945381..22ad741 100644 --- a/src/it/test-jar-generated/src/main/java/MyClass.java +++ b/src/it/test-jar-generated/src/main/java/MyClass.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyClass -{ - -} +public class MyClass {} diff --git a/src/it/test-jar-generated/src/test/java/MyTest.java b/src/it/test-jar-generated/src/test/java/MyTest.java index 9d124be..b4eec60 100644 --- a/src/it/test-jar-generated/src/test/java/MyTest.java +++ b/src/it/test-jar-generated/src/test/java/MyTest.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyTest -{ - -} +public class MyTest {} diff --git a/src/it/test-jar-no-fork/pom.xml b/src/it/test-jar-no-fork/pom.xml index f3d16c9..49e3c87 100644 --- a/src/it/test-jar-no-fork/pom.xml +++ b/src/it/test-jar-no-fork/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> diff --git a/src/it/test-jar-no-fork/src/main/java/MyClass.java b/src/it/test-jar-no-fork/src/main/java/MyClass.java index 4945381..22ad741 100644 --- a/src/it/test-jar-no-fork/src/main/java/MyClass.java +++ b/src/it/test-jar-no-fork/src/main/java/MyClass.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyClass -{ - -} +public class MyClass {} diff --git a/src/it/test-jar-no-fork/src/test/java/MyTest.java b/src/it/test-jar-no-fork/src/test/java/MyTest.java index 9d124be..b4eec60 100644 --- a/src/it/test-jar-no-fork/src/test/java/MyTest.java +++ b/src/it/test-jar-no-fork/src/test/java/MyTest.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyTest -{ - -} +public class MyTest {} diff --git a/src/it/test-jar/pom.xml b/src/it/test-jar/pom.xml index 116f387..88fab51 100644 --- a/src/it/test-jar/pom.xml +++ b/src/it/test-jar/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> @@ -47,13 +44,13 @@ <executions> <execution> <id>generated-sources</id> - <phase>generate-sources</phase> <goals> <goal>run</goal> </goals> + <phase>generate-sources</phase> <configuration> <tasks> - <touch file="target/generated-sources/ant/generated.properties" mkdirs="true"/> + <touch file="target/generated-sources/ant/generated.properties" mkdirs="true" /> </tasks> <testSourceRoot>target/generated-sources/ant</testSourceRoot> </configuration> diff --git a/src/it/test-jar/src/main/java/MyClass.java b/src/it/test-jar/src/main/java/MyClass.java index 4945381..22ad741 100644 --- a/src/it/test-jar/src/main/java/MyClass.java +++ b/src/it/test-jar/src/main/java/MyClass.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyClass -{ - -} +public class MyClass {} diff --git a/src/it/test-jar/src/test/java/MyTest.java b/src/it/test-jar/src/test/java/MyTest.java index 9d124be..b4eec60 100644 --- a/src/it/test-jar/src/test/java/MyTest.java +++ b/src/it/test-jar/src/test/java/MyTest.java @@ -6,9 +6,9 @@ * 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 @@ -16,8 +16,4 @@ * specific language governing permissions and limitations * under the License. */ - -public class MyTest -{ - -} +public class MyTest {} diff --git a/src/it/verify-parameter-goal-generated-test-jar/pom.xml b/src/it/verify-parameter-goal-generated-test-jar/pom.xml index 4fb98cf..59c5554 100755 --- a/src/it/verify-parameter-goal-generated-test-jar/pom.xml +++ b/src/it/verify-parameter-goal-generated-test-jar/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> diff --git a/src/it/verify-parameter-goal-jar-no-fork/pom.xml b/src/it/verify-parameter-goal-jar-no-fork/pom.xml index bfec931..d6fae5c 100755 --- a/src/it/verify-parameter-goal-jar-no-fork/pom.xml +++ b/src/it/verify-parameter-goal-jar-no-fork/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> diff --git a/src/it/verify-parameter-goal-jar/pom.xml b/src/it/verify-parameter-goal-jar/pom.xml index 4bf4173..b898fbb 100755 --- a/src/it/verify-parameter-goal-jar/pom.xml +++ b/src/it/verify-parameter-goal-jar/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> 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 index 8a8e1ad..ea4ecd8 100755 --- a/src/it/verify-parameter-goal-test-jar-no-fork/pom.xml +++ b/src/it/verify-parameter-goal-test-jar-no-fork/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> diff --git a/src/it/verify-parameter-goal-test-jar/pom.xml b/src/it/verify-parameter-goal-test-jar/pom.xml index 8591932..26e60aa 100755 --- a/src/it/verify-parameter-goal-test-jar/pom.xml +++ b/src/it/verify-parameter-goal-test-jar/pom.xml @@ -17,10 +17,7 @@ ~ 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"> +<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> diff --git a/src/test/resources/unit/project-001/pom.xml b/src/test/resources/unit/project-001/pom.xml index d1c659b..3cc99fb 100644 --- a/src/test/resources/unit/project-001/pom.xml +++ b/src/test/resources/unit/project-001/pom.xml @@ -17,15 +17,13 @@ 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"> +<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>source</groupId> <artifactId>maven-source-plugin-test-project-001</artifactId> <version>99.0</version> - <name>Maven</name> <packaging>jar</packaging> + <name>Maven</name> <url>http://maven.apache.org</url> <dependencies> <dependency> @@ -54,7 +52,7 @@ under the License. <project implementation="org.apache.maven.plugins.source.stubs.Project001Stub"/> <outputDirectory>${basedir}/target/test/unit/project-001/target</outputDirectory> <finalName>maven-source-plugin-test-project-001-99.0</finalName> - <reactorProjects/> + <reactorProjects /> </configuration> </plugin> </plugins> diff --git a/src/test/resources/unit/project-001/src/main/java/foo/project001/App.java b/src/test/resources/unit/project-001/src/main/java/foo/project001/App.java index 10053c9..dec027b 100644 --- a/src/test/resources/unit/project-001/src/main/java/foo/project001/App.java +++ b/src/test/resources/unit/project-001/src/main/java/foo/project001/App.java @@ -1,3 +1,21 @@ +/* + * 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. + */ package foo.project001; /* @@ -23,10 +41,8 @@ package foo.project001; * Hello world! * */ -public class App -{ - public static void main( String[] args ) - { - System.out.println( "Hello World!" ); +public class App { + public static void main(String[] args) { + System.out.println("Hello World!"); } } diff --git a/src/test/resources/unit/project-001/src/test/java/foo/project001/AppTest.java b/src/test/resources/unit/project-001/src/test/java/foo/project001/AppTest.java index d5a0e00..63db293 100644 --- a/src/test/resources/unit/project-001/src/test/java/foo/project001/AppTest.java +++ b/src/test/resources/unit/project-001/src/test/java/foo/project001/AppTest.java @@ -1,3 +1,21 @@ +/* + * 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. + */ package foo.project001; /* @@ -26,32 +44,27 @@ import junit.framework.TestSuite; /** * Unit test for simple App. */ -public class AppTest - extends TestCase -{ +public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ - public AppTest( String testName ) - { - super( testName ); + public AppTest(String testName) { + super(testName); } /** * @return the suite of tests being tested */ - public static Test suite() - { - return new TestSuite( AppTest.class ); + public static Test suite() { + return new TestSuite(AppTest.class); } /** * Rigourous Test :-) */ - public void testApp() - { - assertTrue( true ); + public void testApp() { + assertTrue(true); } } diff --git a/src/test/resources/unit/project-003/pom.xml b/src/test/resources/unit/project-003/pom.xml index e10189e..214f9c1 100644 --- a/src/test/resources/unit/project-003/pom.xml +++ b/src/test/resources/unit/project-003/pom.xml @@ -17,15 +17,13 @@ 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"> +<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>source</groupId> <artifactId>maven-source-plugin-test-project-003</artifactId> <version>99.0</version> - <name>Maven</name> <packaging>jar</packaging> + <name>Maven</name> <dependencies> <dependency> <groupId>junit</groupId> @@ -40,7 +38,7 @@ under the License. <directory>target/test-classes/unit/project-003/src/main/resources</directory> <excludes> <exclude>excluded-file.txt</exclude> - </excludes> + </excludes> </resource> </resources> <testResources> @@ -59,7 +57,7 @@ under the License. <project implementation="org.apache.maven.plugins.source.stubs.Project003Stub"/> <outputDirectory>${basedir}/target/test/unit/project-003/target</outputDirectory> <finalName>maven-source-plugin-test-project-003-99.0</finalName> - <reactorProjects/> + <reactorProjects /> </configuration> </plugin> </plugins> diff --git a/src/test/resources/unit/project-003/src/main/java/foo/project003/App.java b/src/test/resources/unit/project-003/src/main/java/foo/project003/App.java index 2d341ae..8a6c866 100644 --- a/src/test/resources/unit/project-003/src/main/java/foo/project003/App.java +++ b/src/test/resources/unit/project-003/src/main/java/foo/project003/App.java @@ -1,3 +1,21 @@ +/* + * 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. + */ package foo.project003; /* @@ -23,10 +41,8 @@ package foo.project003; * Hello world! * */ -public class App -{ - public static void main( String[] args ) - { - System.out.println( "Hello World!" ); +public class App { + public static void main(String[] args) { + System.out.println("Hello World!"); } } diff --git a/src/test/resources/unit/project-003/src/test/java/foo/project003/AppTest.java b/src/test/resources/unit/project-003/src/test/java/foo/project003/AppTest.java index 06acafc..55c4ed5 100644 --- a/src/test/resources/unit/project-003/src/test/java/foo/project003/AppTest.java +++ b/src/test/resources/unit/project-003/src/test/java/foo/project003/AppTest.java @@ -1,3 +1,21 @@ +/* + * 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. + */ package foo.project003; /* @@ -26,32 +44,27 @@ import junit.framework.TestSuite; /** * Unit test for simple App. */ -public class AppTest - extends TestCase -{ +public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ - public AppTest( String testName ) - { - super( testName ); + public AppTest(String testName) { + super(testName); } /** * @return the suite of tests being tested */ - public static Test suite() - { - return new TestSuite( AppTest.class ); + public static Test suite() { + return new TestSuite(AppTest.class); } /** * Rigourous Test :-) */ - public void testApp() - { - assertTrue( true ); + public void testApp() { + assertTrue(true); } } diff --git a/src/test/resources/unit/project-005/pom.xml b/src/test/resources/unit/project-005/pom.xml index d54018b..695bb43 100644 --- a/src/test/resources/unit/project-005/pom.xml +++ b/src/test/resources/unit/project-005/pom.xml @@ -17,16 +17,14 @@ 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"> +<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>source</groupId> <artifactId>maven-source-plugin-test-project-005</artifactId> <version>99.0</version> - <name>Maven</name> <!-- POM packaging, no archive should be created --> <packaging>pom</packaging> + <name>Maven</name> <dependencies> <dependency> <groupId>junit</groupId> @@ -44,7 +42,7 @@ under the License. <project implementation="org.apache.maven.plugins.source.stubs.Project005Stub"/> <outputDirectory>${basedir}/target/test/unit/project-005/target</outputDirectory> <finalName>maven-source-plugin-test-project-005-99.0</finalName> - <reactorProjects/> + <reactorProjects /> </configuration> </plugin> </plugins> diff --git a/src/test/resources/unit/project-007/pom.xml b/src/test/resources/unit/project-007/pom.xml index f1dfb40..58f199e 100644 --- a/src/test/resources/unit/project-007/pom.xml +++ b/src/test/resources/unit/project-007/pom.xml @@ -17,15 +17,13 @@ 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"> +<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>source</groupId> <artifactId>maven-source-plugin-test-project-007</artifactId> <version>99.0</version> - <name>Maven</name> <packaging>jar</packaging> + <name>Maven</name> <dependencies> <dependency> <groupId>junit</groupId> @@ -51,7 +49,7 @@ under the License. <project implementation="org.apache.maven.plugins.source.stubs.Project007Stub"/> <outputDirectory>${basedir}/target/test/unit/project-007/target</outputDirectory> <finalName>maven-source-plugin-test-project-007-99.0</finalName> - <reactorProjects/> + <reactorProjects /> </configuration> </plugin> </plugins> diff --git a/src/test/resources/unit/project-007/src/main/java/foo/project007/App.java b/src/test/resources/unit/project-007/src/main/java/foo/project007/App.java index 4958ba9..f882eba 100644 --- a/src/test/resources/unit/project-007/src/main/java/foo/project007/App.java +++ b/src/test/resources/unit/project-007/src/main/java/foo/project007/App.java @@ -1,3 +1,21 @@ +/* + * 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. + */ package foo.project007; /* @@ -23,10 +41,8 @@ package foo.project007; * Hello world! * */ -public class App -{ - public static void main( String[] args ) - { - System.out.println( "Hello World!" ); +public class App { + public static void main(String[] args) { + System.out.println("Hello World!"); } } diff --git a/src/test/resources/unit/project-009/pom.xml b/src/test/resources/unit/project-009/pom.xml index 2562083..bea8dcd 100644 --- a/src/test/resources/unit/project-009/pom.xml +++ b/src/test/resources/unit/project-009/pom.xml @@ -17,15 +17,13 @@ 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"> +<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>source</groupId> <artifactId>maven-source-plugin-test-project-009</artifactId> <version>99.0</version> - <name>Maven</name> <packaging>jar</packaging> + <name>Maven</name> <dependencies> <dependency> <groupId>junit</groupId> @@ -49,7 +47,7 @@ under the License. <project implementation="org.apache.maven.plugins.source.stubs.Project009Stub"/> <outputDirectory>${basedir}/target/test/unit/project-009/target</outputDirectory> <finalName>maven-source-plugin-test-project-009-99.0</finalName> - <reactorProjects/> + <reactorProjects /> </configuration> </plugin> </plugins> diff --git a/src/test/resources/unit/project-009/src/main/java/foo/project009/App.java b/src/test/resources/unit/project-009/src/main/java/foo/project009/App.java index 66522e4..8505312 100644 --- a/src/test/resources/unit/project-009/src/main/java/foo/project009/App.java +++ b/src/test/resources/unit/project-009/src/main/java/foo/project009/App.java @@ -1,3 +1,21 @@ +/* + * 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. + */ package foo.project009; /* @@ -23,10 +41,8 @@ package foo.project009; * Hello world! * */ -public class App -{ - public static void main( String[] args ) - { - System.out.println( "Hello World!" ); +public class App { + public static void main(String[] args) { + System.out.println("Hello World!"); } } diff --git a/src/test/resources/unit/project-010/pom.xml b/src/test/resources/unit/project-010/pom.xml index 9972cea..819d6b8 100644 --- a/src/test/resources/unit/project-010/pom.xml +++ b/src/test/resources/unit/project-010/pom.xml @@ -17,15 +17,13 @@ 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"> +<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>source</groupId> <artifactId>maven-source-plugin-test-project-010</artifactId> <version>99.0</version> - <name>Maven</name> <packaging>jar</packaging> + <name>Maven</name> <url>http://maven.apache.org</url> <dependencies> <dependency> @@ -54,7 +52,7 @@ under the License. <project implementation="org.apache.maven.plugins.source.stubs.Project010Stub"/> <outputDirectory>${basedir}/target/test/unit/project-010/target</outputDirectory> <finalName>maven-source-plugin-test-project-010-99.0</finalName> - <reactorProjects/> + <reactorProjects /> <archive> <addMavenDescriptor>true</addMavenDescriptor> </archive> diff --git a/src/test/resources/unit/project-010/src/main/java/foo/project010/App.java b/src/test/resources/unit/project-010/src/main/java/foo/project010/App.java index 1c93f39..9a8a17f 100644 --- a/src/test/resources/unit/project-010/src/main/java/foo/project010/App.java +++ b/src/test/resources/unit/project-010/src/main/java/foo/project010/App.java @@ -1,3 +1,21 @@ +/* + * 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. + */ package foo.project010; /* @@ -23,10 +41,8 @@ package foo.project010; * Hello world! * */ -public class App -{ - public static void main( String[] args ) - { - System.out.println( "Hello World!" ); +public class App { + public static void main(String[] args) { + System.out.println("Hello World!"); } } diff --git a/src/test/resources/unit/project-010/src/test/java/foo/project010/AppTest.java b/src/test/resources/unit/project-010/src/test/java/foo/project010/AppTest.java index 06b6a16..28a94db 100644 --- a/src/test/resources/unit/project-010/src/test/java/foo/project010/AppTest.java +++ b/src/test/resources/unit/project-010/src/test/java/foo/project010/AppTest.java @@ -1,3 +1,21 @@ +/* + * 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. + */ package foo.project010; /* @@ -26,32 +44,27 @@ import junit.framework.TestSuite; /** * Unit test for simple App. */ -public class AppTest - extends TestCase -{ +public class AppTest extends TestCase { /** * Create the test case * * @param testName name of the test case */ - public AppTest( String testName ) - { - super( testName ); + public AppTest(String testName) { + super(testName); } /** * @return the suite of tests being tested */ - public static Test suite() - { - return new TestSuite( AppTest.class ); + public static Test suite() { + return new TestSuite(AppTest.class); } /** * Rigourous Test :-) */ - public void testApp() - { - assertTrue( true ); + public void testApp() { + assertTrue(true); } }
