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<[email protected]> wrote:
> hehe Cool ^__^
> and Thanks.
>
> On Tue, Jul 7, 2009 at 9:43 PM, Anders Hammar<[email protected]> wrote:
>> http://lmgtfy.com/?q=maven+add+remote+repository&l=1
>>
>> On Tue, Jul 7, 2009 at 13:32, Sam Wun<[email protected]> 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<[email protected]> 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<[email protected]> 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: [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]