Code Monkey home page Code Monkey logo

commons's People

Contributors

akiban-build avatar aldaris avatar apforrest avatar brmiller avatar brunolavitforgerock avatar craigmcdonnell avatar dave-luna avatar forgerocker avatar gaetan-fr avatar gmelkvifr avatar huck-elliott-forgerock avatar jakefeasel avatar jamesphillpotts-fr avatar jlemay86 avatar jnrouvignac avatar jsonisathingy avatar laurentvaills avatar markcraig avatar matthew-swift avatar maximthomas avatar mrpotes avatar nathanlws avatar nicolasc-fr avatar phillcunnington avatar posulliv avatar sauthieg avatar savageautomate avatar tony-bamford avatar vharseko avatar violette avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

commons's Issues

[enhancement] dependency versions update & master list

Hey,

If interested, I was playing around a bit with separating versions of all deps & plugins to a single list of properties:
https://github.com/sfuerte/commons/commit/f74e1c1f1f870da65f6fe0465ab26149083e6f57
Due to the length, the Property pom.xml in separate file but can be merged to the main as well.

It's not complete yet, but not much left for commons either. The current state as follows (much reduced from the master):

$ mvn versions:display-dependency-updates | grep "\->" | sort | uniq -c
   4 [INFO]   com.google.inject:guice ................................. 4.0 -> 4.2.2
   1 [INFO]   com.sun.xml.bind:jaxb-impl ........................ 2.3.1 -> 2.3.3-b02
   1 [INFO]   com.sun.xml.bind:jaxb-impl ........................ 2.3.2 -> 2.3.3-b02
 102 [INFO]   io.swagger:swagger-core ........................... 1.5.9 -> 2.0.0-rc2
 102 [INFO]   io.swagger:swagger-models ......................... 1.5.9 -> 2.0.0-rc2
   2 [INFO]   javax.xml.bind:jaxb-api .................. 2.3.1 -> 2.4.0-b180830.0359
   1 [INFO]   org.apache.maven:maven-compat ......................... 3.3.1 -> 3.6.3
   1 [INFO]   org.apache.maven:maven-core ........................... 3.3.1 -> 3.6.3
   1 [INFO]   org.apache.maven:maven-model .......................... 3.3.1 -> 3.6.3
   1 [INFO]   org.apache.maven:maven-plugin-api ..................... 3.0.5 -> 3.6.3
   1 [INFO]   org.apache.maven:maven-plugin-api ..................... 3.3.1 -> 3.6.3
   1 [INFO]   org.apache.maven:maven-plugin-api ..................... 3.5.4 -> 3.6.3
   1 [INFO]   org.apache.maven:maven-project .................. 2.2.1 -> 3.0-alpha-2
   1 [INFO]   org.asciidoctor:asciidoctorj .......................... 2.1.0 -> 2.2.0
   2 [INFO]   org.codehaus.groovy:groovy-all ........................ 2.1.3 -> 3.0.2
   3 [INFO]   org.codehaus.plexus:plexus-compiler-eclipse ............. 2.5 -> 2.8.6
   1 [INFO]   org.codehaus.plexus:plexus-utils ..................... 3.0.17 -> 3.3.0
   1 [INFO]   org.eclipse.jetty:jetty-server ..... 9.4.26.v20200117 -> 10.0.0.alpha1
   1 [INFO]   org.eclipse.jetty:jetty-servlet .... 9.4.26.v20200117 -> 10.0.0.alpha1
   1 [INFO]   org.glassfish.corba:rmic ......................... 4.2.0-b004 -> 4.2.1
   1 [INFO]   org.glassfish.grizzly:grizzly-http-servlet ............ 2.4.3 -> 2.4.4
  15 [INFO]   org.glassfish:javax.security.auth.message .......... 3.1.1 -> 10.0-b28
  11 [INFO]   org.mockito:mockito-all ........................ 1.10.19 -> 2.0.2-beta
   2 [INFO]   org.mozilla:rhino ................................... 1.7.11 -> 1.7.12
   1 [INFO]   org.ops4j.base:ops4j-base-spi ......................... 1.4.0 -> 1.5.0
   1 [INFO]   org.ops4j.pax.swissbox:pax-swissbox-extender .......... 1.6.0 -> 1.8.3
   4 [INFO]   org.osgi:org.osgi.core ................................ 4.3.1 -> 6.0.0
 102 [INFO]   org.slf4j:jcl-over-slf4j ...................... 1.7.30 -> 2.0.0-alpha1
 102 [INFO]   org.slf4j:jul-to-slf4j ........................ 1.7.30 -> 2.0.0-alpha1
 102 [INFO]   org.slf4j:log4j-over-slf4j .................... 1.7.30 -> 2.0.0-alpha1
   1 [INFO]   org.slf4j:osgi-over-slf4j ..................... 1.7.30 -> 2.0.0-alpha1
 102 [INFO]   org.slf4j:slf4j-api ........................... 1.7.30 -> 2.0.0-alpha1
 102 [INFO]   org.slf4j:slf4j-jdk14 ......................... 1.7.30 -> 2.0.0-alpha1
   4 [INFO]   org.slf4j:slf4j-nop ........................... 1.7.12 -> 2.0.0-alpha1
  98 [INFO]   org.slf4j:slf4j-nop ........................... 1.7.30 -> 2.0.0-alpha1
 102 [INFO]   org.slf4j:slf4j-simple ........................ 1.7.30 -> 2.0.0-alpha1
   1 [INFO]   org.springframework:spring-core ....... 3.0.6.RELEASE -> 5.2.4.RELEASE

Extract pom from jar when installing in maven repo

Using the maven-external-dependency-plugin one can install a pom, or a jar, or a jar along with a pom (using the undocumented pomFile configuration, that should be documented). However, most jars built by maven (which is most jars) already have their pom within the jar (under META-INF), so the plugin should use it by default rather than generating a new bare-bones one.

support for Java 11

SystemUtils.java causes an error during initialization of the class due to getJavaVersionAsFloat() doing a substring(0, 3) of the "java.version" system property. This assumes a java version like "1.8", "1.9", etc. But for Java 11, java.version is "11" so the substring causes a StringIndexOutOfBoundsException.

Caused by: java.lang.StringIndexOutOfBoundsException: begin 0, end 3, length 2
at java.base/java.lang.String.checkBoundsBeginEnd(String.java:3319)
at java.base/java.lang.String.substring(String.java:1874)
at org.forgerock.guice.core.internal.commons.lang.SystemUtils.getJavaVersionAsFloat(SystemUtils.java:112)
at org.forgerock.guice.core.internal.commons.lang.SystemUtils.(SystemUtils.java:84)

Cannot build from source when behind proxy

Describe the bug
Hi, we are trying to compile OpenAM in a network that uses a proxy server to access the internet. There is an issue when using the plugin maven-external-dependency-plugin as it doesn't seem to pick up or use Maven proxy settings.

To Reproduce
Steps to reproduce the behavior:

  1. Clone the project on a machine with no direct internet connection
  2. Set the proxy info in maven settings.xml
  3. Run mvn install
  4. See error - the build stops while trying to download this:
    https://github.com/OpenIdentityPlatform/OpenAM/blob/5595538b45c8c837301cab57138d7f1f6692b20f/pom.xml#L2013

Expected behavior
The build should continue by using the proxy settings to download the additional dependencies.

Desktop (please complete the following information):

  • OS: Ubuntu 22

Additional context
Add any other context about the problem here.

Bump `maven-compiler-plugin` settings to supported Java versions

...
[INFO] Compiling 7 source files to forgerock-parent/maven-external-dependency-plugin/maven-external-dependency-plugin/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Source option 6 is no longer supported. Use 7 or later.
[ERROR] Target option 6 is no longer supported. Use 7 or later.
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Maven External Dependency Plugin 0.6-SNAPSHOT ...... FAILURE [ 12.918 s]
...

Update the handler-elasticsearch to support ElasticSearch 7

Describe the problem
handler-elasticsearch does not support latest ElasticSearch versions (7.x).
In OpenAM every time I try to create the index with the audit.json I've got the following error (I show the relevant output):

{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: [access : {_source={enabled=true}, properties={server={properties={port={type=integer}, ip={index=not_analyzed, type=string}}}, request={properties={protocol={index=not_analyzed, type=string}, detail={type=nested},

I think the problem is the removal of mapping types since 7.0.0 version, explained here: https://www.elastic.co/guide/en/elasticsearch/reference/current/removal-of-types.html

Describe the solution you'd like
An updated version supporting ElasticSearch versions equals or greater than 7.0.0.

Additional context

  • I am using OpenAM 14.4.2. I am planning upgrade it to 14.5.4.
  • I am using ElasticSearch 7.7.0.

Missing tags for versions greater than 2.0.6

There is no tags greater than 2.0.6, but in Maven repository I can find versions 2.0.7-2.0.12, and thgere is no releases in Github greater than 2.0.0.

Is there any reason for not tagging neither releasing those versions?
It is extrange for me.

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.