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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T13:32:49+00:00 2026-05-31T13:32:49+00:00

[CLOSED – I had to move classes from test/java to main/java and update the

  • 0

[CLOSED – I had to move classes from test/java to main/java and update the maven repository via the IDE “maven options”]

I’m new to maven and inexperienced with java development. I’m using IntelliJ Idea as IDE. I’m using Maven 3.0.4.

I created a “project A” and a “project B”, each with some classes. Now when I try to create a dependency in project A to a class in project B I can’t seem to find any classes that are part of project B. When I check the maven repository I can see that a .jar file is created based on project B.

To clarify: when adding a dependency to project B I do find an artifact called “project B” but I cannot find any classes that are part of project B.

It doesn’t seem like I can access and use any of the classes that are part of project B inside project A which would make this installation worthless.

—

Please tell me what information I should include for you to help me solve this problem.

[EDIT] Here is the project A‘s pom with a dependency on project B. However I either don’t understand how to use it in my project or it doesn’t work. While I can use IntelliJ’s functionality to find and add the artifact, intelliJ can’t seem to find any classes that are part of project B (while it does find classes that are part of other pre-defined packages in the maven repository):

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>planet</groupId>
    <artifactId>planet</artifactId>
    <version>1.0</version>
    <dependencies>
        <dependency>
            <groupId>toolbox</groupId>
            <artifactId>toolbox</artifactId>
            <version>1.0</version>
        </dependency>
    </dependencies>


</project>
  • 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-31T13:32:50+00:00Added an answer on May 31, 2026 at 1:32 pm

    I had to move my classes from test/java to main/java. Silly, but it took me a whole day to realise this. This only worked after updating the repository in “maven options” via the IDE.

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

Sidebar

Related Questions

When my application is closed, the main controller class removes itself as Observer from
When Form2 is closed, via it's X button, the Main form is sometimes hidden
This may be closed, a couple of minutes from now, but I think I
I closed the main.xml Layout file in Eclipse, and all of the sudden, this
Closed as duplicate of What are some ways to protect emails on websites from
The Open/Closed Principle states that software entities (classes, modules, etc.) should be open for
I closed the opened eclipse forcibly from task manager and after that i'm recieving
I'm working on a closed source java app that analyzes JAR files. Since java
Can a socket be closed from another thread when a send / recv on
The open-closed principle states that Software entities (classes, modules, functions, etc.) should be open

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.