Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.4
-
Fix Version/s: 2.9
-
Labels:None
-
Number of attachments :
Description
Currently plugin sorts artifacts on its own (alphabetic order???) because the order of dependencies that comes from maven is not reliable (random?). This breaks tests that use JBoss Embedded which works under maven surefire plugin because it still puts dependencies that came first at the beginning of the classpath). Apparently not all classpath elements are put in random order. At least I get the first ones listed in dependencies also first in the classpath (can be seen as ${surefire.test.class.path} and in target/surefire-reports/TEST-TestSuite.xml).
While there is not much we can do for maven eclipse plugin a solution is on the way: MNG-1412. When maven 2.0.9 is released maven eclipse plugin can revert back to the default classpath order.
Can we somehow schedule this?
Another question: is there anyway to put certain dependencies in the first place except for renaming them so that alphabetic order does the job?
Attachments
Issue Links
| This issue is duplicated by: | ||||
| MECLIPSE-665 | wrong classpath order generated in .classpath file for transitive dependencies |
|
|
|
| This issue relates to: | ||||
| MECLIPSE-318 | test classes and resources need to be first in .classpath file |
|
|
|
| This issue is related to: | ||||
| MECLIPSE-705 | Use Aether (or the shared exposed interface) to ensure correct .classpath ordering of dependencies. |
|
|
|
| MNG-1412 | dependency sorting in classpath |
|
|
|
| MNG-3118 | Test-classes should come before classes in the classpath |
|
|
|
It could be possible but I wouldn't force to have maven 2.0.9 to use the next version of the plugin.
I'll try to see, but I think we'll rewrite/refactor an important part after the 2.5 release (perhaps it will be a 3.0)