Error generating source: "is not part of this compilation. This is an error for"

I have a jenkins build machine with sources installed on an SSD. While compiling and generating the source, I get the following error:

[ERROR] File: /mnt/raid0/var/lib/jenkins/workspace/VIS_Constructor/vis-web/src/main/webapp/concentrator/binding.xml [13,53] com.sun.istack.SAXParseException2; SYSTEMID: File: /mnt/raid0/var/lib/jenkins/workspace/VIS_Constructor/vis-web/src/main/webapp/concentrator/binding.xml; lineNumber: 13; columnNumber: 53; "file: /mnt/raid0/var/lib/jenkins/workspace/VIS_Constructor/vis-web/src/main/webapp/concentrator/concentratorSub.xsd" is not part of this compilation. Is this a mistake for? "File: /var/lib/jenkins/workspace/VIS_Constructor/vis-web/src/main/webapp/concentrator/concentratorSub.xsd"

binding.xml and xsd are in the same directory.

Here is a binding.xml fragment

<jxb:bindings schemaLocation="concentratorSub.xsd">
    <jxb:schemaBindings>
        <jxb:package name="com.ats.vis.services.concentrator" />
    </jxb:schemaBindings>
</jxb:bindings>

I'm running out of ideas on how to fix this.

Any help would be assigned. Thanks.

+4

Source: https://habr.com/ru/post/1614562/


All Articles