You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Matt Tucker (JIRA)" <ji...@codehaus.org> on 2006/07/19 02:35:31 UTC
[jira] Created: (MECLIPSE-128) Eclipse goal breaks
manually-configured external builder
Eclipse goal breaks manually-configured external builder
--------------------------------------------------------
Key: MECLIPSE-128
URL: http://jira.codehaus.org/browse/MECLIPSE-128
Project: Maven 2.x Eclipse Plugin
Issue Type: Bug
Affects Versions: 2.2
Environment: Windows, Eclipse 3.1.2
Reporter: Matt Tucker
I'm attempting to specify an external build tool for a project in Eclipse that does Maven dependency resolution. I do this by:
1. in Eclipse going to Project->Properties->Builders
2. click New
3. select Program, click Ok
4. Specify
Location: ${env_var:MAVEN_HOME}/bin/mvn.bat
Working directory: ${project_loc}
Arguments: eclipse:eclipse
5. Switch to Refresh tab, specify:
[x] Refresh resources upon completion
[*] The project containing ...
6. Click Ok
Specifying this build does two things within Eclipse. It alters the .project file and adds:
<projectDescription>
...
<buildSpec>
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>auto,clean,incremental,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value><project>/.externalToolBuilders/Maven Builder.launch</value>
</dictionary>
</arguments>
</buildCommand>
...
</buildSpec>
...
</projectDescription>
And it creates a file .externalToolBuilders/<builder name>.launch, which creates the bulk of the settings for the custom build task.
However, when the eclipse goal is run, the Maven Eclipse plugin alters the build command specification in .project to be:
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<arguments/>
</buildCommand>
It's completely throwing away the specified arguments to the buildCommand, which causes Eclipse to not be able to find the custom build task details, which causes any subsequent builds to fail. The Maven Eclipse plugin needs to preserve this information when it writes the .project file for, as far as I can tell, any auto-building to be useful or even possible.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MECLIPSE-128) Eclipse goal breaks
manually-configured external builder
Posted by "Sumeet Saxena (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_94051 ]
Sumeet Saxena commented on MECLIPSE-128:
----------------------------------------
I am blocked due to the same issue.
- Can anyone tell me when this is expected to get fixed?
- Can someone tell me of an alternate way to get the same thing done?
> Eclipse goal breaks manually-configured external builder
> --------------------------------------------------------
>
> Key: MECLIPSE-128
> URL: http://jira.codehaus.org/browse/MECLIPSE-128
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Affects Versions: 2.2
> Environment: Windows, Eclipse 3.1.2
> Reporter: Matt Tucker
>
> I'm attempting to specify an external build tool for a project in Eclipse that does Maven dependency resolution. I do this by:
> 1. in Eclipse going to Project->Properties->Builders
> 2. click New
> 3. select Program, click Ok
> 4. Specify
>
> Location: ${env_var:MAVEN_HOME}/bin/mvn.bat
> Working directory: ${project_loc}
> Arguments: eclipse:eclipse
> 5. Switch to Refresh tab, specify:
> [x] Refresh resources upon completion
> [*] The project containing ...
> 6. Click Ok
> Specifying this build does two things within Eclipse. It alters the .project file and adds:
> <projectDescription>
> ...
> <buildSpec>
> <buildCommand>
> <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
> <triggers>auto,clean,incremental,</triggers>
> <arguments>
> <dictionary>
> <key>LaunchConfigHandle</key>
> <value><project>/.externalToolBuilders/Maven Builder.launch</value>
> </dictionary>
> </arguments>
> </buildCommand>
> ...
> </buildSpec>
> ...
> </projectDescription>
> And it creates a file .externalToolBuilders/<builder name>.launch, which creates the bulk of the settings for the custom build task.
> However, when the eclipse goal is run, the Maven Eclipse plugin alters the build command specification in .project to be:
> <buildCommand>
> <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
> <arguments/>
> </buildCommand>
> It's completely throwing away the specified arguments to the buildCommand, which causes Eclipse to not be able to find the custom build task details, which causes any subsequent builds to fail. The Maven Eclipse plugin needs to preserve this information when it writes the .project file for, as far as I can tell, any auto-building to be useful or even possible.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MECLIPSE-128) Eclipse goal breaks
manually-configured external builder
Posted by "Sebastian Dietrich (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=176736#action_176736 ]
Sebastian Dietrich commented on MECLIPSE-128:
---------------------------------------------
We are as well blocked due to the same issue - it still does not work with the latest maven-eclipse-plugin and eclipse 3.4
Specifying extra build commands like mentioned above still does not work:
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>full,incremental</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value>.externalToolBuilders/jasper-builder.launch</value>-->
</dictionary>
</arguments>
</buildCommand>
still the resulting build command is
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<arguments/>
</buildCommand>
> Eclipse goal breaks manually-configured external builder
> --------------------------------------------------------
>
> Key: MECLIPSE-128
> URL: http://jira.codehaus.org/browse/MECLIPSE-128
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: Core : Dependencies resolution and build path (.classpath)
> Affects Versions: 2.2
> Environment: Windows, Eclipse 3.1.2
> Reporter: Matt Tucker
>
> I'm attempting to specify an external build tool for a project in Eclipse that does Maven dependency resolution. I do this by:
> 1. in Eclipse going to Project->Properties->Builders
> 2. click New
> 3. select Program, click Ok
> 4. Specify
>
> Location: ${env_var:MAVEN_HOME}/bin/mvn.bat
> Working directory: ${project_loc}
> Arguments: eclipse:eclipse
> 5. Switch to Refresh tab, specify:
> [x] Refresh resources upon completion
> [*] The project containing ...
> 6. Click Ok
> Specifying this build does two things within Eclipse. It alters the .project file and adds:
> <projectDescription>
> ...
> <buildSpec>
> <buildCommand>
> <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
> <triggers>auto,clean,incremental,</triggers>
> <arguments>
> <dictionary>
> <key>LaunchConfigHandle</key>
> <value><project>/.externalToolBuilders/Maven Builder.launch</value>
> </dictionary>
> </arguments>
> </buildCommand>
> ...
> </buildSpec>
> ...
> </projectDescription>
> And it creates a file .externalToolBuilders/<builder name>.launch, which creates the bulk of the settings for the custom build task.
> However, when the eclipse goal is run, the Maven Eclipse plugin alters the build command specification in .project to be:
> <buildCommand>
> <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
> <arguments/>
> </buildCommand>
> It's completely throwing away the specified arguments to the buildCommand, which causes Eclipse to not be able to find the custom build task details, which causes any subsequent builds to fail. The Maven Eclipse plugin needs to preserve this information when it writes the .project file for, as far as I can tell, any auto-building to be useful or even possible.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MECLIPSE-128) Eclipse goal breaks
manually-configured external builder
Posted by "Alexey Kakunin (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_87448 ]
Alexey Kakunin commented on MECLIPSE-128:
-----------------------------------------
I just checked with latest version of maven-eclipse-plugin (2.3) and meet same problem.
Even if I specified extra builder in my pom-file as it is described in documentation like:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-eclipse-plugin</artifactId>
<configuration>
<workspace>${basedir}</workspace>
<!-- WTP version 1.5 currently is not supported -->
<wtpversion>1.0</wtpversion>
<buildCommands>
<buildCommand>
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
<triggers>full,incremental,</triggers>
<arguments>
<dictionary>
<key>LaunchConfigHandle</key>
<value><project>/.externalToolBuilders/Jasper Reports Builder.launch</value>
</dictionary>
</arguments>
</buildCommand>
</buildCommands>
</configuration>
</plugin>
> Eclipse goal breaks manually-configured external builder
> --------------------------------------------------------
>
> Key: MECLIPSE-128
> URL: http://jira.codehaus.org/browse/MECLIPSE-128
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Affects Versions: 2.2
> Environment: Windows, Eclipse 3.1.2
> Reporter: Matt Tucker
>
> I'm attempting to specify an external build tool for a project in Eclipse that does Maven dependency resolution. I do this by:
> 1. in Eclipse going to Project->Properties->Builders
> 2. click New
> 3. select Program, click Ok
> 4. Specify
>
> Location: ${env_var:MAVEN_HOME}/bin/mvn.bat
> Working directory: ${project_loc}
> Arguments: eclipse:eclipse
> 5. Switch to Refresh tab, specify:
> [x] Refresh resources upon completion
> [*] The project containing ...
> 6. Click Ok
> Specifying this build does two things within Eclipse. It alters the .project file and adds:
> <projectDescription>
> ...
> <buildSpec>
> <buildCommand>
> <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
> <triggers>auto,clean,incremental,</triggers>
> <arguments>
> <dictionary>
> <key>LaunchConfigHandle</key>
> <value><project>/.externalToolBuilders/Maven Builder.launch</value>
> </dictionary>
> </arguments>
> </buildCommand>
> ...
> </buildSpec>
> ...
> </projectDescription>
> And it creates a file .externalToolBuilders/<builder name>.launch, which creates the bulk of the settings for the custom build task.
> However, when the eclipse goal is run, the Maven Eclipse plugin alters the build command specification in .project to be:
> <buildCommand>
> <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
> <arguments/>
> </buildCommand>
> It's completely throwing away the specified arguments to the buildCommand, which causes Eclipse to not be able to find the custom build task details, which causes any subsequent builds to fail. The Maven Eclipse plugin needs to preserve this information when it writes the .project file for, as far as I can tell, any auto-building to be useful or even possible.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (MECLIPSE-128) Eclipse goal breaks
manually-configured external builder
Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arnaud Heritier updated MECLIPSE-128:
-------------------------------------
Component/s: Dependencies resolution and build path
> Eclipse goal breaks manually-configured external builder
> --------------------------------------------------------
>
> Key: MECLIPSE-128
> URL: http://jira.codehaus.org/browse/MECLIPSE-128
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Components: Dependencies resolution and build path
> Affects Versions: 2.2
> Environment: Windows, Eclipse 3.1.2
> Reporter: Matt Tucker
>
> I'm attempting to specify an external build tool for a project in Eclipse that does Maven dependency resolution. I do this by:
> 1. in Eclipse going to Project->Properties->Builders
> 2. click New
> 3. select Program, click Ok
> 4. Specify
>
> Location: ${env_var:MAVEN_HOME}/bin/mvn.bat
> Working directory: ${project_loc}
> Arguments: eclipse:eclipse
> 5. Switch to Refresh tab, specify:
> [x] Refresh resources upon completion
> [*] The project containing ...
> 6. Click Ok
> Specifying this build does two things within Eclipse. It alters the .project file and adds:
> <projectDescription>
> ...
> <buildSpec>
> <buildCommand>
> <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
> <triggers>auto,clean,incremental,</triggers>
> <arguments>
> <dictionary>
> <key>LaunchConfigHandle</key>
> <value><project>/.externalToolBuilders/Maven Builder.launch</value>
> </dictionary>
> </arguments>
> </buildCommand>
> ...
> </buildSpec>
> ...
> </projectDescription>
> And it creates a file .externalToolBuilders/<builder name>.launch, which creates the bulk of the settings for the custom build task.
> However, when the eclipse goal is run, the Maven Eclipse plugin alters the build command specification in .project to be:
> <buildCommand>
> <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
> <arguments/>
> </buildCommand>
> It's completely throwing away the specified arguments to the buildCommand, which causes Eclipse to not be able to find the custom build task details, which causes any subsequent builds to fail. The Maven Eclipse plugin needs to preserve this information when it writes the .project file for, as far as I can tell, any auto-building to be useful or even possible.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MECLIPSE-128) Eclipse goal breaks
manually-configured external builder
Posted by "Kenney Westerhof (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-128?page=comments#action_76864 ]
Kenney Westerhof commented on MECLIPSE-128:
-------------------------------------------
Could you please verify if this is still the case? Lots of effort has gone into preserving existing configurations.
> Eclipse goal breaks manually-configured external builder
> --------------------------------------------------------
>
> Key: MECLIPSE-128
> URL: http://jira.codehaus.org/browse/MECLIPSE-128
> Project: Maven 2.x Eclipse Plugin
> Issue Type: Bug
> Affects Versions: 2.2
> Environment: Windows, Eclipse 3.1.2
> Reporter: Matt Tucker
>
> I'm attempting to specify an external build tool for a project in Eclipse that does Maven dependency resolution. I do this by:
> 1. in Eclipse going to Project->Properties->Builders
> 2. click New
> 3. select Program, click Ok
> 4. Specify
>
> Location: ${env_var:MAVEN_HOME}/bin/mvn.bat
> Working directory: ${project_loc}
> Arguments: eclipse:eclipse
> 5. Switch to Refresh tab, specify:
> [x] Refresh resources upon completion
> [*] The project containing ...
> 6. Click Ok
> Specifying this build does two things within Eclipse. It alters the .project file and adds:
> <projectDescription>
> ...
> <buildSpec>
> <buildCommand>
> <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
> <triggers>auto,clean,incremental,</triggers>
> <arguments>
> <dictionary>
> <key>LaunchConfigHandle</key>
> <value><project>/.externalToolBuilders/Maven Builder.launch</value>
> </dictionary>
> </arguments>
> </buildCommand>
> ...
> </buildSpec>
> ...
> </projectDescription>
> And it creates a file .externalToolBuilders/<builder name>.launch, which creates the bulk of the settings for the custom build task.
> However, when the eclipse goal is run, the Maven Eclipse plugin alters the build command specification in .project to be:
> <buildCommand>
> <name>org.eclipse.ui.externaltools.ExternalToolBuilder</name>
> <arguments/>
> </buildCommand>
> It's completely throwing away the specified arguments to the buildCommand, which causes Eclipse to not be able to find the custom build task details, which causes any subsequent builds to fail. The Maven Eclipse plugin needs to preserve this information when it writes the .project file for, as far as I can tell, any auto-building to be useful or even possible.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira