I'm trying to create an OSGi bundle from my source code that uses this library. And it fails with this message
[ERROR] Bundle group:artifact:bundle:1.0.0.alpha01-SNAPSHOT : Class in different directory than declared. Path from class name is GetoptDemo.class but the path in the jar is gnu/getopt/GetoptDemo.class from 'Jar:java-getopt-1.0.9.jar'
[ERROR] Error(s) found in bundle configuration
It looks like this is caused by the GetoptDemo class not declaring a package that matches how the class is packaged in the JAR file