Giter Site home page Giter Site logo

glassfish-security-plugin's People

Contributors

arjantijms avatar cousjava avatar dependabot[bot] avatar dmatej avatar glassfish-bot avatar hs536 avatar jgauravgupta avatar pzygielo avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

glassfish-security-plugin's Issues

Fix compatibility with JDK17

[ERROR] Failed to execute goal org.glassfish.build:command-security-maven-plugin:1.0.12:check (default-check) on project config-types: Error loading config beans: java.lang.RuntimeException: org.apache.maven.plugin.MojoExecutionException: Error analyzing java/lang/Object: Unsupported class file major version 61 -> [Help 1]

TypeProcessorImpl.java leaves file open - causes failure in windows build of glassfish v5

Glassfish - https://github.com/javaee/glassfish.git,
fails to build on Windows 10 and has refused to build since prior (1-2 months) to my first notice in 12/2017.
I have debugged the cause - and have tested a fix that works for me on windows.

The cause is that a file is left open by this plugin that results in an error in a different plugin used in the build of glassfish.

I can provide much detail if required and have emailed the report of the issue to [email protected] with subject 'gfv5 window 10 build fails with latest maven and jdk 8' .

from that email,

This is an update of the below previous post in Dec/2017.

Glassfish still does not build on windows 10 64 bit with java 8 and maven 3.5.2.

This afternoon I determined the reason and a fix.

The reason the default file cannot be deleted is that it is open in windows.
file: glassfish\nucleus\hk2\hk2-config\target\classes\META-INF\hk2-locator\default
It gets opened in the command-security-maven-plugin project code,
from the repo https://github.com/javaee/command-security-maven-plugin.git

The file I changed is command-security-maven-plugin\src\main\java\org\glassfish\module\maven\commandsecurityplugin\TypeProcessorImpl.java .
The method is : private List findInhabitantsInModule(final BufferedReader br) throws IOException is passed the BufferedReader br
that has the file open. When the method returns the file is still open. I determined it was safe to call br.close(); before the return of the method,
and after adding the br.close call I can now successfully build Glassfish.
snippet:
}
br.close(); //newly added
return result;
} // last line of method

`:print` throws `NPE` when select modules are built

To reproduce use for example glassfish (a364892e1) and execute from top-level directory:

$ mvn install -pl nucleus/admin/util,appserver/jms/admin command-security:print

which results in

[INFO] 
[INFO] --- command-security-maven-plugin:1.0.15:print (default-cli) @ admin-util ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for admin-util 7.0.1-SNAPSHOT:
[INFO] 
[INFO] admin-util ......................................... FAILURE [ 27.678 s]
[INFO] JMS admin .......................................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  32.518 s
[INFO] Finished at: 2022-12-23T15:52:28+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.glassfish.build:command-security-maven-plugin:1.0.15:print (default-cli) on project admin-util: Execution default-cli of goal org.glassfish.build:command-security-maven-plugin:1.0.15:print failed: Cannot invoke "org.apache.maven.project.MavenProject.getBasedir()" because "execRoot" is null -> [Help 1]
[ERROR] 

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.