Not sure about that.  I'm only using m2 for this, not the ant tasks
themselves.

Additionally, I thought profiles were usable without putting them in the
settings.xml (trying to avoid putting anything in it).  Thus the
<activeProfiles> doesn't help me as that is a settings.xml specific tag.

So the question becomes, can profiles be used in the pom.xml without
touching the settings.xml? If so how?

Nothing I've tried so far will cause any profile to activate (haven't
tried putting them in the settings.xml, but I'm specifically avoiding
that for reasons best left unspecified)


MAR


-----Original Message-----
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, October 12, 2005 7:24 AM
To: Maven Users List
Subject: Re: Using repositories defined in a profile... question/problem
[m2]

I think this is related only to the Ant tasks and a bug that Mark
filed yesterday.

- Brett

On 10/12/05, Dave Brondsema <[EMAIL PROTECTED]> wrote:
> I too am having this problem.  Since I have a repo hosted in SVN in
> Apache, I can easily check the log file to see when maven accesses it.
> It doesn't at all.
>
> Here's my settings.xml:
>
> <settings>
>     <profiles>
>         <profile>
>             <id>default</id>
>             <activation>
>                 <activeByDefault>true</activeByDefault>
>             </activation>
>             <repositories>
>                 <repository>
>                     <snapshots updatePolicy="always"/>
>                     <id>suppl-repo</id>
>                     <name>Supplementary repo</name>
>
> <url>http://mysite.org/repos/java-maven-repository/</url>
>                     <layout>default</layout>
>                 </repository>
>             </repositories>
>         </profile>
>     </profiles>
>     <activeProfiles>
>         <activeProfile>default</activeProfile>
>     </activeProfiles>
> </settings>
>
>
> Brian E. Fox wrote:
> > Mark,
> > Try adding this:
> > <activeProfiles>
> > <activeProfile>master_build</activeProfile>
> > </activeProfiles>
> >
> > -----Original Message-----
> > From: Russell, Mark [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, October 11, 2005 6:28 PM
> > To: Maven Users List
> > Subject: Using repositories defined in a profile... question/problem
> > [m2]
> >
> > I have a pom with a profile defined in that specifies a local
> > repository, and disables the central repo.  How can I get m2 to
honor
> > the profile?  No matter what I try it seems to ignore the profile
and
> > goes and uses the central repo and ignores the local repository.
> >
> > I have even tried passing "-P master_build" to m2 at the command
line
> > and it still ignores it.
> >
> > Am I just doing something wrong here?
> >
> > Side note, not sure it matters...  I'm making use of the
multi-projects
> > support of m2.  I have tried this profiles section in both the
parent
> > and child pom's and it seems to make no difference what so ever.  No
> > matter what I do the profile isn't used.
> >
> >
> > MAR
> >
> >
> >
> > The profiles section of my pom:
> >   <profiles>
> >     <profile>
> >       <id>master_build</id>
> >       <activation>
> >         <activeByDefault>true</activeByDefault> (also tried just
> > <activeByDefault> )
> >       </activation>
> >       <repositories>
> >         <repository>
> >           <id>local</id>
> >           <name>Local repository</name>
> >           <url>http://localhost:8080/maven2</url>
> >           <layout>default</layout>
> >           <snapshots>
> >             <enabled>true</enabled>
> >           </snapshots>
> >           <releases>
> >             <enabled>true</enabled>
> >           </releases>
> >         </repository>
> >         <repository>
> >           <id>central</id>
> >           <name>Maven Repository Switchboard</name>
> >           <url>http://repo1.maven.org/maven2</url>
> >           <layout>default</layout>
> >           <snapshots>
> >             <enabled>false</enabled>
> >           </snapshots>
> >           <releases>
> >             <enabled>false</enabled>
> >           </releases>
> >         </repository>
> >       </repositories>
> >     </profile>
> >   </profiles>
> >
> >
> >
---------------------------------------------------------------------
> > 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]
> >
>
>
> --
> 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