Your profile needs an id. You gave the repository an id, but the profile
itself needs one too.

Eric

On 4/7/06, Julio Oliveira <[EMAIL PROTECTED]> wrote:
>
> this is my conf/settings.xml
>
>
> -----------------------------------------------------------------------------------
> <!- maven 2.0.3   /conf/settings.xml -->
> <settings>
>   <localRepository>E:\soft\maven-2.0.3\repository</localRepository>
>   <proxies>
>     <proxy>
>       <id>optional</id>
>       <active>true</active>
>       <protocol>http</protocol>
>       <username>proxyuser</username>
>       <password>proxypass</password>
>       <host>localhost</host>
>       <port>8444</port>
>       <nonProxyHosts>local.net,some.host.com</nonProxyHosts>
>     </proxy>
>   </proxies>
>
>   <servers>
>   </servers>
>
>
>   <mirrors>
>   </mirrors>
>
>   <profiles>
>     <profile>
>       <!--  remote repository -->
>           <repositories>
>           <repository>
>              <id>env-propellors</id>
>              <url>http://propellors.net/maven-repo</url>
>         </repository>
>           </repositories>
>     </profile>
>   </profiles>
>
>   <activeProfiles>
>         <activeProfile>env-propellors</activeProfile>
>   </activeProfiles>
> </settings>
>
>
> -----------------------------------------------------------------------------------
>
>
> ----------------------------------------------------------------------------------
>
> On 4/6/06, John Casey <[EMAIL PROTECTED]> wrote:
> > Don't forget to add an activeProfiles section to your settings.xml, to
> > explicitly activate that profile:
> >
> > <activeProfiles>
> >    <activeProfile>some-profile-id</activeProfile>
> > </activeProfiles>
> >
> > Also, I noticed your profile doesn't have an <id/>...you'll need one if
> > you want to do this.
> >
> > -john
> >
> > Julio Oliveira wrote:
> > > Hi
> > >
> > > I put it in the %HOMEPATH%\.m2\settings.xml file.
> > >
> > > this is
> > >
> ------------------------------------------------------------------------------
> > >
> > >  <profiles>
> > >     <!-- profile
> > >      | Specifies a set of introductions to the build process, to be
> > > activated using one or more of the
> > >      | mechanisms described above. For inheritance purposes, and to
> > > activate profiles via <activatedProfiles/>
> > >      | or the command line, profiles have to have an ID that is
> unique.
> > >      |
> > >      | An encouraged best practice for profile identification is to
> > > use a consistent naming convention
> > >      | for profiles, such as 'env-dev', 'env-test', 'env-production',
> > > 'user-jdcasey', 'user-brett', etc.
> > >      | This will make it more intuitive to understand what the set of
> > > introduced profiles is attempting
> > >      | to accomplish, particularly when you only have a list of
> > > profile id's for debug.
> > >      |
> > >      | This profile example uses the JDK version to trigger
> > > activation, and provides a JDK-specific repo.
> > >     <profile>
> > >       <id>jdk-1.4</id>
> > >
> > >       <activation>
> > >         <jdk>1.4</jdk>
> > >       </activation>
> > >
> > >       <repositories>
> > >         <repository>
> > >         <id>jdk14</id>
> > >         <name>Repository for JDK 1.4 builds</name>
> > >         <url>http://www.myhost.com/maven/jdk14</url>
> > >         <layout>default</layout>
> > >         <snapshotPolicy>always</snapshotPolicy>
> > >       </repository>
> > >       </repositories>
> > >     </profile>
> > >     -->
> > >
> > >     <profile>
> > >
> > >       <!--  remote repository -->
> > >         <repositories>
> > >           <repository>
> > >              <id>propellors.net</id>
> > >              <url>http://propellors.net/maven-repo</url>
> > >         </repository>
> > >         </repositories>
> > >
> > >     </profile>
> > >
> ------------------------------------------------------------------------------
> > >
> > > Also i probe to put the properties at   build.properties and
> > > project.properties  but it doesn't work
> > >
> > > Can't you send me an example, if this is wrong....
> > >
> > >
> > >
> > >
> > > regards
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > On 4/6/06, KC Baltz <[EMAIL PROTECTED]> wrote:
> > >> Hello,
> > >>
> > >> Where did you put the <repository> definition you mention in 1)
> below?  I would expect it to go in your %HOMEPATH%\.m2\settings.xml file.
> > >>
> > >> K.C.
> > >>
> > >> -----Original Message-----
> > >> From: Julio Oliveira [mailto:[EMAIL PROTECTED]
> > >> Sent: Thursday, April 06, 2006 8:07 AM
> > >> To: Maven Users List
> > >> Subject: Ruby on Maven / problem with repository - Maven 2.0.3
> > >>
> > >>
> > >> Hi
> > >>
> > >> As the doc say i put  in maven:
> > >> 1)
> > >>
> --------------------------------------------------------------------------------
> > >>    <!--  remote repository -->
> > >>    <repositories>
> > >>             <repository>
> > >>               <id>propellors.net</id>
> > >>               <url>http://propellors.net/maven-repo</url>
> > >>             </repository>
> > >>    </repositories>
> > >>
> --------------------------------------------------------------------------------
> > >>
> > >> 2)
> > >> type the command .....
> > >>
> -----------------------------------------------------------------------------------------------------------------
> > >>
> > >>
> > >> E:\Work\eclipse3_1\Jfp_libs>mvn rubyarchetype:create -DgroupId=test
> > >> -DartifactId=rubyplugin
> > >> [INFO] Scanning for projects...
> > >> [INFO] Searching repository for plugin with prefix: 'rubyarchetype'.
> > >> [INFO]
> ------------------------------------------------------------------------
> > >> [ERROR] BUILD ERROR
> > >> [INFO]
> ------------------------------------------------------------------------
> > >> [INFO] The plugin
> > >> 'org.apache.maven.plugins:maven-rubyarchetype-plugin' does not exist
> > >> or no valid version could be found
> > >> [INFO]
> ------------------------------------------------------------------------
> > >> [INFO] For more information, run Maven with the -e switch
> > >> [INFO]
> ------------------------------------------------------------------------
> > >> [INFO] Total time: < 1 second
> > >> [INFO] Finished at: Thu Apr 06 11:39:53 ART 2006
> > >> [INFO] Final Memory: 1M/2M
> > >> [INFO]
> ------------------------------------------------------------------------
> > >>
> --------------------------------------------------------------------------------------------------------------------
> > >>
> > >> run with  -e  switch
> > >>
> > >>
> > >> E:\Work\eclipse3_1\Jfp_libs>mvn rubyarchetype:create -DgroupId=test
> > >> -DartifactId=rubyplugin
> > >> [INFO] Scanning for projects...
> > >> [INFO] Searching repository for plugin with prefix: 'rubyarchetype'.
> > >> [INFO]
> ------------------------------------------------------------------------
> > >> [ERROR] BUILD ERROR
> > >> [INFO]
> ------------------------------------------------------------------------
> > >> [INFO] The plugin
> > >> 'org.apache.maven.plugins:maven-rubyarchetype-plugin' does not exist
> > >> or no valid version could be found
> > >> [INFO]
> ------------------------------------------------------------------------
> > >> [INFO] For more information, run Maven with the -e switch
> > >> [INFO]
> ------------------------------------------------------------------------
> > >> [INFO] Total time: < 1 second
> > >> [INFO] Finished at: Thu Apr 06 11:39:53 ART 2006
> > >> [INFO] Final Memory: 1M/2M
> > >> [INFO]
> ------------------------------------------------------------------------
> > >>
> > >>
> > >>
> > >> regards
> > >>
> > >> Julio Oliveira - Buenos Aires
> > >>
> > >> ---------------------------------------------------------------------
> > >> 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]
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > 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