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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T23:32:25+00:00 2026-05-26T23:32:25+00:00

I am using maven2 to build the java project. when I am trying to

  • 0

I am using maven2 to build the java project. when I am trying to build using mvn install I am getting the compilation error saying some package xya.abc.aaa doesnot exist. This package is available in my own jar at local disk. This jar(say test.jar) is created by me.

How can I tell to maven to use this local jar for the package its looking for is availabe at my local disk?

  • 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-26T23:32:26+00:00Added an answer on May 26, 2026 at 11:32 pm

    You need to install the dependencies to your local repository.

    mvn install:install-file
      -Dfile=<path-to-file>
      -DgroupId=<group-id>
      -DartifactId=<artifact-id>
      -Dversion=<version>
      -Dpackaging=<packaging>
      -DgeneratePom=true
    
    Where: <path-to-file>  the path to the file to load
           <group-id>      the group that the file should be registered under
           <artifact-id>   the artifact name for the file
           <version>       the version of the file
           <packaging>     the packaging of the file e.g. jar
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: compiling project with jdk1.5 using maven2 I am trying to build java
Im using maven to build a multi module project. But some projects are in
I am trying to build a simple Java project with Maven. In my pom-file
I am trying to build a Java EE application using Maven. I have the
I am trying to build a maven project to test out some testing software
I am using maven2 with a struts-hibernate Java EE project and developing with myEclipse.
I'm using the shade Maven2 plugin to build a monolithic JAR with all Java
For the past 2 years-(ish) I've been using Maven2 for my build/continuous integration solution.
I've got a project using Maven 2 as the build tool. Now I am
I'm trying to build my application for GoogleAppEngine using maven. I've added the following

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.