1

我正在尝试从 Eclipse 切换到 Intellij,但我无法正确导入我的项目。这是一个庞大的 OSGI 项目,包含数十个捆绑包。(免责声明:我是 OSGI 和 Intellij 菜鸟。)

我设置了 Intellij 的 OSGI 支持,但是在单击“同步依赖项”后,Intellij 从我的 .classpath 文件中清除了一堆条目。这是一个例子:

删除的条目:

<classpathentry exported="true" kind="lib" path="lib/commons-math3-3.1.1.jar"/>
<classpathentry exported="true" kind="lib" path="lib/sigar.jar"/>
<classpathentry exported="true" kind="lib" path="lib/hsqldb-1.8.0.10.jar"/>
...etc. (All entries from classpath are deleted.)

添加的条目(仅添加了 2 个):

<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7"/>
<classpathentry kind="output" path="target/classes"/>
4

0 回答 0