You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by fy <fy...@gmail.cn> on 2006/12/25 09:48:25 UTC

why my remote repository not work?

 Hi,

I created a remote repositories in my server,and copy nfa-1.0.0.jar to it.

<repositories>
    <repository> 
          <id>itsm</id>
         <name>ServerRepository</name>
          <url>http://10.10.100.22/maven</url> 
     </repository>
  </repositories>

 
Then deleted the nfa-1.0.0.jar from the 
locarepository(~/.m2/repository),but  it was not work and throwed the
following error:

 

D:\workspace\itmsdemo>mvn compile

[INFO] Scanning for projects...

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

[INFO] Building Unnamed - com.novitech.itsm:itmsdemo:jar:1.0.0

[INFO]    task-segment: [compile]

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

[INFO] [resources:resources]

[INFO] Using default encoding to copy filtered resources.

Downloading: http://10.10.100.22/maven/nfa/nfa/1.0.0/nfa-1.0.0.pom

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

[ERROR] BUILD ERROR

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

[INFO] Error building POM (may not be this project's POM).

 

 

Project ID: nfa:nfa

 

Reason: Error getting POM for 'nfa:nfa' from the repository: Error
transferring file

  nfa:nfa:pom:1.0.0

 

from the specified remote repositories:

  central (http://repo1.maven.org/maven2),

  itsm (http://10.10.100.22/maven)

 

        

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

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

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

[INFO] Total time: 2 seconds

[INFO] Finished at: Mon Dec 25 11:51:35 CST 2006

[INFO] Final Memory: 2M/4M

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

 

 

If I put the nfa-1.0.0.jar in my locarepository(~/.m2/repository),it was ok.

Why? And how I to do?

-- 
View this message in context: http://www.nabble.com/why-my-remote-repository-not-work--tf2878866s177.html#a8045670
Sent from the Maven - Users mailing list archive at Nabble.com.


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


Re: why my remote repository not work?

Posted by Eric Redmond <er...@gmail.com>.
On 12/25/06, fy <fy...@gmail.cn> wrote:
>
>
> Hi,
>
> I created a remote repositories in my server,and copy nfa-1.0.0.jar to it.


Did you literally copy the file to the remote repo? You don't copy there,
you deploy it with "mvn deploy".

<repositories>
>     <repository>
>           <id>itsm</id>
>          <name>ServerRepository</name>
>           <url>http://10.10.100.22/maven</url>
>      </repository>
>   </repositories>
>
>
> Then deleted the nfa-1.0.0.jar from the
> locarepository(~/.m2/repository),but  it was not work and throwed the
> following error:
>
>
>
> D:\workspace\itmsdemo>mvn compile
>
> [INFO] Scanning for projects...
>
> [INFO]
>
> ----------------------------------------------------------------------------
>
> [INFO] Building Unnamed - com.novitech.itsm:itmsdemo:jar:1.0.0
>
> [INFO]    task-segment: [compile]
>
> [INFO]
>
> ----------------------------------------------------------------------------
>
> [INFO] [resources:resources]
>
> [INFO] Using default encoding to copy filtered resources.
>
> Downloading: http://10.10.100.22/maven/nfa/nfa/1.0.0/nfa-1.0.0.pom
>
> [INFO]
> ------------------------------------------------------------------------
>
> [ERROR] BUILD ERROR
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Error building POM (may not be this project's POM).
>
>
>
>
>
> Project ID: nfa:nfa
>
>
>
> Reason: Error getting POM for 'nfa:nfa' from the repository: Error
> transferring file
>
>   nfa:nfa:pom:1.0.0
>
>
>
> from the specified remote repositories:
>
>   central (http://repo1.maven.org/maven2),
>
>   itsm (http://10.10.100.22/maven)
>
>
>
>
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] For more information, run Maven with the -e switch
>
> [INFO]
> ------------------------------------------------------------------------
>
> [INFO] Total time: 2 seconds
>
> [INFO] Finished at: Mon Dec 25 11:51:35 CST 2006
>
> [INFO] Final Memory: 2M/4M
>
> [INFO]
> ------------------------------------------------------------------------
>
>
>
>
>
> If I put the nfa-1.0.0.jar in my locarepository(~/.m2/repository),it was
> ok.
>
> Why? And how I to do?
>
> --
> View this message in context:
> http://www.nabble.com/why-my-remote-repository-not-work--tf2878866s177.html#a8045670
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
Eric Redmond
http://codehaus.org/~eredmond