dev@glassfish.java.net

Re: build error

From: Carla Mott <carla.mott_at_oracle.com>
Date: Fri, 16 Mar 2012 09:08:25 -0700

Jason's suggestion helped but then I ran into the same problem with
another module so I ended up removing everything and starting over.

Thanks!

Carla
On 3/16/12 8:01 AM, romain.grecourt wrote:
> Usually this kind of issue happens when there is no artifacts left in
> "target/artifacts/jars/".
>
> Basically the dependency-plugin copy the dependencies in
> "target/artifacts/jar" and then these files are filtered to exclude
> the ones that already exist in a specific packager module.
> If there are no files remaining in "target/artifacts/jars" after the
> filtering process, the stage directory is not created (because it is
> created during the copy of the files from "target/artifacts/jars" to
> "target/stage/...")
>
> Romain
>
> On 3/16/12 2:44 PM, Jane Young wrote:
>>
>> Are you still seeing the build error even after Jason's suggestion of
>> updating the nucleus/packager workspace?
>> The build is failing since it's not able to find a stage directory in
>> target. It's hard to tell from the snippet that you attached why
>> stage directory is not created. The stage directory is created
>> during ant target "stage-distribution-fragments". Was there any
>> error during this target run?
>>
>> Jane
>>
>>
>> On 3/15/12 1:49 PM, Carla Mott wrote:
>>> I'm getting the following build error. I did the following steps:
>>>
>>> update settings.xml with new mirror info
>>> mvn update (in main dir)
>>> mvn -U install
>>>
>>> Any ideas?
>>>
>>> <snip>
>>> create.package:
>>>
>>> filter-module-artifacts:
>>> [copy] Copying 1 file to
>>> /Users/cmott/gfws/main/nucleus/packager/nucleus-management/target
>>> [delete] Deleting 54 files from
>>> /Users/cmott/gfws/main/nucleus/packager/nucleus-management/target/artifacts
>>> [mkdir] Created dir:
>>> /Users/cmott/gfws/main/nucleus/packager/nucleus-management/target/artifacts/distribution-fragments
>>> [move] Warning:
>>> /Users/cmott/gfws/main/nucleus/packager/nucleus-management/target/stage/glassfish
>>> not found.
>>>
>>> create-zip-artifact:
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>> [ERROR] BUILD ERROR
>>> [INFO]
>>> ------------------------------------------------------------------------
>>>
>>> [INFO] An Ant BuildException has occured: The following error
>>> occurred while executing this line:
>>> /Users/cmott/gfws/main/nucleus/packager/nucleus-management/build.xml:61:
>>> The following error occurred while executing this line:
>>> /Users/cmott/gfws/main/nucleus/packager/common-targets.xml:144:
>>> /Users/cmott/gfws/main/nucleus/packager/nucleus-management/target/stage
>>> not found.
>>>
>>
>