RE: How to get jaxb2-maven-plugin to generate equals method
Your question appears to be purely a jaxb question and has nothing to do with Maven or the Maven 2 jaxb plugin. Please join the jaxb users mailing list here. https://jaxb.dev.java.net/ and post your detailed question there. The more you detail your question with precise and relevant information the more likely you will get a helpful response. -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Monday, June 05, 2006 12:02 AM To: Maven Users List Subject: Re: How to get jaxb2-maven-plugin to generate equals method Jonhathan, It is jaxb2-maven-plugin at mojo.codehaus.org. I successfully got that plugin to generate java classes from my xsd file. but The classes do not have equals methods. -Dan On 6/4/06, Jonathan Johnson <[EMAIL PROTECTED]> wrote: > > Dan, > > Are you referring to the maven 2 plugin for jaxb found here > https://jaxb.dev.java.net/jaxb-maven2-plugin/? > > Your question is terribly vague and confusing. Perhaps you have a > question > that should be placed on the JAXB users list instead of the maven users > list. > > -Original Message- > From: dan tran [mailto:[EMAIL PROTECTED] > Sent: Sunday, June 04, 2006 12:48 AM > To: Maven Users List > Subject: How to get jaxb2-maven-plugin to generate equals method > > From the i dont find any clue on how to do this. > > Suggestions are greatly appreciated. > > -D > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: How to get jaxb2-maven-plugin to generate equals method
Dan, Are you referring to the maven 2 plugin for jaxb found here https://jaxb.dev.java.net/jaxb-maven2-plugin/? Your question is terribly vague and confusing. Perhaps you have a question that should be placed on the JAXB users list instead of the maven users list. -Original Message- From: dan tran [mailto:[EMAIL PROTECTED] Sent: Sunday, June 04, 2006 12:48 AM To: Maven Users List Subject: How to get jaxb2-maven-plugin to generate equals method >From the i dont find any clue on how to do this. Suggestions are greatly appreciated. -D - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Maven2 with JAXB 2.0
Greetings Franz, Sorry for the delayed reply. To answer some of your questions. - Im not getting the script error with my IE6. Noone else has reported a problem. Are your still getting this error? - Thank you for the pom dependency and groupid standards guidelines. Ill see if the java.net/JAXB/Sun folks can update them. Kohsuke and all are back from their break and he is seeing these messages. - If you see a way to slim the dependency definitions please let me know. Especially in the instructions where I would really like to shorten and keep simple. Has the plugin helped you? Any questions? - Jonathan -Original Message- From: Franz Fehringer [mailto:[EMAIL PROTECTED] Sent: Friday, May 19, 2006 3:06 AM To: [EMAIL PROTECTED] Cc: Maven Users List Subject: Re: Maven2 with JAXB 2.0 Hello Jonathan, I have still a few points, * If i access http://jaxb.dev.java.net/jaxb-maven2-plugin/ with IE6 (latest patches applied) i get (free translation from the original german error message) line 316 object required. The M$ script debugger shows the line for( n=dd.parentNode.previousSibling; n!=null; n=n.previousSibling ) { with n=dd.parentNode.previousSibling highlighted. * According to [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> citing http://www.mavenregistry.com/search/artifacts?hl=en&q=jsr173&btnG=Search+Reg istry <http://www.mavenregistry.com/search/artifacts?hl=en&q=jsr173&btnG=Search+Re gistry> javax.xml.bind should be only javax.xml and com.sun.xml.bind should be only com.sun.xml (but this would not match your directory names??). * On http://jaxb.dev.java.net/jaxb-maven2-plugin/ you still have jaxb jaxb-impl 2.0-SNAPSHOT Why not com.sun.xml.bind jaxb-impl 2.0 ?? * The jaxb dependencies shown on http://jaxb.dev.java.net/jaxb-maven2-plugin/ are also in the pom from the downloaded zip https://jaxb.dev.java.net/jaxb-maven2-plugin/maven-jaxb-plugin-1.0.zip. Why list them twice; or the other way round: can i omit them from my pom.xml? Greetings Franz Jonathan Johnson schrieb: Kohsuke The pom here https://maven-repository.dev.java.net/repository/com.sun.xml.bind/poms/jaxb- impl-2.0.pom needs the activation.jar version to be change from 1.0.2 to 1.1. Franz your comments were helpful, I have cleaned up the instructions. The instructions for using the JAXB Maven 2 plugin are here http://jaxb.dev.java.net/jaxb-maven2-plugin/ You also asked why this plugin is dependent on ant. This plugin depends on the jars ant since it delegates to the com.sun.tools.xjc.XJC2Task which requires the ant jar (currently 1.6.5). You also mentioned >> I sit behind a proxy and have difficulties accessing https sites with Maven2 (http works perfect). >> Also, why not reorganize the repository making obsolete? Kohsuke Kawaguchi and the folks at Sun are working on updating the java.net Maven 2 repository. He should be seeing this request. See Kohsukes comments in his blog http://weblogs.java.net/blog/kohsuke/
RE: Maven2 versus JAXB
The java.net repository pom for jsr173_api is here https://maven-repository.dev.java.net/repository/javax.xml.bind/poms/jsr173_ api-1.0.pom and it has a jaxb that's why the JAXB 2.0 maven plugin uses the reference jaxb and not javax.xml.bind. Kohsuke Kawaguchi may want to look at the java.net repository and update the group ids based on the policy referral below. Thanks all. -Original Message- From: Jörg Schaible [mailto:[EMAIL PROTECTED] Sent: Thursday, May 18, 2006 3:47 AM To: Maven Users List; [EMAIL PROTECTED] Subject: RE: Maven2 versus JAXB Please note, that the policy for the groupId is "javax.xml" and "com.sun.xml" only. See also http://www.mavenregistry.com/search/artifacts?hl=en&q=jsr173&btnG=Search+Reg istry From: Franz Fehringer Sent: Thursday, May 18, 2006 8:55 AM To: [EMAIL PROTECTED] Cc: Maven Users List Subject: Re: Maven2 versus JAXB Also, in the downloaded maven-jaxb-plugin-1.0.pom jaxb jsr173_api 1.0 should read javax.xml.bind jsr173_api 1.0 Is btw the ant dependency really needed? Greetings Franz Franz Fehringer schrieb: Hello Jonathan, I think the explanations on https://jaxb.dev.java.net/jaxb-maven2-plugin/ are still incorrect. jaxb jaxb-api 2.0-SNAPSHOT should read javax.xml.bind jaxb-api 2.0 and jaxb jaxb-impl 2.0-SNAPSHOT should read com.sun.xml.bind jaxb-impl 2.0 Greetings Franz Jonathan Johnson schrieb: Franz, Thank you for finding the dependency version and location problems in the recent JAXB Maven 2 plugin. The versions have all been updated and an updated plugin has been posted. The instructions for using the JAXB Maven 2 plugin are here http://jaxb.dev.java.net/jaxb-maven2-plugin/ - Jonathan -Original Message- From: Franz Fehringer [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 11:22 AM To: Maven Users List Cc: [EMAIL PROTECTED] Subject: Re: Maven2 versus JAXB Thanks. The 1.1 option has the slight problem that the referenced poms also still reference the 1.0.2 version, for example https://maven-repository.dev.java.net/repository/com .sun.xml.bind/poms/jaxb- impl-2.0.pom has javax.xml.bind activation 1.0.2 But for the moment i am stuck with nonworking https proxy support (only http works for me; i wrote another mail about this). Greetings Franz Alexandre Poitras schrieb: On 5/17/06, Franz Fehringer <[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]> wrote: Thanks, Now i get (legacy reenabled) D:\projekte\Maven2\iso-app>mvn -U install [INFO] Scanning for projects... [INFO] - --- [INFO] Building Maven Quick Start Archetype [INFO]task-segment: [install] [INFO] - --- [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from central [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking
RE: Maven2 versus JAXB
Franz, Thank you for finding the dependency version and location problems in the recent JAXB Maven 2 plugin. The versions have all been updated and an updated plugin has been posted. The instructions for using the JAXB Maven 2 plugin are here http://jaxb.dev.java.net/jaxb-maven2-plugin/ - Jonathan -Original Message- From: Franz Fehringer [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 17, 2006 11:22 AM To: Maven Users List Cc: [EMAIL PROTECTED] Subject: Re: Maven2 versus JAXB Thanks. The 1.1 option has the slight problem that the referenced poms also still reference the 1.0.2 version, for example https://maven-repository.dev.java.net/repository/com.sun.xml.bind/poms/jaxb- impl-2.0.pom has javax.xml.bind activation 1.0.2 But for the moment i am stuck with nonworking https proxy support (only http works for me; i wrote another mail about this). Greetings Franz Alexandre Poitras schrieb: > On 5/17/06, Franz Fehringer <[EMAIL PROTECTED]> wrote: >> Thanks, >> >> Now i get (legacy reenabled) >> >> D:\projekte\Maven2\iso-app>mvn -U install >> [INFO] Scanning for projects... >> [INFO] >> - --- >> >> [INFO] Building Maven Quick Start Archetype >> [INFO]task-segment: [install] >> [INFO] >> - --- >> >> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin: >> checking for updates from central >> [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin: checking >> for updates from central >> [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin: checking >> for updates from central >> [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking for >> updates from central >> [INFO] artifact org.apache.maven.plugins:maven-install-plugin: checking >> for updates from central >> [INFO] artifact com.sun.tools.xjc.maven2:maven-jaxb-plugin: checking for >> updates from central >> Downloading: >> https://maven-repository.dev.java.net/nonav/repository/jaxb/poms/activation- 1.0.2.pom >> >> [INFO] >> >> [ERROR] BUILD ERROR >> [INFO] >> >> [INFO] Error building POM (may not be this project's POM). >> Same with mvn -U compile. >> There is no >> https://maven-repository.dev.java.net/nonav/repository/jaxb/poms/activation- 1.0.2.pom >> >> but >> https://maven-repository.dev.java.net/repository/javax.activation/poms/activ ation-1.1.pom >> >> So it seems the downloadable plugin does not match the directory >> structure anymore?! > > Your problem is that before activation 1.1, the license forbidded to > deploy it in a global repository. See > http://maven.apache.org/guides/mini/guide-coping-with-sun-jars.html > for more info. > > So basically, you have two choices, either change the plugin .pom file > to depend on the 1.1 release or install the 1.0.2 release manually in > your local repository. It should do the trick. > > > >> Btw. i do not understand "run 'mvn install' on the plugin pom". >> The plugin contains no pom.xml and without it i cannot run mvn? >> > > Ah forget it, I thought the plugin was coming with the source. > >> Greetings >> >> Franz >> >> Alexandre Poitras schrieb: >> > Your answer is in the download section of your link : >> > >> > Download >> > >> > This plugin will be added to the Maven 2 ibiblio repository and also >> > to the java.net repository but we would like your feedback first. If >> > you have praises or problems with this plugin please post your email >> > by joining the mailing list for [EMAIL PROTECTED] by registering >> > here https://jaxb.dev.java.net/servlets/ProjectMailingListList. >> > >> > In the meantime you can download the lastest plugin version from this >> > link and expand the .zip contents into your local >> > %HOMEPATH%/.m2/repository directory. >> > >> > So download it and run 'mvn install' on the plugin pom. Should work >> > afterward. >> > >> > On 5/17/06, Franz Fehringer <[EMAIL PROTECTED]> wrote: >> >> Hello, >> >> >> >> I followed the instructions on >> >> https://jaxb.dev.java.net/jaxb-maven2-plugin/ without success. >> >> On mvn -U compile i get >> >> ERROR] BUILD ERROR >> >> INFO] >> >> >> >> >> INFO] The plugin 'com.sun.tools.xjc.maven2:maven-jaxb-plugin' does >> not >> >> exist or no valid version could be found >> >> This is with Maven 2.0.4. >> >> There is neither com.sun.tools.xjc.maven2 nor maven-jaxb-plugin on >> >> https://maven-repository.dev.java.net/repository, >> >> but there are javax.xml.bind and maven-javanet-plugin. >> >> Could i use these in an appropriate way (how?)? >> >> My pom.xml is >> >> >> >> http://maven.apache.org/POM/4.0.0"; >> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >> >> xsi:schemaLocation="http://maven.apache.org/POM/4.0
Update for Maven plugin list
An update for the Maven plugin list.. A new JAXB plugin for Maven 2 is under construction. Alpha release expected this week. Plugin: Maven jaxb Plug-in Author for m2 version Jonathan Johnson --- Anyone have information or status of the JNLP Maven 2 plugin? Jerome Locoste is slated to be working on it.