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><project>/.externalToolBuilders/myLuncher.launch</value>
</dictionary>
</arguments>
</buildCommand>
Someone has any idea how I can do this?
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:
I use the version 2.7 and not 2.9 because it allowed me to use the command
eclipse:m2eclipseand then to use the Project with m2eclipse Plugin