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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T14:15:25+00:00 2026-05-30T14:15:25+00:00

I have a Maven project that has always worked fine in Netbeans, but upgrading

  • 0

I have a Maven project that has always worked fine in Netbeans, but upgrading from 6.9 to 7.1 did not go well. I get the following error:

1 problem was encountered while building the effective model for foo.bar:baz:1.0.0
[FATAL] Non-resolvable parent POM: The repository system is offline but the artifact foo:bar-parent:pom:1.0.1 is not available in the local repository. and ‘parent.relativePath’ points at wrong local POM @ line 12, column 13
for project foo.bar:baz:1.0.0 at /Users/me/workspace/pom.xml

I found this bug ticket for Netbeans that pretty well describes the issue for another guy but the suggestion of using “Reload POM” doesn’t work, nor does mvn validate.

There are several confusing items here.

  • Running on commandline works.
  • My co-worker, with identical (by all indications) setup, runs this project on NB 7.1.
  • Building inside Netbeans works (the build succeeds)
  • Using the provided “Prime Build” button on the error dialog starts a build that succeeds.
  • The file is not missing! It is (and has been) in the local repo! Exactly where I’d expect it: .m2/repository/foo/bar-parent/1.0.1/bar-parent-1.0.1.pom

According to the Maven POM intro page, the relativePath attribute is to be used when you have a parent pom/project located in a different-than-normal location (where “normal” is “../pom.xml”).

In my case, my parent project is actually just a pom, and it doesn’t live anywhere except in the repository (locally and remotely). Even if it didn’t exist locally, I’d expect doing a secondary “online” build (as suggested) would fix Netbeans, but it doesn’t.

At one point I manually changed my pom file outside of Netbeans, and the project inside NB fixed itself. I manually modified the subprojects the same way to get them to work but the fix didn’t last. A few minutes later the “[unloadable]” moniker returned, though I don’t know exactly when or what caused it to return.

I’ve tried using the Bundled v3.0.3 Maven, my external v3.0.2 Maven, deleting my ~/.netbeans* folders, deleting my .m2/repository folder, copying his .m2/repository to my machine, deleting all versions of Netbeans and reinstalling 7.1, closing and reopening the projects and the app, letting Netbeans build the project from scratch using both the normal Build, Clean and Build options as well as the Prime Build option on the error dialog, doing the build from scratch on the commandline then importing to Netbeans, any and all combinations thereof, and nothing seems to matter.

For now I’m downgrading to 6.9.1, but I would love to know if there’s something else I can try to make this work.

  • 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-30T14:15:27+00:00Added an answer on May 30, 2026 at 2:15 pm

    Update: I’ve set my settings.xml too… 🙁

    <mirrors>
      <mirror>
        <id>javaforum</id>
        <url>http://nexus.javaforum.hu/nexus/content/groups/public/</url>
        <mirrorOf>*</mirrorOf>
      </mirror>
    </mirrors>
    <profiles>
      <profile>
        <id>default</id>
        <activation>
          <activeByDefault>true</activeByDefault>
        </activation>
        <repositories>
          <repository>
            <id>javaforum</id>
            <url>http://nexus.javaforum.hu/nexus/content/groups/public/</url>
            <releases>
              <enabled>true</enabled>
            </releases>
            <snapshots>
              <enabled>true</enabled>
            </snapshots>
          </repository>
        </repositories>
      </profile>
    </profiles>
    

    It works now with NetBeans 7.x.

    If I remove/comment the “repository” section:

    * CLI (3.0.3) build is working
    * NetBeans 7.x build is working but the project is "unloadable"
    

    If I remove/comment the “mirror” section:

    * CLI (3.0-3) build isn't working
    * NetBeans 7.x build is working, the project looks like good
    

    So, the pom.xml modification is not necessary IMHO… 🙂

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

Sidebar

Related Questions

I have a maven project that has a set of library dependancies that are
I have a maven project that has both code and documentation (pdf files). When
I have a single maven project that has multiple main classes. I want to
I have a Maven project that is a child project. It has many sibling
I'm new to Maven. I have a multi-module maven 2 project that has the
I have a Maven project that looks like the following: - enterprise-pom - commons
I have a maven project that was generated by Spring Roo. Now I am
Currently I have a simple maven project that is building a jar file and
We have a multi-module maven project that uses a profile that defines a buildnumber-maven-plugin
I have a Maven project (in Eclipse using the m2eclipse plugin) that contains code

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.