eclipse-osgi-technology / jakartarest-osgi

Glassfish Jersey based implementation of the OSGi Jakarta RESTful Web Services Whiteboard specification
https://projects.eclipse.org/projects/technology.osgi-technology
Eclipse Public License 2.0
3 stars 5 forks source link

[Maven Archetype] nested example package #36

Open fipro78 opened 9 months ago

fipro78 commented 9 months ago

I tried to create a OSGi Jakarta RS project using the Maven archetype. I executed the following command:

mvn archetype:generate \
-DarchetypeGroupId=org.eclipse.osgi-technology.rest \
-DarchetypeArtifactId=org.eclipse.osgitech.rest.archetype \
-DarchetypeVersion=1.2.2 \
-DgroupId=org.fipro.modifier \
-DartifactId=jakartars \
-Dversion=1.0.0-SNAPSHOT \
-Dpackage=org.fipro.modifier.jakartars

This way the example package is created below the provided package. So the class DemoResource is generated in the folder

jakartars\src\main\java\org\fipro\modifier\jakartars\org\eclipse\osgitech\rest\sample

This of course leads to a compiler error, as the nested package does not match the package declaration of the DemoResource class.