ebics-java / ebics-java-client

Java open source EBICS client - Support for French, German and Swiss banks
GNU Lesser General Public License v2.1
36 stars 35 forks source link

Broken build #4

Closed vkolotov closed 4 years ago

vkolotov commented 4 years ago

I've just checked out the project and run mvn install, looks like the build is broken:

Vladimirs-Mac-mini:ebics-java-client vkolotoff$ mvn clean install
[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------------< org.kopi:ebics >---------------------------
[INFO] Building ebics 1.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ ebics ---
[INFO] Deleting /Users/vkolotoff/projects/ebics-java-client/target
[INFO] 
[INFO] --- xmlbeans-maven-plugin:2.3.3:xmlbeans (default) @ ebics ---
warning: [options] bootstrap class path not set in conjunction with -source 1.4
error: Source option 1.4 is no longer supported. Use 6 or later.
error: Target option 1.4 is no longer supported. Use 1.6 or later.

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.972 s
[INFO] Finished at: 2019-11-05T09:57:13Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.codehaus.mojo:xmlbeans-maven-plugin:2.3.3:xmlbeans (default) on project ebics: XmlBeans compile failed:
[ERROR]  xml ErrorLoading schema file /Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_orders.xsd
[ERROR] xml ErrorLoading schema file /Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_keymgmt_request.xsd
[ERROR] xml ErrorLoading schema file /Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics.xsd
[ERROR] xml ErrorLoading schema file /Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_keymgmt_response.xsd
[ERROR] xml ErrorLoading schema file /Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_types.xsd
[ERROR] xml ErrorLoading schema file /Users/vkolotoff/projects/ebics-java-client/src/main/xsd/xmldsig-core-schema.xsd
[ERROR] xml ErrorLoading schema file /Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_request.xsd
[ERROR] xml ErrorLoading schema file /Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_hev.xsd
[ERROR] xml ErrorLoading schema file /Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_response.xsd
[ERROR] xml ErrorLoading schema file /Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_signature.xsd
[ERROR] xml ErrorLoading config file /Users/vkolotoff/projects/ebics-java-client/src/main/xsd/config/config.xsdconfig
[ERROR] xml Error/Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_orders.xsd:293:4: warning: p-props-correct.2.2: maxOccurs must be greater than or equal to 1.
[ERROR] xml Error/Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_orders.xsd:426:5: warning: p-props-correct.2.2: maxOccurs must be greater than or equal to 1.
[ERROR] xml Error/Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_orders.xsd:647:4: warning: p-props-correct.2.2: maxOccurs must be greater than or equal to 1.
[ERROR] xml Error/Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_orders.xsd:881:4: warning: p-props-correct.2.2: maxOccurs must be greater than or equal to 1.
[ERROR] xml Error/Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_keymgmt_request.xsd:190:6: warning: p-props-correct.2.2: maxOccurs must be greater than or equal to 1.
[ERROR] xml Error/Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_keymgmt_request.xsd:195:6: warning: p-props-correct.2.2: maxOccurs must be greater than or equal to 1.
[ERROR] xml Error/Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_keymgmt_request.xsd:484:6: warning: p-props-correct.2.2: maxOccurs must be greater than or equal to 1.
[ERROR] xml Error/Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_keymgmt_request.xsd:489:6: warning: p-props-correct.2.2: maxOccurs must be greater than or equal to 1.
[ERROR] xml Error/Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_request.xsd:239:9: warning: p-props-correct.2.2: maxOccurs must be greater than or equal to 1.
[ERROR] xml Error/Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_keymgmt_request.xsd:301:8: warning: p-props-correct.2.2: maxOccurs must be greater than or equal to 1.
[ERROR] xml Error/Users/vkolotoff/projects/ebics-java-client/src/main/xsd/ebics_request.xsd:51:8: warning: p-props-correct.2.2: maxOccurs must be greater than or equal to 1.
[ERROR] 
[ERROR] -> [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

Environment: Oracle JDK 11, OSX (10.14.6 (18G103)), Apache Maven 3.6.2

vkolotov commented 4 years ago

The fix is to configure xmlbeans-maven-plugin in the pom.xml to specify <javaSource>1.8</javaSource>:

       <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>xmlbeans-maven-plugin</artifactId>
        <version>2.3.3</version>
        <executions>
          <execution>
            <goals>
              <goal>xmlbeans</goal>
            </goals>
          </execution>
        </executions>
        <inherited>true</inherited>
        <configuration>
          <schemaDirectory>src/main/xsd</schemaDirectory>
          <defaultXmlConfigDir>src/main/xsd/config</defaultXmlConfigDir>
          <javaSource>1.8</javaSource>
        </configuration>
      </plugin>
uwemaurer commented 4 years ago

Thank you for looking into this!