Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 52B61200CC3 for ; Fri, 30 Jun 2017 12:17:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 51FE7160BEB; Fri, 30 Jun 2017 10:17:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 798FC160BDD for ; Fri, 30 Jun 2017 12:17:04 +0200 (CEST) Received: (qmail 90725 invoked by uid 500); 30 Jun 2017 10:17:03 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 90709 invoked by uid 99); 30 Jun 2017 10:17:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Jun 2017 10:17:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 386BEC0157 for ; Fri, 30 Jun 2017 10:17:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id uK0masvoCrU1 for ; Fri, 30 Jun 2017 10:17:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id AC2A55FC1C for ; Fri, 30 Jun 2017 10:17:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 6CAA7E08B4 for ; Fri, 30 Jun 2017 10:17:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2549E245B8 for ; Fri, 30 Jun 2017 10:17:00 +0000 (UTC) Date: Fri, 30 Jun 2017 10:17:00 +0000 (UTC) From: "Dennis Kieselhorst (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CXF-7067) cxf-codegen-plugin version 3.1.x fails to download wsdlArtifact MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 30 Jun 2017 10:17:05 -0000 [ https://issues.apache.org/jira/browse/CXF-7067?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16069841#comment-16069841 ] Dennis Kieselhorst commented on CXF-7067: ----------------------------------------- Thanks for the testcase. I was able to reproduce the issue. While it is working with 3.0.13, it fails with >3.1.x. Reason for that is that Maven core dependencies changed from 2 to 3 and therefore the code was adapted. I've simplified the testcase and applied a fix. AbstractCodegenMoho also uses ProjectDependenciesResolver which is deprecated as of Maven 3.2.2 and should be removed. Maybe we should switch to aether-api. While waiting for the next release you can add the wsdl artifact to the dependency list: {code:xml} ${wsdl.groupid} ${wsdl.artifactid} ${wsdl.version} wsdl {code} > cxf-codegen-plugin version 3.1.x fails to download wsdlArtifact > --------------------------------------------------------------- > > Key: CXF-7067 > URL: https://issues.apache.org/jira/browse/CXF-7067 > Project: CXF > Issue Type: Bug > Components: Build system > Affects Versions: 3.1, 3.1.7 > Reporter: Atle Tokle > Assignee: Dennis Kieselhorst > Fix For: 3.1.13, 3.2.0 > > > I am upgrading my project from using cxf version 3.0.1 to 3.1.7. And have my wsdl's in maven repository. But it fails to download. Have tested that all 3.0.x versions is OK, but 3.1.7 (and 3.1.0) both fails. > Plugin is configured like this: > {code} > > org.apache.cxf > cxf-codegen-plugin > > > generate-sources1 > generate-sources > > > > > no.xxxxxxx.kontrakter.tjeneste.felles.kontekst > soapheaderswrapper > 4.8.0 > > > > > > wsdl2java > > > > > {code} > When it runs, it logs this: > {code} > [INFO] > [INFO] --- cxf-codegen-plugin:3.1.7:wsdl2java (generate-sources1) @ iamhelper-domain-gen --- > Downloading: http://repo.maven.apache.org/maven2/no/xxxxxxx/kontrakter/tjeneste/felles/kontekst/soapheaderswrapper/4.8.0/soapheaderswrapper-4.8.0.wsdl > [INFO] ------------------------------------------------------------------------ > [INFO] BUILD FAILURE > [INFO] ------------------------------------------------------------------------ > [INFO] Total time: 2.455s > [INFO] Finished at: Fri Sep 23 09:41:00 CEST 2016 > [INFO] Final Memory: 13M/300M > [INFO] ------------------------------------------------------------------------ > [ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:3.1.7:wsdl2java (generate-sources1) on project soapheaders-domain-gen: Failed to resolve WSDL artifact no.xxxxxxx.kontrakter.tjeneste.felles.kontekst:soapheaderswrapper:wsdl:4.8.0 -> [Help 1] > [ERROR] > {code} > The same run on 3.0.x version output this: > {code} > [INFO] > [INFO] --- cxf-codegen-plugin:3.0.10:wsdl2java (generate-sources1) @ iamhelper-domain-gen --- > [INFO] Resolved WSDL artifact to file C:\Users\atokle.AD-ONE\.m2\repository\no\xxxxxxx\kontrakter\tjeneste\felles\kontekst\soapheaderswrapper\4.8.0\soapheaderswrapper-4.8.0.wsdl > [INFO] no.xxxxxxx.kontrakter.tjeneste.felles.kontekst:soapheaderswrapper:wsdl:4.9.0:compile resolved to C:\Users\atokle.AD-ONE\.m2\repository\no\xxxxxxx\kontrakter\tjeneste\felles\kontekst\soapheaderswrapper\4.9.0\soapheaderswrapper-4.9.0.wsdl > [INFO] Resolved WSDL artifact to file C:\Users\atokle.AD-ONE\.m2\repository\no\xxxxxxx\kontrakter\tjeneste\felles\kontekst\soapheaderswrapper\4.9.0\soapheaderswrapper-4.9.0.wsdl > [INFO] > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)