1
为什么android:lint只会扫描我的Aggregator Project for Lint警告并跳过“APP”模块?为什么mvn android:lint跳过子模块?
在APP模块的POM我定义:
<plugins>
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<extensions>true</extensions>
<executions>
<execution>
<id>lint</id>
<goals>
<goal>lint</goal>
</goals>
<phase>install</phase>
</execution>
</executions>
<configuration>
<sdk>
<platform>${android.platform}</platform>
</sdk>
<androidManifestFile>${project.basedir}/AndroidManifest.xml</androidManifestFile>
<assetsDirectory>${project.basedir}/assets</assetsDirectory>
<resourceDirectory>${project.basedir}/res</resourceDirectory>
<nativeLibrariesDirectory>${project.basedir}/src/main/native</nativeLibrariesDirectory>
<sign>
<debug>true</debug>
</sign>
<lint>
<skip>false</skip>
</lint>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
<zipalign>
<skip>false</skip>
<verbose>true</verbose>
<inputApk>${project.build.directory}/${project.artifactId}.apk</inputApk>
<outputApk>${project.build.directory}/${project.artifactId}-aligned.apk</outputApk>
</zipalign>
</configuration>
</plugin>
干杯
完成那样!但我不明白为什么这个作品! – Kitesurfer 2013-04-26 08:30:31
不确定你的问题是什么。这就是说Maven插件是如何配置/使用的。 – 2013-04-27 00:12:51