Best to use the latest release, 12.4.

Also, typically, an enterprise application wouldn’t be created anymore —
though there are still use cases for it, of course, the typical starting
point is to create REST endpoints and consume them in a web/mobile
application.

Gj

On Tue, 3 Aug 2021 at 12:15, Tom Coudyzer <tcdm...@gmail.com> wrote:

> Hi,
>
> Seeking for some help on creating an Enterprise application  (with Maven)
> via Netbeans 11.3 and AdoptOpenJDK 8 on MacOS 11.5.1
>
> I create a new Enterprise application with Maven (Jave-EE 8)  and end up
> with 4 projects. The wizard starts to compile the maven projects but gives
> an error.
>
> Ignoring this error I clean an build the
>
> web (module) project
> ejb (module) project
> project
> ear (module) project
>
> First 3 build with success however when building the EAR I get this error
>
> Failed to execute goal on project myproject-ear: Could not resolve
> dependencies for project com.company:myproject-ear:war:1.0-SNAPSHOT: Could
> not find artifact com.company:myproject-ejb:jar:1.0-SNAPSHOT -> [Help 1]
>
> I manage to get it working when I change the EJB dependency and change it
> from packing type EJB to WAR in the pom.xml of the EAR module/project
>
> Sorry if this is a "rookie" mistake or missing something from my side but
> would be great to get some understanding why this "out-of-the-box" is not
> working and what to do to get this fixed.
>
> Thank you already and any help is much appreciated!
>
> /Tom
>

Reply via email to