Erro ao atualizar mvn , porque?

Olá,

porque apresenta o erro abaixo ao tentar atualizar o jar abaixo :


----------
1) org.richfaces.framework:richfaces-api:jar:3.3.3.Final

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.richfaces.framework -DartifactId=richfaces-api -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=org.richfaces.framework -DartifactId=richfaces-api -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
  	1) ao.gov.imag:exemplo:pom:pom:0.0.1-SNAPSHOT
  	2) org.richfaces.framework:richfaces-api:jar:3.3.3.Final

2) org.richfaces.framework:richfaces-impl:jar:3.3.3.Final

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.richfaces.framework -DartifactId=richfaces-impl -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=org.richfaces.framework -DartifactId=richfaces-impl -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
  	1) ao.gov.imag:exemplo:pom:pom:0.0.1-SNAPSHOT
  	2) org.richfaces.framework:richfaces-impl:jar:3.3.3.Final

3) org.richfaces.ui:richfaces-ui:jar:3.3.3.Final

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=org.richfaces.ui -DartifactId=richfaces-ui -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=org.richfaces.ui -DartifactId=richfaces-ui -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
  	1) ao.gov.imag:exemplo:pom:pom:0.0.1-SNAPSHOT
  	2) org.richfaces.ui:richfaces-ui:jar:3.3.3.Final

----------
3 required artifacts are missing.

for artifact: 
  ao.gov.imag:exemplo:pom:0.0.1-SNAPSHOT

from the specified remote repositories:
  demoiselle.sourceforge.net-snapshot (http://demoiselle.sourceforge.net/repository/snapshot, releases=true, snapshots=true),
  demoiselle.sourceforge.net-release (http://demoiselle.sourceforge.net/repository/release, releases=true, snapshots=true),
  jboss.com (http://repository.jboss.org/maven2/, releases=true, snapshots=true),
  central (http://repo1.maven.org/maven2, releases=true, snapshots=false)

30/05/11 14h46min20s BRT: Maven Builder: FULL_BUILD requireFullBuild
30/05/11 14h46min20s BRT: [WARN] 
30/05/11 14h46min20s BRT: [WARN] Some problems were encountered while building the effective model for ao.gov.imag:teste:war:0.0.1-SNAPSHOT
30/05/11 14h46min20s BRT: [WARN] 'build.plugins.plugin.version' is missing for org.codehaus.mojo:wagon-maven-plugin @ ao.gov.imag:teste:0.0.1-SNAPSHOT, C:\Demoiselle\tool\workspace\teste\pom.xml
30/05/11 14h46min20s BRT: [WARN] 
30/05/11 14h46min20s BRT: [WARN] It is highly recommended to fix these problems because they threaten the stability of your build.
30/05/11 14h46min20s BRT: [WARN] 
30/05/11 14h46min20s BRT: [WARN] For this reason, future Maven versions might no longer support building such malformed projects.
30/05/11 14h46min20s BRT: [WARN] 
30/05/11 14h46min20s BRT: [INFO] Using 'UTF-8' encoding to copy filtered resources.
30/05/11 14h46min20s BRT: [INFO] Copying 6 resources
30/05/11 14h46min20s BRT: [INFO] Nothing to compile - all classes are up to date
30/05/11 14h46min20s BRT: [INFO] Using 'UTF-8' encoding to copy filtered resources.
30/05/11 14h46min20s BRT: [INFO] Copying 1 res

ao rodar via dos apresentou esse erro :


Microsoft Windows XP [versão 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Paulo>cd..

C:\Documents and Settings>cd..

C:\>mvn install:install-file -DgroupId=org.richfaces.framework -DartifactId=rich
faces-api -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file



[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-instal
l-plugin/2.2/maven-install-plugin-2.2.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin
s/8/maven-plugins-8.pom

Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-instal
l-plugin/2.2/maven-install-plugin-2.2.jar

[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [install:install-file] (aggregator-style)
[INFO] ------------------------------------------------------------------------
Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-digest/1.0
/plexus-digest-1.0.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-components
/1.1.7/plexus-components-1.1.7.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus/1.0.8/plex
us-1.0.8.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-
default/1.0-alpha-8/plexus-container-default-1.0-alpha-8.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.1/
plexus-utils-1.1.pom

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-utils/1.1/
plexus-utils-1.1.jar

Downloading: http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-digest/1.0
/plexus-digest-1.0.jar

[INFO] [install:install-file {execution: default-cli}]
[INFO] Installing C:\path\to\file to C:\Documents and Settings\Paulo\.m2\reposit
ory\org\richfaces\framework\richfaces-api\3.3.3.Final\richfaces-api-3.3.3.Final.
jar
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error installing artifact 'org.richfaces.framework:richfaces-api:jar': Er
ror installing artifact: File C:\path\to\file does not exist

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 36 seconds
[INFO] Finished at: Mon May 30 14:54:05 BRT 2011
[INFO] Final Memory: 3M/15M
[INFO] ------------------------------------------------------------------------
C:\>

obrigado pelo retorno.

uma duvida o que devo colocar em


-Dfile=/path/to/file 

é

C:\Users\paulo\.m2\repository

o caminho acima é onde fica os jar hoje do mvn .

Se puder me ajudar agradeceria.

abs

estou usando o Windows 7 Home Premium e verifiquei a propriedade da pasta / segurança
e a permiussão para meu usuário está total ???

o que fazer ???


Microsoft Windows [versão 6.1.7600]
Copyright (c) 2009 Microsoft Corporation. Todos os direitos reservados.

C:\Users\paulo>mvn install:install-file -DgroupId=org.richfaces.framework -Darti
factId=richfaces-api -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=C:\Users\paulo
\.m2\repository
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'install'.
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [install:install-file] (aggregator-style)
[INFO] ------------------------------------------------------------------------
[INFO] [install:install-file {execution: default-cli}]
[INFO] Installing C:\Users\paulo\.m2\repository to C:\Users\paulo\.m2\repository
\org\richfaces\framework\richfaces-api\3.3.3.Final\richfaces-api-3.3.3.Final.jar

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error installing artifact 'org.richfaces.framework:richfaces-api:jar': Er
ror installing artifact: C:\Users\paulo\.m2\repository (Acesso negado)

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Tue May 31 01:55:15 BRT 2011
[INFO] Final Memory: 4M/56M
[INFO] ------------------------------------------------------------------------
C:\Users\paulo>

mvn install:install-file -DgroupId=org.richfaces.framework -DartifactId=richfaces-api -Dversion=3.3.3.Final -Dpackaging=jar -Dfile=/path/to/file

você baixa a lib richfaces-api-3.3.3.Final.jar para um diretório por exemplo C:\libs.
No -Dfile=C:\libs\richfaces-api-3.3.3.Final.jar

repita isto para as libs que foi informado no log.

ou também voce pode setar outro repository no seu pom.xml para ele encontrar estas dependências.

<repository>
			<id>mvn-repository</id>
			<name>Mvn repository</name>
			<url>http://mvnrepository.com/</url>
			<releases>
				<enabled>false</enabled>
			</releases>
			<snapshots>
				<enabled>true</enabled>
			</snapshots>
		</repository>

mmm… note… vc deve substituir aqui -Dfile=/path/to/file
pelo real caminho onde se encontra o JAR que vc esta tentando instalar em seu repositorio. O erro e claro:

[]`s

Vamos por partes, vc me parece talvez nao saber o que quer e/ou esta fazendo.

Pelo que eu entendi, vc esta querendo instalar a biblioteca richfaces-api-3.3.3.Final.jar no seu repositorio do maven.

A primeira coisa, o caminho deve ser completo, digo, com o nome do arquivo, por exemplo C:/richfaces-api-3.3.3.Final.jar, ai entao vc vai instalar este artefato no teu repositorio.

Vendo o que vc postou, me leva a uma pergunda. Vc e o usuario Paulo? Pois pelo caminho de onde vc esta desejando instalar o artefato, me parece ja ser um repositorio do maven!!! Ok, tudo bem, vc pode querer instalar com outro DgroupId e DartifactId. Mas que parece estranho, isso parece.

So primeiro vc deve entender o que esta tentando fazer, e o pq disso.

Espero que ajude.

[]`s