From 4204061bd40be2c444c488f49a9f5c75dc4ba76f Mon Sep 17 00:00:00 2001 From: Jan Bartel Date: Wed, 7 Jun 2017 11:55:18 +0200 Subject: [PATCH] Issue ##1597 Make osgi import of javax.mail optional --- jetty-jndi/pom.xml | 10 ++++++++++ .../eclipse/jetty/osgi/test/TestJettyOSGiBootCore.java | 1 - .../osgi/test/TestJettyOSGiBootWithAnnotations.java | 10 +--------- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/jetty-jndi/pom.xml b/jetty-jndi/pom.xml index ee06a05a41a..b746b34ece6 100644 --- a/jetty-jndi/pom.xml +++ b/jetty-jndi/pom.xml @@ -14,6 +14,16 @@ + + org.apache.felix + maven-bundle-plugin + true + + + javax.mail.*;resolution:=optional,* + + + org.codehaus.mojo findbugs-maven-plugin diff --git a/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestJettyOSGiBootCore.java b/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestJettyOSGiBootCore.java index 1ff35e2fd53..5cd69691107 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestJettyOSGiBootCore.java +++ b/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestJettyOSGiBootCore.java @@ -100,7 +100,6 @@ public class TestJettyOSGiBootCore res.add(mavenBundle().groupId( "org.eclipse.jetty.toolchain" ).artifactId( "jetty-osgi-servlet-api" ).versionAsInProject().noStart()); res.add(mavenBundle().groupId( "javax.annotation" ).artifactId( "javax.annotation-api" ).versionAsInProject().noStart()); res.add(mavenBundle().groupId( "org.apache.geronimo.specs" ).artifactId( "geronimo-jta_1.1_spec" ).version("1.1.1").noStart()); - res.add(mavenBundle().groupId( "org.eclipse.jetty.orbit" ).artifactId( "javax.mail.glassfish" ).version( "1.4.1.v201005082020" ).noStart()); res.add(mavenBundle().groupId( "org.eclipse.jetty" ).artifactId( "jetty-util" ).versionAsInProject().noStart()); res.add(mavenBundle().groupId( "org.eclipse.jetty" ).artifactId( "jetty-deploy" ).versionAsInProject().noStart()); diff --git a/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestJettyOSGiBootWithAnnotations.java b/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestJettyOSGiBootWithAnnotations.java index f8df69d870e..be4ee84955b 100644 --- a/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestJettyOSGiBootWithAnnotations.java +++ b/jetty-osgi/test-jetty-osgi/src/test/java/org/eclipse/jetty/osgi/test/TestJettyOSGiBootWithAnnotations.java @@ -111,6 +111,7 @@ public class TestJettyOSGiBootWithAnnotations public static List