JMC-6115 Use Jemmy builds from Maven Central

Marcus Hirt marcus.hirt at oracle.com
Mon Aug 20 12:52:17 UTC 2018


Hi Jay/Patrick,

Jay, you can remove a './' on the first two lines of the patch to make the 
patching work.

From:
--- old/./README.md	2018-08-13 22:12:58.000000000 +0200
+++ new/./README.md	2018-08-13 22:12:58.000000000 +0200

To:
--- old/README.md	2018-08-13 22:12:58.000000000 +0200
+++ new/README.md	2018-08-13 22:12:58.000000000 +0200

I too get the access restriction problem when running the uitests.

Patrick, you can probably fix the access restriction error by making Tycho 
ignore the forbidden references. See application/org.openjdk.jmc.attach/pom.xml
(compilerArgument).

Kind regards,
Marcus

On 2018-08-14, 11:37, "jmc-dev on behalf of Jayathirth D V" <jmc-dev-bounces at openjdk.java.net on behalf of jayathirth.d.v at oracle.com> wrote:

    Hi Patrick,
    
    Thanks for your contribution to this important change.
    I created new repo to run UI tests with this patch. I am facing below problems related to this patch:
    
    1) While importing the patch I am getting  "abort: path '.\README.md' is inside nested repo '.'". Since README.md has only comments, I selectively removed the changes in README.md and imported the patch.
    
    2) After importing the patch "mvn package" & "mvn verify -Dspotbugs.skip=true" is running fine. But when I try to run UI tests using "mvn verify -Dspotbugs.skip=true -Puitests" I am getting many Access restriction errors for org.openjdk.jmc.test.jemmy.
    
    [ERROR] Access restriction: The type 'Image' is not API (restriction on classpath entry 'C:\Users\jdv.ORADEV\.m2\repository\p2\osgi\bundle\o
    rg.adoptopenjdk.jemmy-core\1.0.2\org.adoptopenjdk.jemmy-core-1.0.2.jar')
    [ERROR] D:\Workspace\JMC7_Open\jmc\application\uitests\org.openjdk.jmc.test.jemmy\src\test\java\org\openjdk\jmc\test\jemmy\misc\base\wrapper
    s\MCJemmyBase.java:[810]
    [ERROR]         image.save(fileName);
    [ERROR]         ^^^^^^^^^^^^^^^^^^^^
    [ERROR] Access restriction: The method 'Image.save(String)' is not API (restriction on classpath entry 'C:\Users\jdv.ORADEV\.m2\repository\p
    2\osgi\bundle\org.adoptopenjdk.jemmy-core\1.0.2\org.adoptopenjdk.jemmy-core-1.0.2.jar')
    [ERROR] 92 problems (92 errors)
    [ERROR] -> [Help 1]
    [ERROR]
    [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
    [ERROR] Re-run Maven using the -X switch to enable full debug logging.
    [ERROR]
    [ERROR] For more information about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
    [ERROR]
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR]   mvn <goals> -rf :org.openjdk.jmc.test.jemmy
    
    Please clarify.
    
    Regards,
    Jay
    
    -----Original Message-----
    From: Patrick Reinhart [mailto:patrick at reini.net] 
    Sent: Tuesday, August 14, 2018 1:53 AM
    To: jmc-dev at openjdk.java.net
    Subject: RFR: JMC-6115 Use Jemmy builds from Maven Central
    
    Hi everybody,
    
    I added a new feature to have the jemmy libraries resolved from maven central.
    
    http://cr.openjdk.java.net/~reinhapa/reviews/JMC-6115/webrev/
    
    -Patrick
    
    




More information about the jmc-dev mailing list