Skip to content

Commit d0ed55f

Browse files
committed
Create POM and config to attach source with JAR in Eclipse
1 parent cb3dd33 commit d0ed55f

File tree

7 files changed

+100
-2
lines changed

7 files changed

+100
-2
lines changed

.classpath

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
44
<classpathentry kind="src" path="src"/>
55
<classpathentry kind="src" path="gen"/>
6-
<classpathentry kind="src" path="examples"/>
6+
<classpathentry kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
77
<classpathentry kind="output" path="bin/classes"/>
88
</classpath>

.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: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
encoding/<project>=UTF-8

.settings/org.eclipse.jdt.core.prefs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
3+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
4+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
5+
org.eclipse.jdt.core.compiler.compliance=1.6
6+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
7+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
8+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
9+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
10+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
11+
org.eclipse.jdt.core.compiler.source=1.6

.settings/org.eclipse.m2e.core.prefs

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

pom.xml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
3+
<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">
4+
<modelVersion>4.0.0</modelVersion>
5+
6+
<groupId>com.loopj</groupId>
7+
<artifactId>android-async-http</artifactId>
8+
<packaging>pom</packaging>
9+
<version>1.4.3</version>
10+
11+
<name>Android Asynchronous Http Client</name>
12+
<url>http://loopj.com/android-async-http/</url>
13+
14+
<licenses>
15+
<license>
16+
<name>Apache License Version 2.0</name>
17+
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
18+
<distribution>repo</distribution>
19+
</license>
20+
</licenses>
21+
22+
<issueManagement>
23+
<system>GitHub Issues</system>
24+
<url>https://github.com/loopj/android-async-http/issues</url>
25+
</issueManagement>
26+
27+
<properties>
28+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
29+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
30+
31+
<java.version>1.6</java.version>
32+
<android.version>1.5</android.version>
33+
<android.platform>3</android.platform>
34+
35+
<android-support.version>r3</android-support.version>
36+
</properties>
37+
38+
<dependencyManagement>
39+
<dependencies>
40+
<dependency>
41+
<groupId>com.google.android</groupId>
42+
<artifactId>android</artifactId>
43+
<version>${android.version}</version>
44+
</dependency>
45+
</dependencies>
46+
</dependencyManagement>
47+
48+
<build>
49+
<pluginManagement>
50+
<plugins>
51+
<plugin>
52+
<groupId>org.apache.maven.plugins</groupId>
53+
<artifactId>maven-compiler-plugin</artifactId>
54+
<version>2.5</version>
55+
<configuration>
56+
<source>${java.version}</source>
57+
<target>${java.version}</target>
58+
</configuration>
59+
</plugin>
60+
61+
<plugin>
62+
<groupId>com.jayway.maven.plugins.android.generation2</groupId>
63+
<artifactId>android-maven-plugin</artifactId>
64+
<version>3.3.0</version>
65+
<configuration>
66+
<sdk>
67+
<platform>${android.platform}</platform>
68+
</sdk>
69+
</configuration>
70+
<extensions>true</extensions>
71+
</plugin>
72+
</plugins>
73+
</pluginManagement>
74+
</build>
75+
</project>

project.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99

1010
android.library=true
1111
# Project target.
12-
target=android-3
12+
target=android-10

0 commit comments

Comments
 (0)