You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Hasan Ceylan (JIRA)" <ji...@codehaus.org> on 2007/03/02 22:46:05 UTC
[jira] Created: (MECLIPSE-235) Eclipse Maven plugin has its own
Classpath Container that conflicts with generated class paths when enabled.
Eclipse Maven plugin has its own Classpath Container that conflicts with generated class paths when enabled.
------------------------------------------------------------------------------------------------------------
Key: MECLIPSE-235
URL: http://jira.codehaus.org/browse/MECLIPSE-235
Project: Maven 2.x Eclipse Plugin
Issue Type: New Feature
Environment: Should be OK for ALL
Reporter: Hasan Ceylan
Fix For: 2.4
Attachments: eclipseM2Plugin.diff
When we create eclipse projects using the maven-eclipse-plugin, all the class path entries for the dependent libraries are added to the .classpath.
For those like me who has eclipse maven plugin, enabling maven2 for the generated project creates duplicate libraries as maven also introduces its own container based on the information in the pom.xml.
I took the liberty to modify the head, and introduced the "eclipse.withM2Plugin" parameter. If this parameter is true in the runtime,
1) In EclipsePlugin.setup()
a) If "org.maven.ide.eclipse.maven2Nature" nature is not added in the configuration, it is added automatically.
b) If "org.maven.ide.eclipse.maven2Builder" builder is not added in the configuration, it is added automatically.
c) If "org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER" container is added automatically.
2) In config
introduced the method hasMaven2Nature() which indicates if Maven2 nature is available
3) M2_REPO's skipped in EclipseClasspathWriter if config returns true for hasMaven2Nature()
Hope you like the patch...
Regards,
Hasan Ceylan
--
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-235) Eclipse Maven plugin has its own
Classpath Container that conflicts with generated class paths when enabled.
Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arnaud Heritier updated MECLIPSE-235:
-------------------------------------
Fix Version/s: (was: 2.5)
> Eclipse Maven plugin has its own Classpath Container that conflicts with generated class paths when enabled.
> ------------------------------------------------------------------------------------------------------------
>
> Key: MECLIPSE-235
> URL: http://jira.codehaus.org/browse/MECLIPSE-235
> Project: Maven 2.x Eclipse Plugin
> Issue Type: New Feature
> Environment: Should be OK for ALL
> Reporter: Hasan Ceylan
> Attachments: eclipseM2Plugin.diff, q4t_patch.txt
>
>
> When we create eclipse projects using the maven-eclipse-plugin, all the class path entries for the dependent libraries are added to the .classpath.
> For those like me who has eclipse maven plugin, enabling maven2 for the generated project creates duplicate libraries as maven also introduces its own container based on the information in the pom.xml.
> I took the liberty to modify the head, and introduced the "eclipse.withM2Plugin" parameter. If this parameter is true in the runtime,
> 1) In EclipsePlugin.setup()
> a) If "org.maven.ide.eclipse.maven2Nature" nature is not added in the configuration, it is added automatically.
> b) If "org.maven.ide.eclipse.maven2Builder" builder is not added in the configuration, it is added automatically.
> c) If "org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER" container is added automatically.
> 2) In config
> introduced the method hasMaven2Nature() which indicates if Maven2 nature is available
> 3) M2_REPO's skipped in EclipseClasspathWriter if config returns true for hasMaven2Nature()
> Hope you like the patch...
> Regards,
> Hasan Ceylan
--
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-235) Eclipse Maven plugin has its own
Classpath Container that conflicts with generated class paths when enabled.
Posted by "Brian Fox (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brian Fox updated MECLIPSE-235:
-------------------------------
Fix Version/s: (was: 2.4)
2.5
> Eclipse Maven plugin has its own Classpath Container that conflicts with generated class paths when enabled.
> ------------------------------------------------------------------------------------------------------------
>
> Key: MECLIPSE-235
> URL: http://jira.codehaus.org/browse/MECLIPSE-235
> Project: Maven 2.x Eclipse Plugin
> Issue Type: New Feature
> Environment: Should be OK for ALL
> Reporter: Hasan Ceylan
> Fix For: 2.5
>
> Attachments: eclipseM2Plugin.diff
>
>
> When we create eclipse projects using the maven-eclipse-plugin, all the class path entries for the dependent libraries are added to the .classpath.
> For those like me who has eclipse maven plugin, enabling maven2 for the generated project creates duplicate libraries as maven also introduces its own container based on the information in the pom.xml.
> I took the liberty to modify the head, and introduced the "eclipse.withM2Plugin" parameter. If this parameter is true in the runtime,
> 1) In EclipsePlugin.setup()
> a) If "org.maven.ide.eclipse.maven2Nature" nature is not added in the configuration, it is added automatically.
> b) If "org.maven.ide.eclipse.maven2Builder" builder is not added in the configuration, it is added automatically.
> c) If "org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER" container is added automatically.
> 2) In config
> introduced the method hasMaven2Nature() which indicates if Maven2 nature is available
> 3) M2_REPO's skipped in EclipseClasspathWriter if config returns true for hasMaven2Nature()
> Hope you like the patch...
> Regards,
> Hasan Ceylan
--
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-235) Eclipse Maven plugin has its own
Classpath Container that conflicts with generated class paths when enabled.
Posted by "John Casey (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_102169 ]
John Casey commented on MECLIPSE-235:
-------------------------------------
I added an eclipse:m2eclipse mojo in maven-eclipse-plugin 2.4-snapshot...will this suffice? It's not that well-tested, but I've been using it for over 6 months now without any problems...
> Eclipse Maven plugin has its own Classpath Container that conflicts with generated class paths when enabled.
> ------------------------------------------------------------------------------------------------------------
>
> Key: MECLIPSE-235
> URL: http://jira.codehaus.org/browse/MECLIPSE-235
> Project: Maven 2.x Eclipse Plugin
> Issue Type: New Feature
> Environment: Should be OK for ALL
> Reporter: Hasan Ceylan
> Fix For: 2.5
>
> Attachments: eclipseM2Plugin.diff
>
>
> When we create eclipse projects using the maven-eclipse-plugin, all the class path entries for the dependent libraries are added to the .classpath.
> For those like me who has eclipse maven plugin, enabling maven2 for the generated project creates duplicate libraries as maven also introduces its own container based on the information in the pom.xml.
> I took the liberty to modify the head, and introduced the "eclipse.withM2Plugin" parameter. If this parameter is true in the runtime,
> 1) In EclipsePlugin.setup()
> a) If "org.maven.ide.eclipse.maven2Nature" nature is not added in the configuration, it is added automatically.
> b) If "org.maven.ide.eclipse.maven2Builder" builder is not added in the configuration, it is added automatically.
> c) If "org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER" container is added automatically.
> 2) In config
> introduced the method hasMaven2Nature() which indicates if Maven2 nature is available
> 3) M2_REPO's skipped in EclipseClasspathWriter if config returns true for hasMaven2Nature()
> Hope you like the patch...
> Regards,
> Hasan Ceylan
--
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-235) Eclipse Maven plugin has its own
Classpath Container that conflicts with generated class paths when enabled.
Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_115461 ]
Arnaud Heritier commented on MECLIPSE-235:
------------------------------------------
Can we close this issue ? eclipse:m2eclipse introduced in 2.4 covers your need ?
> Eclipse Maven plugin has its own Classpath Container that conflicts with generated class paths when enabled.
> ------------------------------------------------------------------------------------------------------------
>
> Key: MECLIPSE-235
> URL: http://jira.codehaus.org/browse/MECLIPSE-235
> Project: Maven 2.x Eclipse Plugin
> Issue Type: New Feature
> Environment: Should be OK for ALL
> Reporter: Hasan Ceylan
> Attachments: eclipseM2Plugin.diff, q4t_patch.txt
>
>
> When we create eclipse projects using the maven-eclipse-plugin, all the class path entries for the dependent libraries are added to the .classpath.
> For those like me who has eclipse maven plugin, enabling maven2 for the generated project creates duplicate libraries as maven also introduces its own container based on the information in the pom.xml.
> I took the liberty to modify the head, and introduced the "eclipse.withM2Plugin" parameter. If this parameter is true in the runtime,
> 1) In EclipsePlugin.setup()
> a) If "org.maven.ide.eclipse.maven2Nature" nature is not added in the configuration, it is added automatically.
> b) If "org.maven.ide.eclipse.maven2Builder" builder is not added in the configuration, it is added automatically.
> c) If "org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER" container is added automatically.
> 2) In config
> introduced the method hasMaven2Nature() which indicates if Maven2 nature is available
> 3) M2_REPO's skipped in EclipseClasspathWriter if config returns true for hasMaven2Nature()
> Hope you like the patch...
> Regards,
> Hasan Ceylan
--
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-235) Eclipse Maven plugin has its own
Classpath Container that conflicts with generated class paths when enabled.
Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_90070 ]
Arnaud Heritier commented on MECLIPSE-235:
------------------------------------------
Very interesting feature, but can you also provide some tests and the documentation. Thx.
> Eclipse Maven plugin has its own Classpath Container that conflicts with generated class paths when enabled.
> ------------------------------------------------------------------------------------------------------------
>
> Key: MECLIPSE-235
> URL: http://jira.codehaus.org/browse/MECLIPSE-235
> Project: Maven 2.x Eclipse Plugin
> Issue Type: New Feature
> Environment: Should be OK for ALL
> Reporter: Hasan Ceylan
> Fix For: 2.4
>
> Attachments: eclipseM2Plugin.diff
>
>
> When we create eclipse projects using the maven-eclipse-plugin, all the class path entries for the dependent libraries are added to the .classpath.
> For those like me who has eclipse maven plugin, enabling maven2 for the generated project creates duplicate libraries as maven also introduces its own container based on the information in the pom.xml.
> I took the liberty to modify the head, and introduced the "eclipse.withM2Plugin" parameter. If this parameter is true in the runtime,
> 1) In EclipsePlugin.setup()
> a) If "org.maven.ide.eclipse.maven2Nature" nature is not added in the configuration, it is added automatically.
> b) If "org.maven.ide.eclipse.maven2Builder" builder is not added in the configuration, it is added automatically.
> c) If "org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER" container is added automatically.
> 2) In config
> introduced the method hasMaven2Nature() which indicates if Maven2 nature is available
> 3) M2_REPO's skipped in EclipseClasspathWriter if config returns true for hasMaven2Nature()
> Hope you like the patch...
> Regards,
> Hasan Ceylan
--
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-235) Eclipse Maven plugin has its own
Classpath Container that conflicts with generated class paths when enabled.
Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-235?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_115462 ]
Arnaud Heritier commented on MECLIPSE-235:
------------------------------------------
I didn't see your comment about Q4T. Can you open a different issue for it please ?
> Eclipse Maven plugin has its own Classpath Container that conflicts with generated class paths when enabled.
> ------------------------------------------------------------------------------------------------------------
>
> Key: MECLIPSE-235
> URL: http://jira.codehaus.org/browse/MECLIPSE-235
> Project: Maven 2.x Eclipse Plugin
> Issue Type: New Feature
> Environment: Should be OK for ALL
> Reporter: Hasan Ceylan
> Attachments: eclipseM2Plugin.diff, q4t_patch.txt
>
>
> When we create eclipse projects using the maven-eclipse-plugin, all the class path entries for the dependent libraries are added to the .classpath.
> For those like me who has eclipse maven plugin, enabling maven2 for the generated project creates duplicate libraries as maven also introduces its own container based on the information in the pom.xml.
> I took the liberty to modify the head, and introduced the "eclipse.withM2Plugin" parameter. If this parameter is true in the runtime,
> 1) In EclipsePlugin.setup()
> a) If "org.maven.ide.eclipse.maven2Nature" nature is not added in the configuration, it is added automatically.
> b) If "org.maven.ide.eclipse.maven2Builder" builder is not added in the configuration, it is added automatically.
> c) If "org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER" container is added automatically.
> 2) In config
> introduced the method hasMaven2Nature() which indicates if Maven2 nature is available
> 3) M2_REPO's skipped in EclipseClasspathWriter if config returns true for hasMaven2Nature()
> Hope you like the patch...
> Regards,
> Hasan Ceylan
--
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-235) Eclipse Maven plugin has its own
Classpath Container that conflicts with generated class paths when enabled.
Posted by "Hasan Ceylan (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hasan Ceylan updated MECLIPSE-235:
----------------------------------
Attachment: q4t_patch.txt
Hello, I am back
Firstly, I really liked your solution.
Secondly, the folk at Google Code, q4t has created a pretty good plugin for eclipse that I now favor over m2eclipse.
the new patch is a replica of your M2EclipseMojo, modified to reflect requirements of the q4t plugin.
Any plan for a 2.5 release?
Regards,
Hasan Ceylan
> Eclipse Maven plugin has its own Classpath Container that conflicts with generated class paths when enabled.
> ------------------------------------------------------------------------------------------------------------
>
> Key: MECLIPSE-235
> URL: http://jira.codehaus.org/browse/MECLIPSE-235
> Project: Maven 2.x Eclipse Plugin
> Issue Type: New Feature
> Environment: Should be OK for ALL
> Reporter: Hasan Ceylan
> Fix For: 2.5
>
> Attachments: eclipseM2Plugin.diff, q4t_patch.txt
>
>
> When we create eclipse projects using the maven-eclipse-plugin, all the class path entries for the dependent libraries are added to the .classpath.
> For those like me who has eclipse maven plugin, enabling maven2 for the generated project creates duplicate libraries as maven also introduces its own container based on the information in the pom.xml.
> I took the liberty to modify the head, and introduced the "eclipse.withM2Plugin" parameter. If this parameter is true in the runtime,
> 1) In EclipsePlugin.setup()
> a) If "org.maven.ide.eclipse.maven2Nature" nature is not added in the configuration, it is added automatically.
> b) If "org.maven.ide.eclipse.maven2Builder" builder is not added in the configuration, it is added automatically.
> c) If "org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER" container is added automatically.
> 2) In config
> introduced the method hasMaven2Nature() which indicates if Maven2 nature is available
> 3) M2_REPO's skipped in EclipseClasspathWriter if config returns true for hasMaven2Nature()
> Hope you like the patch...
> Regards,
> Hasan Ceylan
--
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-235) Eclipse Maven plugin has its own
Classpath Container that conflicts with generated class paths when enabled.
Posted by "Arnaud Heritier (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MECLIPSE-235?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Arnaud Heritier updated MECLIPSE-235:
-------------------------------------
Component/s: Dependencies resolution and build path
> Eclipse Maven plugin has its own Classpath Container that conflicts with generated class paths when enabled.
> ------------------------------------------------------------------------------------------------------------
>
> Key: MECLIPSE-235
> URL: http://jira.codehaus.org/browse/MECLIPSE-235
> Project: Maven 2.x Eclipse Plugin
> Issue Type: New Feature
> Components: Dependencies resolution and build path
> Environment: Should be OK for ALL
> Reporter: Hasan Ceylan
> Attachments: eclipseM2Plugin.diff, q4t_patch.txt
>
>
> When we create eclipse projects using the maven-eclipse-plugin, all the class path entries for the dependent libraries are added to the .classpath.
> For those like me who has eclipse maven plugin, enabling maven2 for the generated project creates duplicate libraries as maven also introduces its own container based on the information in the pom.xml.
> I took the liberty to modify the head, and introduced the "eclipse.withM2Plugin" parameter. If this parameter is true in the runtime,
> 1) In EclipsePlugin.setup()
> a) If "org.maven.ide.eclipse.maven2Nature" nature is not added in the configuration, it is added automatically.
> b) If "org.maven.ide.eclipse.maven2Builder" builder is not added in the configuration, it is added automatically.
> c) If "org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTAINER" container is added automatically.
> 2) In config
> introduced the method hasMaven2Nature() which indicates if Maven2 nature is available
> 3) M2_REPO's skipped in EclipseClasspathWriter if config returns true for hasMaven2Nature()
> Hope you like the patch...
> Regards,
> Hasan Ceylan
--
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