You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ja...@apache.org on 2020/09/12 20:35:53 UTC

[camel] branch CAMEL-15527 created (now 61ee6f9)

This is an automated email from the ASF dual-hosted git repository.

janbednar pushed a change to branch CAMEL-15527
in repository https://gitbox.apache.org/repos/asf/camel.git.


      at 61ee6f9  CAMEL-15527: Implemented integration tests for archetypes

This branch includes the following new commits:

     new 61ee6f9  CAMEL-15527: Implemented integration tests for archetypes

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[camel] 01/01: CAMEL-15527: Implemented integration tests for archetypes

Posted by ja...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

janbednar pushed a commit to branch CAMEL-15527
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 61ee6f9d4d9898970469f4583b886defecb9ae23
Author: Jan Bednář <ma...@janbednar.eu>
AuthorDate: Sat Sep 12 22:31:48 2020 +0200

    CAMEL-15527: Implemented integration tests for archetypes
---
 archetypes/camel-archetype-api-component/pom.xml   |  9 +++++
 .../projects/build-it/archetype.properties         | 34 +++++++++++++++++
 .../src/test/resources/projects/build-it/goal.txt  |  1 +
 archetypes/camel-archetype-blueprint/pom.xml       | 12 ++++++
 .../projects/build-it/archetype.properties         | 28 ++++++++++++++
 .../src/test/resources/projects/build-it/goal.txt  |  1 +
 .../src/test/resources/settings.xml                | 44 ++++++++++++++++++++++
 archetypes/camel-archetype-cdi/pom.xml             |  9 +++++
 .../projects/build-it/archetype.properties         | 30 +++++++++++++++
 .../src/test/resources/projects/build-it/goal.txt  |  1 +
 archetypes/camel-archetype-component/pom.xml       |  9 +++++
 .../projects/build-it/archetype.properties         | 32 ++++++++++++++++
 .../src/test/resources/projects/build-it/goal.txt  |  1 +
 archetypes/camel-archetype-dataformat/pom.xml      |  9 +++++
 .../projects/build-it/archetype.properties         | 33 ++++++++++++++++
 .../src/test/resources/projects/build-it/goal.txt  |  1 +
 archetypes/camel-archetype-java/pom.xml            |  9 +++++
 .../projects/build-it/archetype.properties         | 26 +++++++++++++
 .../src/test/resources/projects/build-it/goal.txt  |  1 +
 archetypes/camel-archetype-main/pom.xml            |  9 +++++
 .../projects/build-it/archetype.properties         | 26 +++++++++++++
 .../src/test/resources/projects/build-it/goal.txt  |  1 +
 archetypes/camel-archetype-spring-boot/pom.xml     | 10 +++++
 .../projects/build-it/archetype.properties         | 27 +++++++++++++
 .../src/test/resources/projects/build-it/goal.txt  |  1 +
 .../src/test/resources/settings.xml                | 44 ++++++++++++++++++++++
 archetypes/camel-archetype-spring/pom.xml          |  9 +++++
 .../projects/build-it/archetype.properties         | 26 +++++++++++++
 .../src/test/resources/projects/build-it/goal.txt  |  1 +
 29 files changed, 444 insertions(+)

diff --git a/archetypes/camel-archetype-api-component/pom.xml b/archetypes/camel-archetype-api-component/pom.xml
index 91542b2..3dca37b 100644
--- a/archetypes/camel-archetype-api-component/pom.xml
+++ b/archetypes/camel-archetype-api-component/pom.xml
@@ -56,6 +56,15 @@
                 </includes>
             </resource>
         </resources>
+        <testResources>
+            <testResource>
+                <directory>src/test/resources</directory>
+                <filtering>true</filtering>
+                <includes>
+                    <include>**/*</include>
+                </includes>
+            </testResource>
+        </testResources>
     </build>
 
 </project>
diff --git a/archetypes/camel-archetype-api-component/src/test/resources/projects/build-it/archetype.properties b/archetypes/camel-archetype-api-component/src/test/resources/projects/build-it/archetype.properties
new file mode 100644
index 0000000..dcc90e1
--- /dev/null
+++ b/archetypes/camel-archetype-api-component/src/test/resources/projects/build-it/archetype.properties
@@ -0,0 +1,34 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+groupId=org.apache.camel.archetypes.archetypeIT.camel-archetype-api-component
+artifactId=build-it
+version=0.0.1
+package=org.apache.camel.archetypes.archetypeIT
+name=Dummy
+scheme=dummy
+
+# TODO: Remove these, after https://issues.apache.org/jira/browse/ARCHETYPE-574 fixed
+camel-version=${project.version}
+logback-version=${logback-version}
+maven-compiler-plugin-version=${maven-compiler-plugin-version}
+maven-resources-plugin-version=${maven-resources-plugin-version}
+maven-javadoc-plugin-version=${maven-javadoc-plugin-version}
+build-helper-maven-plugin-version=${build-helper-maven-plugin-version}
+junit-jupiter-version=${junit-jupiter-version}
+slf4j-version=${slf4j-version}
+log4j2-version=${log4j2-version}
+maven-surefire-plugin-version=${maven-surefire-plugin-version}
\ No newline at end of file
diff --git a/archetypes/camel-archetype-api-component/src/test/resources/projects/build-it/goal.txt b/archetypes/camel-archetype-api-component/src/test/resources/projects/build-it/goal.txt
new file mode 100644
index 0000000..f7ffc47
--- /dev/null
+++ b/archetypes/camel-archetype-api-component/src/test/resources/projects/build-it/goal.txt
@@ -0,0 +1 @@
+install
\ No newline at end of file
diff --git a/archetypes/camel-archetype-blueprint/pom.xml b/archetypes/camel-archetype-blueprint/pom.xml
index 071ccd8..6b0fca2 100644
--- a/archetypes/camel-archetype-blueprint/pom.xml
+++ b/archetypes/camel-archetype-blueprint/pom.xml
@@ -33,6 +33,9 @@
     <description>Creates a new Camel project with OSGi blueprint support. Ready to be deployed in OSGi.</description>
     <packaging>maven-archetype</packaging>
 
+    <properties>
+        <archetype.test.settingsFile>src/test/resources/settings.xml</archetype.test.settingsFile> <!-- Needed to download Karaf snapshots -->
+    </properties>
     <build>
         <extensions>
             <extension>
@@ -56,6 +59,15 @@
                 </includes>
             </resource>
         </resources>
+        <testResources>
+            <testResource>
+                <directory>src/test/resources</directory>
+                <filtering>true</filtering>
+                <includes>
+                    <include>**/*</include>
+                </includes>
+            </testResource>
+        </testResources>
     </build>
 
 </project>
diff --git a/archetypes/camel-archetype-blueprint/src/test/resources/projects/build-it/archetype.properties b/archetypes/camel-archetype-blueprint/src/test/resources/projects/build-it/archetype.properties
new file mode 100644
index 0000000..dfa6e77
--- /dev/null
+++ b/archetypes/camel-archetype-blueprint/src/test/resources/projects/build-it/archetype.properties
@@ -0,0 +1,28 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+groupId=org.apache.camel.archetypes.archetypeIT.camel-archetype-blueprint
+artifactId=build-it
+version=0.0.1
+package=org.apache.camel.archetypes.archetypeIT
+
+# TODO: Remove these, after https://issues.apache.org/jira/browse/ARCHETYPE-574 fixed
+camel-version=${project.version}
+logback-version=${logback-version}
+maven-compiler-plugin-version=${maven-compiler-plugin-version}
+maven-resources-plugin-version=${maven-resources-plugin-version}
+camel-bundle-plugin-version=${camel-bundle-plugin-version}
+maven-jar-plugin-version=${maven-jar-plugin-version}
\ No newline at end of file
diff --git a/archetypes/camel-archetype-blueprint/src/test/resources/projects/build-it/goal.txt b/archetypes/camel-archetype-blueprint/src/test/resources/projects/build-it/goal.txt
new file mode 100644
index 0000000..f7ffc47
--- /dev/null
+++ b/archetypes/camel-archetype-blueprint/src/test/resources/projects/build-it/goal.txt
@@ -0,0 +1 @@
+install
\ No newline at end of file
diff --git a/archetypes/camel-archetype-blueprint/src/test/resources/settings.xml b/archetypes/camel-archetype-blueprint/src/test/resources/settings.xml
new file mode 100644
index 0000000..42030d8
--- /dev/null
+++ b/archetypes/camel-archetype-blueprint/src/test/resources/settings.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
+                      https://maven.apache.org/xsd/settings-1.0.0.xsd">
+    <activeProfiles>
+        <activeProfile>it</activeProfile>
+    </activeProfiles>
+    <profiles>
+        <profile>
+            <id>it</id>
+            <repositories>
+                <repository>
+                    <id>apache-snapshot-repository</id>
+                    <url>http://repository.apache.org/snapshots/</url>
+                    <releases>
+                        <enabled>false</enabled>
+                    </releases>
+                    <snapshots>
+                        <enabled>true</enabled>
+                    </snapshots>
+                </repository>
+            </repositories>
+        </profile>
+    </profiles>
+</settings>
\ No newline at end of file
diff --git a/archetypes/camel-archetype-cdi/pom.xml b/archetypes/camel-archetype-cdi/pom.xml
index 85112d3..1dcd075 100644
--- a/archetypes/camel-archetype-cdi/pom.xml
+++ b/archetypes/camel-archetype-cdi/pom.xml
@@ -56,6 +56,15 @@
                 </includes>
             </resource>
         </resources>
+        <testResources>
+            <testResource>
+                <directory>src/test/resources</directory>
+                <filtering>true</filtering>
+                <includes>
+                    <include>**/*</include>
+                </includes>
+            </testResource>
+        </testResources>
     </build>
 
 </project>
diff --git a/archetypes/camel-archetype-cdi/src/test/resources/projects/build-it/archetype.properties b/archetypes/camel-archetype-cdi/src/test/resources/projects/build-it/archetype.properties
new file mode 100644
index 0000000..9ef346d
--- /dev/null
+++ b/archetypes/camel-archetype-cdi/src/test/resources/projects/build-it/archetype.properties
@@ -0,0 +1,30 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+groupId=org.apache.camel.archetypes.archetypeIT.camel-archetype-cdi
+artifactId=build-it
+version=0.0.1
+package=org.apache.camel.archetypes.archetypeIT
+
+# TODO: Remove these, after https://issues.apache.org/jira/browse/ARCHETYPE-574 fixed
+camel-version=${project.version}
+logback-version=${logback-version}
+maven-compiler-plugin-version=${maven-compiler-plugin-version}
+maven-resources-plugin-version=${maven-resources-plugin-version}
+cdi-api-version=${cdi-api-version}
+deltaspike-version=${deltaspike-version}
+weld3-version=${weld3-version}
+exec-maven-plugin-version=${exec-maven-plugin-version}
\ No newline at end of file
diff --git a/archetypes/camel-archetype-cdi/src/test/resources/projects/build-it/goal.txt b/archetypes/camel-archetype-cdi/src/test/resources/projects/build-it/goal.txt
new file mode 100644
index 0000000..f7ffc47
--- /dev/null
+++ b/archetypes/camel-archetype-cdi/src/test/resources/projects/build-it/goal.txt
@@ -0,0 +1 @@
+install
\ No newline at end of file
diff --git a/archetypes/camel-archetype-component/pom.xml b/archetypes/camel-archetype-component/pom.xml
index 7ff2632..b1ef294 100644
--- a/archetypes/camel-archetype-component/pom.xml
+++ b/archetypes/camel-archetype-component/pom.xml
@@ -56,6 +56,15 @@
                 </includes>
             </resource>
         </resources>
+        <testResources>
+            <testResource>
+                <directory>src/test/resources</directory>
+                <filtering>true</filtering>
+                <includes>
+                    <include>**/*</include>
+                </includes>
+            </testResource>
+        </testResources>
     </build>
 
 </project>
diff --git a/archetypes/camel-archetype-component/src/test/resources/projects/build-it/archetype.properties b/archetypes/camel-archetype-component/src/test/resources/projects/build-it/archetype.properties
new file mode 100644
index 0000000..b5a4655
--- /dev/null
+++ b/archetypes/camel-archetype-component/src/test/resources/projects/build-it/archetype.properties
@@ -0,0 +1,32 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+groupId=org.apache.camel.archetypes.archetypeIT.camel-archetype-component
+artifactId=build-it
+version=0.0.1
+package=org.apache.camel.archetypes.archetypeIT
+name=Dummy
+scheme=dummy
+
+# TODO: Remove these, after https://issues.apache.org/jira/browse/ARCHETYPE-574 fixed
+camel-version=${project.version}
+maven-compiler-plugin-version=${maven-compiler-plugin-version}
+maven-resources-plugin-version=${maven-resources-plugin-version}
+maven-javadoc-plugin-version=${maven-javadoc-plugin-version}
+build-helper-maven-plugin-version=${build-helper-maven-plugin-version}
+junit-jupiter-version=${junit-jupiter-version}
+slf4j-version=${slf4j-version}
+log4j2-version=${log4j2-version}
\ No newline at end of file
diff --git a/archetypes/camel-archetype-component/src/test/resources/projects/build-it/goal.txt b/archetypes/camel-archetype-component/src/test/resources/projects/build-it/goal.txt
new file mode 100644
index 0000000..f7ffc47
--- /dev/null
+++ b/archetypes/camel-archetype-component/src/test/resources/projects/build-it/goal.txt
@@ -0,0 +1 @@
+install
\ No newline at end of file
diff --git a/archetypes/camel-archetype-dataformat/pom.xml b/archetypes/camel-archetype-dataformat/pom.xml
index 793b20c..1379688 100644
--- a/archetypes/camel-archetype-dataformat/pom.xml
+++ b/archetypes/camel-archetype-dataformat/pom.xml
@@ -56,6 +56,15 @@
                 </includes>
             </resource>
         </resources>
+        <testResources>
+            <testResource>
+                <directory>src/test/resources</directory>
+                <filtering>true</filtering>
+                <includes>
+                    <include>**/*</include>
+                </includes>
+            </testResource>
+        </testResources>
     </build>
 
 </project>
diff --git a/archetypes/camel-archetype-dataformat/src/test/resources/projects/build-it/archetype.properties b/archetypes/camel-archetype-dataformat/src/test/resources/projects/build-it/archetype.properties
new file mode 100644
index 0000000..09f2eb6
--- /dev/null
+++ b/archetypes/camel-archetype-dataformat/src/test/resources/projects/build-it/archetype.properties
@@ -0,0 +1,33 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+groupId=org.apache.camel.archetypes.archetypeIT.camel-archetype-dataformat
+artifactId=build-it
+version=0.0.1
+package=org.apache.camel.archetypes.archetypeIT
+name=Dummy
+scheme=dummy
+
+# TODO: Remove these, after https://issues.apache.org/jira/browse/ARCHETYPE-574 fixed
+camel-version=${project.version}
+logback-version=${logback-version}
+maven-compiler-plugin-version=${maven-compiler-plugin-version}
+maven-resources-plugin-version=${maven-resources-plugin-version}
+maven-javadoc-plugin-version=${maven-javadoc-plugin-version}
+build-helper-maven-plugin-version=${build-helper-maven-plugin-version}
+junit-jupiter-version=${junit-jupiter-version}
+slf4j-version=${slf4j-version}
+log4j2-version=${log4j2-version}
\ No newline at end of file
diff --git a/archetypes/camel-archetype-dataformat/src/test/resources/projects/build-it/goal.txt b/archetypes/camel-archetype-dataformat/src/test/resources/projects/build-it/goal.txt
new file mode 100644
index 0000000..f7ffc47
--- /dev/null
+++ b/archetypes/camel-archetype-dataformat/src/test/resources/projects/build-it/goal.txt
@@ -0,0 +1 @@
+install
\ No newline at end of file
diff --git a/archetypes/camel-archetype-java/pom.xml b/archetypes/camel-archetype-java/pom.xml
index 5602cc2..6fb4f4b 100644
--- a/archetypes/camel-archetype-java/pom.xml
+++ b/archetypes/camel-archetype-java/pom.xml
@@ -56,6 +56,15 @@
                 </includes>
             </resource>
         </resources>
+        <testResources>
+            <testResource>
+                <directory>src/test/resources</directory>
+                <filtering>true</filtering>
+                <includes>
+                    <include>**/*</include>
+                </includes>
+            </testResource>
+        </testResources>
     </build>
 
 </project>
diff --git a/archetypes/camel-archetype-java/src/test/resources/projects/build-it/archetype.properties b/archetypes/camel-archetype-java/src/test/resources/projects/build-it/archetype.properties
new file mode 100644
index 0000000..89c8510
--- /dev/null
+++ b/archetypes/camel-archetype-java/src/test/resources/projects/build-it/archetype.properties
@@ -0,0 +1,26 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+groupId=org.apache.camel.archetypes.archetypeIT.camel-archetype-java
+artifactId=build-it
+version=0.0.1
+package=org.apache.camel.archetypes.archetypeIT
+
+# TODO: Remove these, after https://issues.apache.org/jira/browse/ARCHETYPE-574 fixed
+camel-version=${project.version}
+logback-version=${logback-version}
+maven-compiler-plugin-version=${maven-compiler-plugin-version}
+maven-resources-plugin-version=${maven-resources-plugin-version}
\ No newline at end of file
diff --git a/archetypes/camel-archetype-java/src/test/resources/projects/build-it/goal.txt b/archetypes/camel-archetype-java/src/test/resources/projects/build-it/goal.txt
new file mode 100644
index 0000000..f7ffc47
--- /dev/null
+++ b/archetypes/camel-archetype-java/src/test/resources/projects/build-it/goal.txt
@@ -0,0 +1 @@
+install
\ No newline at end of file
diff --git a/archetypes/camel-archetype-main/pom.xml b/archetypes/camel-archetype-main/pom.xml
index a50cba7..5f9bf1d 100644
--- a/archetypes/camel-archetype-main/pom.xml
+++ b/archetypes/camel-archetype-main/pom.xml
@@ -56,6 +56,15 @@
                 </includes>
             </resource>
         </resources>
+        <testResources>
+            <testResource>
+                <directory>src/test/resources</directory>
+                <filtering>true</filtering>
+                <includes>
+                    <include>**/*</include>
+                </includes>
+            </testResource>
+        </testResources>
     </build>
 
 </project>
diff --git a/archetypes/camel-archetype-main/src/test/resources/projects/build-it/archetype.properties b/archetypes/camel-archetype-main/src/test/resources/projects/build-it/archetype.properties
new file mode 100644
index 0000000..17eeb5b
--- /dev/null
+++ b/archetypes/camel-archetype-main/src/test/resources/projects/build-it/archetype.properties
@@ -0,0 +1,26 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+groupId=org.apache.camel.archetypes.archetypeIT.camel-archetype-main
+artifactId=build-it
+version=0.0.1
+package=org.apache.camel.archetypes.archetypeIT
+
+# TODO: Remove these, after https://issues.apache.org/jira/browse/ARCHETYPE-574 fixed
+camel-version=${project.version}
+logback-version=${logback-version}
+maven-compiler-plugin-version=${maven-compiler-plugin-version}
+maven-resources-plugin-version=${maven-resources-plugin-version}
\ No newline at end of file
diff --git a/archetypes/camel-archetype-main/src/test/resources/projects/build-it/goal.txt b/archetypes/camel-archetype-main/src/test/resources/projects/build-it/goal.txt
new file mode 100644
index 0000000..f7ffc47
--- /dev/null
+++ b/archetypes/camel-archetype-main/src/test/resources/projects/build-it/goal.txt
@@ -0,0 +1 @@
+install
\ No newline at end of file
diff --git a/archetypes/camel-archetype-spring-boot/pom.xml b/archetypes/camel-archetype-spring-boot/pom.xml
index b15e70a..025a74c 100644
--- a/archetypes/camel-archetype-spring-boot/pom.xml
+++ b/archetypes/camel-archetype-spring-boot/pom.xml
@@ -35,6 +35,7 @@
 
     <properties>
          <spring-boot-version>2.3.2.RELEASE</spring-boot-version>
+         <archetype.test.settingsFile>src/test/resources/settings.xml</archetype.test.settingsFile> <!-- Needed to download camel-spring-boot snapshots -->
     </properties>
 
     <build>
@@ -60,6 +61,15 @@
                 </includes>
             </resource>
         </resources>
+        <testResources>
+            <testResource>
+                <directory>src/test/resources</directory>
+                <filtering>true</filtering>
+                <includes>
+                    <include>**/*</include>
+                </includes>
+            </testResource>
+        </testResources>
     </build>
 
 </project>
diff --git a/archetypes/camel-archetype-spring-boot/src/test/resources/projects/build-it/archetype.properties b/archetypes/camel-archetype-spring-boot/src/test/resources/projects/build-it/archetype.properties
new file mode 100644
index 0000000..0922209
--- /dev/null
+++ b/archetypes/camel-archetype-spring-boot/src/test/resources/projects/build-it/archetype.properties
@@ -0,0 +1,27 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+groupId=org.apache.camel.archetypes.archetypeIT.camel-archetype-spring-boot
+artifactId=build-it
+version=0.0.1
+package=org.apache.camel.archetypes.archetypeIT
+
+# TODO: Remove these, after https://issues.apache.org/jira/browse/ARCHETYPE-574 fixed
+camel-version=${project.version}
+logback-version=${logback-version}
+maven-compiler-plugin-version=${maven-compiler-plugin-version}
+maven-resources-plugin-version=${maven-resources-plugin-version}
+spring-boot-version=${spring-boot-version}
\ No newline at end of file
diff --git a/archetypes/camel-archetype-spring-boot/src/test/resources/projects/build-it/goal.txt b/archetypes/camel-archetype-spring-boot/src/test/resources/projects/build-it/goal.txt
new file mode 100644
index 0000000..f7ffc47
--- /dev/null
+++ b/archetypes/camel-archetype-spring-boot/src/test/resources/projects/build-it/goal.txt
@@ -0,0 +1 @@
+install
\ No newline at end of file
diff --git a/archetypes/camel-archetype-spring-boot/src/test/resources/settings.xml b/archetypes/camel-archetype-spring-boot/src/test/resources/settings.xml
new file mode 100644
index 0000000..42030d8
--- /dev/null
+++ b/archetypes/camel-archetype-spring-boot/src/test/resources/settings.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
+          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
+                      https://maven.apache.org/xsd/settings-1.0.0.xsd">
+    <activeProfiles>
+        <activeProfile>it</activeProfile>
+    </activeProfiles>
+    <profiles>
+        <profile>
+            <id>it</id>
+            <repositories>
+                <repository>
+                    <id>apache-snapshot-repository</id>
+                    <url>http://repository.apache.org/snapshots/</url>
+                    <releases>
+                        <enabled>false</enabled>
+                    </releases>
+                    <snapshots>
+                        <enabled>true</enabled>
+                    </snapshots>
+                </repository>
+            </repositories>
+        </profile>
+    </profiles>
+</settings>
\ No newline at end of file
diff --git a/archetypes/camel-archetype-spring/pom.xml b/archetypes/camel-archetype-spring/pom.xml
index 8e9703e..3311a10 100644
--- a/archetypes/camel-archetype-spring/pom.xml
+++ b/archetypes/camel-archetype-spring/pom.xml
@@ -56,6 +56,15 @@
                 </includes>
             </resource>
         </resources>
+        <testResources>
+            <testResource>
+                <directory>src/test/resources</directory>
+                <filtering>true</filtering>
+                <includes>
+                    <include>**/*</include>
+                </includes>
+            </testResource>
+        </testResources>
     </build>
 
 </project>
diff --git a/archetypes/camel-archetype-spring/src/test/resources/projects/build-it/archetype.properties b/archetypes/camel-archetype-spring/src/test/resources/projects/build-it/archetype.properties
new file mode 100644
index 0000000..f4f56ab
--- /dev/null
+++ b/archetypes/camel-archetype-spring/src/test/resources/projects/build-it/archetype.properties
@@ -0,0 +1,26 @@
+## ---------------------------------------------------------------------------
+## 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.
+## ---------------------------------------------------------------------------
+groupId=org.apache.camel.archetypes.archetypeIT.camel-archetype-spring
+artifactId=build-it
+version=0.0.1
+package=org.apache.camel.archetypes.archetypeIT
+
+# TODO: Remove these, after https://issues.apache.org/jira/browse/ARCHETYPE-574 fixed
+camel-version=${project.version}
+logback-version=${logback-version}
+maven-compiler-plugin-version=${maven-compiler-plugin-version}
+maven-resources-plugin-version=${maven-resources-plugin-version}
\ No newline at end of file
diff --git a/archetypes/camel-archetype-spring/src/test/resources/projects/build-it/goal.txt b/archetypes/camel-archetype-spring/src/test/resources/projects/build-it/goal.txt
new file mode 100644
index 0000000..f7ffc47
--- /dev/null
+++ b/archetypes/camel-archetype-spring/src/test/resources/projects/build-it/goal.txt
@@ -0,0 +1 @@
+install
\ No newline at end of file