aldettinger commented on issue #1021: Create a doc page to list necessary steps 
to promote a jvm-only extension to native
URL: https://github.com/apache/camel-quarkus/issues/1021#issuecomment-607897535
 
 
   Raw notes about how to promote a jvm-only extension to native:
   
   # Split extension
   Remove integration-test module from extensions-jvm/pom.xml
   git mv extensions-jvm/couchdb/integration-test integration-tests/couchdb
   git mv extensions-jvm/couchdb extensions/couchdb
   Add couchdb module to extensions/pom.xml
   Add couchdb module to integration-tests/pom.xml
   
   Complete itest pom.xml:
   
       parent.artifactId = camel-quarkus-integration-tests
       artifactId = camel-quarkus-integration-test-couchdb
       name = Camel Quarkus :: Integration Test :: CouchDB
   
      Add:
       <dependencyManagement>
           <dependencies>
               <dependency>
                   <groupId>org.apache.camel.quarkus</groupId>
                   <artifactId>camel-quarkus-bom-test</artifactId>
                   <version>${project.version}</version>
                   <type>pom</type>
                   <scope>import</scope>
               </dependency>
           </dependencies>
       </dependencyManagement>
   
      Add:
       <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>
                               </execution>
                           </executions>
                       </plugin>
                   </plugins>
               </build>
           </profile>
       </profiles>
   
   In deployment:
   Remove the warnJvmInNative() build step
   
   Generally review <name>...</name> in poms, the order may change.
   
   Add a CouchdbIT test.
   
   In runtime src/main/resources/META-INF/quarkus-extension.yaml
   Ensure guide = "https://quarkus.io/guides/camel";
   Ensure keyword camel is present
   Remove preview status
   
   Add itests to .github/workflows/pr-build.yaml
   
   mvn clean install -D skipTests
   cd extensions/couchdb
   mvn clean install
   
   cd ../../integrations-tests/couchdb
   mvn clean verify -P native

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to