I haven't used profiles yet.
I have the following local repositories defined in my maven conf/settings.xml
as:
<servers>
<server>
<id>internal</id>
<username>anonymous</username>
<password>xrbuild</password>
</server>
<server>
<id>internal_snapshot</id>
<username>anonymous</username>
<password>xrbuild</password>
</server>
<server>
<id>external_free</id>
<username>anonymous</username>
<password>xrbuild</password>
</server>
<server>
<id>external_free_snapshot</id>
<username>anonymous</username>
<password>xrbuild</password>
</server>
<server>
<id>external_non_free</id>
<username>anonymous</username>
<password>xrbuild</password>
</server>
</servers>
Now each project/artifact pom has a section like:
<distributionManagement>
<repository>
<id>internal</id>
<name>Internal Release Repository</name>
<url>ftp://XRBUILD2.xrite.com/internal</url>
</repository>
<snapshotRepository>
<id>internal_snapshot</id>
<name>Internal Snapshot Repository</name>
<url>ftp://XRBUILD2.xrite.com/internal_snapshot</url>
<uniqueVersion>true</uniqueVersion>
</snapshotRepository>
</distributionManagement>
All the artifacts in my external repositories got there because I deployed them
using the command line syntax.
The problem I seem to have is that when building a project with continuum where
I have specified a dependency such as:
<dependency>
<groupId>jai</groupId>
<artifactId>jai-core</artifactId>
<version>1.1.2</version>
</dependency>
Where this is already deployed in my external_free repository, it does not find
them.
-dh
-----Original Message-----
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 10, 2006 9:15 AM
To: Maven Users List
Subject: Re: Why can't continuum find my local m2 repositories?
continuum uses settings.xml like mvn
Where is define your repository? in your pom? in a profile?
Emmanuel
Dave Hoffer a écrit :
> I have maven and continuum each installed in their own folders;
> continuum is being run as a service. I do not have a maven settings.xml
> file in user-dir.
>
> I set a system property of M2_HOME=c:\path to root maven folder.
>
> I restarted continuum and it still cannot find my local external
> repositories. (Reboot didn't help either) It does seem to find my
> internal snapshots. It is behaving the same as before. How can I know
> were continuum is looking for repositories?
>
> -dh
>
>
> -----Original Message-----
> From: Alexandre Poitras [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, May 09, 2006 9:12 PM
> To: Maven Users List
> Subject: Re: Why can't continuum find my local m2 repositories?
>
> Well depend of where continuum is running. Continuum uses the
> $M2_HOME$/conf/settings.xml file (or the user's one if there is one).
>
> On 5/9/06, Dave Hoffer <[EMAIL PROTECTED]> wrote:
>
>>When I setup my internal m2 repositories I followed the advice of an
>>online m2 review which suggested it is best to have the following
>>internal repositories.
>>
>>
>>
>>internal
>>
>>internal_snapshots
>>
>>external_free
>>
>>external_non_free
>>
>>
>>
>>Not knowing any better, I followed this advice. For all of our
>>developed artifacts we deploy to internal & internal_snapshots as this
>>is specified in the distributionManagement section of each artifact's
>>pom file. When we have to deploy external artifacts because they are
>>not found on ibibilo I deploy to external_free & external_non_free as
>
> is
>
>>appropriate on the command line.
>>
>>
>>
>>I seem to be able to build from the maven command line okay but when I
>>build the same project (artifact) in continuum it says it can't find
>>artifacts that I put in external_free (probably external_non_free
>
> also).
>
>>Now this sort of makes sense because how is it supposed to know about
>>these repositories? Maven knows because I have them specified in the
>>servers section of its settings.xml file. Does continuum know about
>>this file? If not, all it would know are the repositories in the
>>distributionManagement section of the pom; and these don't know about
>>the external repositories.
>>
>>
>>
>>What is the right way to do this? Should I combine internal &
>
> external?
>
>>How does continuum know where to look for repositories besides
>
> ibibilo?
>
>>
>>
>>-dh
>>
>>
>>
>>
>>
>>
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]