Android 在Maven 3发布期间提交更新的Proguard映射
我使用Maven 3来管理Android应用程序的构建和发布周期。在发布过程中,应用程序源使用Proguard maven插件进行模糊处理。理想情况下,我希望在发布过程中将更新的Proguard混淆映射提交到git存储库中。我目前将映射附加到推送到发布存储库的工件上,但如果可能的话,我希望将映射保留在git中Android 在Maven 3发布期间提交更新的Proguard映射,android,maven-3,proguard,Android,Maven 3,Proguard,我使用Maven 3来管理Android应用程序的构建和发布周期。在发布过程中,应用程序源使用Proguard maven插件进行模糊处理。理想情况下,我希望在发布过程中将更新的Proguard混淆映射提交到git存储库中。我目前将映射附加到推送到发布存储库的工件上,但如果可能的话,我希望将映射保留在git中 执行此操作的最佳方法是什么?您可以在提交之前通过运行目标,如文档中所述 <plugin> <groupId>org.apache.maven.plugins
执行此操作的最佳方法是什么?您可以在提交之前通过运行目标,如文档中所述
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>2.2.2</version>
<configuration>
<preparationGoals>clean verify</preparationGoals>
</configuration>
</plugin>
org.apache.maven.plugins
maven发布插件
2.2.2
清查
如果我理解正确,您需要做些什么来传递配置,这样@khmarbaise的解决方案就不够了。在创建proguard映射后,我会立即在发布概要文件中使用maven scm插件进行重新编译
您将要添加映射文件:
然后登记
也许是这样的:
<profiles>
<profile>
<id>release</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-scm-plugin</artifactId>
...
<configuration>
... add your scm setup here ...
</configuration>
<executions>
<execution>
<id>addMap</id>
<phase>install</phase>
<goals>
<goal>add</goal>
</goals>
</execution>
<execution>
<id>commitMap</id>
<phase>install</phase>
<goals>
<goal>checkin</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
...
</profile>
</profiles>
释放
性能释放酶
真的
maven scm插件
...
... 在此处添加scm设置。。。
地址图
安装
添加
委员会地图
安装
签到
...