Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Duplicate
-
None
-
None
-
None
-
WIN XP Pro, SP2
java version "1.5.0_04"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_04-b05)
Java HotSpot(TM) Client VM (build 1.5.0_04-b05, mixed mode)
Description
Deletion of ~/.m2 directory prevents (re)creation of plugin-registry.xml file with java.io.FileNotFoundException
Recreating ~/.m2 directory enabled plugin-registry.xml to be properly created by m2
Output
Running Maven2 with CLI options: -X -e install
Running Maven2 with JVM options: -Dorg.apache.maven.global-settings=D:\Aelitis\tools\abs\conf\maven-global-settings.xml
-Dmaven.repo.local=D:\Aelitis\repository
+ Error stacktraces are turned on.
[DEBUG] Building Maven global-level plugin registry from: 'D:\Aelitis\tools\maven-2.0-beta-1\conf\plugin-registry.xml'
[DEBUG] Building Maven user-level plugin registry from: 'D:\profiles\AllenJ4\.m2\plugin-registry.xml'
[INFO] ----------------------------------------------------------------------------
[INFO] Building Aelitis root project
[INFO] task-segment: [install]
[INFO] ----------------------------------------------------------------------------
[DEBUG] maven-install-plugin: resolved to version 2.0-beta-1 from repository central
FATAL ERROR: Error executing Maven for a project
Error stacktrace:
org.apache.maven.reactor.ReactorException: Error executing project within the reactor
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:242)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:302)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
<snip/>
Caused by: java.io.FileNotFoundException: D:\profiles\AllenJ4\.m2\plugin-registry.xml (The system cannot find the path specified)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:131)