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/08 03:00:01 UTC
Detected Maven Version: 2.1.0 is not in the allowed range
[2.0.9,2.1).
Does anyone know which conf file I should change to get rid of this error?
I am with Maven 2.1, Java 1.6
Very appreciate for your help.
thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Detected Maven Version: 2.1.0 is not in the allowed range
[2.0.9,2.1).
Posted by Sam Wun <sw...@gmail.com>.
Thanks for the hints.
I put the following codes in the pom.xml file, but it is not right:
<rules>
<requireMavenVersion>
<version>[2.1,2.2)</version>
</requireMavenVersion>
</rules>
How do I incorproate the following codes into pom.xml file:
<configuration>
<rules>
<bannedDependencies>
<excludes>
<exclude>jboss:jboss-common-core</exclude>
<exclude>jboss:jboss-remoting</exclude>
<exclude>jboss.remoting:jboss-remoting</exclude>
<exclude>jboss:jboss-test</exclude>
<exclude>org.jboss:javassist</exclude>
<exclude>org.jboss:jboss-metadata</exclude>
<exclude>org.jboss:jboss-transaction-spi</exclude>
<exclude>org.jboss.microcontainer:jboss-container</exclude>
<exclude>org.jboss.microcontainer:jboss-deployers-core-spi</exclude>
<exclude>org.jboss.microcontainer:jboss-deployers-impl</exclude>
<exclude>org.jboss.microcontainer:jboss-deployers-spi</exclude>
</excludes>
</bannedDependencies>
<requireMavenVersion>
<version>[2.0.9,2.1)</version>
</requireMavenVersion>
</rules>
</configuration>
Thanks very much
On Wed, Jul 8, 2009 at 11:02 AM, Benson Margulies<bi...@gmail.com> wrote:
> mvn help:effective-pom might give you a clue.
>
> On Tue, Jul 7, 2009 at 9:00 PM, Sam Wun<sw...@gmail.com> wrote:
>> Does anyone know which conf file I should change to get rid of this error?
>> I am with Maven 2.1, Java 1.6
>>
>> Very appreciate for your help.
>>
>> thanks
>>
>> ---------------------------------------------------------------------
>> 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: Detected Maven Version: 2.1.0 is not in the allowed range
[2.0.9,2.1).
Posted by Benson Margulies <bi...@gmail.com>.
mvn help:effective-pom might give you a clue.
On Tue, Jul 7, 2009 at 9:00 PM, Sam Wun<sw...@gmail.com> wrote:
> Does anyone know which conf file I should change to get rid of this error?
> I am with Maven 2.1, Java 1.6
>
> Very appreciate for your help.
>
> thanks
>
> ---------------------------------------------------------------------
> 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