Glassfish源码工程转eclipse工程遇到的问题

在使用Maven将glassfish源码构建为Eclipse项目时遇到错误。解决方法是更新Maven Eclipse插件版本并使用特定命令进行清理和构建。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

[size=medium][color=red]问题描述:[/color][/size]
[color=blue]今天在构建galssfish的源码成功后,当我运行命令:[/color][code]mvn eclipse:eclipse[/code]试图将其转换成eclipse工程时时遇到以下问题:
[code]
[INFO] [eclipse:eclipse {execution: default-cli}]
[INFO] Using Eclipse Workspace: null
[INFO] Adding default classpath container: org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] Resource directory's path matches an existing source directory. Resources will be merged with the source directory src/main/java
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[/code][color=blue]我的jdk为1.6,maven为2.0.9[/color]

[size=medium][color=red]解决方案:[/color][/size]
[color=blue]将上述命令改为如下命令即可:[/color][code]mvn org.apache.maven.plugins:maven-eclipse-plugin:2.6:clean org.apache.maven.plugins:maven-eclipse-plugin:2.6:eclipse[/code]

[size=medium][color=red]参考资料[/color][/size]
[color=blue][url=http://jpz-log.info/archives/2008/06/14/building-glassfish-v3-from-svn/]1. Building Glassfish V3 from SVN[/url]
[url=http://jira.codehaus.org/browse/MECLIPSE-585]2. plugin fails to create Eclipse projects in 2.7[/url][/color]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值