Greetings one-n-all,
I pulled down the maven 2.2.1 source so I could build it into
an OpenSolaris package, and then use it with a project that I'm
lurking on. I don't install tools like this to my homedir, because
I make sure that build tools are commonly available on my systems.



I install my own packages into /opt/local, so I ran
--------------------------------------------------------
blinder:apache-maven-2.2.1 $ M2_HOME=/opt/local MAVEN_OPTS=-o pfexec ant install
Buildfile: build.xml

BUILD FAILED
Target "install" does not exist in the project "null".
--------------------------------------------------------

which I found a little annoying, but then I re-ran ant with
the root role thinking that the ant script might do the installation
automatically for me:


--------------------------------------------------------
blinder:apache-maven-2.2.1 $ M2_HOME=/opt/local MAVEN_OPTS=-o pfexec ant
Buildfile: build.xml

clean-bootstrap:

initTaskDefs:

isMavenHomeSet:
     [echo] Using Maven home at: /opt/local

initLocalRepo:
     [echo] Using the local repository at: /root/.m2/repository

init:
     [echo] maven.home = /opt/local
     [echo] maven.assembly = 
/scratch/src/build/apache-maven-2.2.1/apache-maven/target/apache-maven-2.2.1-bin.zip

[SNIP]

     [java] [INFO]
     [java] [INFO]
     [java] [INFO] 
------------------------------------------------------------------------
     [java] [INFO] Reactor Summary:
     [java] [INFO] 
------------------------------------------------------------------------
     [java] [INFO] Maven ................................................. 
SUCCESS [13:47.922s]
     [java] [INFO] Maven Artifact ........................................ 
SUCCESS [2:13.155s]
     [java] [INFO] Maven Repository Metadata Model ....................... 
SUCCESS [1:12.825s]
     [java] [INFO] Maven Artifact Manager ................................ 
SUCCESS [57.793s]
     [java] [INFO] Maven Model ........................................... 
SUCCESS [12.989s]
     [java] [INFO] Maven Local Settings Model ............................ 
SUCCESS [2.079s]
     [java] [INFO] Maven Artifact Test Helper Library .................... 
SUCCESS [0.843s]
     [java] [INFO] Maven Plugin Parameter Documenter API ................. 
SUCCESS [1.628s]
     [java] [INFO] Maven Reporting ....................................... 
SUCCESS [0.077s]
     [java] [INFO] Maven Reporting API ................................... 
SUCCESS [0.847s]
     [java] [INFO] Maven Profile Model ................................... 
SUCCESS [1.739s]
     [java] [INFO] Maven Error Diagnostics ............................... 
SUCCESS [0.841s]
     [java] [INFO] Maven Plugin Registry Model ........................... 
SUCCESS [1.123s]
     [java] [INFO] Maven Project Builder ................................. 
SUCCESS [7.684s]
     [java] [INFO] Maven Plugin API ...................................... 
SUCCESS [0.852s]
     [java] [INFO] Maven Plugin Descriptor Model ......................... 
SUCCESS [1.785s]
     [java] [INFO] Maven Monitor ......................................... 
SUCCESS [0.938s]
     [java] [INFO] Maven Core ............................................ 
SUCCESS [2:50.926s]
     [java] [INFO] Maven Compatibility Layer ............................. 
SUCCESS [1.117s]
     [java] [INFO] Maven Script Support Root ............................. 
SUCCESS [0.116s]
     [java] [INFO] Maven Ant Mojo Support ................................ 
SUCCESS [4:21.376s]
     [java] [INFO] Maven Beanshell Mojo Support .......................... 
SUCCESS [46.264s]
     [java] [INFO] Maven Toolchains ...................................... 
SUCCESS [46.279s]
     [java] [INFO] Maven Distribution .................................... 
SUCCESS [4:27.414s]
     [java] [INFO] 
------------------------------------------------------------------------
     [java] [INFO] 
------------------------------------------------------------------------
     [java] [INFO] BUILD SUCCESSFUL
     [java] [INFO] 
------------------------------------------------------------------------
     [java] [INFO] Total time: 32 minutes
     [java] [INFO] Finished at: Tue May 04 21:39:50 EST 2010
     [java] [INFO] Final Memory: 84M/202M
     [java] [INFO] 
------------------------------------------------------------------------

maven-assembly:
     [echo]
     [echo]     The new Maven distribution was created as part of the 
MAVEN-COMPILE step, above.
     [echo]     This goal just validates the presence of that distribution.
     [echo]


extract-assembly:
     [echo] Extracting assembly to /opt ...
   [delete] Deleting directory /opt/local

BUILD FAILED
/scratch/src/build/apache-maven-2.2.1/build.xml:221: Unable to delete directory 
/opt/local

Total time: 49 minutes 9 seconds
blinder:apache-maven-2.2.1 $ ls /opt/local
total 0

--------------------------------------------------------



This, y'see, is a problem. Is this rmdir stage something that
ant does, or maven?

Why on *earth* does this happen anyway?

I didn't see any indication that this would happen when I reviewed
http://maven.apache.org/guides/development/guide-building-m2.html.


What part did I miss, and what can I do to fix it?


thankyou in advance, James C. McPherson
--
Solaris kernel software engineer, system admin and troubleshooter
              http://www.jmcp.homeunix.com/blog
Find me on LinkedIn @ http://www.linkedin.com/in/jamescmcpherson


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

Reply via email to