I just did a checkout and built the dependency manager with "mvn clean install" 
and got:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] ------------------------------------------------------------------------
[INFO] Apache Felix Dependency Manager ....................... SUCCESS [6.688s]
[INFO] Apache Felix Dependency Manager Shell ................. SUCCESS [1.450s]
[INFO] Apache Felix Dependency Manager Compatibility ......... SUCCESS [0.947s]
[INFO] Apache Felix Dependency Manager Annotation ............ SUCCESS [3.643s]
[INFO] Apache Felix Dependency Manager Runtime ............... SUCCESS [1.636s]
[INFO] Apache Felix Dependency Manager Samples ............... SUCCESS [0.536s]
[INFO] Apache Felix Dependency Manager Annotation Samples .... SUCCESS [1.384s]
[INFO] Apache Felix Dependency Manager Integration Tests ..... SUCCESS 
[1:36.399s]
[INFO] Apache Felix Dependency Manager Projects .............. SUCCESS [0.933s]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 55 seconds
[INFO] Finished at: Wed Jun 09 19:39:00 CEST 2010
[INFO] Final Memory: 45M/94M
[INFO] ------------------------------------------------------------------------

That's on my Mac, what platform and maven version did you use (mvn -v)?

Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_20
Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x" version: "10.6.3" arch: "x86_64" Family: "mac"

What you can also do is go into the "core" project within the dependency 
manager and try to build just that (if you just need the bundle itself).

The error message sounds like an issue with renaming, which works on Linux/Mac 
if you rename to an existing file and not on Windows (if I remember correctly).

Greetings, Marcel



On Jun 9, 2010, at 16:20 , Stijn de Witt wrote:

> 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]
> ------------------------------------------------------------------------
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to