i rather new maven , having trouble using it. have working android app, uses achartengine, runs fine in eclipse need use maven testing. there has been repository set ace can't seem access properly. here pom:
<?xml version="1.0" encoding="utf-8"?> <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.mycompany.my-app</groupid> <artifactid>my-app</artifactid> <packaging>apk</packaging> <version>0.0.1-snapshot</version> <name>my-app</name> <dependencies> <dependency> <groupid>com.google.android</groupid> <artifactid>android</artifactid> <version>4.1.1.4</version> <scope>provided</scope> </dependency> <dependency> <groupid>org.achartengine</groupid> <artifactid>achartengine</artifactid> <version>1.1.0</version> </dependency> </dependencies> <repositories> <repository> <id>achartengine</id> <name>public achartengine repository</name> <url>https://repository-achartengine.forge.cloudbees.com/snapshot/</url> </repository> </repositories> <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.6.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 16 = platform 4.1)--> <platform>17</platform> </sdk> </configuration> </plugin> </plugins> </build>
is there i'm doing wrong here? let me know if can add more information.
note not using maven eclipse, running in command prompt on windows 7.
update: think have found problem i'm not sure yet, i'll still post error message:
[error] failed execute goal on project my-app: not resolve dependencies project com.mycompany:my-app:apk:0.0.1- snapshot: not find artifact org.achartengine:achartengine:jar:1.1.0 in ...(my companies repository)
it turned out jar not loaded repository being used. got functional now.
Comments
Post a Comment