Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [tycho-user] Resolution of packages containing "impl" in their names



On 21/12/2015 16:15, Matthias Sohn wrote:
On Mon, Dec 21, 2015 at 3:55 PM, De Alti, Cristiano <Cristiano.DeAlti@xxxxxxxxxxxx> wrote:
Hello Andreas,
  As said all the other packages (which are resolved) are exported with the same version.
I believe it's a valid OSGi version, maybe unusual.

The library exporting the packages is OSGi-fied with maven-bundle-plugin.
By default this plugin assigns automatically versions from the version of the pom file:

2.0.3-SNAPSHOT (pom) -> 2.0.3.SNAPSHOT (MANIFEST)

this looks wrong, 2.0.3-SNAPSHOT in pom.xml should translate to bundle-version 2.0.3.qualifier in the MANIFEST.MF
"qualifier" can be anything and this is how maven-bundle-plugin works.
 
I know it sounds strange but I'm pretty sure "impl" is treated specially (also by Eclipse - that's why I had to add the "x-internal" stuff)

I think you are wrong here. According to [1] x-internal defaults to "false" if it isn't specified explicitly
 

Without "x-internal" Eclipse complains about access restrictions to "impl" packages. It does not even propose these imports.
With "x-internal" set to true or false Eclipse gives only an "Discouraged access" warning.
-Matthias


_______________________________________________
tycho-user mailing list
tycho-user@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/tycho-user

--
Cristiano De Alti
Principal Software Engineer

direct:    +39 0433 485468

EUROTECH
Imagine.Build.Succeed.
HEADQUARTERS
EUROTECH S.p.A. – Via Fratelli Solari, 3/a | 33020 Amaro UD | Italy | Tel. +39. 0433 485411  | Fax +39. 0433 485499 |
Cap. Soc. 8.878.946,00 € I.V. | P.IVA / C.F.: IT 01791330309 | REA Udine 196115
www.eurotech.com
____________________________________

Il presente messaggio ed ogni suo allegato sono da intendersi inviati esclusivamente agli effettivi destinatari e potrebbero essere soggetti a restrizioni legali. Se avete ricevuto questo messaggio per errore vi invitiamo a darne immediata notifica al mittente e cancellarlo dal vostro sistema. Qualsiasi altro uso di questo messaggio da parte vostra e' strettamente proibito.
 
This e-mail, and any file attached to it, is meant only for the intended recipient of the transmission and may be a communication privileged by law. If you have received it in error, please notify the sender immediately and delete the original from your system. Any other use of this e-mail by you is strictly forbidden.
____________________________________
 
Per favore, pensate all’ambiente prima di stampare questa e-mail. Please consider the environment before printing this e-mail.

Back to the top