savant-build / savant-core

This is the main project for the Savant build tool
http://savantbuild.org
Apache License 2.0
10 stars 2 forks source link

Error: The license [PDDL-1.0] is not an allowed license type #5

Closed RichardJECooke closed 5 months ago

RichardJECooke commented 9 months ago

I get the "is not an allowed license type" error when building fusionauth-contrib. Any idea how to fix please?

I'm building the project in a Docker Alpine Linux container on my Ubuntu host.

The container is:

FROM alpine:latest
RUN apk add --no-cache openjdk21
RUN apk add --no-cache maven
RUN apk add --no-cache curl bash
RUN curl -L https://repository.savantbuild.org/org/savantbuild/savant-core/1.0.0/savant-1.0.0.tar.gz -o /tmp/savant.tar.gz \
    && tar -xzf /tmp/savant.tar.gz -C /opt/ \
    && rm /tmp/savant.tar.gz
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
WORKDIR /workspace
CMD ["bash"]

And the error is

docker run -it --name javabox -v .:/workspace richardjecooke/javaimage
cd "Password Hashing Plugins"
mvn dependency:resolve
/opt/savant-1.0.0/bin/sb build

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/opt/savant-1.0.0/lib/groovy-all-indy-2.4.6.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Downloaded from [https://repository.savantbuild.org/org/savantbuild/plugin/dependency/1.0.2/dependency-1.0.2.jar.amd]
...
Downloaded from [https://repository.savantbuild.org/org/aopalliance/aopalliance/1.0.0/aopalliance-1.0.0.jar.amd]
A process failed for the artifact [org.aopalliance:aopalliance:aopalliance:1.0.0:jar]. 
The original error is [Invalid AMD file. 
The license [PDDL-1.0] is not an allowed license type. 
Allowable values are [ApacheV1_0, ApacheV1_1, ApacheV2_0, BSD, BSD_2_Clause, BSD_3_Clause, BSD_4_Clause, CDDLV1_0, Commercial, EclipseV1_0, GPLV1_0, GPLV2_0, GPLV2_0_CE, GPLV3_0, LGPLV2_1, LGPLV3_0, MIT, Other, OtherDistributableOpenSource, OtherNonDistributableOpenSource, Public_Domain]]
Error occurred on line [63]
voidmain commented 5 months ago

I think that command is old. You'll need at least version 2.0.0-RC.6 in order to run Savant with recent FusionAuth projects. Looks like the Contrib project fixed their docs though. I'll close this one out.