You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Danny van Heumen <da...@dannyvanheumen.nl> on 2017/12/03 21:06:27 UTC

Build failure for clean clone

Hi all,

I am interested in seeing the progress on Netbeans. I've cloned the
(new) repo location (https://github.com/apache/incubator-netbeans.git)
and started a build using just the command "ant". It fails on some
missing "defaultManifest" file. (cli output to follow below.) I have
also tried calling "ant clean" first. It makes no difference. I've
tried repeatedly, every time on current master (i.e. origin/master
after fetch).

I'm not sure what I am doing wrong. I believe I built
everything fine before, at some point. However, I'm also surprised that
no-one else seems to have this problem.

Thanks in advance,
Danny

Console output
--------------
[...]
compile:

jar-prep:

jar:
[jarwithmoduleattributes] Building jar: /home/danny/dev/incubator-netbeans/nbbuild/netbeans/websvccommon/modules/org-netbeans-modules-websvc-saas-api.jar
[nbmerge] Failed to build target: all-websvc.saas.api

BUILD FAILED
/home/danny/dev/incubator-netbeans/nbbuild/build.xml:436:
The following error occurred while executing this line:
/home/danny/dev/incubator-netbeans/nbbuild/build.xml:431:
The following error occurred while executing this line:
/home/danny/dev/incubator-netbeans/nbbuild/build.xml:478:
The following error occurred while executing this line:
/home/danny/dev/incubator-netbeans/nbbuild/templates/common.xml:252:
Could not find default
manifest: /org/apache/tools/ant/defaultManifest.mf

Total time: 4 minutes 13 seconds

Re: Build failure for clean clone

Posted by Danny van Heumen <da...@dannyvanheumen.nl>.
Hi all,

Thanks for the hints. I managed to get the build running by
uninstalling the ant version shipped with FC27. (1.10.1) and then use
the downloaded ant version 1.9.9.

Removing ant 1.10.1 by FC27 is required. I guess versions get mixed up
in execution otherwise.

Regards,
Danny



On Wed, 6 Dec 2017 12:45:49 -0500
John Muczynski <jo...@gmail.com> wrote:

> Hi Danny,
> 
> So sorry to hear you're having trouble with the missing
> "defaultManifest" file.
> 
> In regards to your version of Ant, I've found NetBeans to be a bit
> sensitive to the Ant version.
> (Maven likewise)
> 
> Netbeans 8.2 is shipping with Ant version 1.9.7
> so I wouldn't use an Ant that is older than 1.9.7
> 
> Kind Regards,
> Johnny
> 
> 
> --
> Johnny Muczynski
> 734-262-2045
> 
> On Sun, Dec 3, 2017 at 7:03 PM, William L. Thomson Jr.
> <wl...@o-sinc.com> wrote:
> 
> > I am not super familiar with Netbeans ant build system. I am
> > presently working on building Netbeans from source without using
> > ant. But I may be able to help some.
> >
> > On Sun, 3 Dec 2017 22:06:27 +0100
> > Danny van Heumen <da...@dannyvanheumen.nl> wrote:
> >  
> > > Hi all,
> > >
> > > I am interested in seeing the progress on Netbeans. I've cloned
> > > the (new) repo location
> > > (https://github.com/apache/incubator-netbeans.git) and started a
> > > build using just the command "ant". It fails on some missing
> > > "defaultManifest" file. (cli output to follow below.) I have also
> > > tried calling "ant clean" first. It makes no difference. I've
> > > tried repeatedly, every time on current master (i.e.
> > > origin/master after fetch).  
> >
> > What is your entire ant command? Are you passing properties?
> >  
> > > [jarwithmoduleattributes] Building
> > > jar: /home/danny/dev/incubator-netbeans/nbbuild/netbeans/  
> > websvccommon/modules/org-netbeans-modules-websvc-saas-api.jar  
> > > [nbmerge] Failed to build target: all-websvc.saas.api  
> >  
> > > manifest: /org/apache/tools/ant/defaultManifest.mf  
> >
> > The project/target seems unrelated to the error. The error comes
> > from customized ant tasks within the project.
> >
> > This is the only file I found a reference to defaultManifest.mf.
> > https://github.com/apache/incubator-netbeans/blob/
> > master/nbbuild/antsrc/org/netbeans/nbbuild/LocalizedJar.java#L484
> >
> > It seems to have something to do with localization and there are a
> > couple properties mentioned in the first block of comments.
> >
> > As follows;
> >
> > "You can use the "branding" and "locale" subelements to control the
> > branded and localized .jar files that will be produced.  Also, you
> > can set the global properties "locjar.brands" and "locjar.locales"
> > to comma-separated lists of branding or locale identifiers so that
> > NetBeans-based projects can brand or localize NetBeans without
> > having to maintain modified versions of all the individual Ant
> > scripts"
> >
> > No clue if your setting either of those. If you are, may try
> > without. If you are not, may try with. You need not repeat the
> > entire build. Just go into websvc.saas.api and invoke ant again.
> > Though may not need a target, like all, etc. Just run it in there
> > it will detect just that target and not others, unless dependencies.
> >
> > After you should be able to resume normal build. I have built
> > pieces at time when I ran into problems with my packaging. That is
> > what I did to build just the piece I needed. Though it did build
> > all stuff up to that point.
> >
> > Hope that helps some. If nothing else at least know where the
> > message is coming from. That should help with finding out whats
> > going wrong.
> >
> > --
> > William L. Thomson Jr.
> >  


Re: Build failure for clean clone

Posted by John Muczynski <jo...@gmail.com>.
Hi Danny,

So sorry to hear you're having trouble with the missing "defaultManifest"
file.

In regards to your version of Ant, I've found NetBeans to be a bit
sensitive to the Ant version.
(Maven likewise)

Netbeans 8.2 is shipping with Ant version 1.9.7
so I wouldn't use an Ant that is older than 1.9.7

Kind Regards,
Johnny


--
Johnny Muczynski
734-262-2045

On Sun, Dec 3, 2017 at 7:03 PM, William L. Thomson Jr. <wl...@o-sinc.com>
wrote:

> I am not super familiar with Netbeans ant build system. I am presently
> working on building Netbeans from source without using ant. But I may
> be able to help some.
>
> On Sun, 3 Dec 2017 22:06:27 +0100
> Danny van Heumen <da...@dannyvanheumen.nl> wrote:
>
> > Hi all,
> >
> > I am interested in seeing the progress on Netbeans. I've cloned the
> > (new) repo location (https://github.com/apache/incubator-netbeans.git)
> > and started a build using just the command "ant". It fails on some
> > missing "defaultManifest" file. (cli output to follow below.) I have
> > also tried calling "ant clean" first. It makes no difference. I've
> > tried repeatedly, every time on current master (i.e. origin/master
> > after fetch).
>
> What is your entire ant command? Are you passing properties?
>
> > [jarwithmoduleattributes] Building
> > jar: /home/danny/dev/incubator-netbeans/nbbuild/netbeans/
> websvccommon/modules/org-netbeans-modules-websvc-saas-api.jar
> > [nbmerge] Failed to build target: all-websvc.saas.api
>
> > manifest: /org/apache/tools/ant/defaultManifest.mf
>
> The project/target seems unrelated to the error. The error comes from
> customized ant tasks within the project.
>
> This is the only file I found a reference to defaultManifest.mf.
> https://github.com/apache/incubator-netbeans/blob/
> master/nbbuild/antsrc/org/netbeans/nbbuild/LocalizedJar.java#L484
>
> It seems to have something to do with localization and there are a
> couple properties mentioned in the first block of comments.
>
> As follows;
>
> "You can use the "branding" and "locale" subelements to control the
> branded and localized .jar files that will be produced.  Also, you can
> set the global properties "locjar.brands" and "locjar.locales" to
> comma-separated lists of branding or locale identifiers so that
> NetBeans-based projects can brand or localize NetBeans without having
> to maintain modified versions of all the individual Ant scripts"
>
> No clue if your setting either of those. If you are, may try without.
> If you are not, may try with. You need not repeat the entire build.
> Just go into websvc.saas.api and invoke ant again. Though may not need
> a target, like all, etc. Just run it in there it will detect just that
> target and not others, unless dependencies.
>
> After you should be able to resume normal build. I have built pieces at
> time when I ran into problems with my packaging. That is what I did to
> build just the piece I needed. Though it did build all stuff up to that
> point.
>
> Hope that helps some. If nothing else at least know where the message
> is coming from. That should help with finding out whats going wrong.
>
> --
> William L. Thomson Jr.
>

Re: Build failure for clean clone

Posted by "William L. Thomson Jr." <wl...@o-sinc.com>.
I am not super familiar with Netbeans ant build system. I am presently
working on building Netbeans from source without using ant. But I may
be able to help some.

On Sun, 3 Dec 2017 22:06:27 +0100
Danny van Heumen <da...@dannyvanheumen.nl> wrote:

> Hi all,
> 
> I am interested in seeing the progress on Netbeans. I've cloned the
> (new) repo location (https://github.com/apache/incubator-netbeans.git)
> and started a build using just the command "ant". It fails on some
> missing "defaultManifest" file. (cli output to follow below.) I have
> also tried calling "ant clean" first. It makes no difference. I've
> tried repeatedly, every time on current master (i.e. origin/master
> after fetch).

What is your entire ant command? Are you passing properties?

> [jarwithmoduleattributes] Building
> jar: /home/danny/dev/incubator-netbeans/nbbuild/netbeans/websvccommon/modules/org-netbeans-modules-websvc-saas-api.jar
> [nbmerge] Failed to build target: all-websvc.saas.api

> manifest: /org/apache/tools/ant/defaultManifest.mf

The project/target seems unrelated to the error. The error comes from
customized ant tasks within the project.

This is the only file I found a reference to defaultManifest.mf.
https://github.com/apache/incubator-netbeans/blob/master/nbbuild/antsrc/org/netbeans/nbbuild/LocalizedJar.java#L484

It seems to have something to do with localization and there are a
couple properties mentioned in the first block of comments.

As follows;

"You can use the "branding" and "locale" subelements to control the
branded and localized .jar files that will be produced.  Also, you can
set the global properties "locjar.brands" and "locjar.locales" to
comma-separated lists of branding or locale identifiers so that
NetBeans-based projects can brand or localize NetBeans without having
to maintain modified versions of all the individual Ant scripts"

No clue if your setting either of those. If you are, may try without.
If you are not, may try with. You need not repeat the entire build.
Just go into websvc.saas.api and invoke ant again. Though may not need
a target, like all, etc. Just run it in there it will detect just that
target and not others, unless dependencies.

After you should be able to resume normal build. I have built pieces at
time when I ran into problems with my packaging. That is what I did to
build just the piece I needed. Though it did build all stuff up to that
point.

Hope that helps some. If nothing else at least know where the message
is coming from. That should help with finding out whats going wrong.

-- 
William L. Thomson Jr.

Re: Build failure for clean clone

Posted by Danny van Heumen <da...@dannyvanheumen.nl>.
It's: "Apache Ant(TM) version 1.10.1 compiled on July 26 2017"
Got it from Fedora 27 package repo.

Danny



On Sun, 03 Dec 2017 21:08:00 +0000
Geertjan Wielenga <ge...@googlemail.com> wrote:

> Which version of Ant are you using?
> 
> Gj
> 
> On Sun, 3 Dec 2017 at 22:06, Danny van Heumen
> <da...@dannyvanheumen.nl> wrote:
> 
> > Hi all,
> >
> > I am interested in seeing the progress on Netbeans. I've cloned the
> > (new) repo location
> > (https://github.com/apache/incubator-netbeans.git) and started a
> > build using just the command "ant". It fails on some missing
> > "defaultManifest" file. (cli output to follow below.) I have also
> > tried calling "ant clean" first. It makes no difference. I've tried
> > repeatedly, every time on current master (i.e. origin/master after
> > fetch).
> >
> > I'm not sure what I am doing wrong. I believe I built
> > everything fine before, at some point. However, I'm also surprised
> > that no-one else seems to have this problem.
> >
> > Thanks in advance,
> > Danny
> >
> > Console output
> > --------------
> > [...]
> > compile:
> >
> > jar-prep:
> >
> > jar:
> > [jarwithmoduleattributes] Building jar:
> > /home/danny/dev/incubator-netbeans/nbbuild/netbeans/websvccommon/modules/org-netbeans-modules-websvc-saas-api.jar
> > [nbmerge] Failed to build target: all-websvc.saas.api
> >
> > BUILD FAILED
> > /home/danny/dev/incubator-netbeans/nbbuild/build.xml:436:
> > The following error occurred while executing this line:
> > /home/danny/dev/incubator-netbeans/nbbuild/build.xml:431:
> > The following error occurred while executing this line:
> > /home/danny/dev/incubator-netbeans/nbbuild/build.xml:478:
> > The following error occurred while executing this line:
> > /home/danny/dev/incubator-netbeans/nbbuild/templates/common.xml:252:
> > Could not find default
> > manifest: /org/apache/tools/ant/defaultManifest.mf
> >
> > Total time: 4 minutes 13 seconds
> >  


Re: Build failure for clean clone

Posted by Geertjan Wielenga <ge...@googlemail.com>.
Which version of Ant are you using?

Gj

On Sun, 3 Dec 2017 at 22:06, Danny van Heumen <da...@dannyvanheumen.nl>
wrote:

> Hi all,
>
> I am interested in seeing the progress on Netbeans. I've cloned the
> (new) repo location (https://github.com/apache/incubator-netbeans.git)
> and started a build using just the command "ant". It fails on some
> missing "defaultManifest" file. (cli output to follow below.) I have
> also tried calling "ant clean" first. It makes no difference. I've
> tried repeatedly, every time on current master (i.e. origin/master
> after fetch).
>
> I'm not sure what I am doing wrong. I believe I built
> everything fine before, at some point. However, I'm also surprised that
> no-one else seems to have this problem.
>
> Thanks in advance,
> Danny
>
> Console output
> --------------
> [...]
> compile:
>
> jar-prep:
>
> jar:
> [jarwithmoduleattributes] Building jar:
> /home/danny/dev/incubator-netbeans/nbbuild/netbeans/websvccommon/modules/org-netbeans-modules-websvc-saas-api.jar
> [nbmerge] Failed to build target: all-websvc.saas.api
>
> BUILD FAILED
> /home/danny/dev/incubator-netbeans/nbbuild/build.xml:436:
> The following error occurred while executing this line:
> /home/danny/dev/incubator-netbeans/nbbuild/build.xml:431:
> The following error occurred while executing this line:
> /home/danny/dev/incubator-netbeans/nbbuild/build.xml:478:
> The following error occurred while executing this line:
> /home/danny/dev/incubator-netbeans/nbbuild/templates/common.xml:252:
> Could not find default
> manifest: /org/apache/tools/ant/defaultManifest.mf
>
> Total time: 4 minutes 13 seconds
>