Hi, Please create issue on GitHub with simple project which reproduce your issue.
czwartek, 14 grudnia 2023 o 08:24:36 UTC+1 [email protected] napisał(a): > Hi, > > I am new to the license-maven-plugin and am currently playing around with > the https://www.mojohaus.org/license-maven-plugin/ to try to understand > how it works. > If possible, my end goal is to (1) download licenses (2) into a > > licenses/<SPDX License ID>/LICENSE.txt > > subfolder in our project. > The subfolder part (2) can be steered _somewhat_ with the > licensesOutputDirectory, but I don't see how I could get a <SPDX license > ID> folder into that path. Is it possible somehow? > > Playing around with spdx IDs I found this configuration. > > <licenseUrlFileNames> > <spdx/> > </licenseUrlFileNames> > > But when using it I get e.g. this > > [ERROR] Failed to execute goal > org.codehaus.mojo:license-maven-plugin:2.3.0:download-licenses > (default-cli) on project em-permission-one-common-case: URL ' > http://glassfish.java.net/public/CDDL+GPL_1_1.html' returned content with > unexpected sha1 '977f24cd0704c80f9558dffcc9ded18d84adf6ea'; expected > '047abb20f37c1629c82db23d99783e41207c2564'. You may want to (a) re-run the > current mojo with -Dlicense.forceDownload=true or (b) change the expected > sha1 in the licenseUrlFileNames entry 'CDDL-1.1-047abb2.html' or (c) split > the entry so that its URLs return content with different sha1 sums. -> > [Help 1] > > when running > > mvn -X license:download-licenses > > or > > mvn -X license:download-licenses -Dlicense.forceDownload=true > > My understanding is that the contents of the license from > > http://glassfish.java.net/public/CDDL+GPL_1_1.html > > has changed compared to what the license-maven-plugin expects. > > Where does the _expected_ sha1 come from? > > Is it normal that licenses on these kinds (I suspect they are never > _supposed_ to be changed..? If a new license version is needed then there > would be a new URL, right?) of URLs change? > > Thanks in advance, > Joachim > -- You received this message because you are subscribed to the Google Groups "mojohaus-dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/mojohaus-dev/207bc1d1-822c-4415-ac50-b7502dbb48b9n%40googlegroups.com.
