Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Maven Archetype] nested example package #36

Open
fipro78 opened this issue Jan 29, 2024 · 0 comments
Open

[Maven Archetype] nested example package #36

fipro78 opened this issue Jan 29, 2024 · 0 comments

Comments

@fipro78
Copy link
Contributor

fipro78 commented Jan 29, 2024

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.

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

No branches or pull requests

1 participant