com.jayway.maven.plugins.android.generation2のandroid-maven-pluginを使用してビルドした際にJavac.batが出力されてしまう。
出力されないようにしたい
以下pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>MyAppGroupId</groupId> <artifactId>MyAppName</artifactId> <version>1.0-SNAPSHOT</version> <packaging>apk</packaging> <name>MyAppName</name> <repositories> <repository> <id>android-support</id> <url>file://${env.ANDROID_HOME}/extras/android/m2repository</url> </repository> <repository> <id>android-gms</id> <url>file://${env.ANDROID_HOME}/extras/google/m2repository</url> </repository> </repositories> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <java.version>1.6</java.version> <android.version>4.1.1.4</android.version> <platform.version>5.0.1_r2</platform.version> <android.plugin.version>3.8.2</android.plugin.version> <compatibility.version>21.0.3</compatibility.version> <playservice.version>8.3.0</playservice.version> </properties> <dependencies> <dependency> <groupId>android</groupId> <artifactId>android</artifactId> <version>${platform.version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>android.support</groupId> <artifactId>compatibility-v4</artifactId> <version>23.1.1</version> <type>jar</type> </dependency> <dependency> <groupId>com.android.support</groupId> <artifactId>appcompat-v7</artifactId> <version>22.0.0</version> <type>aar</type> <exclusions> <exclusion> <groupId>com.android.support</groupId> <artifactId>support-v4</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.android.support</groupId> <artifactId>recyclerview-v7</artifactId> <version>22.2.0</version> <type>aar</type> <exclusions> <exclusion> <groupId>com.android.support</groupId> <artifactId>support-v4</artifactId> </exclusion> <exclusion> <groupId>com.android.support</groupId> <artifactId>support-annotations</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.google.android.gms</groupId> <artifactId>play-services-gcm</artifactId> <version>${playservice.version}</version> <type>aar</type> <exclusions> <exclusion> <groupId>com.google.android.gms</groupId> <artifactId>play-services-basement</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.google.android.gms</groupId> <artifactId>play-services-analytics</artifactId> <version>${playservice.version}</version> <type>aar</type> <exclusions> <exclusion> <groupId>com.android.support</groupId> <artifactId>support-v4</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.github.ksoichiro</groupId> <artifactId>android-observablescrollview</artifactId> <type>aar</type> <version>1.6.0</version> <scope>compile</scope> <exclusions> <exclusion> <groupId>com.android.support</groupId> <artifactId>recyclerview-v7</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>com.github.chrisbanes.pulltorefresh</groupId> <artifactId>library</artifactId> <version>2.1.2-SNAPSHOT</version> <type>aar</type> <scope>compile</scope> </dependency> <dependency> <groupId>com.astuetz</groupId> <artifactId>PagerSlidingTabStrip</artifactId> <type>aar</type> <version>1.0.1</version> <scope>compile</scope> <exclusions> <exclusion> <groupId>com.android.support</groupId> <artifactId>support-v4</artifactId> </exclusion> </exclusions> </dependency> <dependency> <groupId>MyLibGroupId</groupId> <artifactId>LibVideoEdit</artifactId> <version>1.0.0</version> <scope>compile</scope> </dependency> <dependency> <groupId>com.googlecode.mp4parser</groupId> <artifactId>isoparser</artifactId> <version>1.1.20-SNAPSHOT</version> <type>jar</type> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.james</groupId> <artifactId>apache-mime4j-core</artifactId> <version>0.7.2</version> <scope>compile</scope> </dependency> <dependency> <groupId>org.apache.httpcomponents</groupId> <artifactId>httpmime</artifactId> <version>4.2.5</version> <scope>compile</scope> </dependency> </dependencies> <build> <finalName>${project.artifactId}</finalName> <sourceDirectory>${basedir}/src</sourceDirectory> <resources> <resource> <directory>${basedir}/res</directory> </resource> </resources> <plugins> <plugin> <groupId>com.lewisd</groupId> <artifactId>lint-maven-plugin</artifactId> <version>0.0.8</version> </plugin> <plugin> <groupId>com.jayway.maven.plugins.android.generation2</groupId> <artifactId>android-maven-plugin</artifactId> <version>${android.plugin.version}</version> <extensions>true</extensions> <configuration> <deleteConflictingFiles>true</deleteConflictingFiles> <extractDuplicates>true</extractDuplicates> <includeLibsJarsFromAar>true</includeLibsJarsFromAar> <sdk> <platform>21</platform> </sdk> <undeployBeforeDeploy>true</undeployBeforeDeploy> <manifest> <debuggable>false</debuggable> <versionCodeAutoIncrement>true</versionCodeAutoIncrement> <versionName>${project.version}</versionName> </manifest> <proguard> <skip>true</skip> </proguard> </configuration> <executions> <execution> <id>default-proguard</id> <configuration> <skip>true</skip> <action> <ignore></ignore> </action> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-enforcer-plugin</artifactId> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-compiler-plugin</artifactId> <version>3.5.1</version> <configuration> <source>${java.version}</source> <target>${java.version}</target> <encoding>${project.build.sourceEncoding}</encoding> <!-- <excludes> <exclude>android/system/*.java</exclude> <exclude>dalvik/system/*.java</exclude> <exclude>libcore/io/*.java</exclude> <exclude>libcore/util/*.java</exclude> <exclude>**/net/*.java</exclude> <exclude>**/nio/**/*.java</exclude> <exclude>**/lang/**/*.java</exclude> <exclude>**/playing/util/*.java</exclude> <exclude>**/io2/*.java</exclude> <exclude>**/FileChannelImpl.java</exclude> <exclude>**/IoVec.java</exclude> </excludes> --> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> </plugin> </plugins> <pluginManagement> <plugins> <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. --> <plugin> <groupId>org.eclipse.m2e</groupId> <artifactId>lifecycle-mapping</artifactId> <version>1.0.0</version> <configuration> <lifecycleMappingMetadata> <pluginExecutions> <pluginExecution> <pluginExecutionFilter> <groupId> com.jayway.maven.plugins.android.generation2 </groupId> <artifactId> android-maven-plugin </artifactId> <versionRange> [3.8.1,) </versionRange> <goals> <goal>consume-aar</goal> </goals> </pluginExecutionFilter> <action> <ignore></ignore> </action> </pluginExecution> </pluginExecutions> </lifecycleMappingMetadata> </configuration> </plugin> </plugins> </pluginManagement> </build> <!-- 以下release用のMavenのため省略 --> </project>
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/04/23 07:38