CentEAP / eap-build

Build scripts for EAP 6 or 7
122 stars 62 forks source link

Fail to build EAP 7 on CentOS 6 #108

Closed yeroc closed 6 years ago

yeroc commented 6 years ago

I've been unsuccessful in my attempts to build either EAP 7.1.1 or 7.1.2. In both cases the build fails on the same dependency:

[WARNING] The POM for org.wildfly.core:wildfly-core-model-test-framework:jar:3.0.13.Final-redhat-1 is missing, no dependency information available

NOTE: The version of the artifact differs between 7.1.1 and 7.1.2 but the end result is the same.

yeroc commented 6 years ago

Looking at this some more, it looks like the build script tries to remove this dependency but it's not working:

$ ./build-eap7.sh 
Here we go. Building EAP version 7.1.2.
File jboss-eap-7.1.2-src.zip already here. No need to download it again.
download/jboss-eap-7.1.2-src.zip: OK
Checksum verified for jboss-eap-7.1.2-src.zip
Unzipping jboss-eap-7.1.2-src.zip
jboss-eap-7.1.2-src.zip unzipped
Undefined namespace prefix: //_:dependency[_:artifactId='jboss-server-migration-eap7.1-feature-pack']
Invalid expression: //_:dependency[_:artifactId='jboss-server-migration-eap7.1-feature-pack']
Undefined namespace prefix: //_:feature-pack[@artifactId='jboss-server-migration-eap7.1-feature-pack']
Invalid expression: //_:feature-pack[@artifactId='jboss-server-migration-eap7.1-feature-pack']
File wildfly-core-parent-3.0.10.Final-source-release.zip already here. No need to download it again.
download/wildfly-core-parent-3.0.10.Final-source-release.zip: OK
Checksum verified for wildfly-core-parent-3.0.10.Final-source-release.zip
Unzipping wildfly-core-parent-3.0.10.Final-source-release.zip
wildfly-core-parent-3.0.10.Final-source-release.zip unzipped
Undefined namespace prefix: //_:dependency[_:artifactId='wildfly-core-model-test-framework']
Invalid expression: //_:dependency[_:artifactId='wildfly-core-model-test-framework']
Undefined namespace prefix: //_:copy-artifact[@artifact='org.wildfly.openssl:wildfly-openssl-macosx-x86_64']
Invalid expression: //_:copy-artifact[@artifact='org.wildfly.openssl:wildfly-openssl-macosx-x86_64']
Launching Maven build for core-feature-pack
Error in Maven build for core-feature-pack

Build failed. You may have a look at the work/build.log file, maybe you'll find the reason why it failed.
yeroc commented 6 years ago

Looks like the version of xmlstarlet available on my machine (CentOS 6 + EPEL) doesn't support the options being used in the build script. Any idea what the minimum xmlstarlet version is?

hasalex commented 6 years ago

It looks like xmlstarlet 1.3.1 does not understand _ as the default namespace. According to the documentation, it has been introduced in version 1.5.0.

A workaround could be found with the -N option.