Don't add it in a profile (well, at least not for the normal case), but exactly as specified in the page I linked to. Like this:
<project> ... <repositories> <repository> <id>jboss-repo</id> <url>http://repository.jboss.org/maven2/</url> </repository> </repositories> ... </project> Please check the pom schema! /Anders On Tue, Jul 7, 2009 at 14:11, Sam Wun<swun2...@gmail.com> wrote: > Sorry, I don't know where to put it in the settings.xml file. > I put it in the following area, but got caused mvn errors: > > > <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> > <repository> > <id>jboss-repository</id> > <url>http://repository.jboss.org/maven2/</url> > </repository> > > </repositories> > > </profile> > > > > On Tue, Jul 7, 2009 at 9:53 PM, Sam Wun<swun2...@gmail.com> wrote: >> hehe Cool ^__^ >> and Thanks. >> >> On Tue, Jul 7, 2009 at 9:43 PM, Anders Hammar<and...@hammar.net> wrote: >>> http://lmgtfy.com/?q=maven+add+remote+repository&l=1 >>> >>> On Tue, Jul 7, 2009 at 13:32, Sam Wun<swun2...@gmail.com> wrote: >>>> Hi, how do you define http://repository.jboss.org/maven2/ with mvn? >>>> >>>> Thanks >>>> >>>> On Tue, Jul 7, 2009 at 9:30 PM, Anders Hammar<and...@hammar.net> wrote: >>>>> Hi, >>>>> >>>>> That artifact doesn't exist at central (aka repo1). Try jboss's >>>>> repository instead: >>>>> http://repository.jboss.org/maven2/ >>>>> >>>>> /Anders >>>>> >>>>> On Tue, Jul 7, 2009 at 13:23, Sam Wun<swun2...@gmail.com> wrote: >>>>>> Hi, >>>>>> >>>>>> Can anyone tell me how to resolve this error: >>>>>> >>>>>> # mvn archetype:create-from-project >>>>>> [INFO] Scanning for projects... >>>>>> Downloading: >>>>>> http://repo1.maven.org/maven2/org/jboss/ejb3/jboss-ejb3-tutorial-common/1.1.1/jboss-ejb3-tutorial-common-1.1.1.pom >>>>>> [INFO] Unable to find resource >>>>>> 'org.jboss.ejb3:jboss-ejb3-tutorial-common:pom:1.1.1' in repository >>>>>> central (http://repo1.maven.org/maven2) >>>>>> [INFO] >>>>>> ------------------------------------------------------------------------ >>>>>> [ERROR] FATAL ERROR >>>>>> [INFO] >>>>>> ------------------------------------------------------------------------ >>>>>> [INFO] Error building POM (may not be this project's POM). >>>>>> >>>>>> >>>>>> Project ID: null:jboss-ejb3-tutorial-stateless:jar:1.1.1-SNAPSHOT >>>>>> >>>>>> >>>>>> >>>>>> Thanks >>>>>> Sam >>>>>> >>>>>> --------------------------------------------------------------------- >>>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >>>>>> For additional commands, e-mail: users-h...@maven.apache.org >>>>>> >>>>>> >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >>>>> For additional commands, e-mail: users-h...@maven.apache.org >>>>> >>>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >>>> For additional commands, e-mail: users-h...@maven.apache.org >>>> >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >>> For additional commands, e-mail: users-h...@maven.apache.org >>> >>> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org