Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing manifest tag OpenIDE-Module

In a newly generated project I started getting this error when trying to compile the branding module:

--- nbm-maven-plugin:4.1:nbm (default-nbm) @ QualityTrends-branding --- Copying module JAR to /home/javier/Desktop/QualityTrends/branding/target/nbm/netbeans/qualitytrends/modules Cannot generate config file.

Later this is further expanded:

Failed to execute goal org.codehaus.mojo:nbm-maven-plugin:4.1:nbm (default-nbm) on project QualityTrends-branding: Missing manifest tag OpenIDE-Module; /home/javier/Desktop/QualityTrends/branding/target/nbm/netbeans/qualitytrends/modules/net-sourceforge-javydreamercsw-QualityTrends-branding.jar is not a module -> [Help 1]

Inspecting the module's manifest file shows that entry missing, but it's missing as well in all other modules, so I'm not sure what's wrong.

This are the file's contents:

Manifest-Version: 1.0
OpenIDE-Module-Localizing-Bundle: net/sourceforge/javydreamercsw/quality/trends/branding/Bundle.properties
AutoUpdate-Essential-Module: true

Any idea?

like image 348
javydreamercsw Avatar asked Mar 26 '26 16:03

javydreamercsw


1 Answers

If using a the maven-jar-plugin that is recent (3.0.0 or higher), Usual Java's answer will no longer work because the useDefaultManifestFile parameter was removed as per this jira task.

The following will replicate what "useDefaultManifestFile=true" was doing:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-jar-plugin</artifactId>
  <version>3.0.2</version>
  <configuration>
    <archive>
      <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
    </archive>
  </configuration>
</plugin>
like image 80
wrestang Avatar answered Mar 28 '26 05:03

wrestang



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!