This is an automated email from the ASF dual-hosted git repository. tibordigana pushed a commit to branch buildfix in repository https://gitbox.apache.org/repos/asf/maven-archetype.git
commit 9d45acab6a39c1bfc1c510bb7faf17cac178d081 Author: tibordigana <[email protected]> AuthorDate: Sun Jul 28 22:37:10 2019 +0200 Archetype ITs should exclude copying unnecessary file build.log (open file with ongoing writes), otherwise the copy fails with IOException. --- .../archetype.properties | 6 +++--- .../archetype.properties | 6 +++--- .../archetype.properties | 6 +++--- .../archetype.properties | 6 +++--- .../archetype.properties | 6 +++--- .../{create-from-project => build-and-run-its}/archetype.properties | 6 +++--- .../{create-from-project => build-archetype}/archetype.properties | 6 +++--- .../{create-from-project => build-ignore-eol}/archetype.properties | 6 +++--- .../src/it/projects/change-file-with-property/archetype.properties | 1 + .../src/it/projects/create-1/archetype.properties | 3 ++- .../src/it/projects/create-2/archetype.properties | 3 ++- .../src/it/projects/create-3/archetype.properties | 2 ++ .../src/it/projects/create-4/archetype.properties | 3 ++- .../src/it/projects/create-5/archetype.properties | 1 + .../src/it/projects/create-6/archetype.properties | 1 + .../create-from-project-exclude-patterns/archetype.properties | 2 +- .../src/it/projects/create-from-project/archetype.properties | 3 ++- .../src/it/projects/exclude-patterns-2/archetype.properties | 2 +- .../src/it/projects/exclude-patterns/archetype.properties | 2 +- .../{create-from-project => generate-basic}/archetype.properties | 6 +++--- .../it/projects/include-file-with-no-extension/archetype.properties | 1 + .../src/it/projects/included-system-properties/archetype.properties | 1 + .../archetype.properties | 6 +++--- 23 files changed, 48 insertions(+), 37 deletions(-) diff --git a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties b/maven-archetype-plugin/src/it/projects/ARCHETYPE-241_filter-directory/archetype.properties similarity index 92% copy from maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties copy to maven-archetype-plugin/src/it/projects/ARCHETYPE-241_filter-directory/archetype.properties index 8fb65f9..74cf9cb 100644 --- a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/ARCHETYPE-241_filter-directory/archetype.properties @@ -5,9 +5,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 @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -AppName App \ No newline at end of file +excludePatterns=build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties b/maven-archetype-plugin/src/it/projects/ARCHETYPE-517_failing-goals/archetype.properties similarity index 92% copy from maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties copy to maven-archetype-plugin/src/it/projects/ARCHETYPE-517_failing-goals/archetype.properties index 8fb65f9..74cf9cb 100644 --- a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/ARCHETYPE-517_failing-goals/archetype.properties @@ -5,9 +5,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 @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -AppName App \ No newline at end of file +excludePatterns=build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties b/maven-archetype-plugin/src/it/projects/ARCHETYPE-520_mirror/archetype.properties similarity index 92% copy from maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties copy to maven-archetype-plugin/src/it/projects/ARCHETYPE-520_mirror/archetype.properties index 8fb65f9..74cf9cb 100644 --- a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/ARCHETYPE-520_mirror/archetype.properties @@ -5,9 +5,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 @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -AppName App \ No newline at end of file +excludePatterns=build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties b/maven-archetype-plugin/src/it/projects/ARCHETYPE-521_archetype-repo/archetype.properties similarity index 92% copy from maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties copy to maven-archetype-plugin/src/it/projects/ARCHETYPE-521_archetype-repo/archetype.properties index 8fb65f9..74cf9cb 100644 --- a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/ARCHETYPE-521_archetype-repo/archetype.properties @@ -5,9 +5,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 @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -AppName App \ No newline at end of file +excludePatterns=build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties b/maven-archetype-plugin/src/it/projects/ARCHETYPE-536_groovy-grape/archetype.properties similarity index 92% copy from maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties copy to maven-archetype-plugin/src/it/projects/ARCHETYPE-536_groovy-grape/archetype.properties index 8fb65f9..74cf9cb 100644 --- a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/ARCHETYPE-536_groovy-grape/archetype.properties @@ -5,9 +5,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 @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -AppName App \ No newline at end of file +excludePatterns=build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties b/maven-archetype-plugin/src/it/projects/build-and-run-its/archetype.properties similarity index 92% copy from maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties copy to maven-archetype-plugin/src/it/projects/build-and-run-its/archetype.properties index 8fb65f9..74cf9cb 100644 --- a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/build-and-run-its/archetype.properties @@ -5,9 +5,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 @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -AppName App \ No newline at end of file +excludePatterns=build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties b/maven-archetype-plugin/src/it/projects/build-archetype/archetype.properties similarity index 92% copy from maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties copy to maven-archetype-plugin/src/it/projects/build-archetype/archetype.properties index 8fb65f9..74cf9cb 100644 --- a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/build-archetype/archetype.properties @@ -5,9 +5,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 @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -AppName App \ No newline at end of file +excludePatterns=build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties b/maven-archetype-plugin/src/it/projects/build-ignore-eol/archetype.properties similarity index 92% copy from maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties copy to maven-archetype-plugin/src/it/projects/build-ignore-eol/archetype.properties index 8fb65f9..74cf9cb 100644 --- a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/build-ignore-eol/archetype.properties @@ -5,9 +5,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 @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -AppName App \ No newline at end of file +excludePatterns=build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/change-file-with-property/archetype.properties b/maven-archetype-plugin/src/it/projects/change-file-with-property/archetype.properties index e6a512a..10d8aa3 100644 --- a/maven-archetype-plugin/src/it/projects/change-file-with-property/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/change-file-with-property/archetype.properties @@ -23,3 +23,4 @@ artifactId=change-file-with-property version=1.0-SNAPSHOT package=archetype someProperty=App +excludePatterns=build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/create-1/archetype.properties b/maven-archetype-plugin/src/it/projects/create-1/archetype.properties index 49f78bd..01c0b39 100644 --- a/maven-archetype-plugin/src/it/projects/create-1/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/create-1/archetype.properties @@ -24,4 +24,5 @@ groupId=org.apache.maven.archetype.test artifactId=test-create-1 version=1.0-SNAPSHOT package=archetype -someProperty=A String to search for \ No newline at end of file +someProperty=A String to search for +excludePatterns=build.log,invoker.properties,verify.groovy \ No newline at end of file diff --git a/maven-archetype-plugin/src/it/projects/create-2/archetype.properties b/maven-archetype-plugin/src/it/projects/create-2/archetype.properties index d9b47cb..3161a07 100644 --- a/maven-archetype-plugin/src/it/projects/create-2/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/create-2/archetype.properties @@ -22,4 +22,5 @@ groupId=org.apache.maven.archetype.test artifactId=test-create-2 version=1.0-SNAPSHOT package=org.apache.maven.archetype -someProperty=A String to search for \ No newline at end of file +someProperty=A String to search for +excludePatterns=build.log,invoker.properties,verify.groovy \ No newline at end of file diff --git a/maven-archetype-plugin/src/it/projects/create-3/archetype.properties b/maven-archetype-plugin/src/it/projects/create-3/archetype.properties index dd8d660..1816e9d 100644 --- a/maven-archetype-plugin/src/it/projects/create-3/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/create-3/archetype.properties @@ -27,3 +27,5 @@ version=1.0-SNAPSHOT package=org.apache.maven.archetype someProperty=A String to search for + +excludePatterns=build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/create-4/archetype.properties b/maven-archetype-plugin/src/it/projects/create-4/archetype.properties index c7c4a75..d412c8c 100644 --- a/maven-archetype-plugin/src/it/projects/create-4/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/create-4/archetype.properties @@ -21,4 +21,5 @@ groupId=org.apache.maven.archetype.test artifactId=test-create-4 version=1.0-SNAPSHOT package=org.apache.maven.archetype -someProperty=A String to search for \ No newline at end of file +someProperty=A String to search for +excludePatterns=build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/create-5/archetype.properties b/maven-archetype-plugin/src/it/projects/create-5/archetype.properties index 639397f..60ec7ef 100644 --- a/maven-archetype-plugin/src/it/projects/create-5/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/create-5/archetype.properties @@ -16,3 +16,4 @@ # under the License. archetype.groupId=archetypes archetype.version=1.0 +excludePatterns=build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/create-6/archetype.properties b/maven-archetype-plugin/src/it/projects/create-6/archetype.properties index 3bce41a..5d01555 100644 --- a/maven-archetype-plugin/src/it/projects/create-6/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/create-6/archetype.properties @@ -18,3 +18,4 @@ groupId=com.test artifactId=create-6 archetype.groupId=archetypes archetype.version=1.0 +excludePatterns=build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/create-from-project-exclude-patterns/archetype.properties b/maven-archetype-plugin/src/it/projects/create-from-project-exclude-patterns/archetype.properties index 0d3bce8..81cd307 100644 --- a/maven-archetype-plugin/src/it/projects/create-from-project-exclude-patterns/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/create-from-project-exclude-patterns/archetype.properties @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -excludePatterns=**/toexclude/** \ No newline at end of file +excludePatterns=**/toexclude/**,build.log,invoker.properties,verify.groovy \ No newline at end of file diff --git a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties b/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties index 8fb65f9..46053d1 100644 --- a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties @@ -15,4 +15,5 @@ # specific language governing permissions and limitations # under the License. -AppName App \ No newline at end of file +AppName App +excludePatterns=build.log,invoker.properties,verify.groovy \ No newline at end of file diff --git a/maven-archetype-plugin/src/it/projects/exclude-patterns-2/archetype.properties b/maven-archetype-plugin/src/it/projects/exclude-patterns-2/archetype.properties index c617e8d..92a5214 100644 --- a/maven-archetype-plugin/src/it/projects/exclude-patterns-2/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/exclude-patterns-2/archetype.properties @@ -23,4 +23,4 @@ artifactId=change-file-with-property version=1.0-SNAPSHOT package=archetype someProperty=App -excludePatterns=**/.sonar/** +excludePatterns=**/.sonar/**,build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/exclude-patterns/archetype.properties b/maven-archetype-plugin/src/it/projects/exclude-patterns/archetype.properties index 9b8de3a..3145c8d 100644 --- a/maven-archetype-plugin/src/it/projects/exclude-patterns/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/exclude-patterns/archetype.properties @@ -22,4 +22,4 @@ artifactId=change-file-with-property version=1.0-SNAPSHOT package=archetype someProperty=App -excludePatterns=.toexclude/** +excludePatterns=.toexclude/**,build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties b/maven-archetype-plugin/src/it/projects/generate-basic/archetype.properties similarity index 92% copy from maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties copy to maven-archetype-plugin/src/it/projects/generate-basic/archetype.properties index 8fb65f9..74cf9cb 100644 --- a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/generate-basic/archetype.properties @@ -5,9 +5,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 @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -AppName App \ No newline at end of file +excludePatterns=build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/include-file-with-no-extension/archetype.properties b/maven-archetype-plugin/src/it/projects/include-file-with-no-extension/archetype.properties index ba4c986..48b74ab 100644 --- a/maven-archetype-plugin/src/it/projects/include-file-with-no-extension/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/include-file-with-no-extension/archetype.properties @@ -23,3 +23,4 @@ groupId=org.apache.maven.archetype.test artifactId=test version=1.0-SNAPSHOT package=archetype +excludePatterns=build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/included-system-properties/archetype.properties b/maven-archetype-plugin/src/it/projects/included-system-properties/archetype.properties index 0b139a1..fd7f570 100644 --- a/maven-archetype-plugin/src/it/projects/included-system-properties/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/included-system-properties/archetype.properties @@ -23,3 +23,4 @@ groupId=org.apache.maven.archetype.test artifactId=test version=1.0-SNAPSHOT package=archetype +excludePatterns=build.log,invoker.properties,verify.groovy diff --git a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties b/maven-archetype-plugin/src/it/projects/property-setting-cli/archetype.properties similarity index 92% copy from maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties copy to maven-archetype-plugin/src/it/projects/property-setting-cli/archetype.properties index 8fb65f9..74cf9cb 100644 --- a/maven-archetype-plugin/src/it/projects/create-from-project/archetype.properties +++ b/maven-archetype-plugin/src/it/projects/property-setting-cli/archetype.properties @@ -5,9 +5,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 @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. -AppName App \ No newline at end of file +excludePatterns=build.log,invoker.properties,verify.groovy
