在 roo 中运行“perform eclipse”时缺少 com.sun:tools:jar:1.4.2

2024-01-01

当我在 Roo 中运行“执行 eclipse”时,我得到:

roo> perform eclipse
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building bugzter
[INFO]    task-segment: [eclipse:clean, eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] [eclipse:clean {execution: default-cli}]
[INFO] Deleting file: .project
[INFO] Deleting file: .classpath
[INFO] Deleting file: .wtpmodules
[INFO] Deleting file: .component
[INFO] Deleting file: org.eclipse.wst.common.component
[INFO] Deleting file: org.eclipse.wst.common.project.facet.core.xml
[INFO] Deleting file: org.eclipse.jdt.core.prefs
[INFO] Deleting file: org.eclipse.ajdt.ui.prefs
[INFO] Preparing eclipse:eclipse
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) com.sun:tools:jar:1.4.2

  Try downloading the file manually from the project website.

  Then, install it using the command: 
      mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file there: 
      mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
      1) org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:1.0
      2) com.sun:tools:jar:1.4.2

----------
1 required artifact is missing.

for artifact: 
  org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:1.0

from the specified remote repositories:
  com.springsource.repository.bundles.release (http://repository.springsource.com/maven/bundles/release),
  com.springsource.repository.bundles.external (http://repository.springsource.com/maven/bundles/external),
  central (http://repo1.maven.org/maven2),
  codehaus.org (http://repository.codehaus.org),
  com.springsource.repository.bundles.milestone (http://repository.springsource.com/maven/bundles/milestone),
  com.springsource.repository.bundles.snapshot (http://repository.springsource.com/maven/bundles/snapshot),
  snapshots (http://snapshots.repository.codehaus.org)

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Wed Jul 28 20:57:52 CEST 2010
[INFO] Final Memory: 30M/298M
[INFO] ------------------------------------------------------------------------

尝试下载tools-1.4.2.jar并运行 mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file 但它没有解决不了问题。

运行ubuntu 10.04和maven 2.2

有什么建议么?


将系统环境参数 JAVA_HOME 重新指向 JDK (1.5+) 目录而不是 JRE。

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

在 roo 中运行“perform eclipse”时缺少 com.sun:tools:jar:1.4.2 的相关文章

随机推荐

  • Kibana v 7.9.2 小时_分钟_秒的精确格式

    我跟着 and https www elastic co guide en elasticsearch reference current mapping date format html https www elastic co guid
  • ApplicationContext 事件从未被抛出

    我正在努力拥有ContextEventListener在所有 ContextXXXEvent 上 我为每个事件类型创建了一个侦听器 如下所示 ContextRefreshedEvent是一个例子 Component public class
  • 让一个函数“返回”超级函数?

    给出的是以下代码 function two return success function one two return fail 如果您通过调用函数 one 来测试代码 您将始终得到 失败 问题是 如何通过仅调用函数二 来在函数一 中返回
  • Textview 环绕 View [关闭]

    Closed 这个问题需要多问focused help closed questions 目前不接受答案 我试图让我的水平布局充分利用可用的空间 在显示活动的信息中 我有一个 事实框 后面跟着一大框文本 我希望信息框向右浮动 类似于下图 使
  • 无需输入类名即可获取枚举?

    我注意到在 C 中 当我有一个 Enum 时 请说 class ClassObject public static Enum EventType Click Jump Etc 当我必须访问它时 我必须浏览它的主类 它非常冗长 例如 Clas
  • 将子菜单添加到 Visual Studio 项目项节点

    右键单击文件项 Visual Studio 解决方案资源管理器时如何添加菜单和子菜单项 我有一个菜单和三个子菜单项 当我右键单击解决方案资源管理器中的文件时 将显示这些菜单项 如下图所示 我尝试使用 vsct 按钮 但它将显示在上下文菜单上
  • 无法安装 MySQL-python

    我想在 python 2 7 虚拟环境中安装 MySQL python 但出现以下错误 Installing collected packages MySQL python Running setup py install for MySQ
  • 安卓:应用程序未安装

    这里是新手 我用Godot游戏引擎制作了我的第一个游戏并成功导出到android 复制到我的手机上 它安装并运行良好 几个小时后 我做了一些更改并再次导出 再次复制了 apk 但现在当我尝试安装它时 它没有完成安装 我多次尝试更改导出设置
  • 在 Android 上检测 wifi IP 地址?

    我需要确定Android设备是否连接到Wifi 如果是 则获取其Wifi IP地址 我知道如何使用 ConnectivityManager 来确定活动网络是否是 Wifi 网络 并且我知道如何使用 java net NetworkInter
  • Python 的 socket.getaddrinfo/mercurial 未使用持久 DNS 缓存

    当我通过一台调制解调器 ISP 连接时 我的 Ubuntu 机器上的 DNS 查找速度非常慢 我按照说明进行操作 例如here http aacable wordpress com 2011 06 13 ubuntu persistent
  • Swing 对话框如何工作?

    如果您在 Swing 中打开一个对话框 例如 JFileChooser 它有点类似于以下伪代码 swing event thread create dialog add listener to dialog close event retu
  • 检测到 glibc:双重释放或损坏

    我将解释我已完成的简短编码步骤以及我面临问题的区域 main cpp int main int cnt map i 1 value My question is about this char pointer key char key ch
  • Makefile:调用变量时如何增加变量? (bash 中的 var++)

    这是我的 makefile 的一部分 LISTEINC DEST file inc DEST otherfile inc DEST anotherfile inc compteur 1 DEST file LISTEINC action D
  • Airflow“此 DAG 在网络服务器 DagBag 对象中不可用”

    当我将新的 DAG python 脚本放入 dags 文件夹中时 我可以在 DAG UI 中查看 DAG 的新条目 但它并未自动启用 最重要的是 它似乎也没有正确加载 我只能点击列表右侧的 刷新 按钮几次 然后切换列表左侧的开 关按钮才能安
  • Eclipse Mars 不显示 Jboss 服务器

    这是我尝试过的事情 在 Eclipse Mars 中 转到 帮助 gt 安装新软件 单击添加按钮并粘贴更新站点的 URL 在我们的示例中 适用于 Jboss 的 Eclipse Mars 工具 http download jboss org
  • Google Play 警告有关缺少后倾意图的警告

    在 Google Play 上更新我们的应用程序时 我得到 You opted in to Android TV but your APK or Android App Bundle does not have the Leanback i
  • 让 HTML 页面仅播放 Flash 影片一次(不在重新访问时...)

    如何让一个 HTML 页面只播放一次 Flash 动画 即当一个人返回该页面时 Flash 不会从头开始再次播放 而只会显示动画的最后一帧 甚至最后一帧的简单 jpg 图像 有可能吗 谢谢 L 您可以在用户第一次访问时保存一个 cookie
  • 如果我们从集成流中删除最新版本会有副作用吗?

    我们已经向测试团队交付了一些包 他们完成了测试 在其中一个包中 他们报告了一个缺陷 该缺陷已被修复并交付给集成流 但在交付时 它要求重新设定基准 并且交付包含重新设定基准活动 在变基活动中 由于合并问题 其中一个文件在没有缺陷的包中被修改
  • 数据库设计:EAV 选择?

    这只是一个数据库概念问题 以下 EAV 模型的优缺点是什么 Model 1 TABLE attribute value id fk id attribute value 1 10 FName John 2 10 Lname Doe 3 55
  • 在 roo 中运行“perform eclipse”时缺少 com.sun:tools:jar:1.4.2

    当我在 Roo 中运行 执行 eclipse 时 我得到 roo gt perform eclipse INFO Scanning for projects INFO INFO Building bugzter INFO task segm