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

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


The following commit(s) were added to refs/heads/main by this push:
     new 1c9f826a5af Tooling: Removing IT Test for API component Maven plugin
1c9f826a5af is described below

commit 1c9f826a5af3bf146c50a00a977730cabd6756b5
Author: Andrea Cosentino <[email protected]>
AuthorDate: Fri Jan 20 10:32:13 2023 +0100

    Tooling: Removing IT Test for API component Maven plugin
    
    Signed-off-by: Andrea Cosentino <[email protected]>
---
 .../maven/camel-api-component-maven-plugin/pom.xml |  40 ----
 .../src/it/all-it/pom.xml                          | 230 ---------------------
 .../src/it/all-it/verify.groovy                    |  22 --
 .../src/it/settings.xml                            |  57 -----
 4 files changed, 349 deletions(-)

diff --git a/tooling/maven/camel-api-component-maven-plugin/pom.xml 
b/tooling/maven/camel-api-component-maven-plugin/pom.xml
index 35d445bc56f..25277bc8b8a 100644
--- a/tooling/maven/camel-api-component-maven-plugin/pom.xml
+++ b/tooling/maven/camel-api-component-maven-plugin/pom.xml
@@ -267,44 +267,4 @@
             </plugin>
         </plugins>
     </build>
-
-    <!-- Plugin integration test profile -->
-    <profiles>
-        <profile>
-            <id>plugin-itest</id>
-            <build>
-                <plugins>
-                    <plugin>
-                        <groupId>org.apache.maven.plugins</groupId>
-                        <artifactId>maven-invoker-plugin</artifactId>
-                        <version>1.8</version>
-                        <configuration>
-                            <debug>true</debug>
-                            
<cloneProjectsTo>${project.build.directory}/it</cloneProjectsTo>
-                            <pomIncludes>
-                                <pomInclude>*/pom.xml</pomInclude>
-                            </pomIncludes>
-                            <postBuildHookScript>verify</postBuildHookScript>
-                            
<localRepositoryPath>${project.build.directory}/local-repo</localRepositoryPath>
-                            <settingsFile>src/it/settings.xml</settingsFile>
-                            <goals>
-                                <goal>clean</goal>
-                                <goal>verify</goal>
-                            </goals>
-                        </configuration>
-                        <executions>
-                            <execution>
-                                <id>integration-test</id>
-                                <goals>
-                                    <goal>install</goal>
-                                    <goal>integration-test</goal>
-                                    <goal>verify</goal>
-                                </goals>
-                            </execution>
-                        </executions>
-                    </plugin>
-                </plugins>
-            </build>
-        </profile>
-    </profiles>
 </project>
diff --git 
a/tooling/maven/camel-api-component-maven-plugin/src/it/all-it/pom.xml 
b/tooling/maven/camel-api-component-maven-plugin/src/it/all-it/pom.xml
deleted file mode 100644
index 65bbcde5731..00000000000
--- a/tooling/maven/camel-api-component-maven-plugin/src/it/all-it/pom.xml
+++ /dev/null
@@ -1,230 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    (the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
-
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
-         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
-  <modelVersion>4.0.0</modelVersion>
-
-  <groupId>org.apache.camel</groupId>
-  <artifactId>camel-api-component-maven-plugin-it</artifactId>
-  <version>1.0-SNAPSHOT</version>
-
-  <description>Integration Test to verify all goals.</description>
-
-  <properties>
-    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
-    <outPackage>org.apache.camel.component.test.internal</outPackage>
-    <componentPackage>org.apache.camel.component.test</componentPackage>
-    <scheme>testComponent</scheme>
-    <componentName>Test</componentName>
-  </properties>
-
-  <dependencies>
-    <dependency>
-      <groupId>org.apache.camel</groupId>
-      <artifactId>camel-core</artifactId>
-      <version>@project.version@</version>
-    </dependency>
-    <dependency>
-      <groupId>org.apache.velocity</groupId>
-      <artifactId>velocity-engine-core</artifactId>
-      <version>@velocity-version@</version>
-    </dependency>
-    <!-- VelocityEngine javadoc for generating API classes -->
-    <dependency>
-      <groupId>org.apache.velocity</groupId>
-      <artifactId>velocity-engine-core</artifactId>
-      <version>@velocity-version@</version>
-      <classifier>javadoc</classifier>
-      <scope>provided</scope>
-    </dependency>
-
-    <dependency>
-      <groupId>org.apache.camel</groupId>
-      <artifactId>camel-test-junit5</artifactId>
-      <version>@project.version@</version>
-      <!-- compile scope to avoid having to move AbstractTestTestSupport to 
src/test/java -->
-      <scope>compile</scope>
-    </dependency>
-  </dependencies>
-
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-compiler-plugin</artifactId>
-        <version>@maven-compiler-plugin-version@</version>
-        <configuration>
-          <source>@jdk.version@</source>
-          <target>@jdk.version@</target>
-        </configuration>
-      </plugin>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-surefire-plugin</artifactId>
-        <version>@maven-surefire-plugin-version@</version>
-        <configuration>
-          <failIfNoTests>false</failIfNoTests>
-        </configuration>
-      </plugin>
-      <!-- execute api-component plugin -->
-      <plugin>
-        <groupId>@project.groupId@</groupId>
-        <artifactId>@project.artifactId@</artifactId>
-        <version>@project.version@</version>
-        <executions>
-          <!-- using generate-test-sources instead of generate-sources to be 
able to load TestProxy.class -->
-<!--
-          <execution>
-            <id>generate-file-api-method</id>
-            <phase>generate-test-sources</phase>
-            <goals>
-              <goal>fromFile</goal>
-            </goals>
-            <configuration>
-              
<proxyClass>org.apache.camel.component.test.TestProxy</proxyClass>
-              <substitutions>
-                <substitution>
-                  <method>.+</method>
-                  <argName>(.+)</argName>
-                  <argType>java.util.List</argType>
-                  <replacement>$1List</replacement>
-                </substitution>
-                <substitution>
-                  <method>.+</method>
-                  <argName>(.+)</argName>
-                  <argType>.*?(\w++)\[\]</argType>
-                  <replacement>$1Array</replacement>
-                  <replaceWithType>true</replaceWithType>
-                </substitution>
-              </substitutions>
-              
<signatureFile>../../../src/test/resources/test-proxy-signatures.txt</signatureFile>
-            </configuration>
-          </execution>
-          <execution>
-            <id>generate-velocity-context-api-method</id>
-            <phase>generate-test-sources</phase>
-            <goals>
-              <goal>fromJavadoc</goal>
-            </goals>
-            <configuration>
-              <proxyClass>org.apache.velocity.VelocityContext</proxyClass>
-              <substitutions>
-                <substitution>
-                  <method>.+</method>
-                  <argName>key</argName>
-                  <argType>java.lang.Object</argType>
-                  <replacement>applicationKey</replacement>
-                </substitution>
-              </substitutions>
-              <excludeClasses>InternalContextBase</excludeClasses>
-              <excludeMethods>clone|Current|internal|icache</excludeMethods>
-            </configuration>
-          </execution>
--->
-          <execution>
-            <id>generate-test-component-classes</id>
-            <phase>generate-test-sources</phase>
-            <goals>
-              <goal>fromApis</goal>
-            </goals>
-            <configuration>
-              <addCompileSourceRoots>test</addCompileSourceRoots>
-              <apis>
-                <api>
-                  <apiName>test</apiName>
-                  
<proxyClass>org.apache.camel.component.test.TestProxy</proxyClass>
-                  <substitutions>
-                    <substitution>
-                      <method>.+</method>
-                      <argName>(.+)</argName>
-                      <argType>java.util.List</argType>
-                      <replacement>$1List</replacement>
-                    </substitution>
-                    <substitution>
-                      <method>.+</method>
-                      <argName>(.+)</argName>
-                      <argType>.*?(\w++)\[\]</argType>
-                      <replacement>$1Array</replacement>
-                      <replaceWithType>true</replaceWithType>
-                    </substitution>
-                  </substitutions>
-                  <extraOptions>
-                    <extraOption>
-                      <type>java.util.List&lt;String&gt;</type>
-                      <name>extraString</name>
-                    </extraOption>
-                  </extraOptions>
-                  <nullableOptions>
-                    <nullableOption>namesList</nullableOption>
-                  </nullableOptions>
-                  
<fromSignatureFile>../../../src/test/resources/test-proxy-signatures.txt</fromSignatureFile>
-                </api>
-                <api>
-                  <apiName>velocity</apiName>
-                  <proxyClass>org.apache.velocity.VelocityContext</proxyClass>
-                  <substitutions>
-                    <substitution>
-                      <method>.+</method>
-                      <argName>key</argName>
-                      <argType>java.lang.Object</argType>
-                      <replacement>applicationKey</replacement>
-                    </substitution>
-                  </substitutions>
-                  <extraOptions>
-                    <extraOption>
-                      <type>java.util.Map&lt;String, String&gt;</type>
-                      <name>extraMap</name>
-                    </extraOption>
-                  </extraOptions>
-                  <fromJavadoc>
-                    <excludeClasses>InternalContextBase</excludeClasses>
-                    
<excludeMethods>clone|Current|internal|icache</excludeMethods>
-                  </fromJavadoc>
-                  <aliases>
-                    <alias>
-                      <methodPattern>[gs]et(.+)</methodPattern>
-                      <methodAlias>$1</methodAlias>
-                    </alias>
-                  </aliases>
-                </api>
-              </apis>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
-    </plugins>
-    <pluginManagement>
-      <plugins>
-        <plugin>
-          <groupId>@project.groupId@</groupId>
-          <artifactId>@project.artifactId@</artifactId>
-          <version>@project.version@</version>
-          <configuration>
-            <scheme>${scheme}</scheme>
-            <componentName>${componentName}</componentName>
-            <outPackage>${outPackage}</outPackage>
-            <componentPackage>${componentPackage}</componentPackage>
-          </configuration>
-        </plugin>
-      </plugins>
-    </pluginManagement>
-  </build>
-
-</project>
diff --git 
a/tooling/maven/camel-api-component-maven-plugin/src/it/all-it/verify.groovy 
b/tooling/maven/camel-api-component-maven-plugin/src/it/all-it/verify.groovy
deleted file mode 100644
index 5d394db6e95..00000000000
--- a/tooling/maven/camel-api-component-maven-plugin/src/it/all-it/verify.groovy
+++ /dev/null
@@ -1,22 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *      http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-// assert that the generated files directory exists
-File sourceDir = new File( basedir, "src/generated/java" );
-File testDir = new File( basedir, 
"target/generated-test-sources/camel-component" );
-
-assert sourceDir.isDirectory()
-assert testDir.isDirectory()
diff --git a/tooling/maven/camel-api-component-maven-plugin/src/it/settings.xml 
b/tooling/maven/camel-api-component-maven-plugin/src/it/settings.xml
deleted file mode 100644
index 2c3869494a1..00000000000
--- a/tooling/maven/camel-api-component-maven-plugin/src/it/settings.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-
-    Licensed to the Apache Software Foundation (ASF) under one or more
-    contributor license agreements.  See the NOTICE file distributed with
-    this work for additional information regarding copyright ownership.
-    The ASF licenses this file to You under the Apache License, Version 2.0
-    (the "License"); you may not use this file except in compliance with
-    the License.  You may obtain a copy of the License at
-
-         http://www.apache.org/licenses/LICENSE-2.0
-
-    Unless required by applicable law or agreed to in writing, software
-    distributed under the License is distributed on an "AS IS" BASIS,
-    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-    See the License for the specific language governing permissions and
-    limitations under the License.
-
--->
-<settings>
-  <profiles>
-    <profile>
-      <id>it-repo</id>
-      <activation>
-        <activeByDefault>true</activeByDefault>
-      </activation>
-      <properties>
-        <maven.compiler.source>1.8</maven.compiler.source>
-        <maven.compiler.target>1.8</maven.compiler.target>
-      </properties>
-      <repositories>
-        <repository>
-          <id>local.central</id>
-          <url>@localRepositoryUrl@</url>
-          <releases>
-            <enabled>true</enabled>
-          </releases>
-          <snapshots>
-            <enabled>true</enabled>
-          </snapshots>
-        </repository>
-      </repositories>
-      <pluginRepositories>
-        <pluginRepository>
-          <id>local.central</id>
-          <url>@localRepositoryUrl@</url>
-          <releases>
-            <enabled>true</enabled>
-          </releases>
-          <snapshots>
-            <enabled>true</enabled>
-          </snapshots>
-        </pluginRepository>
-      </pluginRepositories>
-    </profile>
-  </profiles>
-</settings>

Reply via email to