Re: migrate EE6 project from ant buiild to mvn/gradle

2022-01-26 Thread Pieter van den Hombergh
Hi Tom,

In such a situation, I would start from a new maven project, and then
gradually include your stuff into that new project.
Netbenas will provide some help with finding the maven dependencies, some
others (in particular local ones) you might have to add by hand, but that
is also straightforward. In you case I would start with the EJB maven
template, and in the configuration step of the wizard select your wildfly
platform.

Pieter

On Tue, Jan 25, 2022 at 12:06 PM Tom Eicher  wrote:

> Hello,
>
> I have an ear project with one ejb and one war subprojects,
> that originates from Netbeans 7.2, using an ant build.
>
> I have been unable to upgrade for a long time (after NB8) due
> to missing wildfly plugin and other troubles, but now I'm up
> and running with Apache Netbeans 12.6 !
>
> We did that after upgrading our project from wildfly 10 to 25,
> and this was a very painful process that took over a week,
> and we had to patch and change all those file in nbproject like
> build.xml
> nbproject/ant-deploy.xml
> nbproject/build-impl.xml
> nbproject/genfiles.properties
> nbproject/private
> nbproject/private/private.properties
> nbproject/private/private.xml
> nbproject/project.properties
> nbproject/project.xml
> (and all those files 3 times, for ear, war and ejb)
>
> all projects refer to libraries either checked in, j2ee standard
> and/or provided by wildfly (like
>
> ../../wildfly-25.0.1.Final/modules/system/layers/base/com/fasterxml/jackson/core/jackson-annotations/main/jackson-annotations-2.12.3.jar)
>
> My question is, how can I get out of this situation?
>
> Can I move my build to a more modern build system (mvn, gradle, ...)
> Can I somehow generate mvn/gradle build files from my (working) ant
> project?
> If not, what would be a good approach to do this manually?
>
> (Theoretically my setup is not so exotic, it's EE6 on wildfly with
> a few things manually added for wicket, hibernate (für multitenancy),
> jadira, pdfbox etc)
>
> Thanx & Cheers Tom.
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
> For additional commands, e-mail: users-h...@netbeans.apache.org
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>

-- 
Pieter Van den Hombergh.
No software documentation is complete with out it's source code.


migrate EE6 project from ant buiild to mvn/gradle

2022-01-25 Thread Tom Eicher

Hello,

I have an ear project with one ejb and one war subprojects,
that originates from Netbeans 7.2, using an ant build.

I have been unable to upgrade for a long time (after NB8) due
to missing wildfly plugin and other troubles, but now I'm up
and running with Apache Netbeans 12.6 !

We did that after upgrading our project from wildfly 10 to 25,
and this was a very painful process that took over a week,
and we had to patch and change all those file in nbproject like
build.xml
nbproject/ant-deploy.xml
nbproject/build-impl.xml
nbproject/genfiles.properties
nbproject/private
nbproject/private/private.properties
nbproject/private/private.xml
nbproject/project.properties
nbproject/project.xml
(and all those files 3 times, for ear, war and ejb)

all projects refer to libraries either checked in, j2ee standard
and/or provided by wildfly (like
../../wildfly-25.0.1.Final/modules/system/layers/base/com/fasterxml/jackson/core/jackson-annotations/main/jackson-annotations-2.12.3.jar)

My question is, how can I get out of this situation?

Can I move my build to a more modern build system (mvn, gradle, ...)
Can I somehow generate mvn/gradle build files from my (working) ant
project?
If not, what would be a good approach to do this manually?

(Theoretically my setup is not so exotic, it's EE6 on wildfly with
a few things manually added for wicket, hibernate (für multitenancy),
jadira, pdfbox etc)

Thanx & Cheers Tom.



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

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