Skip to content

Package declaration for GetoptDemo does not match the file's location in the Jar #5

@hildo

Description

@hildo

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions