You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by "Lei.L.Wang (lab.xa01.Newegg)" <Le...@newegg.com> on 2012/11/16 04:13:01 UTC
Help me,Thanks.
Dear all:
When I import the samples of cxf(2.7.0) to eclipse(version :Helios Service Release 1) with maven(3.0.3)
An error occurred in pom.xml : Project build error: Failed to determine Java version for profile jdk17 . so it build failed.
I appreciative if someone give me some help。
Lei.Wang
Thank you!
答复: Help me,Thanks.
Posted by "Lei.L.Wang (lab.xa01.Newegg)" <Le...@newegg.com>.
I am using Eclipse m2e plugin and JDK6 . but still build failed.
-----邮件原件-----
发件人: Lei.L.Wang (lab.xa01.Newegg) [mailto:Lei.L.Wang@newegg.com]
发送时间: 2012年11月16日 13:38
收件人: users@cxf.apache.org
主题: 答复: Help me,Thanks.
Thanks for all of yours help. I am using jdk6. But still not work for me. :(
-----邮件原件-----
发件人: jasonmpell@gmail.com [mailto:jasonmpell@gmail.com]
发送时间: 2012年11月16日 11:57
收件人: users@cxf.apache.org
主题: Re: Help me,Thanks.
Try running eclipse with jdk 6. Its a pain but that should work.
I have not tried java 7 with cxf
Sent from my Galaxy S2
On Nov 16, 2012 2:55 PM, "Jason Pell" <jp...@apache.org> wrote:
> The m2eclipse works fine with jdk 6. Make sure you use the m2eclipse
> profile in advanced when importing.
>
> Also a good idea to perform a full maven build from command line first
> so all deps are local
>
> Sent from my Galaxy S2
> On Nov 16, 2012 2:33 PM, "Glen Mazza" <gm...@talend.com> wrote:
>
>> Are you using command prompt or the Eclipse m2e plugin? If you run
>> mvn eclipse:eclipse from a command prompt window in the samples
>> folder, you should be able to subsequently import whatever projects
>> desired into
>> Eclipse:
>> http://www.jroller.com/gmazza/entry/web_service_tutorial#EclipseSetup.
>>
>> The Eclipse m2e plugin (which I don't use) as I understand will work
>> so long as you have only JDK 7 on your machine. I have some updates
>> to do to the samples (drop them down to JAX-WS 2.1) so m2e will work
>> also with JDK 6.
>>
>> Glen
>>
>> On 11/15/2012 10:13 PM, Lei.L.Wang (lab.xa01.Newegg) wrote:
>> > Dear all:
>> >
>> > When I import the samples of cxf(2.7.0) to eclipse(version :Helios
>> Service Release 1) with maven(3.0.3)
>> > An error occurred in pom.xml : Project build error: Failed to
>> determine Java version for profile jdk17 . so it build failed.
>> >
>> > I appreciative if someone give me some help。
>> > Lei.Wang
>> > Thank you!
>> >
>>
>>
>> --
>> Glen Mazza
>> Talend Community Coders - coders.talend.com
>> blog: www.jroller.com/gmazza
>>
>>
答复: Help me,Thanks.
Posted by "Lei.L.Wang (lab.xa01.Newegg)" <Le...@newegg.com>.
Thanks for all of yours help. I am using jdk6. But still not work for me. :(
-----邮件原件-----
发件人: jasonmpell@gmail.com [mailto:jasonmpell@gmail.com]
发送时间: 2012年11月16日 11:57
收件人: users@cxf.apache.org
主题: Re: Help me,Thanks.
Try running eclipse with jdk 6. Its a pain but that should work.
I have not tried java 7 with cxf
Sent from my Galaxy S2
On Nov 16, 2012 2:55 PM, "Jason Pell" <jp...@apache.org> wrote:
> The m2eclipse works fine with jdk 6. Make sure you use the m2eclipse
> profile in advanced when importing.
>
> Also a good idea to perform a full maven build from command line first
> so all deps are local
>
> Sent from my Galaxy S2
> On Nov 16, 2012 2:33 PM, "Glen Mazza" <gm...@talend.com> wrote:
>
>> Are you using command prompt or the Eclipse m2e plugin? If you run
>> mvn eclipse:eclipse from a command prompt window in the samples
>> folder, you should be able to subsequently import whatever projects
>> desired into
>> Eclipse:
>> http://www.jroller.com/gmazza/entry/web_service_tutorial#EclipseSetup.
>>
>> The Eclipse m2e plugin (which I don't use) as I understand will work
>> so long as you have only JDK 7 on your machine. I have some updates
>> to do to the samples (drop them down to JAX-WS 2.1) so m2e will work
>> also with JDK 6.
>>
>> Glen
>>
>> On 11/15/2012 10:13 PM, Lei.L.Wang (lab.xa01.Newegg) wrote:
>> > Dear all:
>> >
>> > When I import the samples of cxf(2.7.0) to eclipse(version :Helios
>> Service Release 1) with maven(3.0.3)
>> > An error occurred in pom.xml : Project build error: Failed to
>> determine Java version for profile jdk17 . so it build failed.
>> >
>> > I appreciative if someone give me some help。
>> > Lei.Wang
>> > Thank you!
>> >
>>
>>
>> --
>> Glen Mazza
>> Talend Community Coders - coders.talend.com
>> blog: www.jroller.com/gmazza
>>
>>
Re: Help me,Thanks.
Posted by ja...@gmail.com.
Try running eclipse with jdk 6. Its a pain but that should work.
I have not tried java 7 with cxf
Sent from my Galaxy S2
On Nov 16, 2012 2:55 PM, "Jason Pell" <jp...@apache.org> wrote:
> The m2eclipse works fine with jdk 6. Make sure you use the m2eclipse
> profile in advanced when importing.
>
> Also a good idea to perform a full maven build from command line first so
> all deps are local
>
> Sent from my Galaxy S2
> On Nov 16, 2012 2:33 PM, "Glen Mazza" <gm...@talend.com> wrote:
>
>> Are you using command prompt or the Eclipse m2e plugin? If you run mvn
>> eclipse:eclipse from a command prompt window in the samples folder, you
>> should be able to subsequently import whatever projects desired into
>> Eclipse:
>> http://www.jroller.com/gmazza/entry/web_service_tutorial#EclipseSetup.
>>
>> The Eclipse m2e plugin (which I don't use) as I understand will work so
>> long as you have only JDK 7 on your machine. I have some updates to do
>> to the samples (drop them down to JAX-WS 2.1) so m2e will work also with
>> JDK 6.
>>
>> Glen
>>
>> On 11/15/2012 10:13 PM, Lei.L.Wang (lab.xa01.Newegg) wrote:
>> > Dear all:
>> >
>> > When I import the samples of cxf(2.7.0) to eclipse(version :Helios
>> Service Release 1) with maven(3.0.3)
>> > An error occurred in pom.xml : Project build error: Failed to
>> determine Java version for profile jdk17 . so it build failed.
>> >
>> > I appreciative if someone give me some help。
>> > Lei.Wang
>> > Thank you!
>> >
>>
>>
>> --
>> Glen Mazza
>> Talend Community Coders - coders.talend.com
>> blog: www.jroller.com/gmazza
>>
>>
Re: Help me,Thanks.
Posted by Jason Pell <jp...@apache.org>.
The m2eclipse works fine with jdk 6. Make sure you use the m2eclipse
profile in advanced when importing.
Also a good idea to perform a full maven build from command line first so
all deps are local
Sent from my Galaxy S2
On Nov 16, 2012 2:33 PM, "Glen Mazza" <gm...@talend.com> wrote:
> Are you using command prompt or the Eclipse m2e plugin? If you run mvn
> eclipse:eclipse from a command prompt window in the samples folder, you
> should be able to subsequently import whatever projects desired into
> Eclipse:
> http://www.jroller.com/gmazza/entry/web_service_tutorial#EclipseSetup.
>
> The Eclipse m2e plugin (which I don't use) as I understand will work so
> long as you have only JDK 7 on your machine. I have some updates to do
> to the samples (drop them down to JAX-WS 2.1) so m2e will work also with
> JDK 6.
>
> Glen
>
> On 11/15/2012 10:13 PM, Lei.L.Wang (lab.xa01.Newegg) wrote:
> > Dear all:
> >
> > When I import the samples of cxf(2.7.0) to eclipse(version :Helios
> Service Release 1) with maven(3.0.3)
> > An error occurred in pom.xml : Project build error: Failed to determine
> Java version for profile jdk17 . so it build failed.
> >
> > I appreciative if someone give me some help。
> > Lei.Wang
> > Thank you!
> >
>
>
> --
> Glen Mazza
> Talend Community Coders - coders.talend.com
> blog: www.jroller.com/gmazza
>
>
Re: 答复: Help me,Thanks.
Posted by Glen Mazza <gm...@talend.com>.
I'm unsure. You're building from a CXF binary distribution/download,
right? Try "mvn clean install eclipse:eclipse" from the samples folder.
Sometimes deleting my local Maven source repository and having Maven
re-download everything fixes the problem (if there's some corruption in
your local repository.) Reforwarding back to the CXF list in case others
have ideas...
Glen
On 11/16/2012 03:33 AM, Lei.L.Wang (lab.xa01.Newegg) wrote:
> Hi Glen:
>
> Thanks for your help :)
> I'm using Eclipse m2e plugin and JDK6 but still have the error : Project build error: Failed to determine Java version for profile jdk17,
>
> and I was trying to run the command : mvn eclipse:eclipse in samples folder , but build failed:
>
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 27.875s
> [INFO] Finished at: Fri Nov 16 16:25:52 CST 2012
> [INFO] Final Memory: 23M/55M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.7.0:wsdl2java (generate-sources) on project jaxws_async: Execution generate-sources of goal org.apache.cxf:cxf-codegen-plugin:2.7.0:wsdl2java failed: A required class was missing while executing org.apache.cxf:cxf-codegen-plugin:2.7.0:wsdl2java: org/apache/http/client/RedirectStrategy
> [ERROR] -----------------------------------------------------
> [ERROR] realm = plugin>org.apache.cxf:cxf-codegen-plugin:2.7.0
> [ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
> [ERROR] urls[0] = file:/E:/repository/org/apache/cxf/cxf-codegen-plugin/2.7.0/cxf-codegen-plugin-2.7.0.jar
> [ERROR] urls[1] = file:/E:/repository/org/apache/maven/shared/maven-artifact-resolver/1.0/maven-artifact-resolver-1.0.jar
> [ERROR] urls[2] = file:/E:/repository/org/codehaus/plexus/plexus-utils/2.0.5/plexus-utils-2.0.5.jar
> [ERROR] urls[3] = file:/E:/repository/org/codehaus/plexus/plexus-archiver/1.2/plexus-archiver-1.2.jar
> [ERROR] urls[4] = file:/E:/repository/org/codehaus/plexus/plexus-io/1.0.1/plexus-io-1.0.1.jar
> [ERROR] urls[5] = file:/E:/repository/org/apache/cxf/cxf-api/2.7.0/cxf-api-2.7.0.jar
> [ERROR] urls[6] = file:/E:/repository/org/codehaus/woodstox/woodstox-core-asl/4.1.4/woodstox-core-asl-4.1.4.jar
> [ERROR] urls[7] = file:/E:/repository/org/codehaus/woodstox/stax2-api/3.1.1/stax2-api-3.1.1.jar
> [ERROR] urls[8] = file:/E:/repository/org/apache/ws/xmlschema/xmlschema-core/2.0.3/xmlschema-core-2.0.3.jar
> [ERROR] urls[9] = file:/E:/repository/org/apache/geronimo/specs/geronimo-javamail_1.4_spec/1.7.1/geronimo-javamail_1.4_spec-1.7.1.jar
> [ERROR] urls[10] = file:/E:/repository/wsdl4j/wsdl4j/1.6.2/wsdl4j-1.6.2.jar
> [ERROR] urls[11] = file:/E:/repository/org/apache/cxf/cxf-tools-common/2.7.0/cxf-tools-common-2.7.0.jar
> [ERROR] urls[12] = file:/E:/repository/org/apache/velocity/velocity/1.7/velocity-1.7.jar
> [ERROR] urls[13] = file:/E:/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar
> [ERROR] urls[14] = file:/E:/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar
> [ERROR] urls[15] = file:/E:/repository/com/sun/xml/bind/jaxb-xjc/2.1.13/jaxb-xjc-2.1.13.jar
> [ERROR] urls[16] = file:/E:/repository/com/sun/xml/bind/jaxb-impl/2.1.13/jaxb-impl-2.1.13.jar
> [ERROR] urls[17] = file:/E:/repository/org/apache/cxf/cxf-rt-core/2.7.0/cxf-rt-core-2.7.0.jar
> [ERROR] urls[18] = file:/E:/repository/org/apache/cxf/cxf-tools-wsdlto-core/2.7.0/cxf-tools-wsdlto-core-2.7.0.jar
> [ERROR] urls[19] = file:/E:/repository/org/apache/cxf/cxf-tools-validator/2.7.0/cxf-tools-validator-2.7.0.jar
> [ERROR] urls[20] = file:/E:/repository/org/apache/cxf/cxf-rt-bindings-soap/2.7.0/cxf-rt-bindings-soap-2.7.0.jar
> [ERROR] urls[21] = file:/E:/repository/org/apache/cxf/cxf-rt-databinding-jaxb/2.7.0/cxf-rt-databinding-jaxb-2.7.0.jar
> [ERROR] urls[22] = file:/E:/repository/org/apache/cxf/cxf-tools-wsdlto-databinding-jaxb/2.7.0/cxf-tools-wsdlto-databinding-jaxb-2.7.0.jar
> [ERROR] urls[23] = file:/E:/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.7.0/cxf-tools-wsdlto-frontend-jaxws-2.7.0.jar
> [ERROR] urls[24] = file:/E:/repository/xml-resolver/xml-resolver/1.2/xml-resolver-1.2.jar
> [ERROR] urls[25] = file:/E:/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-javascript/2.7.0/cxf-tools-wsdlto-frontend-javascript-2.7.0.jar
> [ERROR] urls[26] = file:/E:/repository/org/apache/cxf/cxf-rt-javascript/2.7.0/cxf-rt-javascript-2.7.0.jar
> [ERROR] urls[27] = file:/E:/repository/org/springframework/spring-core/3.0.7.RELEASE/spring-core-3.0.7.RELEASE.jar
> [ERROR] urls[28] = file:/E:/repository/org/springframework/spring-asm/3.0.7.RELEASE/spring-asm-3.0.7.RELEASE.jar
> [ERROR] urls[29] = file:/E:/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar
> [ERROR] urls[30] = file:/E:/repository/org/springframework/spring-beans/3.0.7.RELEASE/spring-beans-3.0.7.RELEASE.jar
> [ERROR] urls[31] = file:/E:/repository/org/springframework/spring-context/3.0.7.RELEASE/spring-context-3.0.7.RELEASE.jar
> [ERROR] urls[32] = file:/E:/repository/org/springframework/spring-aop/3.0.7.RELEASE/spring-aop-3.0.7.RELEASE.jar
> [ERROR] urls[33] = file:/E:/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar
> [ERROR] urls[34] = file:/E:/repository/org/springframework/spring-expression/3.0.7.RELEASE/spring-expression-3.0.7.RELEASE.jar
> [ERROR] urls[35] = file:/E:/repository/org/apache/ant/ant/1.8.4/ant-1.8.4.jar
> [ERROR] urls[36] = file:/E:/repository/org/apache/ant/ant-launcher/1.8.4/ant-launcher-1.8.4.jar
> [ERROR] urls[37] = file:/E:/repository/org/apache/ant/ant-nodeps/1.8.1/ant-nodeps-1.8.1.jar
> [ERROR] urls[38] = file:/E:/repository/org/sonatype/plexus/plexus-build-api/0.0.7/plexus-build-api-0.0.7.jar
>
>
> Would you please do me a favor ?
>
> Thanks a lot.
>
> Lei
> -----邮件原件-----
> 发件人: Glen Mazza [mailto:gmazza@talend.com]
> 发送时间: 2012年11月16日 11:33
> 收件人: users@cxf.apache.org
> 主题: Re: Help me,Thanks.
>
> Are you using command prompt or the Eclipse m2e plugin? If you run mvn eclipse:eclipse from a command prompt window in the samples folder, you should be able to subsequently import whatever projects desired into
> Eclipse:
> http://www.jroller.com/gmazza/entry/web_service_tutorial#EclipseSetup.
>
> The Eclipse m2e plugin (which I don't use) as I understand will work so long as you have only JDK 7 on your machine. I have some updates to do to the samples (drop them down to JAX-WS 2.1) so m2e will work also with JDK 6.
>
> Glen
>
> On 11/15/2012 10:13 PM, Lei.L.Wang (lab.xa01.Newegg) wrote:
>> Dear all:
>>
>> When I import the samples of cxf(2.7.0) to eclipse(version :Helios
>> Service Release 1) with maven(3.0.3) An error occurred in pom.xml : Project build error: Failed to determine Java version for profile jdk17 . so it build failed.
>>
>> I appreciative if someone give me some help。
>> Lei.Wang
>> Thank you!
>>
>
> --
> Glen Mazza
> Talend Community Coders - coders.talend.com
> blog: www.jroller.com/gmazza
>
--
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza
Re: Help me,Thanks.
Posted by Glen Mazza <gm...@talend.com>.
Are you using command prompt or the Eclipse m2e plugin? If you run mvn
eclipse:eclipse from a command prompt window in the samples folder, you
should be able to subsequently import whatever projects desired into
Eclipse:
http://www.jroller.com/gmazza/entry/web_service_tutorial#EclipseSetup.
The Eclipse m2e plugin (which I don't use) as I understand will work so
long as you have only JDK 7 on your machine. I have some updates to do
to the samples (drop them down to JAX-WS 2.1) so m2e will work also with
JDK 6.
Glen
On 11/15/2012 10:13 PM, Lei.L.Wang (lab.xa01.Newegg) wrote:
> Dear all:
>
> When I import the samples of cxf(2.7.0) to eclipse(version :Helios Service Release 1) with maven(3.0.3)
> An error occurred in pom.xml : Project build error: Failed to determine Java version for profile jdk17 . so it build failed.
>
> I appreciative if someone give me some help。
> Lei.Wang
> Thank you!
>
--
Glen Mazza
Talend Community Coders - coders.talend.com
blog: www.jroller.com/gmazza