[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-dev] Missing requirement: org.eclipse.persistence.corba

Hello!
I see, so the artifact I had locally was not from mvn central and was instead from a staging repository? For the future, should artifact versions in staging be RC or SNAPSHOT? Since the staging artifact had a release version, any updates I would have assumed the version number would change (ie 4.2.1).
I am also glad it was figured out. Thank you for the help.

Thanks,
Will Dazey

On Wed, Apr 3, 2019 at 1:26 PM Lukas Jungmann <lukas.jungmann@xxxxxxxxxx> wrote:
On 4/3/19 7:54 PM, William Dazey wrote:
> Hello Lukas,
>
>Â Â Âhmm, few more things to check:
>Â Â Âdoes it happen on jdk 8?
>
> Yes
>
>Â Â Âdoes it happen also for 'build' or 'clean build' or just for 'clean'?
>
> It looks like it happens during 'clean-core'
>
>Â Â Âwhat exact version of jdk11 it is? Is it 11.0.2?
>
>Â ÂIt happens with java8 as well, so this feels unimportant
>
>Â Â Âwhat is the content of
>Â Â Â~/.m2/repository/org/glassfish/corba/glassfish-corba-omgapi/4.2.0/glassfish-corba-omgapi-4.2.0.jar!/META-INF/MANIFEST.MF?
>
>
>Â Â Âdoes it contain javax.rmi package in export-package section?
>
> Interestingly, no. It does not export javax.rmi.

aaah, now I know...
this in particular was I bug I faced when trying out 4.2.0 on jdk11 at
the time it was in staging repo, so I provided PR for this and 4.2.0 was
rebuilt, retested and sent to mvn central. Sometime in between you got
the bad artifact from the staging repo. Since maven treats releases as
final, it does not try to update them nor check for changes, so even
though the artifact in mvn central is different from the one you
received from staging repo, nobody warns you about this difference.


I'm glad this problem is solved,
--lukas

> Also, I have
> ~/.m2/repository/p2/osgi/bundle/org.glassfish.corba.glassfish-corba-omgapi/4.2.0/org.glassfish.corba.glassfish-corba-omgapi-4.2.0.jar,
> but this MANIFEST.MF doesn't contain the javax.rmi export either. I
> bring up this bundle, because if I remove ";version=1" from
> ~/foundation/org.eclipse.persistence.corba/META-INF/MANIFEST.MF, then
> "clean" completes successfully, but "build" fails with:
>
> [java] [ERROR] Access restriction: The type 'PortableRemoteObject' is
> not API (restriction on classpath entry '
> $HOME\.m2\repository\p2\osgi\bundle\org.glassfish.corba.glassfish-corba-omgapi\4.2.0\org.glassfish.corba.glassfish-corba-omgapi-4.2.0.jar')
>Â ÂÂÂÂ [java] [ERROR]
> C:\JPA\EL\master\trunk\eclipselink.runtime\foundation\org.eclipse.persistence.corba\src\main\java\org\eclipse\persistence\internal\sessions\coordination\rmi\iiop\RMIRemoteCommandConnectionImpl.java:[42]
>Â ÂÂÂÂ [java] [ERROR]ÂÂÂÂ super();
>Â ÂÂÂÂ [java] [ERROR]ÂÂÂÂ ^^^^^^^^
>Â ÂÂÂÂ [java] [ERROR] Access restriction: The constructor
> 'PortableRemoteObject()' is not API (restriction on classpath entry '
> $HOME\.m2\repository\p2\osgi\bundle\org.glassfish.corba.glassfish-corba-omgapi\4.2.0\org.glassfish.corba.glassfish-corba-omgapi-4.2.0.jar')
>
>Â Â Âdoes it happen with empty local maven repo? (mv $HOME/.m2/repository
>Â Â Â$HOME/.m2/repository-bkp)
>
> Interesting, this seems to have fixed the problem. So the old 4.2.0
> version lacked a javax.rmi export, but the new 4.2.0 version does have
> the javax.rmi version, yet they have the same version number...
> Thanks Lukas,
> Will Dazey
>
> _______________________________________________
> eclipselink-dev mailing list
> eclipselink-dev@xxxxxxxxxxx
> To change your delivery options, retrieve your password, or unsubscribe from this list, visit
> https://www.eclipse.org/mailman/listinfo/eclipselink-dev
>
_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/eclipselink-dev