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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:13:08+00:00 2026-06-03T16:13:08+00:00

I need to use Maven to add a new buildCommand in my .project file.

  • 0

I need to use Maven to add a new buildCommand in my .project file.

My .project file (it was created by Maven):

<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>myProject</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
    <buildCommand>
        <name>org.eclipse.jdt.core.javabuilder</name>
        <arguments>
        </arguments>
    </buildCommand>
    <buildCommand>
        <name>org.maven.ide.eclipse.maven2Builder</name>
        <arguments>
        </arguments>
    </buildCommand>
</buildSpec>
<natures>
    <nature>org.eclipse.jdt.core.javanature</nature>
    <nature>org.maven.ide.eclipse.maven2Nature</nature>
</natures>

I have to add the following buildCommand:

<buildCommand>
        <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
        <triggers>auto,full,incremental,</triggers>
        <arguments>
            <dictionary>
                <key>LaunchConfigHandle</key>
                <value>&lt;project&gt;/.externalToolBuilders/myLuncher.launch</value>
            </dictionary>
        </arguments>
    </buildCommand>

Someone has any idea how I can do this?

  • 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-03T16:13:10+00:00Added an answer on June 3, 2026 at 4:13 pm

    Thanks for your answer Attila – with some minor modifications I made it work. I tried to edit your post, but the edit was not accepted…

    I used the plugin in the following way:

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-eclipse-plugin</artifactId>
        <version>2.7</version>
        <configuration>
            <additionalBuildcommands>
                <buildCommand>
                    <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
                    <triggers>auto,full,incremental,</triggers>
                    <arguments>
                        <LaunchConfigHandle>
                        &lt;project&gt;/.externalToolBuilders/myLuncher.launch
                        </LaunchConfigHandle>
                    </arguments>
                </buildCommand>
            </additionalBuildcommands>  
        </configuration>
    </plugin>
    

    I use the version 2.7 and not 2.9 because it allowed me to use the command eclipse:m2eclipse and then to use the Project with m2eclipse Plugin

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

Sidebar

Related Questions

I have a project with Maven build and need to add some basic performance
I have a multi-module project in maven, where other projects need to use the
I need to use a C library to access and older file format used
I currently have a Maven application within Netbeans. Since I need to use regular
I have a multi-module Maven project that makes use of WAR overlays (stack of
I am attempting to take an existing Eclipse project and add a pom.xml so
I've got a project which uses GWT. I use maven to manage dependencies, so
I need to use XML to JSON lib in my war. I followed a
How to create new Eclipse RCP project using Maven ( preferably m2eclipse )? I
Suppose I have created an empty Maven project in Eclipse. What is the shortest

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.