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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T07:39:11+00:00 2026-05-16T07:39:11+00:00

I installed m2eclipse to build a java project in Eclipse. I imported the project

  • 0

I installed m2eclipse to build a java project in Eclipse.

I imported the project as follows:

Import->
Maven->
Existing Maven Projects->
Import Maven Projects->
- Select root directory
- Select pom file
- Click Finish

To be sure m2eclipse was actually building the project, I deleted the target directory and made sure it was re-created by m2eclipse and it was. But unlike with the command-line version of maven which built everything perfectly, m2eclipse leaves a large number of build errors in the source code.

Is it possible that I did not configure m2eclipse properly? How would I check this?

This is a github link to the project I’m trying to build. I’m getting the @Override build errors at this line. It says “The method createNewToken must override a superclass method”.

  • 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-16T07:39:12+00:00Added an answer on May 16, 2026 at 7:39 am

    Update: The problem is the same as the one described in ‘Must Override a Superclass Method’ Errors after importing a project into Eclipse and here is what the accepted answer says:

    Eclipse is defaulting to Java 1.5 and you have classes implementing interface methods (which in Java 1.6 can be annotated with @Override, but in Java 1.5 can only be applied to methods overriding a superclass method).

    Changing the compiler level to Java 1.6 would make the problem go away. To do so, modify the compiler plugin configuration:

    <plugin>
      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-compiler-plugin</artifactId>
      <version>2.1</version>
      <configuration>
        <source>1.6</source>
        <target>1.6</target>
      </configuration>
    </plugin>
    

    And update the project configuration (right-click on the project then Maven V Update Project Configuration) does solve the problem under Eclipse.

    Or stick with 1.5 but remove the problematic @Override annotations.

    I don’t know how Taylor got things working with a Java 1.5 compiler level. And my guess is that the project wouldn’t build on the command line with a JDK 5.


    But unlike with the command-line version of maven which built everything perfectly, m2eclipse leaves a large number of build errors in the source code.

    Hard to say what is happening exactly without seeing those “errors” (are them really errors?). Please provide some traces.

    Is it possible that I did not configure m2eclipse properly? How would I check this?

    One difference is that m2eclipse uses by default a embedded version of Maven 3 which is probably not the same version that you use on the command line. You can change that through Window V Preferences V Maven V Installation (and add your own installation):

    alt text

    But while I would recommend to use the same version under Eclipse than on the command line, this is very likely not the root cause of the problem, Maven 2 builds should run on Maven 3 without problems.

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

Sidebar

Ask A Question

Stats

  • Questions 497k
  • Answers 497k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Well anyone can modify static field and they will see… May 16, 2026 at 11:56 am
  • Editorial Team
    Editorial Team added an answer The first example shows how you can specify a different… May 16, 2026 at 11:56 am
  • Editorial Team
    Editorial Team added an answer Look at the .resx file to see what all is… May 16, 2026 at 11:56 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I use m2eclipse to import Maven Java projects in Eclipse. It fails to recognize
I'm using Eclipse along with plugin m2eclipse to build and manage my project. In
I'm having maven project on Eclipse with m2eclipse plugin. This project has some dependencies.
I imported a Maven project and it used Java 1.5 even though I have
I'm using Eclipse 3.5, Maven 2, m2eclipse and Tomcat 6. So i create Maven
After installed m2eclipse, I received a message saying that Eclipse needs to run in
I contribute to and implement some open source projects that use a Maven2 build
I am using maven2 with a struts-hibernate Java EE project and developing with myEclipse.
I have installed WAMP and enable some extension. After that i have installed eclipse
I recently just installed Eclipse onto a Ubuntu 10.04 machine. Now, I'm reading Getting

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.