Robert Munteanu created OAK-6533:

             Summary: Adjust test classpath order to reduce number of error 
markers in Eclipse
                 Key: OAK-6533
             Project: Jackrabbit Oak
          Issue Type: Task
          Components: examples, pojosr, solr
            Reporter: Robert Munteanu
            Assignee: Robert Munteanu
            Priority: Minor
             Fix For: 1.8, 1.7.6

Some modules get error markers in Eclipse but they compile fine using Maven. 
This happens usually because of a limitation of the Eclipse + m2e classpath 
setup - when depending on another module dependencies are transitive. So for 
instance a dependency on {{oak-jcr}} will bring in {{jackrabbit-core}} and then 
{{lucene-core}} with version 3.6.0. 

Pending a fix in Eclipse proper, a viable workaround is to reorder the 
artifacts to ensure the ones that bring in the proper dependency are placed 
higher in the pom.xml .

This message was sent by Atlassian JIRA

Reply via email to