How to parse GraphML files with a cool Java library

I’ve found this great GraphML reader and writer library: Blueprints. There is also a good documentation on how to use the GraphML library for reading XML-encoded graphs. Anyway, I think my example is better. 🙂
How to parse GraphML files with a cool Java library weiterlesen

Eigene JAR-Bibliothek in Maven-Projekt verwenden

Apache Maven ist wundervoll. Aber wie bekommt man die eigene JAR-Bibliothek als Maven-Abhängigkeit in sein Projekt? Das geht einfacher als gedacht. Man muss dazu nur folgendes in die Konsole eingeben:

mvn install:install-file -Dfile=C:\path\to\my-lib-0.1.jar -DgroupId=com.mycompany.mylib -DartifactId=MyLibrary -Dversion=0.1 -Dpackaging=jar

Danach kann man in der pom.xml von seinem Maven-Projekt die eigene Bibliothek über folgenden Eintrag einhängen:

1
2
3
4
5
6
7
...
    <dependency>
      <groupId>com.mycompany.mylib</groupId>
      <artifactId>MyLibrary</artifactId>
      <version>0.1</version>
    </dependency>
...

Vielen Dank an How to include library manually into maven local repository?.