You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sam Wun <sw...@gmail.com> on 2009/07/07 13:23:50 UTC

maven can't find repo1

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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven can't find repo1

Posted by Sam Wun <sw...@gmail.com>.
lolz... as the page told me , it set it to settings.xml. :D
it works now, thank you for the great help.

On Tue, Jul 7, 2009 at 10:59 PM, Anders Hammar<an...@hammar.net> wrote:
> That's because it should go in your pom.xml! The project tag is for the POM.
>
> Please have a look at the pom schema, as I wrote!
>
> /Anders
>
> On Tue, Jul 7, 2009 at 14:53, Sam Wun<sw...@gmail.com> wrote:
>> I put it here:
>> <settings xmlns="http://maven.apache.org/settings/1.0.0"
>>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
>> http://maven.apache.org/xsd/settings-1.0.0.xsd">
>> <project>
>>  <repositories>
>>    <repository>
>>      <id>jboss-repositories</id>
>>      <url>http://repository.jboss.org/maven2/</url>
>>    </repository>
>>  </repositories>
>> </project>
>>
>> but error when I executed the following mvn commandline:
>>
>>  # mvn archetype:generate --batch-mode
>> -DarchetypeArtifactId=maven-archetype-quickstart
>> -DgroupId=uk.co.pookey.spring -DartifactId=spring-hello
>> -Dversion=1.0-SNAPSHOT
>> Error reading settings.xml: Unrecognised tag: 'project' (position:
>> START_TAG seen ...S/1.0.0
>> http://maven.apache.org/xsd/settings-1.0.0.xsd">\n<project>... @51:10)
>>  Line:   51
>>  Column: 10
>>
>>
>> On Tue, Jul 7, 2009 at 10:41 PM, Anders Hammar<an...@hammar.net> wrote:
>>> 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<sw...@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<sw...@gmail.com> wrote:
>>>>> hehe Cool ^__^
>>>>> and Thanks.
>>>>>
>>>>> On Tue, Jul 7, 2009 at 9:43 PM, Anders Hammar<an...@hammar.net> wrote:
>>>>>> http://lmgtfy.com/?q=maven+add+remote+repository&l=1
>>>>>>
>>>>>> On Tue, Jul 7, 2009 at 13:32, Sam Wun<sw...@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<an...@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<sw...@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-unsubscribe@maven.apache.org
>>>>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>> ---------------------------------------------------------------------
>>>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven can't find repo1

Posted by Anders Hammar <an...@hammar.net>.
That's because it should go in your pom.xml! The project tag is for the POM.

Please have a look at the pom schema, as I wrote!

/Anders

On Tue, Jul 7, 2009 at 14:53, Sam Wun<sw...@gmail.com> wrote:
> I put it here:
> <settings xmlns="http://maven.apache.org/settings/1.0.0"
>          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
> http://maven.apache.org/xsd/settings-1.0.0.xsd">
> <project>
>  <repositories>
>    <repository>
>      <id>jboss-repositories</id>
>      <url>http://repository.jboss.org/maven2/</url>
>    </repository>
>  </repositories>
> </project>
>
> but error when I executed the following mvn commandline:
>
>  # mvn archetype:generate --batch-mode
> -DarchetypeArtifactId=maven-archetype-quickstart
> -DgroupId=uk.co.pookey.spring -DartifactId=spring-hello
> -Dversion=1.0-SNAPSHOT
> Error reading settings.xml: Unrecognised tag: 'project' (position:
> START_TAG seen ...S/1.0.0
> http://maven.apache.org/xsd/settings-1.0.0.xsd">\n<project>... @51:10)
>  Line:   51
>  Column: 10
>
>
> On Tue, Jul 7, 2009 at 10:41 PM, Anders Hammar<an...@hammar.net> wrote:
>> 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<sw...@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<sw...@gmail.com> wrote:
>>>> hehe Cool ^__^
>>>> and Thanks.
>>>>
>>>> On Tue, Jul 7, 2009 at 9:43 PM, Anders Hammar<an...@hammar.net> wrote:
>>>>> http://lmgtfy.com/?q=maven+add+remote+repository&l=1
>>>>>
>>>>> On Tue, Jul 7, 2009 at 13:32, Sam Wun<sw...@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<an...@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<sw...@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-unsubscribe@maven.apache.org
>>>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> ---------------------------------------------------------------------
>>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>
>>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven can't find repo1

Posted by Sam Wun <sw...@gmail.com>.
I put it here:
<settings xmlns="http://maven.apache.org/settings/1.0.0"
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">
<project>
  <repositories>
    <repository>
      <id>jboss-repositories</id>
      <url>http://repository.jboss.org/maven2/</url>
    </repository>
  </repositories>
</project>

but error when I executed the following mvn commandline:

 # mvn archetype:generate --batch-mode
-DarchetypeArtifactId=maven-archetype-quickstart
-DgroupId=uk.co.pookey.spring -DartifactId=spring-hello
-Dversion=1.0-SNAPSHOT
Error reading settings.xml: Unrecognised tag: 'project' (position:
START_TAG seen ...S/1.0.0
http://maven.apache.org/xsd/settings-1.0.0.xsd">\n<project>... @51:10)
  Line:   51
  Column: 10


On Tue, Jul 7, 2009 at 10:41 PM, Anders Hammar<an...@hammar.net> wrote:
> 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<sw...@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<sw...@gmail.com> wrote:
>>> hehe Cool ^__^
>>> and Thanks.
>>>
>>> On Tue, Jul 7, 2009 at 9:43 PM, Anders Hammar<an...@hammar.net> wrote:
>>>> http://lmgtfy.com/?q=maven+add+remote+repository&l=1
>>>>
>>>> On Tue, Jul 7, 2009 at 13:32, Sam Wun<sw...@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<an...@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<sw...@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-unsubscribe@maven.apache.org
>>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>>
>>>>>>>
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven can't find repo1

Posted by Anders Hammar <an...@hammar.net>.
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<sw...@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<sw...@gmail.com> wrote:
>> hehe Cool ^__^
>> and Thanks.
>>
>> On Tue, Jul 7, 2009 at 9:43 PM, Anders Hammar<an...@hammar.net> wrote:
>>> http://lmgtfy.com/?q=maven+add+remote+repository&l=1
>>>
>>> On Tue, Jul 7, 2009 at 13:32, Sam Wun<sw...@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<an...@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<sw...@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-unsubscribe@maven.apache.org
>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven can't find repo1

Posted by Sam Wun <sw...@gmail.com>.
I meant the error still the same as before... it s still looking for repo1.

Thanks


On Tue, Jul 7, 2009 at 10:11 PM, Sam Wun<sw...@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<sw...@gmail.com> wrote:
>> hehe Cool ^__^
>> and Thanks.
>>
>> On Tue, Jul 7, 2009 at 9:43 PM, Anders Hammar<an...@hammar.net> wrote:
>>> http://lmgtfy.com/?q=maven+add+remote+repository&l=1
>>>
>>> On Tue, Jul 7, 2009 at 13:32, Sam Wun<sw...@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<an...@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<sw...@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-unsubscribe@maven.apache.org
>>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven can't find repo1

Posted by Sam Wun <sw...@gmail.com>.
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<sw...@gmail.com> wrote:
> hehe Cool ^__^
> and Thanks.
>
> On Tue, Jul 7, 2009 at 9:43 PM, Anders Hammar<an...@hammar.net> wrote:
>> http://lmgtfy.com/?q=maven+add+remote+repository&l=1
>>
>> On Tue, Jul 7, 2009 at 13:32, Sam Wun<sw...@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<an...@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<sw...@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-unsubscribe@maven.apache.org
>>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven can't find repo1

Posted by Sam Wun <sw...@gmail.com>.
hehe Cool ^__^
and Thanks.

On Tue, Jul 7, 2009 at 9:43 PM, Anders Hammar<an...@hammar.net> wrote:
> http://lmgtfy.com/?q=maven+add+remote+repository&l=1
>
> On Tue, Jul 7, 2009 at 13:32, Sam Wun<sw...@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<an...@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<sw...@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-unsubscribe@maven.apache.org
>>>> For additional commands, e-mail: users-help@maven.apache.org
>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven can't find repo1

Posted by Anders Hammar <an...@hammar.net>.
http://lmgtfy.com/?q=maven+add+remote+repository&l=1

On Tue, Jul 7, 2009 at 13:32, Sam Wun<sw...@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<an...@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<sw...@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-unsubscribe@maven.apache.org
>>> For additional commands, e-mail: users-help@maven.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven can't find repo1

Posted by Sam Wun <sw...@gmail.com>.
Hi, how do you define http://repository.jboss.org/maven2/ with mvn?

Thanks

On Tue, Jul 7, 2009 at 9:30 PM, Anders Hammar<an...@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<sw...@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-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: maven can't find repo1

Posted by Anders Hammar <an...@hammar.net>.
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<sw...@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-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org