2 issues with maven version range

2019-11-24 Thread John Patrick
i'm trying to start using maven version range more but having issues
with things like guava and also it not excluding version i believe
should be excluded.

1) i don't think this is possible but it might be, take a look a
google guava, it has a jre and a android version. using maven version
range how can i say any newer jre version, or any newer android
version?

https://search.maven.org/artifact/com.google.guava/guava

something like [25,) but only the jre maybe [25*-jre,)

2) i'm trying to use the version range "[4.7.0,5) "for
io.cucumber:cucumber-core. So i'm expecting it to use 4.8.0, not
5.0.0-RC1 which is being picked up, i.e. mvn dependency:tree -Dverbose
-Dincludes=io.cucumber

https://search.maven.org/artifact/io.cucumber/cucumber-core

what do i need to change "[4.7.0,5)" to do it excludes anything starting 5?

or are other people having similar issue so gave using trying to use
maven version ranges when declaring dependencies?

John

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



Re: What should be the correct way for openjdk 13 maven pom ?

2019-11-24 Thread Michael Osipov

Am 2019-11-24 um 06:01 schrieb Karen Goh:

Hi,

I am having problems with maven compiling java openjdk 13 in Eclipse - 
jee-2019-09, despite following several examples from stackoverflow.


You cannot compile OpenJDK with Maven. OpenJDK uses a GNU autoconf/gmake 
setup.


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



Re: What should be the correct way for openjdk 13 maven pom ?

2019-11-24 Thread Filipe Sousa
Hi

> On 24 Nov 2019, at 05:01, Karen Goh  wrote:
> 
> Hi,
> 
> I am having problems with maven compiling java openjdk 13 in Eclipse - 
> jee-2019-09, despite following several examples from stackoverflow.
> 
> Could someone let me know if there is anything amiss from below pom.xml :
> 
> 
>   
> UTF-8
>   13
>   13
>   13   
>   
> 
> 
>   
>   
>   
> maven-clean-plugin
>   3.0.0
>   
>   
>   
>   
> maven-resources-plugin
>   3.0.2
>   
>   
>   
> maven-compiler-plugin
>   3.8.1
>   
>   
> 13


The correct parameter is 13 but can be omitted because it 
was previously declared in properties
 
https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#release
 



>   
>   --enable-preview
>   
>   
>   
>   
>   
> maven-surefire-plugin
>   2.20.1
>   
>   
>   
> maven-war-plugin
>   3.2.0
>   
>   xxx
>   
>   
>   
>   
> maven-install-plugin
>   2.5.2
>   
>   
>   
> maven-deploy-plugin
>   2.8.2
>   
>   
>   
>   
> 
> 
> Tks & regards,
> Karen
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>