Re: Why is my Maven NB app bigger than my Ant NB app ?

Wade Chandler <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <CALiWaW=HbDw4zihA=STbKLD88NL084w9uLHiaxDRCV70P=WjTg@mail.gmail.com>
Peter,

Can you check to see if your POM has the dependencies explicitly added to
it perhaps? If so, you could remove them, perhaps making JUnit a test
dependency instead, and if not added by you, then possibly a bug in NB
Maven Plugin Project support. If you added JUnit yourself, make sure it is
a "test" dependency instead. Depending on your findings it may or may not
be a bug to file against nbm-maven.

Wade

On Nov 6, 2016 5:02 AM, "Peter Hansson" <[email protected]> wrote:

> I've noticed that my Maven-based platform app pulls in stuff that I do not
> know why is there.
>
> I've done some testing by letting the IDE create two out-of-the-box
> projects for me and them comparing them. One is Ant-based (New Project -->
> NetBeans Modules --> NetBeans Platform Application) and the other is
> Maven-based (New Project --> Maven --> NetBeans Application).
>
> I've then let the IDE create a ZIP distribution on both projects and then
> comparing the ZIPs.
> All tests done on NB IDE 8.2 and using NB 8.2 platform deps.
>
> The Maven-based application contains two cluster directories that the
> Ant-based doesn't:
>
> extra/
>        this contains net-java-html-boot-script.jar and
> net-java-html-sound.jar
> java/
>        this contains org-netbeans-modules-junitlib.jar
>
>
> Why? If the Ant-based app doesn't need then neither should the Maven-based
> ditto.
>
>
> /Peter
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.