Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7939461
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T23:06:23+00:00 2026-06-03T23:06:23+00:00

I originally found Nico’s advice https://github.com/nicokruger/android-maven-phonegap/issues/1 as I was browsing to find a maven

  • 0

I originally found Nico’s advice https://github.com/nicokruger/android-maven-phonegap/issues/1 as I was browsing to find a maven repository hosting the phonegap .jar file.

While this put me on the path to adding the jar to my local repository, I ran in to all sorts of issues (Maven newbie here) with errors such as:

  • [Error]…Goal requires a project to execute but there is no POM in this directory (Tried adding -DgeneratePom=true to the command line, but this didn’t help)
  • [Error]…The packaging for this project did not assign a file to the build artifact

After working through the issues, I came up with these steps to install. However, when I look at my local .m2 repository I only see the pom file created below; no jar file is present.

Thanks!

Environment

  • Windows 7
  • Apache Maven 3.0.4
  • Java version: 1.6.0_31, vendor: Sun Microsystems Inc.

Steps (Modified: These are the correct steps now. Thanks to Ryan)

  1. Download phonegap 1.7.0 from http://phonegap.com/download

  2. Extract to temp folder

  3. Navigate to: temp/phonegap-phonegap-475bfd2/lib/android

  4. Execute the following at a command prompt:

    mvn install:install-file -Dfile=cordova-1.7.0.jar -DgroupId=org.apache.cordova -DartifactId=phonegap -Dversion=1.7.0 -Dpackaging=jar
    
  5. Phonegap (cordova-1.7.0.jar) should now be installed in your local Maven repository

  6. In your project pom, add the following to your POM file:

    <dependency>
      <groupId>org.apache.cordova</groupId>
      <artifactId>phonegap</artifactId>
      <version>1.7.0</version>
    </dependency>
    
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T23:06:26+00:00Added an answer on June 3, 2026 at 11:06 pm

    Drop the pom and use the install-file goal instead, like this:

    mvn install:install-file -Dfile=cordova-1.7.0.jar -DgroupId=org.apache.cordova -DartifactId=phonegap -Dversion=1.7.0 -Dpackaging=jar
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

originally i was using a .net sdk for facebook found here: http://facebooktoolkit.codeplex.com/ but now,
How do these PHP download pages (e.g. somesite.com/download.php?id=somefile) often found work? I originally thought
Originally, I was having some issues getting this code to function, but after a
This question was originally asked in askubuntu.com but got no attention so I think
I'm calling javac from C# code. Originally I found its location only as follows:
I am using the following code that I originally found from this question: Prevent
I'm trying to do something like the plugin found here: http://www.filamentgroup.com/lab/jquery_plugin_for_requesting_ajax_like_file_downloads/ does. I was
Edited to add more details: (originally asked nearly two months ago...still haven't found a
I originally was using Mustache.js but found that it does not work well for
Originally I wanted to ask this question , but then I found it was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.