为什么mvn android:lint跳过子模块?
为什么android:lint只扫描我的聚合器项目中的lint警告并跳过“APP”模块 在我定义的应用程序模块的POM中:为什么mvn android:lint跳过子模块?,android,maven,android-maven-plugin,Android,Maven,Android Maven Plugin,为什么android:lint只扫描我的聚合器项目中的lint警告并跳过“APP”模块 在我定义的应用程序模块的POM中: <plugins> <plugin> <groupId>com.jayway.maven.plugins.android.generation2</groupId> <artifactId>android-maven-plugin</ar
<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>
com.jayway.maven.plugins.android.generation2
安卓maven插件
真的
绒毛
绒毛
安装
${android.platform}
${project.basedir}/AndroidManifest.xml
${project.basedir}/assets
${project.basedir}/res
${project.basedir}/src/main/native
真的
假的
真的
假的
真的
${project.build.directory}/${project.artifactId}.apk
${project.build.directory}/${project.artifactId}-aligned.apk
干杯我不认为我们以这种方式实现了多模块构建。但是,您只需在聚合器中配置插件,并在apk项目中执行,它就会工作。我认为我们没有以这种方式在多模块构建中实现它。但是,您只需在聚合器中配置插件,并在apk项目中执行,它就会工作。不确定您的问题是什么。这就是Maven插件的一般配置/使用方式。不确定你的问题是什么。这就是Maven插件的一般配置/使用方式。