[ 
https://issues.apache.org/jira/browse/MEAR-280?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17179014#comment-17179014
 ] 

Marat Abrarov edited comment on MEAR-280 at 8/17/20, 2:31 PM:
--------------------------------------------------------------

This issue looks being still actual because Maven EAR Plugin generates not 
reproducible EARs when skinnyWars option is used 
({{<skinnyWars>true</skinnyWars>}} in {{configuration}} of Maven EAR Plugin).

[MEAR-280|https://github.com/mabrarov/dockerfile-test/tree/MEAR-280] branch of 
mabrarov/dockerfile-test repository can be used for reproducing this issue 
(requires Maven EAR Plugin to be built and installed into local maven 
repository).
With skinnyWars option:
{code:bash}
git checkout 0220cef03f2029aa10222d9af776ee1f79a4ae9a && \
./mvnw clean install -e -DskipTests -Ddocker.skip=true && \
./mvnw clean verify -e -DskipTests artifact:buildinfo -Dreference.repo=central 
-Ddocker.skip=true
...
[WARNING] size mismatch ear-1.1.7-SNAPSHOT.ear: investigate with diffoscope 
target/reference/ear-1.1.7-SNAPSHOT.ear ear/target/ear-1.1.7-SNAPSHOT.ear
[WARNING] Reproducible Build output summary: 1 files ok, 1 different
[WARNING] see diff target/reference/app-image-1.1.7-SNAPSHOT.buildinfo 
app-image/target/app-image-1.1.7-SNAPSHOT.buildinfo
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for dockerfile-test 1.1.7-SNAPSHOT:
[INFO]
[INFO] dockerfile-test .................................... SUCCESS [  1.381 s]
[INFO] war ................................................ SUCCESS [  1.190 s]
[INFO] ear ................................................ SUCCESS [  0.484 s]
[INFO] base-image ......................................... SUCCESS [  1.275 s]
[INFO] hollow-image ....................................... SUCCESS [  0.163 s]
[INFO] app-image .......................................... SUCCESS [  0.242 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.373 s
[INFO] Finished at: 2020-08-17T17:30:00+03:00
[INFO] ------------------------------------------------------------------------
{code}
Without `skinnyWars` option:
{code:bash}
git checkout MEAR-280 && \
./mvnw clean install -e -DskipTests -Ddocker.skip=true && \
./mvnw clean verify -e -DskipTests artifact:buildinfo -Dreference.repo=central 
-Ddocker.skip=true
...
[INFO] Reference build java.version: 1.8 (from MANIFEST.MF Build-Jdk-Spec)
[INFO] Reference build os.name: Unix (from pom.properties newline)
[INFO] Minimal buildinfo generated from downloaded artifacts: 
/home/user/dockerfile-test/target/reference/app-image-1.1.7-SNAPSHOT.buildinfo
[INFO] Reproducible Build output summary: 2 files ok
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for dockerfile-test 1.1.7-SNAPSHOT:
[INFO]
[INFO] dockerfile-test .................................... SUCCESS [  1.382 s]
[INFO] war ................................................ SUCCESS [  1.320 s]
[INFO] ear ................................................ SUCCESS [  0.422 s]
[INFO] base-image ......................................... SUCCESS [  0.993 s]
[INFO] hollow-image ....................................... SUCCESS [  0.120 s]
[INFO] app-image .......................................... SUCCESS [  0.227 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  5.272 s
[INFO] Finished at: 2020-08-17T17:31:15+03:00
[INFO] ------------------------------------------------------------------------
{code}


was (Author: abrarovm):
This issue looks being still actual because Maven EAR Plugin generates not 
reproducible EARs when skinny WARs option is used 
({{<skinnyWars>true</skinnyWars>}} in {{configuration}} of Maven EAR Plugin).

> Reproducible Builds: make entries in output ear files reproducible (order + 
> timestamp)
> --------------------------------------------------------------------------------------
>
>                 Key: MEAR-280
>                 URL: https://issues.apache.org/jira/browse/MEAR-280
>             Project: Maven Ear Plugin
>          Issue Type: New Feature
>    Affects Versions: 3.0.2
>            Reporter: Herve Boutemy
>            Assignee: Herve Boutemy
>            Priority: Major
>             Fix For: 3.1.0
>
>
> since an ear file is a zip file, entries order and timestamp are a natural 
> source of non Reproducible Builds: 
> https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=74682318



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to