JavaMoney / jsr354-ri-bp

Backport of the JSR 354 RI compatible with Java prior to SE8.
Other
9 stars 14 forks source link

Error loading javamoney.properties, ignoring jar:file #58

Closed MALPI closed 4 years ago

MALPI commented 5 years ago

When adding org.javamoney:moneta:1.3 to the classpath I get the following error on start:

SEVERE: Error loading javamoney.properties, ignoring jar:file:~/.m2/repository/org/javamoney/moneta-bp/1.1/moneta-bp-1.1.jar!/javamoney.properties
java.lang.IllegalStateException: AmbiguousConfiguration detected for 'load.ECBHistoricRateProvider.resource'.

Running with Java 1.8.

Daniel-Dos commented 5 years ago

Hi @MALPI ,

you can me pass more information ?

stokito commented 5 years ago

moneta-bp - it looks like this related to moneta backport i.e. https://github.com/JavaMoney/jsr354-ri-bp

keilw commented 5 years ago

Thanks, would you file an issue there, too. I started marking some obvious cases as https://github.com/JavaMoney/jsr354-ri/labels/java11 or similar (labels between java8 and java11) Those in most cases won't need backporting, many others do.

keilw commented 4 years ago

@MALPI Transferred this to moneta-bp, Does it still happen with version 1.4 and if so, is there a reason you can't switch to moneta when running Java 8? The backport is primarily for applications that still need to run Java 7 e.g. in a production environment that can't change. It is supposed to work with Java 8 but it is not optimized, so you might want to change if you can.

keilw commented 4 years ago

It looks like this only happens when moneta and moneta-bp are both on the same classpath, something that should not happen in most cases, we may not have to fix this.