Hi all,

 

I'am using maven 2.0.6 from win xp behind my corporate firewall

I'm trying to execute the line

mvn archetype:create -DgroupId=mavenbook -DartifactId=my-app

 

I have searched a lot of places, but I've given up..

 

Help is much appreciated here. Thanks.

 

Best regards,

johan

 

ps.

Here is the error message:

D:\temp\killerapp>mvn archetype:create -DgroupId=mavenbook
-DartifactId=my-app -U -X -e

+ Error stacktraces are turned on.

Maven version: 2.0.6

[DEBUG] Building Maven user-level plugin registry from: 'C:\Documents
and Settings\Administrator\.m2\plugin-registry.xml'

[DEBUG] Building Maven global-level plugin registry from:
'C:\prgr\maven-2.0.6\bin\..\conf\plugin-registry.xml'

[INFO] Scanning for projects...

[DEBUG] Adding managed depedendencies for
com.training.killerapp:killerapp

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.training.killerapp:killerapp-store-xstream:jar:1.0-SNAPSHOT

[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-18

[DEBUG] Adding managed depedendencies for unknown:killerapp-model

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.training.killerapp:killerapp-store-xstream:jar:1.0-SNAPSHOT

[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-18

[DEBUG] Adding managed depedendencies for unknown:killerapp-api

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.training.killerapp:killerapp-store-xstream:jar:1.0-SNAPSHOT

[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-18

[DEBUG] Adding managed depedendencies for unknown:killerapp-core

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.training.killerapp:killerapp-store-xstream:jar:1.0-SNAPSHOT

[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-18

[DEBUG] Adding managed depedendencies for unknown:killerapp-stores

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.training.killerapp:killerapp-store-xstream:jar:1.0-SNAPSHOT

[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-18

[DEBUG] Adding managed depedendencies for unknown:killerapp-store-memory

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.training.killerapp:killerapp-store-xstream:jar:1.0-SNAPSHOT

[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-18

[DEBUG] Adding managed depedendencies for
unknown:killerapp-store-xstream

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.training.killerapp:killerapp-store-xstream:jar:1.0-SNAPSHOT

[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-18

[DEBUG] Adding managed depedendencies for unknown:killerapp-cli

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.training.killerapp:killerapp-store-xstream:jar:1.0-SNAPSHOT

[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-18

[DEBUG] Adding managed depedendencies for unknown:killerapp-war

[DEBUG]   com.training.killerapp:killerapp-model:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-api:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-core:jar:1.0-SNAPSHOT

[DEBUG]   com.training.killerapp:killerapp-store-memory:jar:1.0-SNAPSHOT

[DEBUG]
com.training.killerapp:killerapp-store-xstream:jar:1.0-SNAPSHOT

[DEBUG]   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-18

[INFO] Reactor build order:

[INFO]   Killer App

[INFO]   Killer App Model

[INFO]   Killer App API

[INFO]   Killer App Stores

[INFO]   Killer App Memory Store

[INFO]   Killer App XStream Store

[INFO]   Killer App Core

[INFO]   Killer App Commandline Interface

[INFO]   Killer App Web WAR

[INFO] Searching repository for plugin with prefix: 'archetype'.

[INFO] org.apache.maven.plugins: checking for updates from central

[DEBUG] repository metadata for: 'org.apache.maven.plugins' could not be
found on repository: central

[INFO] org.codehaus.mojo: checking for updates from central

[DEBUG] repository metadata for: 'org.codehaus.mojo' could not be found
on repository: central

[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking
for updates from central

[DEBUG] repository metadata for: 'artifact
org.apache.maven.plugins:maven-compiler-plugin' could not be found on
repository: c

entral

[DEBUG] maven-compiler-plugin: using locally installed snapshot

[DEBUG] Artifact not found - using stub model: Unable to determine the
latest version

 

  org.apache.maven.plugins:maven-compiler-plugin:pom:LATEST

 

 

[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-compiler-plugin:pom:LATEST

[DEBUG] maven-compiler-plugin: using locally installed snapshot

[DEBUG] Artifact not found - using stub model: Unable to determine the
release version

 

  org.apache.maven.plugins:maven-compiler-plugin:pom:RELEASE

 

 

[DEBUG] Using defaults for missing POM
org.apache.maven.plugins:maven-compiler-plugin:pom:RELEASE

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

[ERROR] BUILD ERROR

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

[INFO] The plugin 'org.apache.maven.plugins:maven-compiler-plugin' does
not exist or no valid version could be found

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

[DEBUG] Trace

org.apache.maven.lifecycle.LifecycleExecutionException: The plugin
'org.apache.maven.plugins:maven-compiler-plugin' does not e

xist or no valid version could be found

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
LifecycleExecutor.java:1286)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(De
faultLifecycleExecutor.java:1469)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAgg
regationNeeds(DefaultLifecycleExecutor.java

:386)

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

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

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

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

        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:585)

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

-plugin' does not exist or no valid version could be found

        at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi
nVersion(DefaultPluginVersionManager.java:2

28)

        at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePlugi
nVersion(DefaultPluginVersionManager.java:9

0)

        at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginM
anager.java:166)

        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(Default
LifecycleExecutor.java:1257)

        ... 14 more

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

[INFO] Total time: 5 seconds

[INFO] Finished at: Wed Jun 13 21:34:26 ICT 2007

[INFO] Final Memory: 1M/3M

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

 

D:\temp\killerapp>mvn archetype:create -DgroupId=mavenbook
-DartifactId=my-app

[INFO] Scanning for projects...

[INFO] Reactor build order:

[INFO]   Killer App

[INFO]   Killer App Model

[INFO]   Killer App API

[INFO]   Killer App Stores

[INFO]   Killer App Memory Store

[INFO]   Killer App XStream Store

[INFO]   Killer App Core

[INFO]   Killer App Commandline Interface

[INFO]   Killer App Web WAR

[INFO] Searching repository for plugin with prefix: 'archetype'.

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

[ERROR] BUILD ERROR

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

[INFO] The plugin 'org.apache.maven.plugins:maven-compiler-plugin' does
not exist or no valid version could be found

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

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

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

[INFO] Total time: < 1 second

[INFO] Finished at: Wed Jun 13 21:37:43 ICT 2007

[INFO] Final Memory: 1M/3M

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

 

 

 

 

 

My settings.xml under the dir C:\Documents and
Settings\Administrator\.m2

<settings xmlns="http://maven.apache.org/POM/4.0.0";

  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";

  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 

                      http://maven.apache.org/xsd/settings-1.0.0.xsd";>

            <localRepository>D:\m2repo</localRepository>

 

  <proxies>

    <proxy>

      <active>true</active>

      <protocol>http</protocol>

      <host>www-proxy.corporate.com</host>

      <port>8080</port>

      <id>corporate</id>

   </proxy>

  </proxies>

 

  <mirrors>

    <mirror>

      <id>ibiblio.org</id>

      <url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>

      <mirrorOf>central</mirrorOf>

      <!-- United States, North Carolina -->

    </mirror>

    <mirror>

      <id>lsu.edu</id>

      <url>http://ibiblio.lsu.edu/main/pub/packages/maven2</url>

      <mirrorOf>central</mirrorOf>

      <!-- United States, Louisiana -->

     </mirror>

    <mirror>

      <id>sateh.com</id>

      <url>http://maven.sateh.com/repository</url>

      <mirrorOf>central</mirrorOf>

      <!-- The Netherlands, Amsterdam -->

 

    </mirror>

    <mirror>

      <id>dotsrc.org</id>

      <url>http://mirrors.dotsrc.org/maven2</url>

      <mirrorOf>central</mirrorOf>

      <!-- Denmark -->

    </mirror>

    <mirror>

      <id>sunsite.dk</id>

      <url>http://mirrors.sunsite.dk/maven2</url>

      <mirrorOf>central</mirrorOf>

      <!-- Denmark -->

    </mirror>

    <mirror>

      <id>skynet.be</id>

      <url>http://maven2.mirrors.skynet.be/pub/maven2</url>

      <mirrorOf>central</mirrorOf>

      <!-- Belgium -->

    </mirror>

    <mirror>

      <id>cica.es</id>

      <url>http://ftp.cica.es/mirrors/maven2</url>

      <mirrorOf>central</mirrorOf>

      <!-- Spain, Sevilla -->

    </mirror>

    <mirror>

      <id>redv.com</id>

      <url>http://mirrors.redv.com/maven2</url>

      <mirrorOf>central</mirrorOf>

      <!-- Shanghai, China -->

    </mirror>

 

    <!-- these just point to ibiblio.org --> 

    <mirror>

      <id>ibiblio.net</id>

      <url>http://www.ibiblio.net/pub/packages/maven2</url>

      <mirrorOf>central</mirrorOf>

      <!-- United States, North Carolina -->

    </mirror>

    <mirror>

      <id>ggi-project.org</id>

      <url>http://ftp.ggi-project.org/pub/packages/maven2</url>

      <mirrorOf>central</mirrorOf>

      <!-- The Netherlands, Amsterdam -->

    </mirror>

  </mirrors>

 

</settings>

Reply via email to