Am 2020-03-07 um 11:36 schrieb Hervé BOUTEMY:
Hi,

Yesterday, I made a key step forward for Reproducible Builds with Maven: I 
wrote code to easily check that your local build produces the same binaries as 
the reference binaries published either to staging or to Central repository.

For a live example, see the last paragraph of Maven Site Plugin vote that just 
started [1].

Process to check build output is based on a single plugin goal, currently named 
buildinfo:save [2]:
1. it creates a buildinfo file during build recording output fingerprints, that 
will eventually in the future be published to Central repository
2. it downloads reference artifacts and/or reference buildinfo and checks that 
the output of the local build is the same as the reference.

Now I want to discuss: is it clear? can you test and report, please?

If the feedback is positive, the next question will be: in which plugin should 
we put this goal to make a release and add it to our parent pom during release, 
so we publish reference buildinfo along our reference binaries to Central 
repository.

After even reverting the offending commit from Maven master, I still get:

[INFO] --- maven-buildinfo-plugin:1.0-SNAPSHOT:save (default-cli) @ 
maven-site-plugin ---
[INFO] Saved info on build to 
/var/osipovmi/Projekte/maven-site-plugin/target/maven-site-plugin-3.9.0.buildinfo
[INFO] Checking against reference build from 
https://repository.apache.org/content/repositories/maven-1554/...
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  01:12 min
[INFO] Finished at: 2020-03-07T14:16:18+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-buildinfo-plugin:1.0-SNAPSHOT:save (default-cli) on 
project maven-site-plugin: Error resolving reference artifact 
org.apache.maven.plugins:maven-site-plugin:buildinfo:3.9.0: Could not transfer 
artifact org.apache.maven.plugins:maven-site-plugin:buildinfo:3.9.0 from/to 
reference (https://repository.apache.org/content/repositories/maven-1554/): Cannot 
access https://repository.apache.org/content/repositories/maven-1554/ with type  
using the available connector factories: BasicRepositoryConnectorFactory: Cannot 
access https://repository.apache.org/content/repositories/maven-1554/ with type  
using the available layout factories: Maven2RepositoryLayoutFactory: Unsupported 
repository layout -> [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/MojoExecutionException



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to