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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:55:58+00:00 2026-06-04T00:55:58+00:00

I’ve just started using maven for trying to build a multi module project. Everything

  • 0

I’ve just started using maven for trying to build a multi module project.

Everything would be fine other than 2 small problems.

Using the eclipse wizard to create a new maven project of ‘simple J2EE’ archetype fails due to a bug in eclipse whereby when looking for archetypes it ignores the proxy setting (https://bugs.eclipse.org/bugs/show_bug.cgi?id=348893)

solution is to create my project on the command line and then copy the resulting file structure into a ‘simple maven’ project inside my workspace – the import project fails also!

My real issue however is the following

When I click on the project folder and ‘create a new java class’ it puts the class in the wrong place, according to where it should be in the maven architecture (am I selecting the wrong option?). So I move it.

so now I create a second class, that has the first class as a member. Both classes are obviously inside the same package namespace. But I can’t see any of the methods of the member class from my second.

I’m guessing I’m doing something wrong in my POM or in my structure.

But I don’t know what and don’t know what info you may need to help me resolve it.

For now I have reverted to creating my sub module as a separate package in eclipse, using ANT and the various eclipse tools to point to the required libraries etc. then when I’ve done testing I convert the project into a ‘maven’ project. My parent POM and child POM all validate OK from within eclipse after I have done this. But again if I decide to extend the functionality and add in a new class to my module the class file ends up in the wrong place and I can’t see my other classes from it (or this new class from them).

Please help. I like the idea of Maven and using it to control my dependencies, by the way things are going I’m going to head over to ANT, and maybe learn IVY for dependency control (although I’m a bit muffed to have gone to all the struggle of getting maven to function only to throw it out!)

Should I stick to ANT / IVY and forget maven, but keep up the maven directory structure for the future?

Edit.

So I may have missed something… I just tried again creating a simple maven project in eclipse, this time I didn’t select an archetype.
I has put my new ‘module’ underneath the parent folder. This isn’t what I have been doing, I’ve created a numer of external modules at the same level as my parent. I notice from the effective POM in the parent (with my test module) it has a section and and other tags. Will I solve my problem by adding this into my individual module POM’s ?

  • 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-06-04T00:56:00+00:00Added an answer on June 4, 2026 at 12:56 am

    Look at your .classpath.
    Verify that the source folders and targets are where eclipse expects them.

    An example:

    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
        <classpathentry kind="src" output="target/classes" path="src/main/java"/>
        <classpathentry kind="src" output="target/test-classes" path="src/test/java"/>
        <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
        <classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"/>
        <classpathentry kind="output" path="target/classes"/>
    </classpath>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're building an app, our first using Rails 3, and we're having to build
I have just tried to save a simple *.rtf file with some websites and
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I would like to count the length of a string with PHP. The string
I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I am reading a book about Javascript and jQuery and using one of the
I would like to run a str_replace or preg_replace which looks for certain words

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.