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 6858693
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T02:11:28+00:00 2026-05-27T02:11:28+00:00

RESOLVED P.S.Because I don’t have enough reputation to answer my own question right now

  • 0

RESOLVED
P.S.Because I don’t have enough reputation to answer my own question right now so I put the solution in the question.

I just start using Maven with my android project. I use a game engine called libgdx, it’s not in the central repo, so I have to install it by myself.

After check the instruction, I use this method.https://stackoverflow.com/q/2230464/531223.
I add below defined xml code in root pom.xml

<repositories>
<repository>
  <id>my-local-repo</id>
  <url>file://${basedir}/common/repo</url>
</repository>
</repositories>

And install the jar files I needed successfully with the method in that answer. However, when I execute command mvn install or mvn -o install, it still tell me can’t find the jar file. I’m not sure the repository I added in root pom.xml is working.
Can anyone tell me where I made the mistake and how to check whether the project defined repository is working? Thank you.

Thank you Death, I figured it out, it’s my silly fault.

In my project, I have 3 module. common android and desktop. I use common/repo dir as my repository. That’s why I start use Maven. I did everything is correct except 2 mistake.

1.Put the repository code in root pom.xml not in pom.xml in the android dir which I . I just thought it will works but it isn’t.

2.If I put the code in the right dir, I should modify the url, the basedir is changed.

This lesson cost me 3 hours~

  • 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-05-27T02:11:29+00:00Added an answer on May 27, 2026 at 2:11 am
    1. Run mvn help:effective-pom

    2. Look into the <repositories> section, locate your my-local-repo and look up its real path (excluding file:// prefix)

    3. run this command (from the link you found yourself)
      mvn org.apache.maven.plugins:maven-install-plugin:2.3.1:install-file -Dfile=/path/to/your.jar -DgroupId=yourGroup -DartifactId=yourArtifactId -Dversion=1.0 -Dpackaging=jar -DlocalRepositoryPath=the_path_you_looked_up_excluding_file://

    4. if (3) produces errors post them here, if not – make sure that folder the_path_you_looked_up_excluding_file:// contains a subfolder structure grp/yourArtifactId/1.0/ with your.jar in there

    5. after all that your project must be able to locate the dependency with this definition

      <dependency>
          <groupId>grp</groupId>
          <artifactId>yourArtifactId</artifactId>
          <version>1.0</version>
      </dependency>
      
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

UPDATE: I have somewhat resolved the issue. Just in case if anyone runs in
I asked a question a while ago about which local DB was right for
I've just upgraded a solution from .NET 3.5 to .NET 4 In the same
because i want to have smarter upload in my site, i downloaded gwtupload-samples-0.6.1 from
I current have a solution with an Azure WCF service and a Windows Phone
This question is a followup to a previous question , that was resolved thanks
Last Edit: Resolved! Well, i was unable to find the ENTIRE answer here but
I know that there are tons of similar questions because I have read them
* Resolved * I implemented SimpleCart(js) to my one project. One can register and
I resolved a code issue with a gem, but how do I then use

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.