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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T06:10:50+00:00 2026-05-16T06:10:50+00:00

Not a very good title, I’ll try and explain. This has worked for months,

  • 0

Not a very good title, I’ll try and explain.

This has worked for months, then today for some unknown reason, eclipse cant resolve any of the imports from siblings (peer projects), when nothing has changed (really!). No eclipse or eclipse plugin updates, no source code changes, no config changes.

I have a fairly standard project structure:

parent_project
-- clild_project_a
---- pom.xml
-- clild_project_b
---- pom.xml
-- child_project_c
---- pom.xml
-- pom.xml (for parent).

Now both project a and b are dependent on the code from c.

project a pom.xml.

  <parent>
    <artifactId>parent_project</artifactId>
    <groupId>com.mydomain.ge</groupId>
    <version>0.0.1-SNAPSHOT</version>
  </parent>
  ...
  <dependencies>  
    <dependency>
        <groupId>com.mydomain.ge</groupId>
        <artifactId>child_project_c</artifactId>
        <version>0.0.1-SNAPSHOT</version>
    </dependency>
  </dependencies>

and in the parent pom.xml:

  <modules>
    <module>child_project_a</module>
    <module>child_project_b</module>
    <module>child_project_c</module>
  </modules>

So now in Eclipse, all the import statements in say project A importing from project c:

package com.skillkash.ge.api;
import com.skillkash.ge.dao.AlreadyExistsException;

This gives:

The import com.skillkash.ge.dao.AlreadyExistsException cannot be resolved.

I tried the follwing:

  • doing a maven clean (using right click->run as-> maven clen on all child and parents.
  • doing a maven update dependences on all projects
  • doing a maven package on each project.
  • doing m2 maven->”update project configurations” on all projects.
  • restarting eclipse.
  • restarting the computer.

Note 1, in eclipse I have 4 separate projects, one for each child, and one for the parent. the three child projects are also checked into SVN, but I cant easily checkin the parent project as it has the child project folders underneath it.
NOTE 2, I know a lot about ant, but am a noob at maven, but havent had any problems with it till now. e.g. Ive no idea if maven is telling eclipse to use the source of the depentant project, or if it has to compile jar constantly into the local m2 repository, and the dependant project uses that.
NOTE 3, all the other (external) dependences are ok.
NOTE 4, Ive checked that “Resolve dependencies from Workspace projects” is checked.
NOTE 5, in the ecipse java build path dialogue, the peer projects on which it is dependent do not seem to be in either “source”, “projects” or “libraries” tabs. Libraries has a “maven depedencies” sub tree, but under thare are just external jars like log4j.

  • 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-16T06:10:50+00:00Added an answer on May 16, 2026 at 6:10 am

    Does it work if you do a mvn clean install on the parent pom from the command line instead of in eclipse? That will rule out two things:

    1. Whether or not it is an eclipse problem
    2. Whether or not your problem has to do with you using package instead of install

    I noticed you were using the maven package goal. In general, you should always do mvm clean install instead of mvn clean package for work on your local machine. If you don’t use the install goal, then project C never gets installed to your local repository (by default in $HOME/.m2/repository or the equiv in Windows) and thus won’t be able to be referenced by projects A and B.

    Failing that, go inside of your $HOME/.m2/repository and check the actual installed .jar/.pom for project c. It’s directory path will correspond to it’s maven coordinates (e.g. com/mydomain/ge/child_project_c/0.0.1-SNAPSHOT). Make sure the jar has the classes you expect inside of it and make sure the pom installed beside it looks like the one in your source repository.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not a very good title, so my apologies. For some reason, (I wasn't the
I don't speak very good English, not sure about title so will try to
Hi I have some experience with programming but I'm not very good with pointers.
Can anyone please help me with this...I'm not very good with regular expressions and
I'm not very good at SQL, but I'm certainly learning. So this one provides
Apologies for the terrible title, not really sure how to explain this without a
Not a very good title, but I didn't know what to name it. Anyway,
I'm not very good with expressions... I've looked at some online tutorials, but I'm
I'm sorry if the title is not very good, any suggestions are welcome. The
I'm not very good at this, so I'm sure this is a stupid question.

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.