As it running forward, near the end of the download.. there is an error:
...
[INFO] [enforcer:enforce {execution: enforce-banned-dependencies}]
[WARNING] Rule 1:
org.apache.maven.plugins.enforcer.RequireMavenVersion failed with
message:
Detected Maven Version: 2.1.0 is not in the allowed range [2.0.9,2.1).
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Some Enforcer rules have failed. Look above for specific
messages explaining why the rule failed.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 minutes 20 seconds
[INFO] Finished at: Tue Jul 07 23:12:08 EST 2009
[INFO] Final Memory: 37M/63M
[INFO] ------------------------------------------------------------------------

what is it?

I have found someone got this error as well, but could not find an answer.

Thanks


On Tue, Jul 7, 2009 at 11:04 PM, Sam Wun<[email protected]> wrote:
> 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<[email protected]> 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<[email protected]> 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<[email protected]> 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<[email protected]> 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<[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]
>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> 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