Skip to main content

My software build is _broken_ after upgrading to Gurobi 10.0.3 Maven package

Ongoing

Comments

2 comments

  • Thomas Braam
    Gurobi Staff Gurobi Staff

    Hi Michael,

    This is a known issue with using the maven-shade-plugin . The reason is that for 10.0.3 we rely on information in the MANIFEST.MF, which is overridden when creating a fat jar.

    To fix this, you would need to put a ManifestResourceTransformer in your pom.xml and set:

    Implementation-Title: com.gurobi:gurobi
    Implementation-Version: 10.0.3

    I hope this is enough information to get you going! We aim to address this issue in future versions of the Java package so this will not be necessary anymore for fat jars.

    0
  • Michael Mell
    Gurobi-versary
    Curious
    Conversationalist

    Thank you for the quick reply. Could you provide me with a code-snippet of what the XML-fragment would look like for this transformer? I am not very familiar with this... Thanks.

    ---

    UPDATE:

    Is this correct (which I adapted from here)?

    ```xml
    <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
      <manifestEntries>
        <Implementation-Title>com.gurobi:gurobi</Implementation-Title>
        <Implementation-Version>10.0.3</Implementation-Version>
      </manifestEntries>
    </transformer>
    ```

    0

Please sign in to leave a comment.