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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T02:43:49+00:00 2026-06-16T02:43:49+00:00

I have a maven 3 project in eclipse who’s structure is as follows. The

  • 0

I have a maven 3 project in eclipse who’s structure is as follows. The app project serves as the parent project to all the other apps. I have included the pom.xml from the app project (first pom), and the pom.xml from the app-web project. (second pom)

app
app-ear
app-ejg
app-web

The problem I’m having is that I can see the dependencies from the parent in the effective pom of the app-web/pom.xml but my java classes in the app-web project cannot import from these dependencies. I get “The import com.fasterxml cannot be resolved”. I have this problem for the app-ejb project as well. I don’t think this is just an “eclipse error” either. If I try to mvn clean install from the app project I get compilation errors complaining about the same thing.

By the way the only change I’ve made is moving the dependencies up out of the pom.xml of the children and into the parent. I wanted to centralize things as much as possible and keep my project config as DRY as possible. Before moving the dependencies up the hierarchy things worked fine. I am using Eclipse Juno for Java EE developers with m2e, m2e-wtp, and WTP patches installed.

app/pom.xml

<?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/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.boardgamebuilder</groupId>
<artifactId>app</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>pom</packaging>
<name>app application</name>

<modules>
    <module>app-ejb</module>
    <module>app-web</module>
    <module>app-ear</module>
</modules>

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <java-version>1.6</java-version>
    <org.slf4j-version>1.7.2</org.slf4j-version>
    <com.fasterxml.jackson-version>2.1.1</com.fasterxml.jackson-version>
</properties>

<dependencyManagement>
    <dependencies>

        <!-- JSON handler -->
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-annotations</artifactId>
            <version>${com.fasterxml.jackson-version}</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-core</artifactId>
            <version>${com.fasterxml.jackson-version}</version>
        </dependency>
        <dependency>
            <groupId>com.fasterxml.jackson.core</groupId>
            <artifactId>jackson-databind</artifactId>
            <version>${com.fasterxml.jackson-version}</version>
        </dependency>

        <!-- RESTful servlet -->
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-server</artifactId>
            <version>1.16</version>
        </dependency>

        <!-- Logging -->
        <dependency>
            <groupId>org.slf4j</groupId>
            <artifactId>slf4j-api</artifactId>
            <version>${org.slf4j-version}</version>
        </dependency>
        <dependency>
            <groupId>ch.qos.logback</groupId>
            <artifactId>logback-classic</artifactId>
            <version>1.0.7</version>
        </dependency>

        <!-- Test -->
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.10</version>
            <scope>test</scope>
        </dependency>

        <!-- Misc -->
        <dependency>
            <groupId>javax</groupId>
            <artifactId>javaee-web-api</artifactId>
            <version>6.0</version>
            <scope>provided</scope>
        </dependency>

        <!-- Define the version of the EJB jar so that we don't need to repeat 
            ourselves in every module -->
        <dependency>
            <groupId>com.boardgamebuilder</groupId>
            <artifactId>app-ejb</artifactId>
            <version>0.0.1-SNAPSHOT</version>
            <type>ejb</type>
        </dependency>

        <!-- Define the version of the WAR so that we don't need to repeat ourselves 
            in every module -->
        <dependency>
            <groupId>com.boardgamebuilder</groupId>
            <artifactId>app-web</artifactId>
            <version>0.0.1-SNAPSHOT</version>
            <type>war</type>
            <scope>compile</scope>
        </dependency>

    </dependencies>
</dependencyManagement>

<build>
    <pluginManagement>
        <plugins>
            <!-- Compiler plugin enforces Java 1.6 compatibility and activates annotation 
                processors -->
            <plugin>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.3.2</version>
                <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
                </configuration>
            </plugin>
        </plugins>
    </pluginManagement>
</build>

app-web/pom.xml

http://maven.apache.org/maven-v4_0_0.xsd&#8221;>
4.0.0

<parent>
    <artifactId>app</artifactId>
    <groupId>com.boardgamebuilder</groupId>
    <version>0.0.1-SNAPSHOT</version>
</parent>

<artifactId>app-web</artifactId>
<packaging>war</packaging>

<name>app Web module</name>
<build>
    <plugins>
        <plugin>
            <artifactId>maven-war-plugin</artifactId>
            <version>2.1.1</version>
        </plugin>
    </plugins>
</build>

  • 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-16T02:43:55+00:00Added an answer on June 16, 2026 at 2:43 am

    After moving the jackson-annotations and jackson-core dependencies to the parent POM you still need to reference it in the app-web module by specifying (minimally) the groupId and artifactId. Maven documentation explains this usage.

    • 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 in eclipse with a folder structure are follows -
I have created a maven project in eclipse using the maven2eclipse plugin. I then
I am importing a maven project into Eclipse. I have the m2e plugin installed
I have set up my maven project using the m2e plugin in eclipse indigo,
I'm running Eclipse Indigo on Mac 10.7.4. I have a Maven (3.0.3) project set
I have maven project with several modules. Need to deploy all modules( jars and
I have a Maven Project in Eclipse. I want to deploy it in my
I have a maven project under eclipse with m2eclipse. WHen running integration tests the
I have a maven project imported into Eclipse. I'm trying to understand the code
I have several Maven projects in eclipse that depends on each other. Some of

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.