Closed angrygreenfrogs closed 8 years ago
I think this is something to do with the recent pom/build changes, and something has happened to the jibx compile binding stage:
[INFO] --- jibx-maven-plugin:1.2.6:bind (compile-binding) @ sbbs ---
[INFO] Not running JiBX binding compiler (single-module mode) - no binding files
[INFO]
Basically I found that there's a problem with the jibx-maven-plugin's "compile-binding" task. It was producing a "Should never be called with null root" error when doing the binding process.
I'm fairly certain at this point that the plugin itself has a bug which is not easily resolved without creating a fork of it and further diagnosing the issue.
The plugin is somewhat unmaintained as the most recent release was in Dec 2015.
I've put a work-around (perhaps a permanent one) by directly including a copy of the JiBX tools in tools/jibx, and just directly executing it via maven like this:
<plugin>
<artifactId>exec-maven-plugin</artifactId>
<groupId>org.codehaus.mojo</groupId>
<executions>
<execution>
<id>JiBX Compile Bindings</id>
<phase>process-classes</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>java</executable>
<workingDirectory>${basedir}/target/classes</workingDirectory>
<arguments>
<argument>-cp</argument>
<argument>.:${basedir}/../../../../tools/jibx/support.jar:${basedir}/../../../../tools/jibx/jibx-bind.jar</argument>
<argument>org.jibx.binding.Compile</argument>
<argument>${basedir}/target/generated-sources/binding.xml</argument>
</arguments>
</configuration>
</execution>
</executions>
</plugin>
Resolved in https://github.com/RestComm/gmlc/commit/1e7379ee5431987bea029833cba4c096beb08e91
I'm on the fence about this fix, but the system was unusable at present, so I wanted to put a work-around in place. The downside is that I've directly included the JiBX jar files in tools/jibx, which I would have preferred to avoid, but it was the most direct way to resolve the issue.
I added another issue to discuss a longer-term solution here: https://github.com/RestComm/gmlc/issues/48
@angrygreenfrogs I noticed you were not matching any binding file. But my conf matches 1...
--- jibx-maven-plugin:1.2.6:bind (JiBX Compile Bindings) @ sbbs --- Running JiBX binding compiler (single-module mode) on 1 binding file(s)
Did you have a copy of the plugin conf you were using?
Sending a basic MLP request to the running GMLC is producing an XML binding error from JiBX.