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/14 07:42:28 UTC

[camel] branch master updated: CAMEL-15527: Implemented integration tests for archetypes (#4207)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 364a8ce  CAMEL-15527: Implemented integration tests for archetypes (#4207)
364a8ce is described below

commit 364a8ce88b24e7e21b2f11238c7defa4110da119
Author: Jan Bednar <ma...@janbednar.eu>
AuthorDate: Mon Sep 14 09:42:12 2020 +0200

    CAMEL-15527: Implemented integration tests for archetypes (#4207)
    
    * 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 ++++++
 .../src/main/resources/archetype-resources/pom.xml |  4 ++
 .../projects/build-it/archetype.properties         | 28 ++++++++++++++
 .../src/test/resources/projects/build-it/goal.txt  |  1 +
 .../resources/projects/run-it/archetype.properties | 28 ++++++++++++++
 .../src/test/resources/projects/run-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 +
 .../resources/projects/run-it/archetype.properties | 32 ++++++++++++++++
 .../src/test/resources/projects/run-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 +
 .../resources/projects/run-it/archetype.properties | 28 ++++++++++++++
 .../src/test/resources/projects/run-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 +
 .../resources/projects/run-it/archetype.properties | 28 ++++++++++++++
 .../src/test/resources/projects/run-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 +
 .../resources/projects/run-it/archetype.properties | 27 +++++++++++++
 .../src/test/resources/projects/run-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 +
 .../resources/projects/run-it/archetype.properties | 28 ++++++++++++++
 .../src/test/resources/projects/run-it/goal.txt    |  1 +
 archetypes/pom.xml                                 | 13 ++++++-
 parent/pom.xml                                     |  1 +
 44 files changed, 638 insertions(+), 1 deletion(-)

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/main/resources/archetype-resources/pom.xml b/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/pom.xml
index 62167b5..4a3e581 100644
--- a/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/pom.xml
+++ b/archetypes/camel-archetype-blueprint/src/main/resources/archetype-resources/pom.xml
@@ -63,6 +63,10 @@
       <groupId>org.apache.camel.karaf</groupId>
       <artifactId>camel-blueprint</artifactId>
     </dependency>
+    <dependency>
+      <groupId>org.apache.camel.karaf</groupId>
+      <artifactId>camel-blueprint-main</artifactId>
+    </dependency>
 
     <!-- Testing -->
     <dependency>
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/projects/run-it/archetype.properties b/archetypes/camel-archetype-blueprint/src/test/resources/projects/run-it/archetype.properties
new file mode 100644
index 0000000..313c7de
--- /dev/null
+++ b/archetypes/camel-archetype-blueprint/src/test/resources/projects/run-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=run-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/run-it/goal.txt b/archetypes/camel-archetype-blueprint/src/test/resources/projects/run-it/goal.txt
new file mode 100644
index 0000000..bff562f
--- /dev/null
+++ b/archetypes/camel-archetype-blueprint/src/test/resources/projects/run-it/goal.txt
@@ -0,0 +1 @@
+install camel:run -Dcamel.duration=1 -Dmaven.test.skip=true
\ 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-cdi/src/test/resources/projects/run-it/archetype.properties b/archetypes/camel-archetype-cdi/src/test/resources/projects/run-it/archetype.properties
new file mode 100644
index 0000000..bc02f91
--- /dev/null
+++ b/archetypes/camel-archetype-cdi/src/test/resources/projects/run-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-cdi
+artifactId=run-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}
+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/run-it/goal.txt b/archetypes/camel-archetype-cdi/src/test/resources/projects/run-it/goal.txt
new file mode 100644
index 0000000..8945688
--- /dev/null
+++ b/archetypes/camel-archetype-cdi/src/test/resources/projects/run-it/goal.txt
@@ -0,0 +1 @@
+compile camel:run -Dcamel.duration=1 -Dmaven.test.skip=true
\ 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-java/src/test/resources/projects/run-it/archetype.properties b/archetypes/camel-archetype-java/src/test/resources/projects/run-it/archetype.properties
new file mode 100644
index 0000000..217e9a6
--- /dev/null
+++ b/archetypes/camel-archetype-java/src/test/resources/projects/run-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-java
+artifactId=run-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-java/src/test/resources/projects/run-it/goal.txt b/archetypes/camel-archetype-java/src/test/resources/projects/run-it/goal.txt
new file mode 100644
index 0000000..8945688
--- /dev/null
+++ b/archetypes/camel-archetype-java/src/test/resources/projects/run-it/goal.txt
@@ -0,0 +1 @@
+compile camel:run -Dcamel.duration=1 -Dmaven.test.skip=true
\ 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-main/src/test/resources/projects/run-it/archetype.properties b/archetypes/camel-archetype-main/src/test/resources/projects/run-it/archetype.properties
new file mode 100644
index 0000000..8af63b2
--- /dev/null
+++ b/archetypes/camel-archetype-main/src/test/resources/projects/run-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-main
+artifactId=run-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-main/src/test/resources/projects/run-it/goal.txt b/archetypes/camel-archetype-main/src/test/resources/projects/run-it/goal.txt
new file mode 100644
index 0000000..8945688
--- /dev/null
+++ b/archetypes/camel-archetype-main/src/test/resources/projects/run-it/goal.txt
@@ -0,0 +1 @@
+compile camel:run -Dcamel.duration=1 -Dmaven.test.skip=true
\ 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/projects/run-it/archetype.properties b/archetypes/camel-archetype-spring-boot/src/test/resources/projects/run-it/archetype.properties
new file mode 100644
index 0000000..29a04ed
--- /dev/null
+++ b/archetypes/camel-archetype-spring-boot/src/test/resources/projects/run-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=run-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/run-it/goal.txt b/archetypes/camel-archetype-spring-boot/src/test/resources/projects/run-it/goal.txt
new file mode 100644
index 0000000..35e65e3
--- /dev/null
+++ b/archetypes/camel-archetype-spring-boot/src/test/resources/projects/run-it/goal.txt
@@ -0,0 +1 @@
+install spring-boot:run -Dmaven.test.skip=true -Dspring-boot.run.arguments="--camel.springboot.duration-max-messages=1,--camel.springboot.duration-max-seconds=10"
\ 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
diff --git a/archetypes/camel-archetype-spring/src/test/resources/projects/run-it/archetype.properties b/archetypes/camel-archetype-spring/src/test/resources/projects/run-it/archetype.properties
new file mode 100644
index 0000000..ce53cdd
--- /dev/null
+++ b/archetypes/camel-archetype-spring/src/test/resources/projects/run-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-spring
+artifactId=run-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-spring/src/test/resources/projects/run-it/goal.txt b/archetypes/camel-archetype-spring/src/test/resources/projects/run-it/goal.txt
new file mode 100644
index 0000000..8945688
--- /dev/null
+++ b/archetypes/camel-archetype-spring/src/test/resources/projects/run-it/goal.txt
@@ -0,0 +1 @@
+compile camel:run -Dcamel.duration=1 -Dmaven.test.skip=true
\ No newline at end of file
diff --git a/archetypes/pom.xml b/archetypes/pom.xml
index d55e314..e50c069 100644
--- a/archetypes/pom.xml
+++ b/archetypes/pom.xml
@@ -45,6 +45,18 @@
         <module>camel-archetype-spring-boot</module>
     </modules>
 
+    <profiles>
+        <profile>
+            <id>archetypes-skip-tests</id>
+            <activation>
+                <property><name>skipTests</name></property>
+            </activation>
+            <properties>
+                <archetype.test.skip>true</archetype.test.skip>
+            </properties>
+        </profile>
+    </profiles>
+
     <build>
         <plugins>
 
@@ -106,5 +118,4 @@
             </plugins>
         </pluginManagement>
     </build>
-
 </project>
diff --git a/parent/pom.xml b/parent/pom.xml
index 5eae401..8afe7ff 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -4413,6 +4413,7 @@
             </activation>
             <properties>
                 <maven.test.skip.exec>true</maven.test.skip.exec>
+                <archetype.test.skip>true</archetype.test.skip>
                 <assembly.skipAssembly>true</assembly.skipAssembly>
                 <fastinstall>true</fastinstall>
                 <noassembly>true</noassembly>