Fixing CDI module behavior

This commit is contained in:
Joakim Erdfelt 2015-03-25 15:33:26 -07:00
parent 999177ccc2
commit 739b6c9556
3 changed files with 26 additions and 7 deletions

View File

@ -10,7 +10,7 @@
<Call name="addLifeCycleBinding">
<Arg>
<New
class="org.eclipse.jetty.cdi.WeldDeploymentBinding">
class="org.eclipse.jetty.cdi.servlet.WeldDeploymentBinding">
</New>
</Arg>
</Call>

View File

@ -10,12 +10,13 @@ plus
jsp
[files]
lib/weld/
maven://org.jboss.weld.servlet/weld-servlet/2.2.9.Final|lib/weld/weld-servlet-2.2.9.Final.jar
lib/cdi/
maven://org.jboss.weld.servlet/weld-servlet/2.2.9.Final|lib/cdi/weld-servlet-2.2.9.Final.jar
[lib]
lib/weld/weld-servlet-2.2.9.Final.jar
lib/jetty-cdi-${jetty.version}.jar
lib/cdi/weld-servlet-2.2.9.Final.jar
lib/cdi/cdi-core-${jetty.version}.jar
lib/cdi/cdi-servlet-${jetty.version}.jar
[xml]
etc/jetty-cdi.xml

View File

@ -431,6 +431,19 @@
<outputDirectory>${assembly-directory}/lib/jndi</outputDirectory>
</configuration>
</execution>
<execution>
<id>copy-cdi-deps</id>
<phase>generate-resources</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<includeGroupIds>org.eclipse.jetty.cdi</includeGroupIds>
<!-- includeArtifactIds>cdi-core,cdi-servlet,cdi-websocket</includeArtifactIds -->
<includeTypes>jar</includeTypes>
<outputDirectory>${assembly-directory}/lib/cdi</outputDirectory>
</configuration>
</execution>
<execution>
<id>copy-jndi-deps</id>
<phase>generate-resources</phase>
@ -738,8 +751,13 @@
</dependency>
-->
<dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-cdi</artifactId>
<groupId>org.eclipse.jetty.cdi</groupId>
<artifactId>cdi-servlet</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.eclipse.jetty.cdi</groupId>
<artifactId>cdi-websocket</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>