Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build project with mvn clean install #3

Open
wblevine opened this issue Oct 2, 2014 · 1 comment
Open

Cannot build project with mvn clean install #3

wblevine opened this issue Oct 2, 2014 · 1 comment

Comments

@wblevine
Copy link

wblevine commented Oct 2, 2014

I installed android sdk from macports and then ran mvn clean install and got the following error:

Missing:

  1. android.support:compatibility-v4:jar:r11

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=android.support -DartifactId=compatibility-v4 -Dversion=r11 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=android.support -DartifactId=compatibility-v4 -Dversion=r11 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) com.concentricsky.android:khanacademy:apk:1.0.0-SNAPSHOT
2) android.support:compatibility-v4:jar:r11


1 required artifact is missing.

for artifact:
com.concentricsky.android:khanacademy:apk:1.0.0-SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2),
codehaus-snapshots (http://snapshots.repository.codehaus.org),
springsource-repo (http://repo.springsource.org/release)

@nahurst
Copy link

nahurst commented Oct 2, 2014

Just saw a similar error after installing Android SDK with brew

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.110s
[INFO] Finished at: Wed Oct 01 20:23:25 EDT 2014
[INFO] Final Memory: 6M/81M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project khanacademy: Could not resolve dependencies for project com.concentricsky.android:khanacademy:apk:1.0.0-SNAPSHOT: Failure to find android.support:compatibility-v4:jar:11 in https://artifactory-2.ampaxs.com/libs-release was cached in the local repository, resolution will not be reattempted until the update interval of amplify has elapsed or updates are forced -> [Help 1]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants