You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Richard Katz (JIRA)" <ji...@codehaus.org> on 2009/02/11 08:48:20 UTC

[jira] Updated: (MNG-4028) Maven 2 still absolutely does not work

     [ http://jira.codehaus.org/browse/MNG-4028?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Katz updated MNG-4028:
------------------------------

    Attachment: settings.xml

Execution of mvn -v
-----------------------------

C:\Documents and Settings\Richard Katz>mvn -v
Maven version: 2.1.0-M1
Java version: 1.6.0_01
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" family: "windows"


================
I have also attempted the command after inserting (and after removing) the following file in .m2 as settings.xml
-----------------------------
<settings>
  <mirrors>
    <mirror>
      <id>ibiblio.org</id>
      <name>ibiblio Mirror of http://repo1.maven.org/maven2/</name>
      <url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
      <mirrorOf>central</mirrorOf>
    </mirror>
  </mirrors>
</settings>

================
All set variables:
-----------------------------
C:\Documents and Settings\Richard Katz>set
ALLUSERSPROFILE=C:\Documents and Settings\All Users
ANT_HOME=C:\cygwin\usr\local\apache-ant-1.6.2
APPDATA=C:\Documents and Settings\Richard Katz\Application Data
APR_ICONV_PATH=c:\programs\svn\iconv
CLASSPATH=.
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=DC4FDBC1
ComSpec=C:\WINDOWS\system32\cmd.exe
CYGWIN=/cygdrive/c/cygwin
EMACSHOME=C:\programs\Emacs\
ERROR_CODE=1
FP_NO_HOST_CHECK=NO
G95_LIBRARY_PATH=C:\programs\g95\lib\gcc-lib\i686-pc-mingw32\4.1.2;C:\programs\g95\lib
HOME=C:\Documents and Settings\Richard Katz
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Richard Katz
INCLUDE=C:\watcom-1.3\h;C:\watcom-1.3\h\nt;C:\watcom-1.3\maple\include;C:\watcom-1.3\h;C:\watcom-1.3\h\nt;C:\watcom-1.3\
maple\include
JAVA_HOME=C:\cygwin\opt\java\jdk1.6.0_01
JBOSS_HOME=C:\programs\jboss\jboss-4.2.2.GA
KMP_DUPLICATE_LIB_OK=TRUE
LOGONSERVER=\\DC4FDBC1
M2_HOME=C:\cygwin\usr\local\maven\apache-maven-2.1.0-M1
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
OZEMACS=C:\programs\Emacs\bin\Emacs.exe
Path=C:\programs\Pure\;c:\ruby\bin;C:\programs\KomodoEdit4.2\;C:\programs\Emacs\\bin;C:\watcom-1.3\binnt;C:\watcom-1.3\b
inw;C:\watcom-1.3\binnt;C:\watcom-1.3\binw;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;c:\Python25;c:\Python
25\bin;c:\Python25\Scripts;C:\cygwin\usr\bin;c:\cygwin\bin;C:\programs\Mozart\bin;C:\programs\JGsoft\EditPadPro6;C:\cygw
in\opt\java\jdk1.6.0_01\bin;C:\programs\MySQL\MySQLServer5.0\bin;C:\cygwin\usr\local\maven\apache-maven-2.0.9\bin;c:\pro
grams\svn\bin;C:\cygwin\usr\local\maven\apache-maven-2.1.0-M1\bin;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\
Haskell\bin;c:\programs\ghc\ghc683\bin;c:\programs\ssh;C:\programs\wscite;C:\programs\textpad;C:\cygwin\usr\local\apache
-ant-1.6.2\bin;c:\programs\PLT352;C:\programs\g95\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.RB;.RBW
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 6, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=0f06
ProgramFiles=C:\Program Files
PROMPT=$P$G
PURELIB=C:\programs\Pure\lib
QTJAVA=C:\Program Files\Java\jre1.6.0_07\lib\ext\QTJava.zip
RUBYOPT=-rubygems
SESSIONNAME=Console
SonicCentral=C:\Program Files\Common Files\Sonic Shared\Sonic Central\
SUB_VOB_ROOT=c:/view/richarka_sub_view/ame-sub
SW=c:/dnld/sw
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\RICHAR~1\LOCALS~1\Temp
TMP=C:\DOCUME~1\RICHAR~1\LOCALS~1\Temp
USER=richarka
USERDOMAIN=DC4FDBC1
USERNAME=Richard Katz
USERPROFILE=C:\Documents and Settings\Richard Katz
USER_HOME=C:\Documents and Settings\Richard Katz
VIEW=c:\view
WATCOM=C:\watcom-1.3
windir=C:\WINDOWS
XSB_BIN_DIRECTORY=C:\programs\xsbprolog\config\x86-pc-windows\bin\
XSB_DIR=C:\programs\xsbprolog

C:\Documents and Settings\Richard Katz>
==============
Previous version of this issue (on 2.0.9) : 3809 was apparently closed on Dec 9, 2008.

Please let me know if there is any additional information I can provide.



























> Maven 2 still absolutely does not work
> --------------------------------------
>
>                 Key: MNG-4028
>                 URL: http://jira.codehaus.org/browse/MNG-4028
>             Project: Maven 2
>          Issue Type: Bug
>    Affects Versions: 2.1.0-M1
>         Environment: Intel Windows XP 2G Ram
>            Reporter: Richard Katz
>            Assignee: Brett Porter
>         Attachments: settings.xml
>
>
> I originally reported this on Maven 2.0.9 and it was marked as closed.  
> But the problem still exists in Maven 2.1.0.  I have tried the following
> 1.  Delete the .m2 directory and all its contents.
> 2.  Use the -U option
> 3.  Use the -e option.
> 4.  Run the create Archtype 
> mvn -e archetype:create -DgroupId=com.mycompany.app  -DartifactId=my-app
> (and mvn -e -U archetype:create -DgroupId=com.mycompany.app  -DartifactId=my-app)
> It simply does not work. 
> It fails with the same error as I always get in Maven 2.0.9 :
> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found
> Here is the entire trace:
> C:\Documents and Settings\Richard Katz>mvn -e -U archetype:create -DgroupId=com.mycompany.app  -DartifactId=my-app
> + Error stacktraces are turned on.
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO] org.apache.maven.plugins: checking for updates from central
> [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be retrieved from repository: central due to an
> error: Error transferring file
> [INFO] Repository 'central' will be blacklisted
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD ERROR
> [INFO] ------------------------------------------------------------------------
> [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-plugin' does not exist or no valid version could be found
> [INFO] ------------------------------------------------------------------------
> [INFO] Trace
> org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.apache.maven.plugins:maven-archetype-plugin' doe
> s not exist or no valid version could be found
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1303)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(DefaultLifecycleExecutor.java:1542)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggregationNeeds(DefaultLifecycleExecuto
> r.java:405)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.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.version.PluginVersionNotFoundException: The plugin 'org.apache.maven.plugins:maven-ar
> chetype-plugin' does not exist or no valid version could be found
>         at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.
> java:229)
>         at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.
> java:91)
>         at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:171)
>         at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1274)
>         ... 14 more
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 2 seconds
> [INFO] Finished at: Tue Feb 10 21:40:41 PST 2009
> [INFO] Final Memory: 1M/4M
> [INFO] ------------------------------------------------------------------------
> C:\Documents and Settings\Richard Katz>
> Questions:
> 1. Is this enough information?  If not, what other command or commands do you want me to run?
> 2.  Is there amy way around this problem?  Is there a fix in 2.1 (or 2.1 M2) that hasn't been applied yet in 2.1 M1?

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira