Skip to content

Commit 5e512e6

Browse files
committed
Work around goofup in android-maven; set outputdirectory=bin/classes so mvn updates lets Eclipse work.
1 parent 4a382cd commit 5e512e6

File tree

6 files changed

+73
-4
lines changed

6 files changed

+73
-4
lines changed

IntentsDemo/.classpath

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,24 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<classpath>
3-
<classpathentry kind="src" path="src"/>
3+
<classpathentry kind="src" output="bin/classes" path="src">
4+
<attributes>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
7+
</attributes>
8+
</classpathentry>
49
<classpathentry kind="src" path="gen"/>
510
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
611
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
712
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
13+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
14+
<attributes>
15+
<attribute name="maven.pomderived" value="true"/>
16+
</attributes>
17+
</classpathentry>
18+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
19+
<attributes>
20+
<attribute name="maven.pomderived" value="true"/>
21+
</attributes>
22+
</classpathentry>
823
<classpathentry kind="output" path="bin/classes"/>
924
</classpath>

IntentsDemo/.project

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,14 @@
2525
<arguments>
2626
</arguments>
2727
</buildCommand>
28+
<buildCommand>
29+
<name>org.eclipse.m2e.core.maven2Builder</name>
30+
<arguments>
31+
</arguments>
32+
</buildCommand>
2833
</buildSpec>
2934
<natures>
35+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
3036
<nature>com.android.ide.eclipse.adt.AndroidNature</nature>
3137
<nature>org.eclipse.jdt.core.javanature</nature>
3238
</natures>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8
3+
encoding/src=UTF-8
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
eclipse.preferences.version=1
2-
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
3-
org.eclipse.jdt.core.compiler.compliance=1.6
4-
org.eclipse.jdt.core.compiler.source=1.6
2+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7
3+
org.eclipse.jdt.core.compiler.compliance=1.7
4+
org.eclipse.jdt.core.compiler.problem.forbiddenReference=warning
5+
org.eclipse.jdt.core.compiler.source=1.7
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
activeProfiles=
2+
eclipse.preferences.version=1
3+
resolveWorkspaceProjects=true
4+
version=1

IntentsDemo/pom.xml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
<build>
2626
<sourceDirectory>src</sourceDirectory>
27+
<outputDirectory>bin/classes</outputDirectory>
2728
<plugins>
2829
<!-- Use the Android Plugin -->
2930
<plugin>
@@ -56,6 +57,45 @@
5657
</plugin>
5758
</plugins>
5859

60+
<pluginManagement>
61+
<plugins>
62+
<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
63+
<plugin>
64+
<groupId>org.eclipse.m2e</groupId>
65+
<artifactId>lifecycle-mapping</artifactId>
66+
<version>1.0.0</version>
67+
<configuration>
68+
<lifecycleMappingMetadata>
69+
<pluginExecutions>
70+
<pluginExecution>
71+
<pluginExecutionFilter>
72+
<groupId>
73+
com.simpligility.maven.plugins
74+
</groupId>
75+
<artifactId>
76+
android-maven-plugin
77+
</artifactId>
78+
<versionRange>
79+
[4.0.0,)
80+
</versionRange>
81+
<goals>
82+
<goal>emma</goal>
83+
<goal>
84+
generate-sources
85+
</goal>
86+
<goal>proguard</goal>
87+
</goals>
88+
</pluginExecutionFilter>
89+
<action>
90+
<ignore></ignore>
91+
</action>
92+
</pluginExecution>
93+
</pluginExecutions>
94+
</lifecycleMappingMetadata>
95+
</configuration>
96+
</plugin>
97+
</plugins>
98+
</pluginManagement>
5999
</build>
60100

61101
</project>

0 commit comments

Comments
 (0)