You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jon Strayer <jo...@gmail.com> on 2005/07/27 20:21:24 UTC

[M2] Remote repositories

I have one umbrella project and several (30 some) sub projects) that
I'm starting to convert to M2.

My umbrella project contains this repository entry:

	<repositories>
		<repository>
			<id>M2</id>
			<name>New CHD4 repository</name>
			<url>http://chd4.sbc.com:8070/repo</url>
			<snapshotPolicy>always</snapshotPolicy>
			<layout>default</layout>
		</repository>
		<repository>
			<id>M1</id>
			<name>Old style CHD4 repository</name>
			<url>http://chd4.sbc.com:8070/repository</url>
			<snapshotPolicy>always</snapshotPolicy>
			<layout>legacy</layout>
		</repository>
	</repositories>

When I try to build one of my sub projects I get this error:
  Unable to read the metadata file
  wfa-billing:core:SNAPSHOT:jar

from the specified remote repositories:
  http://repo1.maven.org/maven2
Path to dependency:
        1) wfa-billing:gift:jar:1.0.1


It looks to me as if it is only checking the maven repository and not
either of my repositories.

What am I doing wrong?

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


Re: [M2] Remote repositories

Posted by Brett Porter <br...@gmail.com>.
please be sure the version of the parent you have open is the same as
what is being used by the children (we have improved this in beta-1 so
that it can automatically locate these).

you may need to do an install of the top level pom if it has been
changed, as children get it from the repository.

- Brett

On 7/28/05, Jon Strayer <jo...@gmail.com> wrote:
> I have one umbrella project and several (30 some) sub projects) that
> I'm starting to convert to M2.
> 
> My umbrella project contains this repository entry:
> 
>         <repositories>
>                 <repository>
>                         <id>M2</id>
>                         <name>New CHD4 repository</name>
>                         <url>http://chd4.sbc.com:8070/repo</url>
>                         <snapshotPolicy>always</snapshotPolicy>
>                         <layout>default</layout>
>                 </repository>
>                 <repository>
>                         <id>M1</id>
>                         <name>Old style CHD4 repository</name>
>                         <url>http://chd4.sbc.com:8070/repository</url>
>                         <snapshotPolicy>always</snapshotPolicy>
>                         <layout>legacy</layout>
>                 </repository>
>         </repositories>
> 
> When I try to build one of my sub projects I get this error:
>   Unable to read the metadata file
>   wfa-billing:core:SNAPSHOT:jar
> 
> from the specified remote repositories:
>   http://repo1.maven.org/maven2
> Path to dependency:
>         1) wfa-billing:gift:jar:1.0.1
> 
> 
> It looks to me as if it is only checking the maven repository and not
> either of my repositories.
> 
> What am I doing wrong?
> 
> ---------------------------------------------------------------------
> 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