Phenomics / ontolib

A modern Java library for working with (biological) ontologies.
https://ontolib.readthedocs.org
Other
9 stars 2 forks source link

Version should be 0.1, or found/generated from https://github.com/Phenomics/ontolib #10

Closed johntiger1 closed 7 years ago

johntiger1 commented 7 years ago

Ex. I am working on a project with version and it was not working.

1.0-SNAPSHOT
<dependencies>
  <dependency>
    <groupId>com.github.phenomics</groupId>
    <artifactId>ontolib-core</artifactId>
    <version>${project.version}</version>
  </dependency>
  <dependency>
    <groupId>com.github.phenomics</groupId>
    <artifactId>ontolib-io</artifactId>
    <version>${project.version}</version>
  </dependency>
</dependencies>
holtgrewe commented 7 years ago

I am not quite sure I understand? Can you show me a minimal working example where this breaks?

johntiger1 commented 7 years ago

Sure, the example is from my project actually: https://github.com/johntiger1/boqa/blob/master/pom.xml

I had to change around the 82nd line to get it to work

holtgrewe commented 7 years ago

I don't quite understand.

You should be able to build with Ontolib as dependency directly from maven central with the non snapshot versions. If you want to install the snapshot/development versions you simply do mvn install on your dependency and the you can build your project...

johntiger1 commented 7 years ago

If you set project.version elsewhere in your project, won't it be different from the project.version of Ontolib?

holtgrewe commented 7 years ago

This setting is local to the ontolib parent pom.xml and all included pom.xml files afaik.