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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T12:54:22+00:00 2026-05-19T12:54:22+00:00

I have multiple maven projects with their individual pom.xml’s an a parent pom.xml. my_workspace

  • 0

I have multiple maven projects with their individual pom.xml’s an a parent pom.xml.

my_workspace
├── application-project
│   ├── pom.xml
│   └── src
│       ├── main
│           └── ...
│       └── test
│           └── ...
├── common-project
│   ├── pom.xml
│   └── src
│       ├── main
│           └── ...
│       └── test
│           └── ...
└── pom.xml

Now, from Eclipse, I can right click on common-project or application-project, I see Run As Maven… options there. But when I need to run a specific goal for all the projects, i.e. which is in the parent pom.xml, I don’t understand how to go about it, if not using command line?

  • 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-19T12:54:23+00:00Added an answer on May 19, 2026 at 12:54 pm

    I guess you have appropriate plug-in, if not already having, install m2eclipse plugin first

    Run > Run Configuration > Maven Build

    Double click[*], choose the project, put down the goals, put down profile if any.

    Fron next time use this (will be available in drop down) to execute your own goals.

    [*] The form that opens here has all the capability to construct a maven command that you can run from command line. You might need to play around a bit to get what you actually wanted.


    Updated as question was modified:

    OK, so your parent project is your workspace folder. worry not.

    Run > Run Configuration > Maven Build

    Double click, browse filesystem and select the workspace folder, put down the goals, put down profile if any. I have just tested it. It works.


    Yet another way, as OP found out, that you can click variables... button beneath the text-field for Base Directory and choose workspace_loc to point to your workspace directory as the base directory for Maven build.

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

Sidebar

Related Questions

I have a maven pom.xml file with multiple instances of a same goal defined
I have a single maven project that has multiple main classes. I want to
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 have maven multiple-module project. A: parent. B: child1. C: child2. B will be
I have a maven multiple-module project, which is giving me headaches in the assembly:assembly
We have multiple maven projects depending on on our own common libraries. When we
I have read that to build multiple Maven projects in one step (with automatic
I'm very new to Maven, and have a question about building multiple Maven projects.
I have to build an application using Maven for PHP that has multiple modules.
I build in maven multiple projects (let's name them A,B,C). Project A uses .jar

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.