Comments (6)
Hi.
Can I have the command you executed? Which version of Gradle are you using?
from clearth.
hi Vladimir,
please see the command and full build log below. Gradle v5.5
`MacBook-Air:clearth-master Alex$ ./gradlew clean build publish
Task :clearth-core:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Task :clearth-core:compileTestJava
Note: /Users/Alex/Work/clearth-master/clearth-core/src/test/java/com/exactprosystems/clearth/automation/SchedulerTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Task :clearth-modules:clearth-swift:generateJavaFromXsd FAILED
[ant:xjc] [ERROR] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '301 Moved Permanently'.
[ant:xjc] line 2 of http://exactpro.com/clearth/message/message.xsd
[ant:xjc]
[ant:xjc] [ERROR] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '301 Moved Permanently'.
[ant:xjc] line 4 of http://exactpro.com/clearth/message/message.xsd
[ant:xjc]
[ant:xjc] [ERROR] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'nginx'.
[ant:xjc] line 5 of http://exactpro.com/clearth/message/message.xsd
[ant:xjc]
[ant:xjc] [ERROR] The element type "hr" must be terminated by the matching end-tag "".
[ant:xjc] line 6 of http://exactpro.com/clearth/message/message.xsd
[ant:xjc]
FAILURE: Build failed with an exception.
-
Where:
Build file '/Users/Alex/Work/clearth-master/clearth-modules/clearth-swift/build.gradle' line: 22 -
What went wrong:
Execution failed for task ':clearth-modules:clearth-swift:generateJavaFromXsd'.
unable to parse the schema. Error messages should have been provided
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. -
Get more help at https://help.gradle.org
BUILD FAILED in 21s
25 actionable tasks: 19 executed, 6 up-to-date
`
from clearth.
Thank you.
I can see this issue only when clearth-core/xsd/message.cat is absent or when I modify clearth-modules/clearth-swift/build.gradle to point to unexpected location of message.cat.
Haven't you modified any files of the project? Probably, some files are missing. Please check that clearth-core/xsd/message.cat is present.
from clearth.
Thank you.
I can see this issue only when clearth-core/xsd/message.cat is absent or when I modify clearth-modules/clearth-swift/build.gradle to point to unexpected location of message.cat.Haven't you modified any files of the project? Probably, some files are missing. Please check that clearth-core/xsd/message.cat is present.
I didn't change any of the files or their location. message.cat is in place and file locations in build.gradle seem correct however the issue still occurs. As I see the error text refers to message.xsd ill format.
from clearth.
I have resolved it by swapping xmlns and targetNamespace definitions in message.xsd. It makes sense because artefacts can't be defined before the actual name space that keeps them.
before:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
jaxb:version="2.1"
xmlns="http://exactpro.com/clearth/message"
targetNamespace="http://exactpro.com/clearth/message">
after:
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
jaxb:version="2.1"
targetNamespace="http://exactpro.com/clearth/message"
xmlns="http://exactpro.com/clearth/message">
from clearth.
Ok, thank you for these details.
from clearth.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clearth.