I configured some plugin goals to be executed during some phases of my build lifecycle (maven android application). But i think that i take a mistake during configuring plugin and want to ensure that they really called. I found this command which will print all lifecycle phases and goals: mvn help:describe -Dcmd=install
, but it doesn't show my goals which i configure. Therefore i have two quistions:
Does
mvn help:describe -Dcmd=install
command show goals which i configured inside<build>/<plugins>/<plugin>/<executions>/<execution>
pom tag?How to ensure that goal called during phase and phase called during build lifecycle?
UPDATE I'm trying configure maven-android-plugin and want to execute zipalign goal at package phase
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>3.2.0</version>
<extensions>true</extensions>
<configuration>
<sdk>
<platform>8</platform>
</sdk>
<emulator>
<avd>2.3.3_API-10</avd>
</emulator>
<undeployBeforeDeploy>true</undeployBeforeDeploy>
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
<androidManifestFile>${project.build.directory}/filtered-manifest/AndroidManifest.xml</androidManifestFile>
<zipalign>
<skip>false</skip>
<verbose>${build.verbosity}</verbose>
<inputApk>${project.build.directory}/${project.artifactId}-${build.version.name}.apk</inputApk>
<outputApk>${project.build.directory}/${project.artifactId}-${build.version.name}-aligned.apk</outputApk>
</zipalign>
</configuration>
<executions>
<execution>
<id>zipalign</id>
<phase>package</phase>
<goals>
<goal>zipalign</goal>
</goals>
</execution>
</executions>
</plugin>