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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T05:40:50+00:00 2026-06-10T05:40:50+00:00

I have a pom.xml, which has following stuff declared Plugins – maven-surefire-plugin, groovy-maven-plugin and

  • 0

I have a pom.xml, which has following stuff declared

Plugins – maven-surefire-plugin, groovy-maven-plugin and maven-jar-plugin
Along with this couple of dependencies for the project and a couple of profiles.

When i run the following command from command line things move as per expectation

mvn clean install -P testProfile

but when i try to run the same command from Eclipse(for debugging purpose), maven runs fine(maven tries to resolve the dependencies but further processing is halted due to errors) but debug mode is not launched i.e. it does stop at my breakpoints specified.

but when i try to debug the same project as JUnit it does stop at those breakpoints.

Any idea what I am doing wrong, when using maven.

  • 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-10T05:40:52+00:00Added an answer on June 10, 2026 at 5:40 am

    Well I have solved the problem.

    It is due to usage of surefire-plugin.

    When you use surefire plugin, it runs your tests in another forked process not in the current process, that’s why you are not able to debug your code.

    If you want to debug your code, you need to make sure that surefire does not fork the tests. For this put the following setting in your maven configuration before launching the debug

    forkMode=never
    

    This should do the job for you.

    For more information visit surefire documentation page.

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

Sidebar

Related Questions

I have the following snippet in my pom.xml (Full pom attached below which can
I have a main pom.xml which has multiple modules. These modules need to generate
I have to build an Eclipse-plugin with a Maven/Tycho which has dependencies to other
I have a maven pom.xml file with multiple instances of a same goal defined
I have a Grails project with pom.xml that is treated as Maven project by
I have a maven dependency in my pom.xml as such: <dependency> <groupId>com.foo</groupId> <artifactId>Bar</artifactId> <version>1.2.3</version>
I've got artefacts which are built and released using Maven. The artefact's original pom.xml
I have the following dependency in my pom.xml <dependency> <groupId>javax.sql</groupId> <artifactId>jdbc-stdext</artifactId> <version>2.0</version> <scope>system</scope> <systemPath>${java.home}/lib/rt.jar</systemPath>
I have two projects: Project-Core Project-Source Project-Core POM.xml: <groupId>com.company</groupId> <artifactId>project-core</artifactId> <packaging>jar</packaging> <version>2.1</version> Project-Source POM.xml:
I installed m2eclipse plugin. I want to create pom.xml in my project which is

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.