Return-Path: X-Original-To: apmail-maven-users-archive@www.apache.org Delivered-To: apmail-maven-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 09F97101E9 for ; Mon, 28 Oct 2013 12:16:17 +0000 (UTC) Received: (qmail 85813 invoked by uid 500); 28 Oct 2013 12:16:08 -0000 Delivered-To: apmail-maven-users-archive@maven.apache.org Received: (qmail 85736 invoked by uid 500); 28 Oct 2013 12:16:06 -0000 Mailing-List: contact users-help@maven.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Maven Users List" Reply-To: "Maven Users List" Delivered-To: mailing list users@maven.apache.org Received: (qmail 85704 invoked by uid 99); 28 Oct 2013 12:16:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Oct 2013 12:16:04 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= X-Spam-Check-By: apache.org Received-SPF: unknown ~allip4:115.112.240.76 (nike.apache.org: encountered unrecognized mechanism during SPF processing of domain of rajesh.rathore@zensar.in) Received: from [115.112.241.75] (HELO pune1outbound.logix.in) (115.112.241.75) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 28 Oct 2013 12:15:57 +0000 Received: from vdvmphy03-out.logix.in (127.0.0.1) by pune1outbound.logix.in (PowerMTA(TM) v3.5r11) id hdpanq1oo388 for ; Mon, 28 Oct 2013 17:45:26 +0530 (envelope-from ) Received: (qmail 32732 invoked by uid 508); 28 Oct 2013 12:15:04 -0000 Received: from 192.168.5.13 by vdvmphy03.logix.in (envelope-from , uid 500) with qmail-scanner-1.25 ( Clear:RC:1(192.168.5.13):SA:0(IronPort):. Processed in 0.016113 secs); 28 Oct 2013 12:15:04 -0000 Received: from unknown (HELO leo.logix.local) ([192.168.5.13]) (envelope-sender ) by 192.168.5.37 (qmail-ldap-1.03) with SMTP for ; 28 Oct 2013 12:15:03 -0000 X-ORIGINAL-IP: 192.168.105.179 X-ORIGINAL-HOSTNAME: No hostname X-ORIGINAL-TIME: 28 Oct 2013 17:45:02 +0530 X-ORIGINAL-FROM: rajesh.rathore@zensar.in X-ORIGINAL-RECIPIENTS: X-ORIGINAL-ATTACHMENT: X-ORIGINAL-ATTACHMENTSIZE: None x-job: rajesh.rathore@zensar.in X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AqQIACEmXVLAqGmz/2dsb2JhbABaxiwEAoE3dIIlAQEEAQgCHhIUMAcBAwIJDQQEAQEBJwcZCBAVCQgCBAgDBAQBCgUNBIdTAwmzWQ2Ja4xcgTUNGAOBGAaEHwOJOoxgAYFphl+FbYccgUZlfAc X-IPAS-Result: AqQIACEmXVLAqGmz/2dsb2JhbABaxiwEAoE3dIIlAQEEAQgCHhIUMAcBAwIJDQQEAQEBJwcZCBAVCQgCBAgDBAQBCgUNBIdTAwmzWQ2Ja4xcgTUNGAOBGAaEHwOJOoxgAYFphl+FbYccgUZlfAc Received: from unknown (HELO zensar2.logix.local) ([192.168.105.179]) by leo.logix.local with ESMTP; 28 Oct 2013 17:45:02 +0530 Received: from localhost (localhost [127.0.0.1]) by zensar2.logix.local (Postfix) with ESMTP id E67267604BC for ; Mon, 28 Oct 2013 17:45:01 +0530 (IST) X-Virus-Scanned: amavisd-new at zensar.logix.local Received: from zensar2.logix.local ([127.0.0.1]) by localhost (zensar2.logix.local [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5XaK5Ql+pBQO for ; Mon, 28 Oct 2013 17:45:01 +0530 (IST) Received: from DISCW41L0114 (unknown [183.78.186.16]) by zensar2.logix.local (Postfix) with ESMTPSA id BD1B77604A7 for ; Mon, 28 Oct 2013 17:45:01 +0530 (IST) From: "Rajesh Singh Rathore" To: "'Maven Users List'" References: <000d01ced3aa$ba60cc10$2f226430$@zensar.in> <002801ced3d4$6e388b50$4aa9a1f0$@zensar.in> In-Reply-To: Subject: RE: Generate Source problem due to org.jvnet.jaxb2.maven2 plugin 0.4.M3 plugin overriding 0.7.1 Date: Mon, 28 Oct 2013 17:45:01 +0530 Message-ID: <003901ced3d7$53c5e2b0$fb51a810$@zensar.in> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQGqJ6cbY35wFS4vID7K+IA3DRDq7gIiTkCrASlAK0oCBdVH7Joo01qQ Content-Language: en-in X-Virus-Checked: Checked by ClamAV on apache.org Hmmm, I was having v2.2.1 handy so used it and it worked. I have also tried with v3.1.1 but having build errors due to required compiler version and I am not having any control on local maven repository :( Regards, Rajesh Rathore -----Original Message----- From: anders.g.hammar@gmail.com [mailto:anders.g.hammar@gmail.com] On Behalf Of Anders Hammar Sent: 28 October 2013 17:31 To: Maven Users List Subject: RE: Generate Source problem due to org.jvnet.jaxb2.maven2 plugin 0.4.M3 plugin overriding 0.7.1 Strange, Maven 2.2.1 should have the same problem. It was fixed in Maven 3. /Anders (mobile) Den 28 okt 2013 12:55 skrev "Rajesh Singh Rathore" : > Thanks Anders for you reply, I upgraded maven to version 2.2.1 and it > worked like a charm :) > > > > -----Original Message----- > From: anders.g.hammar@gmail.com [mailto:anders.g.hammar@gmail.com] On > Behalf Of Anders Hammar > Sent: 28 October 2013 12:36 > To: Maven Users List > Subject: Re: Generate Source problem due to org.jvnet.jaxb2.maven2 > plugin > 0.4.M3 plugin overriding 0.7.1 > > Yes, Maven 2.0.10 can't handle different plugin classpaths for the modules. > Either align the versions or (preferably) upgrade to Maven 3.0.4+. > > /Anders > > > On Mon, Oct 28, 2013 at 7:55 AM, Rajesh Singh Rathore < > rajesh.rathore@zensar.in> wrote: > > > Hello Everyone, > > > > > > > > I am facing strange problem while generating sources from XSD, I am > > having multiple modules in my project and some of old modules are > > using > > org.jvnet.jaxb2.maven2 plugin 0.4.M3. New module is using version > > 0.7.1 of > > org.jvnet.jaxb2.maven2 plugin. It works fine while building > > independently but fails with existing modules. I suspect that > > version > > 0.7.1 is not picked up at all while building my new module along > > with others, same has been confirmed via console output for generate sources. > > > > > > > > Configuration details : > > > > Maven version : 2.0.10 > > > > JDK : 1.5 > > > > > > > > POM.xml > > > > > > > > > > > > > > ${project.artifactId}-${version} > > > > > > > > > > > > > > org.apache.maven.plugins > > > > > > maven-compiler-plugin > > > > > > > > > > > > 1.5 > > > > > > 1.5 > > > > > > > > > > > > > > > > > > > > org.jvnet.jaxb2.maven2 > > > > > > maven-jaxb2-plugin > > > > > > 0.7.1 > > > > > > > > > > > > > > > > > > -target > > > > > > 2.0 > > > > > > > > > > > > true > > > > > > true > > > > > > true > > > > > > true > > > > > > > > > > > > > > > > > > > > > > > > Schema Generation > > > > > > generate-sources > > > > > > > > > > > > com.rajesh.health.benefit.scheme.schema > ck > > age> > > > > > > > > src\main\resources\com\rajesh\benefit\scheme\wsdl > sc > > hemaDi > > rectory> > > > > > > > > > > > > *.xsd > > > > > > > > > > > > target\generated-sources\xjc\ > > > > > > > > > > > > > > > > > > generate > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Failed Console output > > > > INFO] > > -------------------------------------------------------------------- > > -- > > -- > > > > [INFO] Building BenefitSchemeClientWS > > > > [INFO] task-segment: [clean, generate-sources] > > > > [INFO] > > -------------------------------------------------------------------- > > -- > > -- > > > > [INFO] [clean:clean] > > > > [INFO] Deleting directory D:\Development Dev\CAS\Release\Business > > Services\BenefitSchemeClientWS\target > > > > [INFO] [jaxb2:generate {execution: Schema Generation}] > > > > [INFO] The setting was not defined, assuming > 'AUTODETECT'. > > > > [INFO] The setting was not defined, assuming the > > same as > > : D:\Development Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s > > cheme\ > > wsdl > > > > [INFO] Plugin's mojo parameters: > > > > schemaLanguage: AUTODETECT > > > > schemaDirectory: D:\Development > > Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s > > cheme\ > > wsdl > > > > schemaIncludes: [*.xsd] > > > > schemaExcludes: null > > > > bindingDirectory: D:\Development > > Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s > > cheme\ > > wsdl > > > > bindingIncludes: [*.xjb] > > > > bindingExcludes: null > > > > disableDefaultExcludes: false > > > > catalog: null > > > > defaultPackage: > > com.rajesh.health.benefit.scheme.schema > > > > destinationDirectory: D:\Development > > Dev\CAS\Release\Business > > Services\BenefitSchemeClientWS\target\generated-sources\xjc > > > > forceRegenerate: true > > > > otherDepends: null > > > > removeOldOutput: true > > > > writeCode: true > > > > readOnly: false > > > > extension: true > > > > strict: true > > > > verbose: true > > > > debug: false > > > > xjcArgs: [-target, 2.0, -episode, > > D:\Development Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\target\generated-sources\xjc\META-INF > > \s > > un-jax > > b.episode] > > > > Calculated options: > > > > Schema File(s): [D:\Development > > Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ wsdl\BenefitSchemeDomainTypes-1.0.xsd, D:\Development > > Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ wsdl\BenefitSchemeExceptionMessage-1.0.xsd, D:\Development > > Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ wsdl\BenefitSchemeMessageTypes-1.0.xsd, D:\Development > > Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ wsdl\BenefitSchemeSimpleTypes-1.0.xsd, D:\Development > > Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ > > wsdl\GetMostApplicableSchemeExclusionsRequestMessage-1.0.xsd, > > D:\Development > > Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ > > wsdl\GetMostApplicableSchemeExclusionsResponseMessage-1.0.xsd, > > D:\Development Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ wsdl\IsMemberExcludedRequestMessage-1.0.xsd, > > D:\Development Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ wsdl\IsMemberExcludedResponseMessage-1.0.xsd, > > D:\Development Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s > > cheme\ > > wsdl\SchemeExclusionIsApplicableByDiagnosisIdRequestMessage-1.0.xsd, > > D:\Development Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s > > cheme\ > > wsdl\SchemeExclusionIsApplicableByDiagnosisIdResponseMessage-1.0.xsd > > , D:\Development Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ wsdl\SchemeExclusionIsApplicableRequestMessage-1.0.xsd, > > D:\Development Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ wsdl\SchemeExclusionIsApplicableResponseMessage-1.0.xsd] > > > > Binding File(s): [] > > > > ClassPath: [D:\Development > > Dev\CAS\Release\Business > > Services\BenefitSchemeClientWS\target\classes] > > > > [INFO] Skipped removal of old generateDirectory 'D:\Development > > Dev\CAS\Release\Business > > Services\BenefitSchemeClientWS\target\generated-sources\xjc' since > > it didn't exist. > > > > [INFO] Parsing input schema(s)... > > > > [ERROR] XJC while parsing schema(s) > > > > file:/D:/Development%20Dev/CAS/Release/Business%20Services/BenefitSc > > he > > meClie > > > > ntWS/src/main/resources/za/co/discovery/benefit/scheme/wsdl/BenefitS > > ch > > emeDom > > ainTypes-1.0.xsd[17,39]: org.xml.sax.SAXParseException: > > 'clinicalCodeVO' is already defined > > > > [ERROR] XJC while parsing schema(s) > > > > file:/D:/Development%20Dev/CAS/Release/Business%20Services/BenefitSc > > he > > meClie > > > > ntWS/src/main/resources/za/co/discovery/benefit/scheme/wsdl/BenefitS > > ch > > emeDom > > ainTypes-1.0.xsd[9,41]: org.xml.sax.SAXParseException: (related to > > above > > error) the first definition appears here > > > > > > > > > > > > Successful build while running independently > > > > > > > > [INFO] > > -------------------------------------------------------------------- > > -- > > -- > > > > [INFO] Building BenefitSchemeClientWS > > > > [INFO] task-segment: [clean, generate-sources] > > > > [INFO] > > -------------------------------------------------------------------- > > -- > > -- > > > > [INFO] [clean:clean] > > > > [INFO] Deleting directory D:\Development Dev\CAS\Release\Business > > Services\BenefitSchemeClientWS\target > > > > [INFO] [jaxb2:generate {execution: Schema Generation}] > > > > [INFO] Started execution. > > > > [INFO] JAXB API is loaded from the > > > > > > [jar:file:/D:/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar!]. > > > > [INFO] Detected JAXB API version [2.1]. > > > > [INFO] > > > > pluginArtifacts:[org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-raw:jar:0 > > .7 .1:run time, org.codehaus.plexus:plexus-utils:jar:1.1:runtime, > > org.jfrog.maven.annomojo:maven-plugin-anno:jar:1.3.1:runtime, > > com.sun.xml.bind:jaxb-impl:jar:2.1.10:runtime, > > javax.xml.bind:jaxb-api:jar:2.1:runtime, > > javax.xml.stream:stax-api:jar:1.0-2:runtime, > > javax.activation:activation:jar:1.1:runtime, > > org.jvnet.jaxb2_commons:jaxb-xjc:jar:2.1.10:runtime, > > com.sun.codemodel:codemodel:jar:2.1:runtime, > > com.sun.xml.dtd-parser:dtd-parser:jar:1.0:runtime, > > com.sun.istack:istack-commons-tools:jar:1.1:runtime, > > relaxngDatatype:relaxngDatatype:jar:20020414:runtime, > > com.sun.org.apache.xml.internal:resolver:jar:20050927:runtime, > > org.kohsuke.rngom:rngom:jar:20061207:runtime, > > com.sun.xsom:xsom:jar:20081112:runtime] > > > > [INFO] schemaLanguage:null > > > > [INFO] schemaDirectory:D:\Development Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s > > cheme\ > > wsdl > > > > [INFO] schemaIncludes:[Ljava.lang.String;@16dadf9 > > > > [INFO] schemaExcludes:null > > > > [INFO] bindingDirectory:D:\Development Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s > > cheme\ > > wsdl > > > > [INFO] bindingIncludes:[Ljava.lang.String;@1b8d6f7 > > > > [INFO] bindingExcludes:null > > > > [INFO] disableDefaultExcludes:false > > > > [INFO] catalog:null > > > > [INFO] > > > > catalogResolver:com.sun.org.apache.xml.internal.resolver.tools.Catal > > og > > Resolv > > er > > > > [INFO] generatePackage:com.rajesh.health.benefit.scheme.schema > > > > [INFO] generateDirectory:D:\Development Dev\CAS\Release\Business > > Services\BenefitSchemeClientWS\target\generated-sources\xjc > > > > [INFO] readOnly:false > > > > [INFO] extension:true > > > > [INFO] strict:true > > > > [INFO] writeCode:true > > > > [INFO] verbose:true > > > > [INFO] debug:false > > > > [INFO] args:[-target, 2.0] > > > > [INFO] forceRegenerate:true > > > > [INFO] removeOldOutput:true > > > > [INFO] otherDepends:null > > > > [INFO] episodeFile:D:\Development Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\target\generated-sources\xjc\META-INF > > \s > > un-jax > > b.episode > > > > [INFO] episode:true > > > > [INFO] classpathElements:[D:\Development Dev\CAS\Release\Business > > Services\BenefitSchemeClientWS\target\classes] > > > > [INFO] plugins:null > > > > [INFO] episodes:null > > > > [INFO] xjcPlugins:null > > > > [INFO] episodes:null > > > > [INFO] specVersion:2.1 > > > > [INFO] schemaFiles (calculated):[D:\Development > > Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ wsdl\BenefitSchemeDomainTypes-1.0.xsd, D:\Development > > Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ wsdl\BenefitSchemeExceptionMessage-1.0.xsd, D:\Development > > Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ wsdl\BenefitSchemeMessageTypes-1.0.xsd, D:\Development > > Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ wsdl\BenefitSchemeSimpleTypes-1.0.xsd, D:\Development > > Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ > > wsdl\GetMostApplicableSchemeExclusionsRequestMessage-1.0.xsd, > > D:\Development > > Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ > > wsdl\GetMostApplicableSchemeExclusionsResponseMessage-1.0.xsd, > > D:\Development Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ wsdl\IsMemberExcludedRequestMessage-1.0.xsd, > > D:\Development Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ wsdl\IsMemberExcludedResponseMessage-1.0.xsd, > > D:\Development Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s > > cheme\ > > wsdl\SchemeExclusionIsApplicableByDiagnosisIdRequestMessage-1.0.xsd, > > D:\Development Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s > > cheme\ > > wsdl\SchemeExclusionIsApplicableByDiagnosisIdResponseMessage-1.0.xsd > > , D:\Development Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ wsdl\SchemeExclusionIsApplicableRequestMessage-1.0.xsd, > > D:\Development Dev\CAS\Release\Business > > > > Services\BenefitSchemeClientWS\src\main\resources\com\rajesh\benefit > > \s cheme\ wsdl\SchemeExclusionIsApplicableResponseMessage-1.0.xsd] > > > > [INFO] bindingFiles (calculated):[] > > > > [INFO] xjcPluginArtifacts (resolved):[] > > > > [INFO] xjcPluginFiles (resolved):[] > > > > [INFO] xjcPluginURLs (resolved):[] > > > > [INFO] episodeArtifacts (resolved):[] > > > > [INFO] episodeFiles (resolved):[] > > > > [INFO] The schemaLanguage setting was not defined, assuming 'AUTODETECT'. > > > > Looking for META-INF/services/com.sun.tools.xjc.Plugin for add-ons > > > > Checking > > > > jar:file:/D:/.m2/repository/org/jvnet/jaxb2_commons/jaxb-xjc/2.1.10/ > > ja xb-xjc -2.1.10.jar!/META-INF/services/com.sun.tools.xjc.Plugin > > for an add-on > > > > Attempting to instanciate > > com.sun.tools.xjc.addon.locator.SourceLocationAddOn > > > > Attempting to instanciate > > com.sun.tools.xjc.addon.sync.SynchronizedMethodAddOn > > > > Attempting to instanciate > > com.sun.tools.xjc.addon.at_generated.PluginImpl > > > > Attempting to instanciate com.sun.tools.xjc.addon.episode.PluginImpl > > > > [INFO] Parsing input schema(s)... > > > > [INFO] Compiling input schema(s)... > > > > [INFO] Writing output to [D:\Development Dev\CAS\Release\Business > > Services\BenefitSchemeClientWS\target\generated-sources\xjc]. > > > > Regards, > > > > Rajesh Rathore > > > > > > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org > For additional commands, e-mail: users-help@maven.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@maven.apache.org For additional commands, e-mail: users-help@maven.apache.org