我一直在对Java项目进行静态分析,这通常归结为运行javac2 @a_list_of_all_the_java_files_in_the_project,javac2是我修改过的编译器。但是,要找到合适的库来编译所有的东西是很困难的。
我现在正在处理一个项目(顺便说一句,eclipse 3.7.1),它的根文件夹中有一个文件artifacts.xml。这个文件看起来很有用。到目前为止,我的理解是它告诉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='(& (classifier=osgi.bundle))' output='${repoUrl}/plugins/${id}_${version}.jar'/>
<rule filter='(& (classifier=binary))' output='${repoUrl}/binary/${id}_${version}'/>
<rule filter='(& (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>发布于 2013-10-17 08:41:52
这是Eclipse‘p2’安装系统用来描述可安装工件存储库的文件。该文件有时被压缩为artifacts.jar文件。
Eclipse p2在这里描述:http://wiki.eclipse.org/Equinox/p2
发布于 2013-10-17 01:03:51
通常,maven工件是部署到maven repo上的文件。
artifacts.xml是列出需要发送到所述存储库的所有内容的规范方法。
有关更多信息,请查看上一篇文章:
https://stackoverflow.com/questions/19371134
复制相似问题