I solve the new problem. I just take out the MAVEN_OPTS and it runs.

But tomorrow I will try further if it runs in the office.



-------- Original-Nachricht --------
Datum: Wed, 18 Jul 2007 17:05:05 +0200
Von: "Wei Chen" <[EMAIL PROTECTED]>
An: "Maven Users List" <[email protected]>
Betreff: Re: Error [INFO] The plugin    
\'org.apache.maven.plugins:maven-archetype-plugin\' does not exist or   no      
valid version could be found

> I am now at home (not in office in the company) and try again. It goes
> further. But I got another error as follow. What does it mean? I've set the
> MAVEN_OPTS to "-XX:MaxPermSize=128m -Xmx512". I think the heap is large
> enough. right?
> 
> 
> C:\Temp>mvn -U -X archetype:create -DgroupId=testapp -DartifactId=testapp
> + Error stacktraces are turned on.
> Maven version: 2.0.7
> Java version: 1.5.0_09
> OS name: "windows xp" version: "5.1" arch: "x86"
> [DEBUG] Building Maven user-level plugin registry from: 'C:\Dokumente und
> Einste
> llungen\Wei Chen\.m2\plugin-registry.xml'
> [DEBUG] Building Maven global-level plugin registry from:
> 'C:\Programme\Apache S
> oftware Foundation\maven-2.0.7\conf\plugin-registry.xml'
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [DEBUG] Loading plugin prefixes from group: org.apache.maven.plugins
> [INFO] org.apache.maven.plugins: checking for updates from central
> [DEBUG] Loading plugin prefixes from group: org.codehaus.mojo
> [INFO] org.codehaus.mojo: checking for updates from central
> [INFO] artifact org.apache.maven.plugins:maven-archetype-plugin: checking
> for up
> dates from central
> [DEBUG] maven-archetype-plugin: resolved to version 1.0-alpha-4 from
> repository
> central
> [DEBUG] Retrieving parent-POM:
> org.apache.maven.archetype:maven-archetype::1.0-a
> lpha-4 for project:
> org.apache.maven.plugins:maven-archetype-plugin:maven-plugin
> :1.0-alpha-4 from the repository.
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven-parent::1 for
> project: org
> .apache.maven.archetype:maven-archetype:pom:1.0-alpha-4 from the
> repository.
> [DEBUG] Retrieving parent-POM: org.apache:apache::1 for project:
> org.apache.mave
> n:maven-parent:pom:1 from the repository.
> [DEBUG] Adding managed dependencies for
> org.apache.maven.plugins:maven-archetype
> -plugin
> [DEBUG]   org.apache.maven.archetype:maven-archetype-model:jar:1.0-alpha-4
> [DEBUG]   org.apache.maven.archetype:maven-archetype-core:jar:1.0-alpha-4
> [DEBUG]  
> org.apache.maven.archetype:maven-archetype-creator:jar:1.0-alpha-4
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] FATAL ERROR
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Java heap space
> [INFO]
> ------------------------------------------------------------------------
> [DEBUG] Trace
> java.lang.OutOfMemoryError: Java heap space
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 4 seconds
> [INFO] Finished at: Wed Jul 18 16:58:49 CEST 2007
> [INFO] Final Memory: 1M/1M
> [INFO]
> ------------------------------------------------------------------------
> 
> C:\Temp>
> 
> 
> 
> -------- Original-Nachricht --------
> Datum: Wed, 18 Jul 2007 15:12:11 +0200
> Von: Heinrich Nirschl <[EMAIL PROTECTED]>
> An: Maven Users List <[email protected]>
> Betreff: Re: Error [INFO] The
> plugin        \'org.apache.maven.plugins:maven-archetype-plugin\' does not 
> exist or   no      valid version could be found
> 
> > On Wed, 2007-07-18 at 14:48 +0200, Wei Chen wrote:
> > > Yes, I am behind the proxy of our company. I've seen the link you sent
> > me. And I configured the <proxies/> as follow but I get the same error.
> > > 
> > >     <proxy>
> > >       <id>optional</id>
> > >       <active>true</active>
> > >       <protocol>http</protocol>
> > >       <username></username>
> > >       <password></password>
> > >       <host>mycompany's proxy-ip</host>
> > >       <port>8080</port>
> > >       <nonProxyHosts>localhost|127.0.0.1</nonProxyHosts>
> > >     </proxy>
> > 
> > Hmm, don't know if this helps, but if your proxy does not need
> > username/password try to leave out these tags completely.
> > 
> > Sometimes, maven leaves some broken meta info files in its local
> > repository when an attempt to reach a remote repository fails. In such
> > cases it helps to wipe out the local repository.
> > 
> > > 
> > > Besides, I set the properties in the build.properties as follow:
> > > ...
> > >
> >
> maven.repo.remote=http://repo1.maven.org/maven2,http://team.andromda.org/maven
> > > ...
> > > 
> > > I think it should be correct, right?
> > > 
> > 
> > build.properties are only used in Maven 1. So you don't need this.
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> 
> -- 
> GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
> Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-- 
GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS.
Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to