It may be that I am doing something wrong, but I suspect there is some
problem with the build of the DependencyManager.

 

When I checkout the complete SVN repository for Felix and run ant on the
root folder, it starts building the whole tree, but fails after about 15
minutes on DependencyManager:

 

     [exec] [INFO]
------------------------------------------------------------------------

     [exec] [ERROR] BUILD ERROR

     [exec] [INFO]
------------------------------------------------------------------------

     [exec] [INFO] Could not rename
F:\workspace\Felix\dependencymanager\samples.annotation\target\org.apach
e.felix.depe

ndencymanager.samples.annotation-3.0.0-SNAPSHOT.jar.tmp to
F:\workspace\Felix\dependencymanager\samples.annotation\targe

t\org.apache.felix.dependencymanager.samples.annotation-3.0.0-SNAPSHOT.j
ar

     [exec] [INFO]
------------------------------------------------------------------------

     [exec] [INFO] For more information, run Maven with the -e switch

     [exec] [INFO]
------------------------------------------------------------------------

     [exec] [INFO] Total time: 14 minutes 45 seconds

     [exec] [INFO] Finished at: Wed Jun 09 13:46:35 CEST 2010

     [exec] [INFO] Final Memory: 61M/63M

     [exec] [INFO]
------------------------------------------------------------------------

 

Attempting to build the Dependency Manager separately has the same
effect. I think it is a reproducible error in the build and not some
quirk (locked file etc) on my machine, because I have seen this happen
both on my machine at work as on my home PC.

 

-Stijn

 

F:\workspace\Felix\dependencymanager>mvn clean install -e

<snipped>

[INFO]
------------------------------------------------------------------------

[INFO] Building Apache Felix Dependency Manager Annotation Samples

[INFO]    task-segment: [clean, install]

[INFO]
------------------------------------------------------------------------

[INFO] [clean:clean {execution: default-clean}]

[INFO] Deleting directory
F:\workspace\Felix\dependencymanager\samples.annotation\target

[INFO] [resources:resources {execution: default-resources}]

[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!

[INFO] skip non existing resourceDirectory
F:\workspace\Felix\dependencymanager\samples.annotation\src\main\resourc
es

[INFO] [compiler:compile {execution: default-compile}]

[INFO] Compiling 4 source files to
F:\workspace\Felix\dependencymanager\samples.annotation\target\classes

[INFO] [resources:testResources {execution: default-testResources}]

[WARNING] Using platform encoding (Cp1252 actually) to copy filtered
resources, i.e. build is platform dependent!

[INFO] skip non existing resourceDirectory
F:\workspace\Felix\dependencymanager\samples.annotation\src\test\resourc
es

[INFO] [compiler:testCompile {execution: default-testCompile}]

[INFO] No sources to compile

[INFO] [surefire:test {execution: default-test}]

[INFO] No tests to run.

[INFO] [bundle:bundle {execution: default-bundle}]

[INFO] [org.apache.felix.dependencymanager.annotation:scan {execution:
default}]

[INFO] Generating DM component descriptors for bundle
F:\workspace\Felix\dependencymanager\samples.annotation\target\org

.apache.felix.dependencymanager.samples.annotation-3.0.0-SNAPSHOT.jar

[INFO]
------------------------------------------------------------------------

[ERROR] BUILD ERROR

[INFO]
------------------------------------------------------------------------

[INFO] Could not rename
F:\workspace\Felix\dependencymanager\samples.annotation\target\org.apach
e.felix.dependencymanage

r.samples.annotation-3.0.0-SNAPSHOT.jar.tmp to
F:\workspace\Felix\dependencymanager\samples.annotation\target\org.apach
e

.felix.dependencymanager.samples.annotation-3.0.0-SNAPSHOT.jar

[INFO]
------------------------------------------------------------------------

[INFO] Trace

org.apache.maven.lifecycle.LifecycleExecutionException: Could not rename
F:\workspace\Felix\dependencymanager\samples.an

notation\target\org.apache.felix.dependencymanager.samples.annotation-3.
0.0-SNAPSHOT.jar.tmp to F:\workspace\Felix\depen

dencymanager\samples.annotation\target\org.apache.felix.dependencymanage
r.samples.annotation-3.0.0-SNAPSHOT.jar

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:719)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifec
ycle(DefaultLifecycleExecutor.java:55

6)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultL
ifecycleExecutor.java:535)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandle
Failures(DefaultLifecycleExecutor.jav

a:387)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
DefaultLifecycleExecutor.java:348)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifec
ycleExecutor.java:180)

        at
org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)

        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)

        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

        at
org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)

        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)

        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

Caused by: org.apache.maven.plugin.MojoExecutionException: Could not
rename F:\workspace\Felix\dependencymanager\samples

.annotation\target\org.apache.felix.dependencymanager.samples.annotation
-3.0.0-SNAPSHOT.jar.tmp to F:\workspace\Felix\de

pendencymanager\samples.annotation\target\org.apache.felix.dependencyman
ager.samples.annotation-3.0.0-SNAPSHOT.jar

        at
org.apache.felix.dm.annotation.plugin.mvn.AnnotationMojo.copy(Annotation
Mojo.java:183)

        at
org.apache.felix.dm.annotation.plugin.mvn.AnnotationMojo.execute(Annotat
ionMojo.java:106)

        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginMa
nager.java:490)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Default
LifecycleExecutor.java:694)

        ... 17 more

[INFO]
------------------------------------------------------------------------

[INFO] Total time: 8 seconds

[INFO] Finished at: Wed Jun 09 16:15:53 CEST 2010

[INFO] Final Memory: 35M/63M

[INFO]
------------------------------------------------------------------------

 

Reply via email to