[ 
https://issues.apache.org/jira/browse/NETBEANS-5955?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17405907#comment-17405907
 ] 

htlbugfinder commented on NETBEANS-5955:
----------------------------------------

Comparing with JavaEE Ant projects reveals the issue (Maven JavaEE project 
creation had been unsuccessfully too):

The mavenproject2-ejb project is being set to "war" packaging. The 
mavenproject2-ear expects it to be set to "jar" packaging. So the wrong 
packaging format seems to be causing the issues. Manually changing the project 
packaging type of the ejb project to jar fixes the dependency issues.

--> the template probably needs to be changed to use jar packaging type for the 
ejb project

Deployment of the ear then fails because of missing EJBs. Trying to create an 
Entity EJB fails because the source directory is not properly set (maybe caused 
by the above "fix" being incomplete).

--> the template probably needs to create the ejb project probably with the 
correct directory structure too

> Broken project created when creating a new Enterprise Application (Java with 
> Maven) JakartaEE9
> ----------------------------------------------------------------------------------------------
>
>                 Key: NETBEANS-5955
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-5955
>             Project: NetBeans
>          Issue Type: Bug
>    Affects Versions: 12.5
>            Reporter: htlbugfinder
>            Assignee: Prasad Gawande
>            Priority: Major
>         Attachments: projectcreationfailurelog.txt
>
>
> After the steps of bug 5953 (doesn't depend on it, but for reference to used 
> Glassfish configuration and so on) tried to create an Enterprise Application 
> project with Maven (via File New Project) without changing any default 
> values. Executed a second time with maven global changed to -X to get verbose 
> messages.
> Result:
> The created mavenproject2-ear project is missing dependencies and claims to 
> be unable to resolve the com.mycompany:mavenproject2-ejb:jar:1.0-SNAPSHOT



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

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

Reply via email to