问题
For various reasons I need to try out the jaxws21 frontent in my build. So I followed the tip on this answer, adding to the wsdl options:
<extraargs>
<extraarg>-fe</extraarg>
<extraarg>jaxws21</extraarg>
</extraargs>
But my build complains:
Could not find jaxws21 frontend within classpath
How do I resolve this?
BTW, my pom.xml includes:
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.2.8</version>
</dependency>
Could this be the culprit? If so, which version should I be changing it to?
UPDATE: I tried changing (in that dependency) 2.2.8
to 2.1
but I am still getting this same exact error.
回答1:
Yup. That was it. The -fe
flag is only accepted from CXF 2.3.3 and higher (I was using 2.2.7)
来源:https://stackoverflow.com/questions/14141902/could-not-find-jaxws21-frontend-within-classpath