我的项目依赖于 ActionBarSherlock、HoloEverywhere 和其他像这样添加的项目:
<dependency>
<groupId>com.actionbarsherlock</groupId>
<artifactId>actionbarsherlock</artifactId>
<type>apklib</type>
</dependency>
出于某种原因,IntelliJ 会生成这样的文件:
.idea/libraries/Maven__ATTACHED_JAR__com_actionbarsherlock_actionbarsherlock_apklib_4_3_0.xml
有内容:
<component name="libraryTable">
<library name="Maven: ATTACHED-JAR: com.actionbarsherlock:actionbarsherlock:apklib:4.3.0">
<CLASSES>
<root url="jar://$PROJECT_DIR$/contrib/ActionBarSherlock/actionbarsherlock/target/actionbarsherlock-4.3.0.jar!/" />
<root url="jar://$PROJECT_DIR$/contrib/ActionBarSherlock/actionbarsherlock/target/actionbarsherlock-4.3.0.jar!/" />
<root url="jar://$PROJECT_DIR$/contrib/ActionBarSherlock/actionbarsherlock/target/actionbarsherlock-4.3.0.jar!/" />
<root url="jar://$PROJECT_DIR$/contrib/ActionBarSherlock/actionbarsherlock/target/actionbarsherlock-4.3.0.jar!/" />
<root url="jar://$PROJECT_DIR$/contrib/ActionBarSherlock/actionbarsherlock/target/actionbarsherlock-4.3.0.jar!/" />
<root url="jar://$PROJECT_DIR$/contrib/ActionBarSherlock/actionbarsherlock/target/actionbarsherlock-4.3.0.jar!/" />
<root url="jar://$PROJECT_DIR$/contrib/ActionBarSherlock/actionbarsherlock/target/actionbarsherlock-4.3.0.jar!/" />
<root url="jar://$PROJECT_DIR$/contrib/ActionBarSherlock/actionbarsherlock/target/actionbarsherlock-4.3.0.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>
我会将这些文件添加到源代码管理中,但它们会不断变化。不时在该文件中添加附加行:
<root url="jar://$PROJECT_DIR$/contrib/ActionBarSherlock/actionbarsherlock/target/actionbarsherlock-4.3.0.jar!/" />
我能做些什么来摆脱这些文件吗?