Skip to content

WINDUPRULE-945 JavaEE to Quarkus: helloworld-rs migration#1

Draft
mrizzi wants to merge 1 commit intowindup:7.2.0.GAfrom
mrizzi:javaee2quarkus-helloworld-rs
Draft

WINDUPRULE-945 JavaEE to Quarkus: helloworld-rs migration#1
mrizzi wants to merge 1 commit intowindup:7.2.0.GAfrom
mrizzi:javaee2quarkus-helloworld-rs

Conversation

@mrizzi
Copy link
Copy Markdown
Member

@mrizzi mrizzi commented May 5, 2023

@mrizzi mrizzi marked this pull request as draft May 5, 2023 12:36
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>helloworld-rs</artifactId>
<packaging>war</packaging>
Copy link
Copy Markdown
Member Author

@mrizzi mrizzi May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The expected project artifact's extension is jar
https://quarkus.io/guides/maven-tooling#build-tool-maven

Comment on lines +54 to +64
<dependencyManagement>
<dependencies>
<dependency>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>${quarkus.platform.artifact-id}</artifactId>
<version>${quarkus.platform.version}</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
Copy link
Copy Markdown
Member Author

@mrizzi mrizzi May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +45 to +47
<quarkus.platform.artifact-id>quarkus-bom</quarkus.platform.artifact-id>
<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<quarkus.platform.version>2.16.6.Final</quarkus.platform.version>
Copy link
Copy Markdown
Member Author

@mrizzi mrizzi May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +90 to +104
<plugin>
<groupId>${quarkus.platform.group-id}</groupId>
<artifactId>quarkus-maven-plugin</artifactId>
<version>${quarkus.platform.version}</version>
<extensions>true</extensions>
<executions>
<execution>
<goals>
<goal>build</goal>
<goal>generate-code</goal>
<goal>generate-code-tests</goal>
</goals>
</execution>
</executions>
</plugin>
Copy link
Copy Markdown
Member Author

@mrizzi mrizzi May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +134 to +142
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>${compiler-plugin.version}</version>
<configuration>
<compilerArgs>
<arg>-parameters</arg>
</compilerArgs>
</configuration>
</plugin>
Copy link
Copy Markdown
Member Author

@mrizzi mrizzi May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +105 to +114
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<configuration>
<systemPropertyVariables>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
</systemPropertyVariables>
</configuration>
</plugin>
Copy link
Copy Markdown
Member Author

@mrizzi mrizzi May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<quarkus.platform.group-id>io.quarkus.platform</quarkus.platform.group-id>
<quarkus.platform.version>2.16.6.Final</quarkus.platform.version>
<skipITs>true</skipITs>
<surefire-plugin.version>3.0.0</surefire-plugin.version>
Copy link
Copy Markdown
Member Author

@mrizzi mrizzi May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +50 to +51
<compiler-plugin.version>3.10.1</compiler-plugin.version>
<maven.compiler.release>11</maven.compiler.release>
Copy link
Copy Markdown
Member Author

@mrizzi mrizzi May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +115 to +133
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${surefire-plugin.version}</version>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
<configuration>
<systemPropertyVariables>
<native.image.path>${project.build.directory}/${project.build.finalName}-runner</native.image.path>
<java.util.logging.manager>org.jboss.logmanager.LogManager</java.util.logging.manager>
<maven.home>${maven.home}</maven.home>
</systemPropertyVariables>
</configuration>
</execution>
</executions>
</plugin>
Copy link
Copy Markdown
Member Author

@mrizzi mrizzi May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +146 to +159
<profiles>
<profile>
<id>native</id>
<activation>
<property>
<name>native</name>
</property>
</activation>
<properties>
<skipITs>false</skipITs>
<quarkus.package.type>native</quarkus.package.type>
</properties>
</profile>
</profiles>
Copy link
Copy Markdown
Member Author

@mrizzi mrizzi May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add Maven profile to run the Quarkus native build
https://quarkus.io/guides/maven-tooling#build-tool-maven

Comment on lines -63 to +83
<groupId>org.jboss.spec.javax.ws.rs</groupId>
<artifactId>jboss-jaxrs-api_2.1_spec</artifactId>
<scope>provided</scope>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-resteasy</artifactId>
Copy link
Copy Markdown
Member Author

@mrizzi mrizzi May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace JAX-RS dependency
https://quarkus.io/guides/resteasy

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should use quarkus-resteasy-reactive if possible.

might be edge cases of things in resteasy/jaxrs we don't support but quarkus-resteas-reactive would be recommended if intent is to move forward vs staying more compatible.

Comment on lines -48 to +70
<groupId>javax.enterprise</groupId>
<artifactId>cdi-api</artifactId>
<scope>provided</scope>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-arc</artifactId>
Copy link
Copy Markdown
Member Author

@mrizzi mrizzi May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace javax.enterprise:cdi-api dependency
https://quarkus.io/guides/cdi-reference

* @author Pete Muir
*
*/
@Dependent
Copy link
Copy Markdown
Member Author

@mrizzi mrizzi May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*/
package org.jboss.as.quickstarts.rshelloworld;

import javax.enterprise.context.Dependent;
Copy link
Copy Markdown
Member Author

@mrizzi mrizzi May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

@mrizzi mrizzi May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member Author

@mrizzi mrizzi May 5, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

beans.xml descriptor content is ignored
https://quarkus.io/guides/cdi-reference#limitations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants