Tuesday, October 10, 2017

Install jar in local Maven directory

I'm not sure why I couldn't find an easy reference on what to change in a pom.xml file to install a jar in the local Maven repository. Lots of complicated command lines (a few of which actually worked) and little else. I'm not sure why everyone feels the need to make things more complicated than they are. Regardless, here's what worked for me.
<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-install-plugin</artifactId>
  <version>2.5.1</version>
  <configuration>
    <file>${basedir}/target/${artifactId}-${version}.jar</file>
  </configuration>
</plugin>
A mvn install:install-file then does the trick.

Wednesday, October 4, 2017

Out with the GNU...

I became fed up with the Gnome-3 window system. Hard to configure and use for me. So, out with the GNU:
apt-get purge gnome*
and in with the Cinammon:
apt-get install cinnamon-desktop-environment
Much better.

Sunday, May 7, 2017

jdeps on rt

Out of curiosity, I wanted to know how the classes in Java's runtime were related to each other. Happily, Java ships with a dependency too, jdeps. So, on my Mac, I ran
jdeps -dotoutput dot -verbose:class /Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home/jre/lib/rt.jar
There are 20683 classes and 227874 links between them. I had a difficult time getting a graph built. GraphViz wasn't having it. I turned to GePhi and it's OpenOrd algorithm and that worked. Here's the image.
Almost art. Lots of interconnections.