You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by "Wolfram, Lars" <La...@ecg-leipzig.de> on 2006/08/21 12:21:16 UTC

using m1-repo with m2

Hi all,
 

I want to use a m1 remote repository with m2. I have wars in this
repository but no *.pom for these files.
 
But it seems that maven need a *.pom for downloading a resource from the
remote repository into my local repository.
My question is: It is possible to use a m1-repo without the need for a
*.pom for all war-files?
 
My pom:
<project>
...
<repositories>
   <repository>
       <snapshots>
           <enabled>true</enabled>
       </snapshots>
       <id>my-m1-repository</id>
       <name>Maven 1.x Repository</name>
       <url>http://my-m1-repo/maven/repo</url>
       <layout>legacy</layout>
   </repository>
</repositories>
...
</project>
 
maven:
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
----
[INFO] Building Test Solution
[INFO]    task-segment: [compile]
[INFO]
------------------------------------------------------------------------
----
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading:
http://my-m1-repo/maven/repo/busintel/poms/trilith-cvs.1.18.2.22.pom
<http://ecgcnibu.hv.vng/maven/repo/busintel/poms/trilith-cvs.1.18.2.22.p
om> 
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
 

Project ID: busintel:trilith
 
Reason: Error getting POM for 'busintel:trilith' from the repository:
Error transferring file
  busintel:trilith:pom:cvs.1.18.2.22
 
from the specified remote repositories:
  central (http://repo1.maven.org/maven2 <http://repo1.maven.org/maven2>
),
  my-m1-repository (http://my-m1-repo/maven/repo
<http://ecgcnibu.hv.vng/maven/repo> )
 
 
 
[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Aug 21 12:05:46 CEST 2006
[INFO] Final Memory: 2M/5M
[INFO]
------------------------------------------------------------------------
 
The poms/trilith-cvs.1.18.2.22.pom dosn't exist in the m1 repo. I only
have wars/trilith-cvs.1.18.2.22.war

thanks Lars