Re: maven jaxb plugin
On Wed September 30 2009 4:06:43 am Christian Schneider wrote: > Hi all, > > there is a thread in the user list about the cxf-common-xsd plugin. > There is also the maven jaxb plugin: > https://jaxb.dev.java.net/jaxb-maven2-plugin/ > > Does anyone know what the differences are? Which plugin should we advise > to use? Well, I PERSONALLY would recommend the CXF one for a couple reasons: 1) It's available at central. You don't need to configure java.net repo to get it. I HIGHLY advise people to NOT configure in java.net whenever possible. Having java.net repo configured in is a recipe for disaster. 2) It uses newer versions of JAXB. This is one of the main reasons we wrote our own. We KNOW we are using the version of JAXB that we test with for all of CXF. One difference is that there is a "delete dirs" to post delete some schemas that you didn't really want generated. (like stuff that is generated in multiple places) Ideally, you would use a binding file to turn off generation of the stuff to begin with, but that requires binding files to maintain and such.The cxf version also allows specifying dependent files (like files that the xsd imports) that if they change, the plugin will re-run the xjc. Nothing major. > The jaxb-maven2-plugin is not on ibilio. Does anyone know why? They say > they plan to add it since ages. Mostly cause the Sun folks are incapable of running a decent maven repository. Thus, central refuses to sync from them automatically so anything synced over has to be done manually, which obviously means it doesn't get done. :-) Seriously, anything CXF needs, I do sync over manually (I have the power!). Thus, we don't need java.net in our builds anymore. That's important. We did have java.net in our poms for a while and they managed to break our builds on three separate occasions by re-releasing artifacts with the same version numbers that really were not compatible. Using a three strike rule, the third time it happened, I removed them.I know the artifacts at central don't change. -- Daniel Kulp dk...@apache.org http://www.dankulp.com/blog
Re: maven jaxb plugin
On Wed September 30 2009 4:55:10 am Christian Schneider wrote: > To understand the cxf-common-xsd maven plugin I just had a look into the > code and found one interesting thing. > The pom of this project has a dependency to cxf-common-utilities but I > was able to remove this dependency without getting errors on mvn install. > Is this dependency really necessary? It would be great if we could > remove it as it pulls in many jars. It was needed long ago as we attempted to do some timestamp things and such which really didn't work well. When that was removed, the dependency could have been removed as well. Feel free to do so. Dan > > Greetings > > Christian > > Christian Schneider schrieb: > > Hi all, > > > > there is a thread in the user list about the cxf-common-xsd plugin. > > There is also the maven jaxb plugin: > > https://jaxb.dev.java.net/jaxb-maven2-plugin/ > > > > Does anyone know what the differences are? Which plugin should we > > advise to use? > > > > The jaxb-maven2-plugin is not on ibilio. Does anyone know why? They > > say they plan to add it since ages. > > > > Greetings > > > > Christian > -- Daniel Kulp dk...@apache.org http://www.dankulp.com/blog
Re: [jira] Updated: (CXF-2452) DOSGI CXF Distributed Software Bundle (1.1.0.SNAPSHOT) fails on startup
As it happens, the current jsr311-api 1.1 specs is missing a factory finder so the patch will be applied to it in the next few days, and I've sent Aaron a locally build jar... Aaron, Josh - thanks for experimenting with the latest and greatest bundles :-) and helping to spot the issue with the specs cheers, Sergey - Original Message - From: "Sergey Beryozkin" To: Sent: Tuesday, September 29, 2009 3:59 PM Subject: Re: [jira] Updated: (CXF-2452) DOSGI CXF Distributed Software Bundle (1.1.0.SNAPSHOT) fails on startup Actually, can you please reinstall [ 27] [Active ] [4] Apache CXF Bundle Jar (2.3.0.SNAPSHOT) and [ 29] [Resolved ] [4] CXF Distributed Software Bundle (1.1.0.SNAPSHOT) Oh...Apache CXF Bundle Jar (2.3.0.SNAPSHOT). It actually depends on jaxrs-api 1.1 now. I'm presuming you've replaced CXF-2.2.3 with the latest one. So then please uninstall [ 45] [Active ] [2] Apache ServiceMix Specs :: JSR311 API 1.0 (1.3.0) and install http://svn.apache.org/repos/asf/servicemix/smx4/specs/trunk/jsr311-api-1.1/ it should make a difference. cheers, Sergey - Original Message - From: "Sergey Beryozkin" To: Sent: Tuesday, September 29, 2009 3:52 PM Subject: Re: [jira] Updated: (CXF-2452) DOSGI CXF Distributed Software Bundle (1.1.0.SNAPSHOT) fails on startup I can't open the JIRA due to a timeout. Yes, I've seen Josh reporting a similar issue and I did verify I could start the cleanly build DOSGi distribution in Equinox 3.5. I'm just thinking, can it be an ordering issue ? In the bundles list you posted a JAXRS bundle is listed after a CXF DSW bundle. That probably should not make a difference but apparently java version "1.6.0_15" Java(TM) SE Runtime Environment (build 1.6.0_15-b03-226) Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-92, mixed mode) causes some early resolution ? Can you please uninstall CXF-DSW bundle and then install it again, so that it definitely has JAXRS classes available to it ? Another possibility is that some of the system bundles have say Jersey embedded ? thanks, Sergey - Original Message - From: "Aaron Zeckoski (JIRA)" To: Sent: Tuesday, September 29, 2009 3:39 PM Subject: [jira] Updated: (CXF-2452) DOSGI CXF Distributed Software Bundle (1.1.0.SNAPSHOT) fails on startup [ https://issues.apache.org/jira/browse/CXF-2452?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Aaron Zeckoski updated CXF-2452: Description: One of the DOSGI bundles is failing to startup using Felix 2.0 as the container The exception and ps info from felix will be added in comments Here is the log of the attempt to startup and the exception at the end: http://pastebin.com/m4da7142 Some tracing shows that this seems to fail when felix tries to load the org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean class and is unable to load the javax.ws.rs.WebApplicationException class. The constructor called here is never actually reached. JAXRSServerFactoryBean factory = new JAXRSServerFactoryBean(); was: One of the DOSGI bundles is failing to startup using Felix 2.0 as the container The exception and ps info from felix will be added in comments Here is the log of the attempt to startup and the exception at the end: http://pastebin.com/m4da7142 DOSGI CXF Distributed Software Bundle (1.1.0.SNAPSHOT) fails on startup --- Key: CXF-2452 URL: https://issues.apache.org/jira/browse/CXF-2452 Project: CXF Issue Type: Bug Components: Distributed-OSGi Affects Versions: dOSGi-1.1 Environment: adz20:~ azeckoski$ java -version java version "1.6.0_15" Java(TM) SE Runtime Environment (build 1.6.0_15-b03-226) Java HotSpot(TM) 64-Bit Server VM (build 14.1-b02-92, mixed mode) Reporter: Aaron Zeckoski Priority: Critical Fix For: dOSGi-1.1 One of the DOSGI bundles is failing to startup using Felix 2.0 as the container The exception and ps info from felix will be added in comments Here is the log of the attempt to startup and the exception at the end: http://pastebin.com/m4da7142 Some tracing shows that this seems to fail when felix tries to load the org.apache.cxf.jaxrs.AbstractJAXRSFactoryBean class and is unable to load the javax.ws.rs.WebApplicationException class. The constructor called here is never actually reached. JAXRSServerFactoryBean factory = new JAXRSServerFactoryBean(); -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.
Re: maven jaxb plugin
To understand the cxf-common-xsd maven plugin I just had a look into the code and found one interesting thing. The pom of this project has a dependency to cxf-common-utilities but I was able to remove this dependency without getting errors on mvn install. Is this dependency really necessary? It would be great if we could remove it as it pulls in many jars. Greetings Christian Christian Schneider schrieb: Hi all, there is a thread in the user list about the cxf-common-xsd plugin. There is also the maven jaxb plugin: https://jaxb.dev.java.net/jaxb-maven2-plugin/ Does anyone know what the differences are? Which plugin should we advise to use? The jaxb-maven2-plugin is not on ibilio. Does anyone know why? They say they plan to add it since ages. Greetings Christian -- Christian Schneider --- http://www.liquid-reality.de
maven jaxb plugin
Hi all, there is a thread in the user list about the cxf-common-xsd plugin. There is also the maven jaxb plugin: https://jaxb.dev.java.net/jaxb-maven2-plugin/ Does anyone know what the differences are? Which plugin should we advise to use? The jaxb-maven2-plugin is not on ibilio. Does anyone know why? They say they plan to add it since ages. Greetings Christian -- Christian Schneider --- http://www.liquid-reality.de