ppalaga commented on issue #2448:
URL: https://github.com/apache/camel-quarkus/issues/2448#issuecomment-851423452


   2.0.0-M1 is a version of Camel Quarkus, not Quarkus. To test with it, you 
need a quarkus-platform-less setup, because there is no Quarkus Platform yet 
that would include Camel Quarkus 2.0.0-M1. (We use it in our examples, see e.g. 
https://github.com/apache/camel-quarkus-examples/blob/main/timer-log/pom.xml ) 
. It's something like the following:
   
   ```
   <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>
   
       <artifactId>camel-quarkus-examples-timer-log</artifactId>
       <groupId>org.apache.camel.quarkus.examples</groupId>
       <version>1.8.0-SNAPSHOT</version>
   
       <name>Camel Quarkus :: Examples :: Timer Log</name>
       <description>Camel Quarkus Example :: Timer to Log</description>
   
       <properties>
           <camel-quarkus.version>2.0.0-M1</camel-quarkus.version>
           <quarkus.version>2.0.0.Alpha3</quarkus.version>
   
           <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
           
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
           <maven.compiler.target>1.8</maven.compiler.target>
           <maven.compiler.source>1.8</maven.compiler.source>
           
<maven.compiler.testTarget>${maven.compiler.target}</maven.compiler.testTarget>
           
<maven.compiler.testSource>${maven.compiler.source}</maven.compiler.testSource>
   
           
<formatter-maven-plugin.version>2.11.0</formatter-maven-plugin.version>
           <impsort-maven-plugin.version>1.3.2</impsort-maven-plugin.version>
           <maven-compiler-plugin.version>3.8.0</maven-compiler-plugin.version>
           <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version>
           
<maven-resources-plugin.version>3.1.0</maven-resources-plugin.version>
           <maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
           <mycila-license.version>3.0</mycila-license.version>
       </properties>
   
       <dependencyManagement>
           <dependencies>
               <!-- Import BOM -->
               <dependency>
                   <groupId>org.apache.camel.quarkus</groupId>
                   <artifactId>camel-quarkus-bom</artifactId>
                   <version>${camel-quarkus.version}</version>
                   <type>pom</type>
                   <scope>import</scope>
               </dependency>
           </dependencies>
       </dependencyManagement>
   
       <dependencies>
       
       <!-- Your deps here -->
   
           <!-- Test -->
           <dependency>
               <groupId>io.quarkus</groupId>
               <artifactId>quarkus-junit5</artifactId>
               <scope>test</scope>
           </dependency>
           <dependency>
               <groupId>org.awaitility</groupId>
               <artifactId>awaitility</artifactId>
               <scope>test</scope>
           </dependency>
       </dependencies>
   
       <build>
           <pluginManagement>
               <plugins>
   
                   <plugin>
                       <groupId>net.revelc.code.formatter</groupId>
                       <artifactId>formatter-maven-plugin</artifactId>
                       <version>${formatter-maven-plugin.version}</version>
                       <configuration>
                           
<configFile>${maven.multiModuleProjectDirectory}/eclipse-formatter-config.xml</configFile>
                       </configuration>
                   </plugin>
   
                   <plugin>
                       <groupId>net.revelc.code</groupId>
                       <artifactId>impsort-maven-plugin</artifactId>
                       <version>${impsort-maven-plugin.version}</version>
                       <configuration>
                           
<groups>java.,javax.,org.w3c.,org.xml.,junit.</groups>
                           <removeUnused>true</removeUnused>
                           <staticAfter>true</staticAfter>
                           
<staticGroups>java.,javax.,org.w3c.,org.xml.,junit.</staticGroups>
                       </configuration>
                   </plugin>
   
                   <plugin>
                       <groupId>org.apache.maven.plugins</groupId>
                       <artifactId>maven-compiler-plugin</artifactId>
                       <version>${maven-compiler-plugin.version}</version>
                       <configuration>
                           <showDeprecation>true</showDeprecation>
                           <showWarnings>true</showWarnings>
                           <compilerArgs>
                               <arg>-Xlint:unchecked</arg>
                           </compilerArgs>
                       </configuration>
                   </plugin>
   
                   <plugin>
                       <groupId>org.apache.maven.plugins</groupId>
                       <artifactId>maven-surefire-plugin</artifactId>
                       <version>${maven-surefire-plugin.version}</version>
                       <configuration>
                           <failIfNoTests>false</failIfNoTests>
                           <systemProperties>
                               
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
                           </systemProperties>
                       </configuration>
                   </plugin>
   
                   <plugin>
                       <groupId>io.quarkus</groupId>
                       <artifactId>quarkus-maven-plugin</artifactId>
                       <version>${quarkus.version}</version>
                   </plugin>
   
                   <plugin>
                       <groupId>org.apache.maven.plugins</groupId>
                       <artifactId>maven-failsafe-plugin</artifactId>
                       <version>${maven-surefire-plugin.version}</version>
                   </plugin>
   
                   <plugin>
                       <groupId>org.apache.maven.plugins</groupId>
                       <artifactId>maven-jar-plugin</artifactId>
                       <version>${maven-jar-plugin.version}</version>
                   </plugin>
   
                   <plugin>
                       <groupId>com.mycila</groupId>
                       <artifactId>license-maven-plugin</artifactId>
                       <version>${mycila-license.version}</version>
                       <configuration>
                           <failIfUnknown>true</failIfUnknown>
                           
<header>${maven.multiModuleProjectDirectory}/header.txt</header>
                           <excludes>
                               <exclude>**/*.adoc</exclude>
                               <exclude>**/*.txt</exclude>
                               <exclude>**/LICENSE.txt</exclude>
                               <exclude>**/LICENSE</exclude>
                               <exclude>**/NOTICE.txt</exclude>
                               <exclude>**/NOTICE</exclude>
                               <exclude>**/README</exclude>
                               <exclude>**/pom.xml.versionsBackup</exclude>
                           </excludes>
                           <mapping>
                               <java>SLASHSTAR_STYLE</java>
                               <properties>CAMEL_PROPERTIES_STYLE</properties>
                               <kt>SLASHSTAR_STYLE</kt>
                           </mapping>
                           <headerDefinitions>
                               
<headerDefinition>${maven.multiModuleProjectDirectory}/license-properties-headerdefinition.xml</headerDefinition>
                           </headerDefinitions>
                       </configuration>
                   </plugin>
               </plugins>
           </pluginManagement>
   
           <plugins>
               <plugin>
                   <groupId>io.quarkus</groupId>
                   <artifactId>quarkus-maven-plugin</artifactId>
                   <executions>
                       <execution>
                           <id>build</id>
                           <goals>
                               <goal>build</goal>
                           </goals>
                       </execution>
                   </executions>
               </plugin>
           
               <plugin>
                   <groupId>net.revelc.code.formatter</groupId>
                   <artifactId>formatter-maven-plugin</artifactId>
                   <executions>
                       <execution>
                           <id>format</id>
                           <goals>
                               <goal>format</goal>
                           </goals>
                           <phase>process-sources</phase>
                       </execution>
                   </executions>
               </plugin>
   
               <plugin>
                   <groupId>net.revelc.code</groupId>
                   <artifactId>impsort-maven-plugin</artifactId>
                   <executions>
                       <execution>
                           <id>sort-imports</id>
                           <goals>
                               <goal>sort</goal>
                           </goals>
                           <phase>process-sources</phase>
                       </execution>
                   </executions>
               </plugin>
           </plugins>
       </build>
   
       <profiles>
           <profile>
               <id>native</id>
               <activation>
                   <property>
                       <name>native</name>
                   </property>
               </activation>
               <properties>
                   <quarkus.package.type>native</quarkus.package.type>
               </properties>
               <build>
                   <plugins>
                       <plugin>
                           <groupId>org.apache.maven.plugins</groupId>
                           <artifactId>maven-failsafe-plugin</artifactId>
                           <executions>
                               <execution>
                                   <goals>
                                       <goal>integration-test</goal>
                                       <goal>verify</goal>
                                   </goals>
                                   <configuration>
                                       <systemPropertyVariables>
                                           
<quarkus.package.type>${quarkus.package.type}</quarkus.package.type>
                                       </systemPropertyVariables>
                                   </configuration>
                               </execution>
                           </executions>
                       </plugin>
                   </plugins>
               </build>
           </profile>
       </profiles>
   
   </project>
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to