小编Bri*_*ang的帖子

常春藤或ivyDE可以在Eclipse中自动将相关的jar添加到JAVA构建路径库中吗?

例如,当我将一个开发良好的开源项目(如lucene)打开到Eclipse(同时包含ant build.xml和ivy ivysetting.xml)时,我可以使用build.xml运行ant来成功构建整个项目.

但是,该项目在一堆.java类中充满了错误.这是由于与外部罐子断开连接造成的.这些罐子已经被常春藤下载并存储在{user} /.ivy2/cache /中.此外,当我手动将每个jar放入此项目的构建路径时,错误消失了.

常春藤或ivyDE或其他工具可以自动将jar放入JAVA构建路径吗?

这是ivy-setting.xml:

<!--
   Licensed to the Apache Software Foundation (ASF) under one
   or more contributor license agreements.  See the NOTICE file
   distributed with this work for additional information
   regarding copyright ownership.  The ASF licenses this file
   to you under the Apache License, Version 2.0 (the
   "License"); you may not use this file except in compliance
   with the License.  You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or …
Run Code Online (Sandbox Code Playgroud)

java eclipse ant ivy

5
推荐指数
1
解决办法
2335
查看次数

标签 统计

ant ×1

eclipse ×1

ivy ×1

java ×1