why i cant be bothered with maven
Wed, Sep 12, 2007
Yet again, I bang my head against a brick wall. What is happening to open source software? It used to be you could depend on it to at least work. Maven2 is just a pain in the neck.
My problem? I’ve defined the Fedora web services clients generation build using Ant. I’ve used it before and it works very well indeed. Especially since I contributed code to Axis2 to support xsdconfig mappings for XMLBeans data binding.
However, the dependency management is a pain too, so I decided to port it to Maven, using the wsdl2code plugin.
Bad idea. I copied the example from the website and got this error after running mvn wsdl2code:wsdl2code (note the echo-y nature of everything connected to maven!). You have say everything twice. Is it deaf?
org.apache.maven.reactor.MavenExecutionException: Parse error reading POM. Reason: TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen …<configuration>\n \t\t\t\t<databindingName>… @56:26)
turns out the example on the website is broken. So I moved Configuration to the Execution block and tried again. Getting this error next:
The plugin ‘org.apache.maven.plugins:maven-wsdl2code-plugin’ does not exist or no valid version could be found
Wonderful. Maven’s dependency management doesn’t work in this case. Why am I using maven? I really don’t know. The error message urged me to use the -e flag for more information. In true maven style, this just repeats the error. So you say wsdl2code:wsdl2code and you get back error:error.
I did a bit of trawling and came up with this bug report. Reported back in May this year and obviously not yet fixed.
Well, I did try maven but I’m sticking with Ant.