79284236

Date: 2024-12-16 09:56:01
Score: 3
Natty:
Report link

I got the same problem I created a plugin in pom who transform the imports from javax to jakarta and everything is compiled and working :

<plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-antrun-plugin</artifactId>
            <version>3.1.0</version>
            <executions>
                <execution>
                    <phase>generate-sources</phase>
                    <configuration>
                        <target>
                            <!-- Remplacer javax par jakarta -->
                            <replaceregexp flags="g">
                                <regexp pattern="javax"/>
                                <substitution expression="jakarta"/>
                                <fileset dir="${project.basedir}/src/main/java/com/smi/generated" includes="**/*.java"/>
                            </replaceregexp>
                            <replaceregexp flags="g">
                                <regexp pattern="generated"/>
                                <substitution expression="com.smi.generated.generated"/>
                                <fileset dir="${project.basedir}/src/main/java/com/smi/generated" includes="**/*.java"/>
                            </replaceregexp>

                        </target>
                    </configuration>
                    <goals>
                        <goal>run</goal>
                    </goals>
                </execution>
            </executions>
        </plugin>

But certainly there is another thing that replace JAXB who knows it ? thank you

Reasons:
  • Blacklisted phrase (0.5): thank you
  • Blacklisted phrase (1): I got the same problem
  • Long answer (-1):
  • Has code block (-0.5):
  • Ends in question mark (2):
  • Low reputation (1):
Posted by: Alaa Ben Jaber