You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@netbeans.apache.org by GitBox <gi...@apache.org> on 2022/11/06 10:08:24 UTC

[GitHub] [netbeans] OndroMih commented on issue #3552: Error creating Enterprise Application with Maven

OndroMih commented on issue #3552:
URL: https://github.com/apache/netbeans/issues/3552#issuecomment-1304764350

   I hit this issue too. The reason why the project ends in a corrupted stat is that for newer Java EE and Jakarta EE versions, it uses the same archetype for all generated Maven modules. And the archteype generates a WAR module. Therefore we'll get a WAR module, with multiple nested WAR modules. This is not only wrong but invalid, because the top-level module isn't POM but WAR.
   
   If we decide that Netbeans won't support EAR project generation for newer Jakarta EE versions, we should then remove the archetype for the newer versions of Jakarta EE in https://github.com/apache/netbeans/blob/f0ed696648470561d9e05c03db965812893b3f51/enterprise/maven.j2ee/src/org/netbeans/modules/maven/j2ee/ui/wizard/archetype/J2eeArchetypeFactory.java#L118, so that users can choose the newer versions and get a corrupted project.
   
   It should be reasonably easy to add support for EAR though, by adding appropriate archetypes, because they are very simple. The source code repository for old archetypes at codehaus.org is gone, however, their source code is still available in Maven Central and we can loosely base the new archtypes on that (but not simply fork it, because it's not released under any opensource license AFAIK). I can have a look into this. @juneau001, would it be OK to contribute to your repository for the WEB archetype? Or better to do it in my own repo/fork and release the new archetypes to Maven Central by myself?


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@netbeans.apache.org
For additional commands, e-mail: notifications-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists