kerasking / maven-android-plugin

Automatically exported from code.google.com/p/maven-android-plugin
0 stars 0 forks source link

generated R.java causes maven-compiler to recompile 3.x to recompile the whole source tree instead of just the R.java even though R.java did not change at all #358

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create an Android project using both android-maven-plugin 3.5.1 and 
maven-compiler-plugin 3.0.
2. Add some resources under /res
3. Compile project using mvn compile.
4. Given no modification is done to either /res or /src files, run mvn compile 
again.

What is the expected output?

http://maven-android-plugin-m2site.googlecode.com/svn/generate-sources-mojo.html
 should not regenerate R.java given nothing changed.

maven-compiler-plugin:compile should not compile any new classes at all given 
all /target/classes still match their /src and /target/generated-sources/r last 
used .java files. 

What do you see instead?

maven-android-plugin:generate-sources creates a new R.java with the same 
content and new timestamp.
maven-compiler-plugin:compile shows it detected source changes and is 
recompiling whole source tree.

What version of maven-android-plugin are you using?

3.5.1

What are the complete output lines of "mvn -version" on your machine?

Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500)
Maven home: /usr/share/maven
Java version: 1.6.0_37, vendor: Apple Inc.
Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
Default locale: en_US, platform encoding: MacRoman
OS name: "mac os x", version: "10.7.5", arch: "x86_64", family: "mac"

Please provide any additional information below.

Original issue reported on code.google.com by roberto.andrade on 1 Mar 2013 at 8:22

GoogleCodeExporter commented 9 years ago
We are no longer using the issue tracking system on Google Code. Please refile 
this issue on https://github.com/jayway/maven-android-plugin/issues if you 
still have this problem with the latest release of the Android Maven Plugin

Original comment by mosa...@gmail.com on 19 May 2014 at 4:19