4

我一直在对 Java 项目进行静态分析,通常归结为 running javac2 @a_list_of_all_the_java_files_in_the_project,其中javac2我修改后的编译器在哪里。除了,找到合适的库来编译所有东西是很困难的。

我现在正在处理一个artifacts.xml在根文件夹中有一个文件的项目(顺便说一下,eclipse SDK 3.7.1)。这个文件看起来很有用。到目前为止,我的理解是它告诉 eclipse 在将文件夹作为 eclipse 项目打开时要使用哪些库。如果是这样,我想在本地下载这些库并在我的自定义编译命令中引用它们。

有人可以解释我的方法的目的artifacts.xml,并可选择提供反馈吗?最终,我想要的是能够使用非标准编译器在命令行上编译项目。


前几行或artifacts.xml

<?xml version='1.0' encoding='UTF-8'?>
<?artifactRepository version='1.1.0'?>
<repository name='Bundle pool' type='org.eclipse.equinox.p2.artifact.repository.simpleRepository' version='1'>
  <properties size='2'>
<property name='p2.system' value='true'/>
<property name='p2.timestamp' value='1315600353875'/>
</properties>
<mappings size='3'>
   <rule filter='(&amp; (classifier=osgi.bundle))' output='${repoUrl}/plugins/${id}_${version}.jar'/>
   <rule filter='(&amp; (classifier=binary))' output='${repoUrl}/binary/${id}_${version}'/>
   <rule filter='(&amp; (classifier=org.eclipse.update.feature))' output='${repoUrl}/features/${id}_${version}.jar'/>
 </mappings>
 <artifacts size='405'>
    <artifact classifier='osgi.bundle' id='org.eclipse.ecf.provider.filetransfer.ssl' version='1.0.0.v20110531-2218'>
    <properties size='1'>
        <property name='download.size' value='8460'/>
    </properties>
  </artifact>
4

2 回答 2

4

这是 Eclipse 'p2' 安装系统用来描述可安装工件存储库的文件。该文件有时被压缩到一个artifacts.jar文件中。

Eclipse p2 在这里描述:http ://wiki.eclipse.org/Equinox/p2

于 2013-10-17T08:41:52.753 回答
1

一般来说,Maven 工件是部署到 Maven 存储库的文件。

artifacts.xml是列出需要发送到所述存储库的所有内容的规范方式。

查看以前的帖子以获取更多信息:

什么是 Maven 工件?

于 2013-10-17T01:03:51.767 回答