maven - Adding neo4j-spatial dependency causes error -


i have project includes, among others, apache pivot , neo4j. project compiles , runs. when try add neo4j/spatial:

<dependency>   <groupid>org.neo4j</groupid>   <artifactid>neo4j-spatial</artifactid>   <version>0.11-snapshot</version> </dependency> 

the project compiles not run. compiler sources error @ 1 of bxml files:

org.apache.pivot.serialization.serializationexception: java.util.serviceconfigurationerror: javax.imageio.spi.imageoutputstreamspi: provider com.sun.media.imageioimpl.stream.channelimageoutputstreamspi not instantiated: java.lang.illegalargumentexception: vendorname == null! 

i can't understand how adding dependency can break project @ runtime. did not change code. i'll post whatever code necessary asked.

update: i've tried previous, stable version same result. also, i've added "vendor" , version information jar manifest seems fix vendorname == null error , causes project hang on close rather open. question, i'll rephrase here, same.

how adding dependency, without changing code, cause functioning project fail @ runtime? don't understand how adding dependency changes execution if don't call it.

there can issues versioning. if add dependency, , have library has same dependency different version, usual behaviour of maven latest version imported, , can break code depended on old version, due changed interface or whatever.

so if depends on b v1, , c depends on bv2, when add c, overwrites bv1 bv2 in effective pom, in theory break it.

i sure there way around this, not expert maven. check effective pom changes versions when import new thing.


Comments