Skip to main content



      Home
Home » Archived » Buckminster » Dependency problem when building JARs
Dependency problem when building JARs [message #530065] Wed, 28 April 2010 07:18 Go to next message
Eclipse UserFriend
Hello everyone,

I'm quite new to this whole Buckminster world and from my point of view it's mostly voodoo Wink Or to be more specific, it's turning into a curse at the moment.

In my project, we're using Buckminster and Hudson to setup our build process, but so far we're stuck and are running out of ideas. Our problem is, after finishing successfully the cquery resolving, the JAR creation fails:

Error:
Quote:
"The project cannot be built until its prerequisite net.refractions.udig.libs is built. Cleaning and building all projects is recommended."


Hudson log:
Quote:

INFO: [start net.refractions.udig.catalog.ui:osgi.bundle$1.2.0#eclipse.bu ild]
target.arch=x86
buckminster.component=net.refractions.udig.catalog.ui
workspace.root=/var/lib/hudson/jobs/Image_Analyst/workspace
buckminster.temp=/var/lib/hudson/jobs/Image_Analyst/workspac e/buckminster.temp/net.refractions.udig.catalog.ui_1.2.0-osg i.bundle/temp
buckminster.home=/var/lib/hudson/jobs/ia/workspace/udig/core /net.refractions.udig.catalog.ui/
buckminster.output=/var/lib/hudson/jobs/ia/workspace/buckmin ster.output/net.refractions.udig.catalog.ui_1.2.0-osgi.bundl e
localhost=scm-ia
generator.buildTimestamp.format=2010-04-28T08:49:37.101+0000
buckminster.component.type=osgi.bundle
buckminster.version=1.2.0
target.nl=en_US
target.ws=gtk
eclipse.home=/var/lib/hudson/tools/buckminster_headless
target.os=linux
target.location=/var/lib/hudson/jobs/IA_Target_Platform/buil ds/2010-04-28_10-31-58/archive/targetPlatform
Doing full workspace refresh
Waiting for jobs to end
The project cannot be built until its prerequisite net.refractions.udig.libs is built. Cleaning and building all projects is recommended.



The whole problem is a little bit awkward because:

- net.refractions.udig.libs is successfully build before and is available.
- the project net.refractions.udig.catalog.ui isn't dependent on udig.libs
- the action order is correct ( listed below )

We deleted the workspace, changed the feature.xml, and so on, but nothing helped ( even swearing failed to my surprise Wink ). It always stops at the very same point. As said before, I'm new to this and I don't know what I could do now. But I'm quite sure the problem is somewhere in Buckminster, as the project just works fine in Eclipse.

Thank you in advance,
Robert

Action order:
net.refractions.udig:osgi.bundle$1.2.0#target.fragments
net.refractions.udig:osgi.bundle$1.2.0#bundle.jar
net.refractions.udig.libs:osgi.bundle$1.2.0#target.fragments
net.refractions.udig.libs:osgi.bundle$1.2.0#bundle.jar
net.refractions.udig.ui:osgi.bundle$1.2.0#target.fragments
net.refractions.udig.catalog.ui:osgi.bundle$1.2.0#eclipse.build


Re: Dependency problem when building JARs [message #530073 is a reply to message #530065] Wed, 28 April 2010 07:44 Go to previous messageGo to next message
Eclipse UserFriend
Hi Robert,
Are you importing into a workspace directly followed by a perform?

If so, I recommend adding a build between the import and perform. The build will ensure that the whole workspace is
consistent with respect to the internal Eclipse builders (just like it's done in your IDE) and is often a prerequisite
before you can start doing perform commands.

The build command has a --thorough option that will enforce a full clean and a full build followed by a sequence of
incremental builds. In some cases this is needed in order to resolve circular build dependencies between projects. If
all else fails, you might want to try that too.

HTH,
Thomas Hallgren


On 04/28/2010 01:18 PM, Robert Rogg wrote:
> Hello everyone,
>
> I'm quite new to this whole Buckminster world and from my point of view
> it's mostly voodoo ;) Or to be more specific, it's turning into a curse
> at the moment.
>
> In my project, we're using Buckminster and Hudson to setup our build
> process, but so far we're stuck and are running out of ideas. Our
> problem is, after finishing successfully the cquery resolving, the JAR
> creation fails:
>
> Error:
> Quote:
>> "The project cannot be built until its prerequisite
>> net.refractions.udig.libs is built. Cleaning and building all projects
>> is recommended."
>
>
> Hudson log:
> Quote:
>> INFO: [start
>> net.refractions.udig.catalog.ui:osgi.bundle$1.2.0#eclipse.bu ild]
>> target.arch=x86
>> buckminster.component=net.refractions.udig.catalog.ui
>> workspace.root=/var/lib/hudson/jobs/Image_Analyst/workspace
>> buckminster.temp=/var/lib/hudson/jobs/Image_Analyst/workspac
>> e/buckminster.temp/net.refractions.udig.catalog.ui_1.2.0-osg
>> i.bundle/temp
>> buckminster.home=/var/lib/hudson/jobs/ia/workspace/udig/core
>> /net.refractions.udig.catalog.ui/
>> buckminster.output=/var/lib/hudson/jobs/ia/workspace/buckmin
>> ster.output/net.refractions.udig.catalog.ui_1.2.0-osgi.bundl e
>> localhost=scm-ia
>> generator.buildTimestamp.format=2010-04-28T08:49:37.101+0000
>> buckminster.component.type=osgi.bundle
>> buckminster.version=1.2.0
>> target.nl=en_US
>> target.ws=gtk
>> eclipse.home=/var/lib/hudson/tools/buckminster_headless
>> target.os=linux
>> target.location=/var/lib/hudson/jobs/IA_Target_Platform/buil
>> ds/2010-04-28_10-31-58/archive/targetPlatform
>> Doing full workspace refresh
>> Waiting for jobs to end
>> The project cannot be built until its prerequisite
>> net.refractions.udig.libs is built. Cleaning and building all projects
>> is recommended.
>
>
> The whole problem is a little bit awkward because:
>
> - net.refractions.udig.libs is successfully build before and is available.
> - the project net.refractions.udig.catalog.ui isn't dependent on udig.libs
> - the action order is correct ( listed below )
>
> We deleted the workspace, changed the feature.xml, and so on, but
> nothing helped ( even swearing failed to my surprise ;) ). It always
> stops at the very same point. As said before, I'm new to this and I
> don't know what I could do now. But I'm quite sure the problem is
> somewhere in Buckminster, as the project just works fine in Eclipse.
> Thank you in advance,
> Robert
>
> Action order:
> net.refractions.udig:osgi.bundle$1.2.0#target.fragments
> net.refractions.udig:osgi.bundle$1.2.0#bundle.jar
> net.refractions.udig.libs:osgi.bundle$1.2.0#target.fragments
> net.refractions.udig.libs:osgi.bundle$1.2.0#bundle.jar
> net.refractions.udig.ui:osgi.bundle$1.2.0#target.fragments
> net.refractions.udig.catalog.ui:osgi.bundle$1.2.0#eclipse.bu ild
>
>
>
Re: Dependency problem when building JARs [message #530075 is a reply to message #530065] Wed, 28 April 2010 07:49 Go to previous messageGo to next message
Eclipse UserFriend
When running in the IDE most people have automatic building turned on.
When running headless automatic building is turned off. This is by
design, as it is common to add multiple things to the workspace before
building.

So the first thing to check is that your headless build script invokes
the buckminster "build" command after materialization has taken place.
(that is, if the component it is complaining about is supposed to be
built from source and is present in the workspace).

- henrik

Robert Rogg <R._Rogg@web.de> wrote:
> Hello everyone,
>
> I'm quite new to this whole Buckminster world and from my point of
> view it's mostly voodoo ;) Or to be more specific, it's turning into a
> curse at the moment.
>
> In my project, we're using Buckminster and Hudson to setup our build
> process, but so far we're stuck and are running out of ideas. Our
> problem is, after finishing successfully the cquery resolving, the JAR
> creation fails:
>
> Error:
> Quote:
> > "The project cannot be built until its prerequisite
> > net.refractions.udig.libs is built. Cleaning and building all
> > projects is recommended."
>
>
> Hudson log:
> Quote:
> > INFO: [start
> > net.refractions.udig.catalog.ui:osgi.bundle$1.2.0#eclipse.bu ild]
> > target.arch=x86
> > buckminster.component=net.refractions.udig.catalog.ui
> > workspace.root=/var/lib/hudson/jobs/Image_Analyst/workspace
> > buckminster.temp=/var/lib/hudson/jobs/Image_Analyst/workspac
> > e/buckminster.temp/net.refractions.udig.catalog.ui_1.2.0-osg
> > i.bundle/temp
> > buckminster.home=/var/lib/hudson/jobs/ia/workspace/udig/core
> > /net.refractions.udig.catalog.ui/
> > buckminster.output=/var/lib/hudson/jobs/ia/workspace/buckmin
> > ster.output/net.refractions.udig.catalog.ui_1.2.0-osgi.bundl e
> > localhost=scm-ia
> > generator.buildTimestamp.format=2010-04-28T08:49:37.101+0000
> > buckminster.component.type=osgi.bundle
> > buckminster.version=1.2.0
> > target.nl=en_US
> > target.ws=gtk
> > eclipse.home=/var/lib/hudson/tools/buckminster_headless
> > target.os=linux
> > target.location=/var/lib/hudson/jobs/IA_Target_Platform/buil
> > ds/2010-04-28_10-31-58/archive/targetPlatform
> > Doing full workspace refresh
> > Waiting for jobs to end
> > The project cannot be built until its prerequisite
> > net.refractions.udig.libs is built. Cleaning and building all
> > projects is recommended.
>
>
> The whole problem is a little bit awkward because:
>
> - net.refractions.udig.libs is successfully build before and is
> available.
> - the project net.refractions.udig.catalog.ui isn't dependent on
> udig.libs
> - the action order is correct ( listed below )
>
> We deleted the workspace, changed the feature.xml, and so on, but
> nothing helped ( even swearing failed to my surprise ;) ). It always
> stops at the very same point. As said before, I'm new to this and I
> don't know what I could do now. But I'm quite sure the problem is
> somewhere in Buckminster, as the project just works fine in Eclipse.
> Thank you in advance,
> Robert
>
> Action order:
> net.refractions.udig:osgi.bundle$1.2.0#target.fragments
> net.refractions.udig:osgi.bundle$1.2.0#bundle.jar
> net.refractions.udig.libs:osgi.bundle$1.2.0#target.fragments
> net.refractions.udig.libs:osgi.bundle$1.2.0#bundle.jar
> net.refractions.udig.ui:osgi.bundle$1.2.0#target.fragments
> net.refractions.udig.catalog.ui:osgi.bundle$1.2.0#eclipse.bu ild
>
>
>
>


--
- henrik
Re: Dependency problem when building JARs [message #530082 is a reply to message #530065] Wed, 28 April 2010 08:30 Go to previous message
Eclipse UserFriend
Thank you for your fast replies. I've added the build command and in fact there are some errors in the build process. I'm rarely happy to see such error, but I am Wink


I'll fix them and hopefully it will work afterward.

Update: now it works, thanks a lot!

[Updated on: Thu, 29 April 2010 04:39] by Moderator

Previous Topic:Ant task to get the list of direct dependencies
Next Topic:headless builds with groovy
Goto Forum:
  


Current Time: Thu May 22 19:31:42 EDT 2025

Powered by FUDForum. Page generated in 0.03969 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top