From qudongfang at gmail.com Wed Aug 1 01:54:50 2018 From: qudongfang at gmail.com (qudongfang) Date: Wed, 1 Aug 2018 09:54:50 +0800 Subject: RFR: update README and optimize maven configurations of jol Message-ID: <6430b7dd-4e33-9a8c-18cb-4ef8b055c561@gmail.com> Hi, there I found some warnings when I try to build jol. The README is outdated too. I think it would be better if fixed. The changeset includes two commits: 1. changes about maven configurations. 2. changes about README. Could some help me with this? webrev file link stored in google drive -- Best regards, QU DONGFANG -------------- next part -------------- # HG changeset patch # User qudongfang # Date 1533020646 -28800 # Tue Jul 31 15:04:06 2018 +0800 # Branch update_maven_config # Node ID dc464f5c5a68b0013ee31cda5f511d73b9bbacd0 # Parent 03064c057dc95f1c6c8f706476b13fb3dd30bbe0 1. replace 'prerequisites' with 'maven-enforcer-plugin'; 2. remove unused config in 'maven-license-plugin'; 3. ignore '*.class' files generated by test. diff --git a/.hgignore b/.hgignore --- a/.hgignore +++ b/.hgignore @@ -2,3 +2,4 @@ .idea/ *.iml target/ +*/*.class diff --git a/jol-cli/pom.xml b/jol-cli/pom.xml --- a/jol-cli/pom.xml +++ b/jol-cli/pom.xml @@ -119,10 +119,7 @@
file:///${project.basedir}/../src/license/gpl_cpe/header.txt
true true - src/main/ - - PHP - + src/main/java/ diff --git a/jol-core/pom.xml b/jol-core/pom.xml --- a/jol-core/pom.xml +++ b/jol-core/pom.xml @@ -92,10 +92,7 @@
file:///${project.basedir}/../src/license/gpl_cpe/header.txt
true true - src/main/ - - PHP - + src/main/java/ diff --git a/jol-samples/pom.xml b/jol-samples/pom.xml --- a/jol-samples/pom.xml +++ b/jol-samples/pom.xml @@ -104,10 +104,7 @@
file:///${project.basedir}/../src/license/bsd/header.txt
true true - src/main/ - - PHP - + src/main/java/ diff --git a/pom.xml b/pom.xml --- a/pom.xml +++ b/pom.xml @@ -69,10 +69,6 @@ jol-samples - - 3.0 - - @@ -118,6 +114,28 @@ + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.0.0-M1 + + + enforce-maven + + enforce + + + + + 3.0 + + + + + + + # HG changeset patch # User qudongfang # Date 1533021669 -28800 # Tue Jul 31 15:21:09 2018 +0800 # Branch update_maven_config # Node ID 71a7dbb0340f4e5e658fad8011aeabe9f841add0 # Parent dc464f5c5a68b0013ee31cda5f511d73b9bbacd0 update README according to the implements diff --git a/README b/README --- a/README +++ b/README @@ -2,9 +2,11 @@ --------------------------------------------------------------------- These are the tiny tools to analyze object layout schemes in JVMs. -These tools are using Unsafe heavily to deduce the *actual* object -layout and footprint. This makes the tools much more accurate than -others relying on heap dumps, specification assumptions, etc. +These tools are using Unsafe, JVMTI, and Serviceability Agent (SA) +heavily to decoder the actual object layout, footprint, and references. +This makes JOL much more accurate than other tools relying on heap dumps, +specification assumptions, etc. + Source compile: $ mvn clean install