i'm new maven.. in understanding should me keeping order dependencies.. i'm trying make work using m2clipse plugin , make work android. (i used site so: http://looksok.wordpress.com/2012/05/12/use-maven-with-android-project/)
i have updated existing project maven project. , added dependency actionbarsherlock project. pom.xml file looks this:
<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>com.example</groupid> <artifactid>myproject</artifactid> <version>0.0.1-snapshot</version> <packaging>apk</packaging> <name>myproject</name> <dependencies> <dependency> <groupid>com.google.android</groupid> <artifactid>android</artifactid> <version>1.6_r2</version> <scope>provided</scope> </dependency> <dependency> <groupid>com.actionbarsherlock</groupid> <artifactid>actionbarsherlock</artifactid> <version>4.3.1</version> <type>apklib</type> </dependency> </dependencies> <build> <finalname>${project.artifactid}</finalname> <sourcedirectory>src</sourcedirectory> <pluginmanagement> <plugins> <plugin> <groupid>com.jayway.maven.plugins.android.generation2</groupid> <artifactid>android-maven-plugin</artifactid> <version>3.2.0</version> <extensions>true</extensions> </plugin> </plugins> </pluginmanagement> <plugins> <plugin> <groupid>com.jayway.maven.plugins.android.generation2</groupid> <artifactid>android-maven-plugin</artifactid> <configuration> <sdk> <!-- platform or api level (api level 4 = platform 1.6)--> <platform>10</platform> </sdk> </configuration> </plugin> </plugins> </build>
i have few questions:
1. "4.0.0" - version what?
2. "1.6_r2" - minimum android version app support? or android version compile? think version copile to, in case - should if want compile google api? if want use google maps instance..
3. 3.2.0 - version what?
4. 10 - platform android. stands for? again, minimum sdk support? target sdk? it?:-)
5. looks doesn't matter version of android i'm writing in pom.xml file, androidmanifest file updating. should update when i'm updating project maven? (when i'm clicking "update project")
6. last question - when added actionbarsherlock dependency error:
"dependency=[com.actionbarsherlock:actionbarsherlock:apklib:4.3.1:compile] not found in workspace", why isn't working??
thank :-)
it maven model version
version of jar want use during build process.
version of "android-maven-plugin"
these configurations use "android-maven-plugin"
don't know mi8 wrong on here. :)
may din't update project after updating pom, because when new jars downloaded , loaded in build path.
Comments
Post a Comment