I can confirm that. I was just working on a common pom (referenced from internal repo) and was successful having a single profile with the activation-element like stated below, i.e.:

<settings>
...
  <profiles>
    <profile>
      <activation>
        <activeByDefault>true</activeByDefault>
      </activation>
      ... <!-- repos go here -->
    </profile>
  </profiles>
...
</settings>

cheers,
mika


Brian E. Fox wrote:
Yes it does get the parent pom from the repo. You have added your repo
to a profile so it needs to be activated. I'm not sure if this <activation>
                <activeByDefault/>
            </activation>
Does the trick. I would expect <activeByDefault>true</ActiveByDefault>
at least. I did it differently:
<profiles>
 <profile>
  <id>default</id>
<repositories>
   <repository>
    <id>STCRepo</id>
<url>http://cordella:9999/repository</url>
   </repository>
   <repository>
    <id>code-snaps</id>
<url>http://snapshots.maven.codehaus.org/maven2</url>
   </repository>

</repositories>
 </profile>
</profiles>

<activeProfiles>
<activeProfile>default</activeProfile>
</activeProfiles>

-----Original Message-----
From: Dave Brondsema [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 11, 2005 10:02 AM
To: Maven Users List
Subject: [m2] parent POM from remote repo


How can I have a POM load its parent from a remote repository?  I can
only get it to find the parent when the parent is in the local
repository.

I am using the ant tasks so it'd be best to somehow provide the
repository to <artifact:pom>.  I have tried specifying a remote repo in
settings.xml but it doesn't affect anything.

<settings>
    <profiles>
        <profile>
            <activation>
                <activeByDefault/>
            </activation>
            <repositories>
                <repository>
                    <name>CU repo</name>
                    <url>file:///T:/java-repository-cu</url>
                    <layout>default</layout>
                    <snapshots updatePolicy="always"/>
                </repository>
            </repositories>
        </profile>
    </profiles>
</settings>

Thanks!

--
Dave Brondsema
Software Developer
Cornerstone University


---------------------------------------------------------------------
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]

Reply via email to