Hello,

Declaring the artifacts you need with the expected version on your SU's
pom.xml should works.

here is an example i use:
   <dependency>
      <groupId>org.eclipse.jetty</groupId>
      <artifactId>jetty-security</artifactId>
      <version>7.1.4.v20100610</version>
    </dependency>
    <dependency>
      <groupId>org.eclipse.jetty</groupId>
      <artifactId>jetty-server</artifactId>
      <version>7.1.4.v20100610</version>
    </dependency>

In this case, I add the repository to my pom.xml where artifacts can be
downloaded:
  <repository>
  <id>mirrors.ibiblio.org</id>
  <name>mirrors.ibiblio.org Repo</name>
  <url>http://mirrors.ibiblio.org/pub/mirrors/maven2/</url>
</repository>

Re-compile your project with clean maven and finally deploy you project, the
servicemix classloader should use your jetty version for your project.

Kévin


-- 
View this message in context: 
http://servicemix.396122.n5.nabble.com/How-to-compile-Http-SU-Component-with-a-preferred-version-of-Jetty-tp2850837p2851402.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to