Giter Club home page Giter Club logo

Comments (5)

tjwatson avatar tjwatson commented on June 28, 2024

I don't see a way to tell moditect to set the module attribute module_version_index to anything specific. It appears to use the pom.xml version. Our build always uses pom versions with SNAPSHOT and then it fills in the qualifier for the bundle manifest version. But we don't do anything with the maven version. Then when they go to publish the artifact to maven central they drop the SNAPSHOT from the maven version.

While this is annoying, I wonder what practical issues it has because there is no way to require a specific version of a Java module.

from equinox.

laeubi avatar laeubi commented on June 28, 2024

Tycho has a new feature to automatically match the pom-version with the manifest version see: https://github.com/eclipse/tycho/blob/master/RELEASE_NOTES.md#enhanced-support-for-maven-ci-friendly-versions

from equinox.

fipro78 avatar fipro78 commented on June 28, 2024

I don't know if this is really an issue or if this causes problems. I just noticed that inconsistency when looking into another issue and I was wondering why org.eclipse.osgi is a SNAPSHOT although I downloaded the release version. Probably more a user confusion issue rather than a technical one.

from equinox.

stbischof avatar stbischof commented on June 28, 2024

fyi:
i let bnd generate the module-info.class automatically. The result is.
not really related to this issue but if the discussion goes more in the direction of "how to generate the file" this would also be a way

open module org.eclipse.osgi {
  requires j9stubs-j9stubs;
  requires java.base;
  requires java.management;
  requires java.xml;
  requires jdk.unsupported;
  
  exports org.eclipse.equinox.log;
  exports org.eclipse.osgi.framework.console;
  exports org.eclipse.osgi.framework.eventmgr;
  exports org.eclipse.osgi.framework.log;
  exports org.eclipse.osgi.report.resolution;
  exports org.eclipse.osgi.service.datalocation;
  exports org.eclipse.osgi.service.debug;
  exports org.eclipse.osgi.service.environment;
  exports org.eclipse.osgi.service.localization;
  exports org.eclipse.osgi.service.runnable;
  exports org.eclipse.osgi.service.urlconversion;
  exports org.eclipse.osgi.storagemanager;
  exports org.eclipse.osgi.util;
  exports org.osgi.dto;
  exports org.osgi.framework.connect;
  exports org.osgi.framework.dto;
  exports org.osgi.framework.hooks.bundle;
  exports org.osgi.framework.hooks.resolver;
  exports org.osgi.framework.hooks.service;
  exports org.osgi.framework.hooks.weaving;
  exports org.osgi.framework.launch;
  exports org.osgi.framework.namespace;
  exports org.osgi.framework.startlevel.dto;
  exports org.osgi.framework.startlevel;
  exports org.osgi.framework.wiring.dto;
  exports org.osgi.framework.wiring;
  exports org.osgi.framework;
  exports org.osgi.resource.dto;
  exports org.osgi.resource;
  exports org.osgi.service.condition;
  exports org.osgi.service.condpermadmin;
  exports org.osgi.service.log.admin;
  exports org.osgi.service.log;
  exports org.osgi.service.packageadmin;
  exports org.osgi.service.permissionadmin;
  exports org.osgi.service.resolver;
  exports org.osgi.service.startlevel;
  exports org.osgi.service.url;
  exports org.osgi.util.tracker;
  exports org.eclipse.osgi.internal.debug;
  exports org.eclipse.osgi.internal.framework;
  exports org.eclipse.osgi.internal.hookregistry;
  exports org.eclipse.osgi.internal.loader;
  exports org.eclipse.osgi.internal.loader.buddy;
  exports org.eclipse.osgi.internal.loader.classpath;
  exports org.eclipse.osgi.internal.loader.sources;
  exports org.eclipse.osgi.internal.location;
  exports org.eclipse.osgi.internal.provisional.service.security;
  exports org.eclipse.osgi.internal.provisional.verifier;
  exports org.eclipse.osgi.internal.service.security;
  exports org.eclipse.osgi.internal.serviceregistry;
  exports org.eclipse.osgi.internal.signedcontent;
  exports org.eclipse.osgi.internal.url;
  exports org.eclipse.osgi.internal.messages;
  exports org.eclipse.osgi.framework.internal.reliablefile;
  exports org.eclipse.core.runtime.adaptor;
  exports org.eclipse.core.runtime.internal.adaptor;
  exports org.eclipse.osgi.container;
  exports org.eclipse.osgi.container.builders;
  exports org.eclipse.osgi.container.namespaces;
  exports org.eclipse.osgi.framework.util;
  exports org.eclipse.osgi.launch;
  exports org.eclipse.osgi.service.pluginconversion;
  exports org.eclipse.osgi.service.resolver;
  exports org.eclipse.osgi.service.security;
  exports org.eclipse.osgi.signedcontent;
  exports org.eclipse.osgi.storage;
  exports org.eclipse.osgi.storage.bundlefile;
  exports org.eclipse.osgi.storage.url;
  exports org.osgi.service.serviceloader;
  
  provides org.osgi.framework.connect.ConnectFrameworkFactory with org.eclipse.osgi.launch.EquinoxFactory;
  provides org.osgi.framework.launch.FrameworkFactory with org.eclipse.osgi.launch.EquinoxFactory;
}

from equinox.

tjwatson avatar tjwatson commented on June 28, 2024

Now that we are moving to use BND to generate the module-info class, we have moved to striping off the qualifier from the module-info version (see #53). I'm going to close this issue because it was about the incorrect version being set with our usage of modetect. There is still some work that needs to be done to make sure the BND production of module-info is correct #27.

from equinox.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.