我的项目需要很少的外部资源,所以我在pom.xml中添加了适当的部分。它根本不起作用:
<build>
<finalName>${project.artifactId}</finalName>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>../SimpleCars/res</directory>
</resource>
</resources>
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
我可以以某种方式了解是否正在使用默认目录,但它不会:
Could not execute:
Command = cmd.exe /X /C "C:\adt-bundle-windows-x86_64\adt-bundle-windows\sdk\platform-tools\aapt.exe
package -m -J C:\projects\FavouriteCars\target\generated-sources\r
-M C:\projects\FavouriteCars\AndroidManifest.xml
-S C:\projects\FavouriteCars\res --auto-add-overlay
-A C:\projects\FavouriteCars\assets
-I C:\adt-bundle-windows-x86_64\adt-bundle-windows\sdk\platforms\android-17\android.jar", Result = 1 -> [Help 1]
Maven接受了/ res目录(默认为src / main / res),甚至没有告诉他。怎么可能,我应该在哪里寻找其他设置?