Skip to content

Instantly share code, notes, and snippets.

View emartynov's full-sized avatar
🐾
Hello

Eugen Martynov emartynov

🐾
Hello
View GitHub Profile
@emartynov
emartynov / pom.xml
Created April 5, 2013 15:50
Copy original manifest file
<resources>
<resource>
<directory>${basedir}</directory>
<targetPath>${project.build.directory}</targetPath>
<includes>
<include>AndroidManifest.xml</include>
</includes>
</resource>
</resources>
@emartynov
emartynov / pom.xml
Created April 5, 2013 15:47
Renaming application package
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<configuration>
<renameManifestPackage>com.company.android.${main.package}</renameManifestPackage>
<manifestApplicationLabel>${app.name}</manifestApplicationLabel>
</configuration>
</plugin>
@emartynov
emartynov / pom.xml
Created April 5, 2013 15:42
Android maven plugin configuration for resources
<plugin>
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
<artifactId>android-maven-plugin</artifactId>
<version>${android-maven-plugin.version}</version>
<configuration>
<resourceDirectory>${project.build.directory}/filtered-res</resourceDirectory>
<assetsDirectory>${project.build.directory}/filtered-assets</assetsDirectory>
<androidManifestFile>${project.build.directory}/AndroidManifest.xml</androidManifestFile>
</configuration>
</plugin>
@emartynov
emartynov / pom.xml
Created April 5, 2013 15:13
Maven resource configuration
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.6</version>
<configuration>
<overwrite>true</overwrite>
</configuration>
<executions>
<execution>
<phase>initialize</phase>
@emartynov
emartynov / pom.xml
Last active December 15, 2015 20:18
Filtering resources
<resources>
<resource>
<directory>res</directory>
<targetPath>${project.build.directory}/filtered-res</targetPath>
</resource>
<resource>
<directory>assets</directory>
<targetPath>${project.build.directory}/filtered-assets</targetPath>
</resource>
<resource>
@emartynov
emartynov / pom.xml
Last active December 15, 2015 20:18
pom environment and brand properties
<properties>
<environment>devapp</environment>
<brand>xms</brand>
</properties>