You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Martin Ravell <ma...@rave-tech.com.au> on 2007/05/12 13:11:09 UTC

Maven uninstall - resinstall

In trying to get around some issues I have tried to remove Maven (2.0.6)
completely from my PC along with the repositories.

 

Can someone tell me if Maven is using some way, apart from the repositories,
of keeping track of which files it thinks it has on the local machine?

 

Even if I delete the Maven installed folder as well as the user and system
repositories, reboot and re-install the maven files I still get the
following error :

 

 

C:\Project>mvn archetype:create -DarchetypeGroupId=org.appfuse
-DarchetypeArtifactId=appfuse-basic-struts
-DremoteRepositories=http://static.appfuse.org/repository
-DarchetypeVersion=2.0-m4 -DgroupId=com.rave.chester -DartifactId=Chester

[INFO] Scanning for projects...

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

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

[WARNING] repository metadata for: 'org.codehaus.mojo' 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] For more information, run Maven with the -e switch

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

[INFO] Total time: 2 seconds

[INFO] Finished at: Sat May 12 19:46:11 EST 2007

[INFO] Final Memory: 1M/2M

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

 

 

 

Any ideas?

 

 

Regards

Marty


Plugin Dev: Access to command-line parameter

Posted by Martin Bengl <ma...@dailyspring.net>.
Hello folks,

how can I access the maven2 command line arguments (like options or 
goals) inside a mojo?
I have to check for the offline option "-o", need access to the given 
goals and to the settings.xml path if it is overwritten.

thanks and greetings
martin
 
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven uninstall - resinstall

Posted by Nick Stolwijk <ni...@planet.nl>.
Could you give the output of your command with the -X switch turned on. 
Maybe that can explain what is going wrong.

Nick Stolwijk

Martin Ravell wrote:
> I've just installed java and maven on a different machine. It's on the same
> network as the machine which does not but maven on this new machine works
> fine.
>
> This makes me think that it has to be something on the original machine that
> is causing the error.
>
> I've tried removing the .m2 directory and even removed the maven directory
> rebooted and reinstalled maven. 
>
> Maven still gives the following error:
>
>
> C:\Project>mvn archetype:create -DarchetypeGroupId=org.appfuse
> -DarchetypeArtifactId=appfuse-basic-spring
> -DremoteRepositories=http://static.appfuse.org/repository
> -DarchetypeVersion=2.0-m4 -DgroupId=com.mycompany.app -DartifactId=myproject
> [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] For more information, run Maven with the -e switch
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 5 seconds
> [INFO] Finished at: Sun May 13 12:33:36 EST 2007
> [INFO] Final Memory: 1M/2M
> [INFO]
> ------------------------------------------------------------------------
>
>
> If I'm understanding things right I should be able to completely remove
> maven by deleting it and the .m2 repository directory. What else is there
> that could cause the error I'm seeing?
>
>
> Regards
> Marty
>
> -----Original Message-----
> From: Wendy Smoak [mailto:wsmoak@gmail.com] 
> Sent: Sunday, 13 May 2007 4:20 AM
> To: Maven Users List
> Subject: Re: Maven uninstall - resinstall
>
> On 5/12/07, Martin Ravell <ma...@rave-tech.com.au> wrote:
>
>   
>> Can someone tell me if Maven is using some way, apart from the
>>     
> repositories,
>   
>> of keeping track of which files it thinks it has on the local machine?
>>     
>
> By default Maven knows about ~/.m2 .  I don't think there's anything else.
>
>   
>> [INFO] Searching repository for plugin with prefix: 'archetype'.
>>
>> [INFO] org.codehaus.mojo: checking for updates from central
>>
>> [WARNING] repository metadata for: 'org.codehaus.mojo' could not be
>> retrieved from repository: central due to an error: Error transferring
>>     
> file
>   
>> [INFO] Repository 'central' will be blacklisted
>>     
>
> Maven can't connect to the remote repositories.  The usual cause is
> that you're behind an http proxy and haven't configured Maven to use
> it.  Is that the case?
>
>   


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Maven uninstall - resinstall

Posted by Martin Ravell <ma...@rave-tech.com.au>.
I've just installed java and maven on a different machine. It's on the same
network as the machine which does not but maven on this new machine works
fine.

This makes me think that it has to be something on the original machine that
is causing the error.

I've tried removing the .m2 directory and even removed the maven directory
rebooted and reinstalled maven. 

Maven still gives the following error:


C:\Project>mvn archetype:create -DarchetypeGroupId=org.appfuse
-DarchetypeArtifactId=appfuse-basic-spring
-DremoteRepositories=http://static.appfuse.org/repository
-DarchetypeVersion=2.0-m4 -DgroupId=com.mycompany.app -DartifactId=myproject
[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] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 5 seconds
[INFO] Finished at: Sun May 13 12:33:36 EST 2007
[INFO] Final Memory: 1M/2M
[INFO]
------------------------------------------------------------------------


If I'm understanding things right I should be able to completely remove
maven by deleting it and the .m2 repository directory. What else is there
that could cause the error I'm seeing?


Regards
Marty

-----Original Message-----
From: Wendy Smoak [mailto:wsmoak@gmail.com] 
Sent: Sunday, 13 May 2007 4:20 AM
To: Maven Users List
Subject: Re: Maven uninstall - resinstall

On 5/12/07, Martin Ravell <ma...@rave-tech.com.au> wrote:

> Can someone tell me if Maven is using some way, apart from the
repositories,
> of keeping track of which files it thinks it has on the local machine?

By default Maven knows about ~/.m2 .  I don't think there's anything else.

> [INFO] Searching repository for plugin with prefix: 'archetype'.
>
> [INFO] org.codehaus.mojo: checking for updates from central
>
> [WARNING] repository metadata for: 'org.codehaus.mojo' could not be
> retrieved from repository: central due to an error: Error transferring
file
>
> [INFO] Repository 'central' will be blacklisted

Maven can't connect to the remote repositories.  The usual cause is
that you're behind an http proxy and haven't configured Maven to use
it.  Is that the case?

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


RE: Maven uninstall - resinstall

Posted by Martin Ravell <ma...@rave-tech.com.au>.
There is a firewall but it is allowing port 80. I can use a browser on the
same machine without problems.

http://mojo.codehaus.org/ shows fine.

There is no proxy on this network.

Any other ideas what could cause it?


Regards
Marty



-----Original Message-----
From: Wendy Smoak [mailto:wsmoak@gmail.com] 
Sent: Sunday, 13 May 2007 4:20 AM
To: Maven Users List
Subject: Re: Maven uninstall - resinstall

On 5/12/07, Martin Ravell <ma...@rave-tech.com.au> wrote:

> Can someone tell me if Maven is using some way, apart from the
repositories,
> of keeping track of which files it thinks it has on the local machine?

By default Maven knows about ~/.m2 .  I don't think there's anything else.

> [INFO] Searching repository for plugin with prefix: 'archetype'.
>
> [INFO] org.codehaus.mojo: checking for updates from central
>
> [WARNING] repository metadata for: 'org.codehaus.mojo' could not be
> retrieved from repository: central due to an error: Error transferring
file
>
> [INFO] Repository 'central' will be blacklisted

Maven can't connect to the remote repositories.  The usual cause is
that you're behind an http proxy and haven't configured Maven to use
it.  Is that the case?

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven uninstall - resinstall

Posted by Wendy Smoak <ws...@gmail.com>.
On 5/12/07, Martin Ravell <ma...@rave-tech.com.au> wrote:

> Can someone tell me if Maven is using some way, apart from the repositories,
> of keeping track of which files it thinks it has on the local machine?

By default Maven knows about ~/.m2 .  I don't think there's anything else.

> [INFO] Searching repository for plugin with prefix: 'archetype'.
>
> [INFO] org.codehaus.mojo: checking for updates from central
>
> [WARNING] repository metadata for: 'org.codehaus.mojo' could not be
> retrieved from repository: central due to an error: Error transferring file
>
> [INFO] Repository 'central' will be blacklisted

Maven can't connect to the remote repositories.  The usual cause is
that you're behind an http proxy and haven't configured Maven to use
it.  Is that the case?

-- 
Wendy

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org