Hi Gerhard,

Sorry for the delay in replying, I was trying to setup a github project but
it took me too long to do my exact replica of my multi-module maven
project, so I ended up doing one simple project uploaded to github here
<https://github.com/avinashmoram/jboss-javaee-webapp> using the existing
jboss javaee project and included deltaspike, which seems to work. " It
doesn't look like a mojarra issue as I used the exact jars from
deltaspike(1.7.2) and mojarra (2.2.12). At least I am not getting the error
"javax.servlet.ServletException: Expression Error: Named Object:
org.apache.deltaspike.WindowIdHolder not found."

My multi-module maven project has 4 modules (core is bundled into jar (no
dependency), ejb (dependent on core), web is bundled into war (dependent on
ejb and core) and ear (dependent on ejb, core, web) ), I included the
deltaspike jars in my ejb module, the web module pom doesn't have any delta
spike jars. Do you think that is the problem?

I saw a similar exception posted for an ominifaces issue here
<http://stackoverflow.com/questions/37529138/javax-faces-facesexception-expression-error-named-object-org-omnifaces-compon>

one of the comments from BalusC says "This can happen if OmniFaces is
misplaced in e.g. EAR/lib instad of WAR's WEB-INF/lib. Did you verify if
the build is all right? See also omnifaces.org/#installation – BalusC
<http://stackoverflow.com/users/157882/balusc> May 30 '16 at 17:29
<http://stackoverflow.com/questions/37529138/javax-faces-facesexception-expression-error-named-object-org-omnifaces-compon#comment62552493_37529138>
"

I am attaching my multi module pom's here.



Thanks & Regards,
Avinash

On Wed, Mar 15, 2017 at 3:58 PM, Gerhard Petracek <[email protected]>
wrote:

> hi avinash,
>
> it looks like an issue with the version of mojarra you are using.
> please provide a link to a demo (e.g. on github) which illustrates the
> issue.
>
> regards,
> gerhard
>
>
>
> 2017-03-15 21:35 GMT+01:00 Avinash Moram <[email protected]>:
>
> > Hi,
> >
> > We have started migrating a seam application to primefaces 6.0 + CDI 1.2
> +
> > Deltaspike 1.7.0. I was trying to get the grouped conversations up and
> > running.
> >
> > And I read
> > http://www.omnifaces-fans.org/2015/12/jsf-scopes-tutorial-
> > deltaspike-grouped.html
> > in the pre-requisites that "- DeltaSpike conversations are based on the
> > window-scope
> > <http://www.omnifaces-fans.org/2015/11/jsf-scopes-
> > tutorial-deltaspike-window.html>
> > (as a consequence of this, do not forget to add the ds:windowId
> (xmlns:ds="
> > http://deltaspike.apache.org/jsf";) component)."
> >
> > So, I included them in my .xhtml pages and had the necessary deltaspike
> > classes injected.
> >
> >
> > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
> > http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
> > <ui:composition xmlns="http://www.w3.org/1999/xhtml";
> >     xmlns:h="http://java.sun.com/jsf/html";
> >     xmlns:f="http://java.sun.com/jsf/core";
> >     xmlns:ui="http://java.sun.com/jsf/facelets";
> >     xmlns:c="http://java.sun.com/jstl/core";
> >     xmlns:p="http://primefaces.org/ui";
> >       xmlns:pe="http://primefaces.org/ui/extensions"; xml:lang="en"
> > lang="en"
> >     template="/views/common/layout/main-content-layout.xhtml"
> >     xmlns:ds="http://deltaspike.apache.org/jsf";>
> >
> >     <ui:define name="breadcrumb">
> >         <c:if test="${not empty
> > acilitySearch.dqStack.getConversationStack()}">
> >             <b>You Are Here: </b>
> >         </c:if>
> >         <c:set var="previousEntry" value="none" />
> >         <c:forEach items="${acilitySearch.dqStack.getConversationStack()
> }"
> > var="entry"
> >             varStatus="status">
> >             <p:link outcome="#{entry.getPage()}"
> >                 value="#{entry.getDescription()}" >
> >         </p:link>
> >
> >             <c:if test="${!status.last}">
> >                 <!-- Not at the last breadcrumb, place a separator -->
> >                 <span id="breadcrumb-separator">&#160;:&#160;</span>
> >             </c:if>
> >             <c:set var="previousEntry" value="${entry.getDescription()}"
> > />
> >         </c:forEach>
> >     </ui:define>
> >
> >     <ui:define name="page-title">Authorization/Application
> > Search</ui:define>
> >     <ui:define name="page-body">
> >     *<ds:windowId/>*
> >
> > @Named("facilitySearch")
> > @Stateful
> > @GroupedConversationScoped
> > @ConversationGroup(ConversationWQGroup.class)
> > public class FacilitySearchController extends
> > BaseSearchController<PaWqAppLoader>
> >         implements IWQSearch, IWqFacilitySearchControllerLocal,
> > Serializable {
> >
> >     private static final long serialVersionUID = 1L;
> >
> >
> >
> >
> >
> >
> >
> >
> > * @Inject    private GroupedConversation  conversation;    @Inject
> > private WindowContext windowContext;    @Inject    private
> > GroupedConversationManager conversationManager;*
> >
> > I have the below in my POM, the deltaspike version I am using is 1.7.0
> >        <dependency>
> >             <groupId>org.apache.deltaspike.core</groupId>
> >             <artifactId>deltaspike-core-api</artifactId>
> >             <version>${deltaspike.version}</version>
> >             <scope>compile</scope>
> >         </dependency>
> >
> >         <dependency>
> >             <groupId>org.apache.deltaspike.core</groupId>
> >             <artifactId>deltaspike-core-impl</artifactId>
> >             <version>${deltaspike.version}</version>
> >             <scope>runtime</scope>
> >         </dependency>
> >
> >         <dependency>
> >             <groupId>org.apache.deltaspike.modules</groupId>
> >             <artifactId>deltaspike-jsf-module-api</artifactId>
> >             <version>${deltaspike.version}</version>
> >             <scope>compile</scope>
> >         </dependency>
> >
> >         <dependency>
> >             <groupId>org.apache.deltaspike.modules</groupId>
> >             <artifactId>deltaspike-jsf-module-impl</artifactId>
> >             <version>${deltaspike.version}</version>
> >             <scope>runtime</scope>
> >         </dependency>
> >
> >
> >
> >
> > When i start my application I get the below error.
> >
> > 15:30:48,934 SEVERE
> > [javax.enterprise.resource.webcontainer.jsf.application] (default
> task-9)
> > JSF1068: Cannot instantiate component with component-type
> > org.apache.deltaspike.WindowIdHolder
> > 15:30:53,234 ERROR [io.undertow.request] (default task-9) UT005023:
> > Exception handling request to
> > /mywebweb-1.0/faces/views/views/facilitysearch.xhtml:
> > javax.servlet.ServletException: Expression Error: Named Object:
> > org.apache.deltaspike.WindowIdHolder not found.
> >     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:671)
> >     at
> > io.undertow.servlet.handlers.ServletHandler.handleRequest(
> > ServletHandler.java:85)
> >     at
> > io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.
> > handleRequest(ServletSecurityRoleHandler.java:62)
> >     at
> > io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(
> > ServletDispatchingHandler.java:36)
> >     at
> > org.wildfly.extension.undertow.security.SecurityContextAssociationHand
> > ler.handleRequest(SecurityContextAssociationHandler.java:78)
> >     at
> > io.undertow.server.handlers.PredicateHandler.handleRequest(
> > PredicateHandler.java:43)
> >     at
> > io.undertow.servlet.handlers.security.SSLInformationAssociationHandl
> > er.handleRequest(SSLInformationAssociationHandler.java:131)
> >     at
> > io.undertow.servlet.handlers.security.ServletAuthenticationCallHandl
> > er.handleRequest(ServletAuthenticationCallHandler.java:57)
> >     at
> > io.undertow.server.handlers.PredicateHandler.handleRequest(
> > PredicateHandler.java:43)
> >     at
> > io.undertow.security.handlers.AbstractConfidentialityHandler
> > .handleRequest(AbstractConfidentialityHandler.java:46)
> >     at
> > io.undertow.servlet.handlers.security.ServletConfidentialityConstrai
> > ntHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64)
> >     at
> > io.undertow.security.handlers.AuthenticationMechanismsHandle
> > r.handleRequest(AuthenticationMechanismsHandler.java:60)
> >     at
> > io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHand
> > ler.handleRequest(CachedAuthenticatedSessionHandler.java:77)
> >     at
> > io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(
> > NotificationReceiverHandler.java:50)
> >     at
> > io.undertow.security.handlers.AbstractSecurityContextAssocia
> > tionHandler.handleRequest(AbstractSecurityContextAssocia
> > tionHandler.java:43)
> >     at
> > io.undertow.server.handlers.PredicateHandler.handleRequest(
> > PredicateHandler.java:43)
> >     at
> > org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.
> > handleRequest(JACCContextIdHandler.java:61)
> >     at
> > io.undertow.server.handlers.PredicateHandler.handleRequest(
> > PredicateHandler.java:43)
> >     at
> > io.undertow.server.handlers.PredicateHandler.handleRequest(
> > PredicateHandler.java:43)
> >     at
> > io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(
> > ServletInitialHandler.java:285)
> >     at
> > io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(
> > ServletInitialHandler.java:264)
> >     at
> > io.undertow.servlet.handlers.ServletInitialHandler.access$
> > 000(ServletInitialHandler.java:81)
> >     at
> > io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(
> > ServletInitialHandler.java:175)
> >     at io.undertow.server.Connectors.executeRootHandler(Connectors.
> > java:202)
> >     at
> > io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:792)
> >     at
> > java.util.concurrent.ThreadPoolExecutor.runWorker(
> > ThreadPoolExecutor.java:1142)
> >     at
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(
> > ThreadPoolExecutor.java:617)
> >     at java.lang.Thread.run(Thread.java:745)
> > Caused by: javax.faces.FacesException: Expression Error: Named Object:
> > org.apache.deltaspike.WindowIdHolder not found.
> >     at
> > com.sun.faces.application.ApplicationImpl.createComponentApplyAnnotation
> > s(ApplicationImpl.java:1912)
> >     at
> > com.sun.faces.application.ApplicationImpl.createComponent(
> > ApplicationImpl.java:1166)
> >     at
> > org.jboss.as.jsf.injection.weld.ForwardingApplication.createComponent(
> > ForwardingApplication.java:111)
> >     at
> > javax.faces.application.ApplicationWrapper.createComponent(
> > ApplicationWrapper.java:637)
> >     at
> > javax.faces.application.ApplicationWrapper.createComponent(
> > ApplicationWrapper.java:637)
> >     at
> > com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImp
> > l.createComponent(ComponentTagHandlerDelegateImpl.java:602)
> >     at
> > com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(
> > ComponentTagHandlerDelegateImpl.java:175)
> >     at
> > javax.faces.view.facelets.DelegatingMetaTagHandler.apply(
> > DelegatingMetaTagHandler.java:120)
> >     at
> > javax.faces.view.facelets.CompositeFaceletHandler.apply(
> > CompositeFaceletHandler.java:95)
> >     at
> > com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(
> > DefineHandler.java:106)
> >     at
> > com.sun.faces.facelets.tag.ui.CompositionHandler.apply(
> > CompositionHandler.java:206)
> >     at
> > com.sun.faces.facelets.impl.DefaultFaceletContext$TemplateManager.apply(
> > DefaultFaceletContext.java:395)
> >     at
> > com.sun.faces.facelets.impl.DefaultFaceletContext.includeDefinition(
> > DefaultFaceletContext.java:366)
> >     at
> > com.sun.faces.facelets.tag.ui.InsertHandler.apply(
> InsertHandler.java:111)
> >     at
> > javax.faces.view.facelets.CompositeFaceletHandler.apply(
> > CompositeFaceletHandler.java:95)
> >     at
> > javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(
> > DelegatingMetaTagHandler.java:137)
> >     at
> > com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(
> > ComponentTagHandlerDelegateImpl.java:202)
> >     at
> > javax.faces.view.facelets.DelegatingMetaTagHandler.apply(
> > DelegatingMetaTagHandler.java:120)
> >     at
> > javax.faces.view.facelets.CompositeFaceletHandler.apply(
> > CompositeFaceletHandler.java:95)
> >     at
> > javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(
> > DelegatingMetaTagHandler.java:137)
> >     at
> > com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(
> > ComponentTagHandlerDelegateImpl.java:202)
> >     at
> > javax.faces.view.facelets.DelegatingMetaTagHandler.apply(
> > DelegatingMetaTagHandler.java:120)
> >     at
> > javax.faces.view.facelets.CompositeFaceletHandler.apply(
> > CompositeFaceletHandler.java:95)
> >     at
> > com.sun.faces.facelets.tag.ui.DefineHandler.applyDefinition(
> > DefineHandler.java:106)
> >     at
> > com.sun.faces.facelets.tag.ui.CompositionHandler.apply(
> > CompositionHandler.java:206)
> >     at
> > com.sun.faces.facelets.impl.DefaultFaceletContext$TemplateManager.apply(
> > DefaultFaceletContext.java:395)
> >     at
> > com.sun.faces.facelets.impl.DefaultFaceletContext.includeDefinition(
> > DefaultFaceletContext.java:366)
> >     at
> > com.sun.faces.facelets.tag.ui.InsertHandler.apply(
> InsertHandler.java:111)
> >     at
> > javax.faces.view.facelets.CompositeFaceletHandler.apply(
> > CompositeFaceletHandler.java:95)
> >     at
> > javax.faces.view.facelets.DelegatingMetaTagHandler.applyNextHandler(
> > DelegatingMetaTagHandler.java:137)
> >     at
> > com.sun.faces.facelets.tag.jsf.ComponentTagHandlerDelegateImpl.apply(
> > ComponentTagHandlerDelegateImpl.java:202)
> >     at
> > javax.faces.view.facelets.DelegatingMetaTagHandler.apply(
> > DelegatingMetaTagHandler.java:120)
> >     at
> > javax.faces.view.facelets.CompositeFaceletHandler.apply(
> > CompositeFaceletHandler.java:95)
> >     at
> > com.sun.faces.facelets.tag.jsf.core.ViewHandler.apply(
> > ViewHandler.java:225)
> >     at
> > javax.faces.view.facelets.CompositeFaceletHandler.apply(
> > CompositeFaceletHandler.java:95)
> >     at
> > com.sun.faces.facelets.compiler.NamespaceHandler.
> > apply(NamespaceHandler.java:93)
> >     at
> > com.sun.faces.facelets.compiler.EncodingHandler.
> > apply(EncodingHandler.java:87)
> >     at
> > com.sun.faces.facelets.impl.DefaultFacelet.include(
> > DefaultFacelet.java:312)
> >     at
> > com.sun.faces.facelets.impl.DefaultFacelet.include(
> > DefaultFacelet.java:371)
> >     at
> > com.sun.faces.facelets.impl.DefaultFacelet.include(
> > DefaultFacelet.java:350)
> >     at
> > com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(
> > DefaultFaceletContext.java:199)
> >     at
> > com.sun.faces.facelets.tag.ui.CompositionHandler.apply(
> > CompositionHandler.java:174)
> >     at
> > com.sun.faces.facelets.compiler.NamespaceHandler.
> > apply(NamespaceHandler.java:93)
> >     at
> > com.sun.faces.facelets.compiler.EncodingHandler.
> > apply(EncodingHandler.java:87)
> >     at
> > com.sun.faces.facelets.impl.DefaultFacelet.include(
> > DefaultFacelet.java:312)
> >     at
> > com.sun.faces.facelets.impl.DefaultFacelet.include(
> > DefaultFacelet.java:371)
> >     at
> > com.sun.faces.facelets.impl.DefaultFacelet.include(
> > DefaultFacelet.java:350)
> >     at
> > com.sun.faces.facelets.impl.DefaultFaceletContext.includeFacelet(
> > DefaultFaceletContext.java:199)
> >     at
> > com.sun.faces.facelets.tag.ui.CompositionHandler.apply(
> > CompositionHandler.java:174)
> >     at
> > com.sun.faces.facelets.compiler.NamespaceHandler.
> > apply(NamespaceHandler.java:93)
> >     at
> > com.sun.faces.facelets.compiler.EncodingHandler.
> > apply(EncodingHandler.java:87)
> >     at
> > com.sun.faces.facelets.impl.DefaultFacelet.apply(
> DefaultFacelet.java:161)
> >     at
> > com.sun.faces.application.view.FaceletViewHandlingStrategy.buildView(
> > FaceletViewHandlingStrategy.java:1006)
> >     at
> > com.sun.faces.lifecycle.RenderResponsePhase.execute(
> > RenderResponsePhase.java:99)
> >     at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
> >     at com.sun.faces.lifecycle.LifecycleImpl.render(
> > LifecycleImpl.java:219)
> >     at
> > org.apache.deltaspike.jsf.impl.listener.request.
> > DeltaSpikeLifecycleWrapper.render(DeltaSpikeLifecycleWrapper.java:111)
> >     at
> > javax.faces.lifecycle.LifecycleWrapper.render(LifecycleWrapper.java:92)
> >     at
> > org.apache.deltaspike.jsf.impl.listener.request.
> > JsfClientWindowAwareLifecycleWrapper.render(
> JsfClientWindowAwareLifecycleW
> > rapper.java:160)
> >     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:659)
> >     ... 27 more
> >
> >
> > Any help is greatly appreciated.
> >
> >
> > Thanks & Regards,
> > Avinash
> >
>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd";>
	<modelVersion>4.0.0</modelVersion>

	<parent>
		<artifactId>bhagat</artifactId>
		<groupId>com.regist.audit</groupId>
		<version>1.0</version>
	</parent>

	<artifactId>bhagat-core</artifactId>
	<packaging>jar</packaging>
	
	<name>bhagat core module</name>
	
	 <properties>
	   <resources.directory>src/main/resources</resources.directory>
	    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  	</properties>
		
	<dependencies>
	
		 <dependency>
			<groupId>org.jboss.spec.javax.faces</groupId>
			 <artifactId>jboss-jsf-api_2.2_spec</artifactId>
		 </dependency>	
	<!--  <dependency>
			<groupId>com.sun.faces</groupId>
			<artifactId>jsf-api</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>com.sun.faces</groupId>
			<artifactId>jsf-impl</artifactId>
			<scope>provided</scope>
		</dependency>  -->
		
		
		<dependency>
			<groupId>org.hibernate.javax.persistence</groupId>
			<artifactId>hibernate-jpa-2.1-api</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-validator</artifactId>
			<scope>provided</scope>
		</dependency>
		
		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-entitymanager</artifactId>
			<scope>provided</scope>
		</dependency>		
		
		<dependency>
			<groupId>javax.enterprise</groupId>
			<artifactId>cdi-api</artifactId>
			<scope>provided</scope>
		</dependency>
		
		<dependency>
			<groupId>org.jboss.spec.javax.ejb</groupId>
			<artifactId>jboss-ejb-api_3.2_spec</artifactId>
			<scope>provided</scope>
		</dependency>
				
		<dependency>
			<groupId>javax.inject</groupId>
			<artifactId>javax.inject</artifactId>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
<!-- 			<scope>test</scope> -->
		</dependency>
	    <dependency>
			<groupId>commons-lang</groupId>
			<artifactId>commons-lang</artifactId>
		</dependency>
	
		<dependency>
			<groupId>commons-collections</groupId>
			<artifactId>commons-collections</artifactId>
		</dependency>

	    <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            
        </dependency>
        
       <dependency>
		    <groupId>commons-configuration</groupId>
		    <artifactId>commons-configuration</artifactId>
		</dependency>	    
        
        <dependency>
		    <groupId>org.apache.commons</groupId>
		    <artifactId>commons-email</artifactId>
		</dependency>
		
		<dependency>
		    <groupId>org.apache.commons</groupId>
		    <artifactId>commons-exec</artifactId>
       </dependency>
       
       <dependency>
		   <groupId>commons-beanutils</groupId>
		   <artifactId>commons-beanutils</artifactId>
		</dependency> 
         		
		<dependency>
			<groupId>com.oracle</groupId>
			<artifactId>ojdbc7</artifactId>
			<scope>provided</scope>
		</dependency>
		 
		 <dependency>
		    <groupId>org.apache.poi</groupId>
		    <artifactId>poi</artifactId>
		</dependency>

		<dependency>
		    <groupId>org.apache.poi</groupId>
		    <artifactId>poi-ooxml</artifactId>
		</dependency>
		
		<dependency>
		    <groupId>xerces</groupId>
		    <artifactId>xercesImpl</artifactId>
		</dependency>
		 
		<dependency>
		    <groupId>org.jgroups</groupId>
		    <artifactId>jgroups</artifactId>
		</dependency>
		
		<dependency>
		    <groupId>org.jboss.cache</groupId>
		    <artifactId>jbosscache-core</artifactId>
		</dependency>
		
		<dependency>
		    <groupId>commons-jxpath</groupId>
		    <artifactId>commons-jxpath</artifactId>
		</dependency>
		
		<dependency>
		    <groupId>ch.qos.logback</groupId>
		    <artifactId>logback-classic</artifactId>
	  </dependency> 
		
		<dependency>
		    <groupId>ch.qos.logback</groupId>
		    <artifactId>logback-core</artifactId>
		</dependency>
		
		<dependency>
		    <groupId>org.slf4j</groupId>
		    <artifactId>slf4j-api</artifactId>
		</dependency>
	</dependencies>

	<build>
		<resources>
			 <resource>
<!-- 				   <directory>../resources/${build.profile.id}/core</directory> -->
 				  <directory>../resources</directory>
				  <filtering>false</filtering>
			 </resource>
			 <resource>
				   <directory>src/main/resources</directory>
				   <filtering>false</filtering>
			 </resource>
		 </resources>
		<plugins>
		
		  <plugin>
           <groupId>org.apache.maven.plugins</groupId>
      		<artifactId>maven-jar-plugin</artifactId>
              <configuration>
                <archive>
	                <manifest>
		              <addClasspath>true</addClasspath>
		            </manifest>
                 </archive>
               </configuration>
           	</plugin>
         </plugins>
	</build>
	
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <artifactId>bhagat</artifactId>
        <groupId>com.regist.audit</groupId>
        <version>1.0</version>
    </parent>

    <artifactId>bhagat-ear</artifactId>
    <packaging>ear</packaging>

	<name>bhagat EAR module:${project.artifactId}</name>

	<dependencies>
		<dependency>
			<groupId>gov.state.tceq</groupId>
			<artifactId>bhagat-core</artifactId>
			<type>jar</type>
		</dependency>
		
		  <dependency>
            <groupId>gov.state.tceq</groupId>
            <artifactId>bhagat-ejb</artifactId>
            <type>ejb</type>
        </dependency>
        
		 <dependency>
            <groupId>gov.state.tceq</groupId>
            <artifactId>bhagat-web</artifactId>
            <type>war</type>
        </dependency>
        
	</dependencies>

	<build>
		<finalName>bhagat</finalName>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-ear-plugin</artifactId>
				<version>2.6</version>
				<configuration>
					<version>6</version>
					<defaultLibBundleDir>lib</defaultLibBundleDir>
					<finalName>bhagat</finalName>
					<modules>
						<jarModule>
							<groupId>gov.state.tceq</groupId>
							<artifactId>bhagat-core</artifactId>
						</jarModule> 
					
						<ejbModule>
							  <groupId>gov.state.tceq</groupId>
          					  <artifactId>bhagat-ejb</artifactId>
						</ejbModule>
						
						<webModule>
							 <groupId>gov.state.tceq</groupId>
           					 <artifactId>bhagat-web</artifactId>
							<contextRoot>/bhagatWeb</contextRoot>
						</webModule>
					</modules>
				</configuration>
			</plugin>

			<plugin>
				<groupId>org.jboss.as.plugins</groupId>
				<artifactId>jboss-as-maven-plugin</artifactId>
				<configuration>
					<skip>false</skip>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<configuration>
					<archive>
						<manifest>
							<addClasspath>true</addClasspath>
						</manifest>
					</archive>
				</configuration>
			</plugin>
			
			 <plugin>
                   <groupId>org.wildfly.plugins</groupId>
                   <artifactId>wildfly-maven-plugin</artifactId>
                   <inherited>true</inherited>
                   <configuration>
                       <skip>true</skip>
                   </configuration>
               </plugin>
			
		</plugins>
	</build>


</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
    <modelVersion>4.0.0</modelVersion>

    <parent>
        <artifactId>bhagat</artifactId>
        <groupId>com.regist.audit</groupId>
        <version>1.0</version>
    </parent>

    <artifactId>bhagat-ejb</artifactId>
    <packaging>ejb</packaging>

    <name>bhagat: EJB Module</name>

   <properties>
	   <resources.directory>src/main/resources</resources.directory>
	    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  	</properties>
  	
    <dependencies>

		<!-- Project specific -->
		
		<dependency>
	         <groupId>gov.state.tceq</groupId>
	         <artifactId>bhagat-core</artifactId>
	         <type>jar</type>
	         <scope>provided</scope>
        </dependency>
        
        <dependency>
		    <groupId>org.apache.deltaspike.core</groupId>
		    <artifactId>deltaspike-core-api</artifactId>
		    <version>${deltaspike.version}</version>
		    <scope>compile</scope>
		</dependency>
		
		<dependency>
		    <groupId>org.apache.deltaspike.core</groupId>
		    <artifactId>deltaspike-core-impl</artifactId>
		    <version>${deltaspike.version}</version>
		    <scope>runtime</scope>
		</dependency>
		
		<dependency>
		    <groupId>org.apache.deltaspike.modules</groupId>
		    <artifactId>deltaspike-jsf-module-api</artifactId>
		    <version>${deltaspike.version}</version>
		    <scope>compile</scope>
		</dependency>
		
		<dependency>
		    <groupId>org.apache.deltaspike.modules</groupId>
		    <artifactId>deltaspike-jsf-module-impl</artifactId>
		    <version>${deltaspike.version}</version>
		    <scope>runtime</scope>
		</dependency>

		
      
       <dependency>
			<groupId>org.jboss.spec.javax.faces</groupId>
			 <artifactId>jboss-jsf-api_2.2_spec</artifactId>
		</dependency>

		<dependency>
				 <groupId>javax</groupId>
			    <artifactId>javaee-web-api</artifactId>
		</dependency>	
			
		<!-- <dependency>
			<groupId>com.sun.faces</groupId>
			<artifactId>jsf-api</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>com.sun.faces</groupId>
			<artifactId>jsf-impl</artifactId>
			<scope>provided</scope>
		</dependency> 
 -->
		<dependency>
			<groupId>org.primefaces</groupId>
			<artifactId>primefaces</artifactId>
		</dependency>
		
		<dependency>
			<groupId>org.primefaces.extensions</groupId>
			<artifactId>primefaces-extensions</artifactId>
		</dependency>
		
		<dependency>
		    <groupId>org.jgroups</groupId>
		    <artifactId>jgroups</artifactId>
		</dependency>
			
      	<dependency>
              <groupId>javax.validation</groupId>
               <artifactId>validation-api</artifactId>
         </dependency>
         
         <dependency>
			<groupId>org.jboss.spec.javax.ejb</groupId>
			<artifactId>jboss-ejb-api_3.2_spec</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>javax.enterprise</groupId>
			<artifactId>cdi-api</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-entitymanager</artifactId>
		</dependency>
			
		<dependency>
			<groupId>org.hibernate.javax.persistence</groupId>
			<artifactId>hibernate-jpa-2.1-api</artifactId>
		</dependency>

		<dependency>
			<groupId>org.hibernate</groupId>
			<artifactId>hibernate-validator</artifactId>
		</dependency>
	
		<!-- <dependency>
		     <groupId>org.hibernate</groupId>
  			 <artifactId>hibernate-commons-annotations</artifactId>
		</dependency> -->
			
		<dependency>
			<groupId>com.oracle</groupId>
			<artifactId>ojdbc7</artifactId>
			<scope>provided</scope>
		</dependency>
		
		 <dependency>
		    <groupId>org.apache.poi</groupId>
		    <artifactId>poi</artifactId>
		</dependency>

		<dependency>
		    <groupId>org.apache.poi</groupId>
		    <artifactId>poi-ooxml</artifactId>
		</dependency>
		
		<dependency>
			<groupId>dom4j</groupId>
			<artifactId>dom4j</artifactId>
		</dependency>
		
		<dependency>
			<groupId>net.sourceforge.jexcelapi</groupId>
			<artifactId>jxl</artifactId>
		</dependency>
		
		<dependency>
			<groupId>javax.mail</groupId>
			<artifactId>javax.mail-api</artifactId>
			<scope>provided</scope>
		</dependency>
         
      	
		
		<dependency>
			<groupId>commons-lang</groupId>
			<artifactId>commons-lang</artifactId>
		</dependency>
		
		<dependency>
		    <groupId>commons-beanutils</groupId>
		    <artifactId>commons-beanutils</artifactId>
		</dependency>
		
		<dependency>
		    <groupId>ch.qos.logback</groupId>
		    <artifactId>logback-classic</artifactId>
		</dependency> 
		
		<dependency>
		    <groupId>ch.qos.logback</groupId>
		    <artifactId>logback-core</artifactId>
		</dependency>
		
		<dependency>
		    <groupId>org.slf4j</groupId>
		    <artifactId>slf4j-api</artifactId>
		</dependency>	
		
	<!-- 	<dependency>
	         <groupId>org.slf4j</groupId>
	         <artifactId>slf4j-simple</artifactId>
	         <version>1.6.4</version>
	         <scope>test</scope>
	     </dependency> -->
    
	    <dependency>
	        <groupId>junit</groupId>
	        <artifactId>junit</artifactId>
	<!--         <scope>test</scope> -->
	    </dependency>
		
	</dependencies>
	<build>
		<resources>
			 <resource>
				   <directory>../resources/${build.profile.id}/ejb</directory>
				   <filtering>true</filtering>
			 </resource>
			  <resource>
				   <directory>src/main/resources</directory>
				   <filtering>false</filtering>
			 </resource>
		 </resources>
	   <plugins>
	      <plugin>
	        <groupId>org.apache.maven.plugins</groupId>
	        <artifactId>maven-ejb-plugin</artifactId>
	        <configuration>
	          <archive>
	            <manifest>
	              <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
              	  <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
	              <addClasspath>true</addClasspath>
	            </manifest>
	            <manifestEntries>
                        <Dependencies>com.oracle</Dependencies>
                </manifestEntries>   
	          </archive>
	         
	        </configuration>
	      </plugin>
	    </plugins>
  </build>
  
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
    <name>bhagat</name>
    <modelVersion>4.0.0</modelVersion>
    <groupId>com.regist.audit</groupId>
    <artifactId>bhagat</artifactId>
    <version>1.0</version>
    <packaging>pom</packaging>

    
   
	<properties>
		<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
		
		<!-- java ee/servlet/cdi/ejb dependencies -->
		<version.javaee7.web.spec>7.0</version.javaee7.web.spec>
		<version.jboss-servlet-api_3.1_spec>1.0.0.Final</version.jboss-servlet-api_3.1_spec>
		<version.cdi-api>1.2</version.cdi-api>
		<version.jboss-ejb-api>1.0.0.Final</version.jboss-ejb-api>
		
		<version.jsf>2.2.12</version.jsf>
		<version.javax.inject>1</version.javax.inject>
		<version.el-api>3.0.0</version.el-api>
		<version.validation>1.1.0.Final</version.validation>
        <version.primefaces>6.0</version.primefaces>
        <version.primefaces.extensions>6.0.0</version.primefaces.extensions>
        <version.themes>1.0.10</version.themes>
        
<!-- 		<version.hibernate-c3p0>4.3.2.Final</version.hibernate-c3p0> -->
		<version.hibernate-entitymanager>5.0.9.Final</version.hibernate-entitymanager>
		<version.hibernate-core>5.0.9.Final</version.hibernate-core>
		<version.hibernate.validator>5.2.4.Final</version.hibernate.validator>
		<version.hibernate-jpa>1.0.0.Final</version.hibernate-jpa>
		<version.hibernate-annotation>3.5.6-Final</version.hibernate-annotation>
		<version.hibernate-commons-annotation>4.0.5.Final</version.hibernate-commons-annotation>
		<!-- <version.google.generic.dao>1.2.0</version.google.generic.dao> -->
		
		<version.commons-collections>3.2.2</version.commons-collections>
		<version.commons-lang>2.6</version.commons-lang>
		<version.commons-lang3>3.3</version.commons-lang3> <!--TODO required? -->
		<version.commons-config>1.10</version.commons-config>
		<version.common-beanutils>1.9.2</version.common-beanutils>
		<version.common-email>1.4</version.common-email>
		<version.common-exec>1.3</version.common-exec>
		
		<version.commons-fileupload>1.3</version.commons-fileupload><!--TODO required? -->
		<version.commons-codec>1.10</version.commons-codec><!--TODO required? -->
		<version.poi>3.12</version.poi>
		
		<version.joda-time>2.8.1</version.joda-time>
		<version.ojdbc6>12.1.0.2</version.ojdbc6>
		<version.dom4j>1.6.1</version.dom4j>
		<version.jxl>2.6.12</version.jxl>
		<version.xerces>2.11.0</version.xerces>
		
		<version.javaassist>3.15.0-GA</version.javaassist>
		<version.picketbox>4.0.7.Final</version.picketbox>
		<resteasy.version>2.3.5.Final</resteasy.version>
		<version.jgroups>3.6.4.Final</version.jgroups>
		<version.jbosscache>3.2.11.GA</version.jbosscache>
		<version.weldcore>2.3.3</version.weldcore>
		<version.common-jxpath>1.3-redhat-3</version.common-jxpath>
		
		<version.javamail>1.5.4</version.javamail>
		
		<!-- Logging -->
		
		<version.logback>1.1.5</version.logback>
		<version.slf4j>1.7.16</version.slf4j>
		
		<!-- Unit testing -->
		<version.junit>4.12</version.junit>
		<version.easymock>3.1</version.easymock>
		
		<!-- deltaspike -->
		<deltaspike.version>1.7.2</deltaspike.version>
		
		<!-- pluggins -->
		
		<version.wildfly.maven.plugin>1.0.2.Final</version.wildfly.maven.plugin>

	</properties>


	<profiles>

		<!-- The configuration of the development profile -->
		<profile>
			<id>local</id>
			<!-- The development profile is active by default -->
			<activation>
				<activeByDefault>true</activeByDefault>
			</activation>
			<properties>
				<build.profile.id>local</build.profile.id>
			</properties>
		</profile>

		<!-- The configuration of the development profile -->
		<profile>
			<id>dev</id>
			<!-- The development profile is active by default -->
			<properties>
				<build.profile.id>dev</build.profile.id>
			</properties>
		</profile>

		<!-- The configuration of the testing profile -->
		<profile>
			<id>test</id>
			<properties>
				<build.profile.id>test</build.profile.id>
			</properties>
		</profile>

		<!-- The configuration of the production profile -->
		<profile>
			<id>prod</id>
			<properties>
				<build.profile.id>prod</build.profile.id>
			</properties>
		</profile>
	</profiles>

	<dependencyManagement>
		<dependencies>
		
		<!-- Project specific artifacts  -->
			
			<dependency>
				<groupId>com.regist.audit</groupId>
				<artifactId>bhagat-ejb</artifactId>
				<version>${project.version}</version>
				<type>ejb</type>
			</dependency>
			<dependency>
				<groupId>com.regist.audit</groupId>
				<artifactId>bhagat-web</artifactId>
				<version>${project.version}</version>
				<type>war</type>
				<scope>compile</scope>
			</dependency>
			
			<dependency>
				<groupId>com.regist.audit</groupId>
				<artifactId>bhagat-core</artifactId>
				<version>${project.version}</version>
				<type>jar</type>
			</dependency>
			
		<!-- JEE/CDI/EJB related artifacts -->
			
			<dependency>
			    <groupId>javax</groupId>
			    <artifactId>javaee-web-api</artifactId>
			    <version>${version.javaee7.web.spec}</version>
			    <scope>provided</scope>
			</dependency>
			
			<dependency>
				<groupId>javax.enterprise</groupId>
				<artifactId>cdi-api</artifactId>
				<version>${version.cdi-api}</version>
				<scope>provided</scope>
				
			</dependency>

			<dependency>
				<groupId>javax.inject</groupId>
				<artifactId>javax.inject</artifactId>
				<version>${version.javax.inject}</version>
			</dependency>

			<dependency>
				<groupId>org.jboss.spec.javax.ejb</groupId>
				<artifactId>jboss-ejb-api_3.2_spec</artifactId>
				<version>${version.jboss-ejb-api}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>org.javassist</groupId>
				<artifactId>javassist</artifactId>
				<version>${version.javaassist}</version>
				<scope>provided</scope>
			</dependency>

		
			
			<dependency>
				<groupId>org.jboss.spec.javax.servlet</groupId>
				<artifactId>jboss-servlet-api_3.1_spec</artifactId>
				<version>${version.jboss-servlet-api_3.1_spec}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
			    <groupId>org.jboss.spec.javax.faces</groupId>
			    <artifactId>jboss-jsf-api_2.2_spec</artifactId>
			    <version>${version.jsf}</version>
			</dependency>
			
			
			<dependency>
			    <groupId>javax.el</groupId>
			    <artifactId>javax.el-api</artifactId>
			    <version>${version.el-api}</version>
			</dependency>
			
 			<dependency>
                <groupId>javax.validation</groupId>
                <artifactId>validation-api</artifactId>
                <version>${version.validation}</version>
            </dependency>
            
			<dependency>
				<groupId>org.primefaces</groupId>
				<artifactId>primefaces</artifactId>
				<version>${version.primefaces}</version>
			</dependency>
			
			<dependency>
				<groupId>org.primefaces.extensions</groupId>
				<artifactId>primefaces-extensions</artifactId>
				<version>${version.primefaces.extensions}</version>
			</dependency>

			<dependency>
				<groupId>org.primefaces.themes</groupId>
				<artifactId>all-themes</artifactId>
				<version>${version.themes}</version>
			</dependency>
			
			<!-- Hibernate APIs -->
			
			<dependency>
				<groupId>org.hibernate</groupId>
				<artifactId>hibernate-validator</artifactId>
				<version>${version.hibernate.validator}</version>
				<exclusions>
					<exclusion>
						<groupId>org.slf4j</groupId>
						<artifactId>slf4j-api</artifactId>
					</exclusion>
			       <exclusion>
			          <groupId>antlr</groupId>
			          <artifactId>antlr</artifactId>
			       </exclusion>
			      <!--  <exclusion>
			           <groupId>org.jboss.logging</groupId>
    					<artifactId>jboss-logging</artifactId>
			       </exclusion> -->
			       <exclusion>
			          <groupId>com.fasterxml</groupId>
    				  <artifactId>classmate</artifactId>
			       </exclusion>
			       
				</exclusions>
			</dependency>

			<dependency>
				<groupId>org.hibernate</groupId>
				<artifactId>hibernate-entitymanager</artifactId>
				<version>${version.hibernate-entitymanager}</version>
  			   <!--  <scope>provided</scope> -->
  			    <exclusions>
  			     	<!-- <exclusion>
			           <groupId>org.jboss.logging</groupId>
    					<artifactId>jboss-logging</artifactId>
			       </exclusion> -->
			       <exclusion>
			          <groupId>org.apache.geronimo.specs</groupId>
    				  <artifactId>geronimo-jta_1.1_spec</artifactId>
			       </exclusion>
			        <exclusion>
			          <groupId>dom4j</groupId>
    				  <artifactId>dom4j</artifactId>
			       </exclusion>
			        <exclusion>
			          <groupId>org.javassist</groupId>
  					  <artifactId>javassist</artifactId>
			       </exclusion>
			    </exclusions>   
			</dependency>

			<dependency>
				<groupId>org.hibernate.javax.persistence</groupId>
				<artifactId>hibernate-jpa-2.1-api</artifactId>
				<version>${version.hibernate-jpa}</version>
			</dependency>

			 <dependency>
			    <groupId>org.hibernate</groupId>
			    <artifactId>hibernate-core</artifactId>
			    <version>${version.hibernate-core}</version>
			</dependency>
			
			<dependency>
			    <groupId>org.hibernate</groupId>
			    <artifactId>hibernate-commons-annotations</artifactId>
			    <version>${version.hibernate-commons-annotation}</version>
			</dependency> 
			
			<!-- <dependency>
				<groupId>org.hibernate</groupId>
				<artifactId>hibernate-c3p0</artifactId>
				<version>${version.hibernate-c3p0}</version>
			</dependency> 

			<dependency>
				<groupId>org.hibernate</groupId>
				<artifactId>hibernate-jpamodelgen</artifactId>
				<version>${version.hibernate.jpamodelgen}</version>
			</dependency> -->

	
			<!-- Apache Common artifacts -->
			
			<dependency>
				<groupId>commons-collections</groupId>
				<artifactId>commons-collections</artifactId>
				<version>${version.commons-collections}</version>
			</dependency>

			<dependency>
                <groupId>commons-lang</groupId>
                <artifactId>commons-lang</artifactId>
                <version>${version.commons-lang}</version>
            <!--     <scope>compile</scope> -->
            </dependency>
            
            <dependency>
                <groupId>org.apache.commons</groupId>
                <artifactId>commons-lang3</artifactId>
                <version>${version.commons-lang3}</version>
              <!--   <scope>compile</scope> -->
            </dependency>
			
			<dependency>
				<groupId>commons-fileupload</groupId>
				<artifactId>commons-fileupload</artifactId>
				<version>${version.commons-fileupload}</version>
			</dependency>
			<dependency>
				<groupId>commons-codec</groupId>
				<artifactId>commons-codec</artifactId>
				<version>${version.commons-codec}</version>
			</dependency>
			
			<dependency>
			    <groupId>commons-configuration</groupId>
			    <artifactId>commons-configuration</artifactId>
			   <version>${version.commons-config}</version>
			</dependency>
			
			<dependency>
			    <groupId>commons-beanutils</groupId>
			    <artifactId>commons-beanutils</artifactId>
			    <version>${version.common-beanutils}</version>
			</dependency>
			
			<dependency>
			    <groupId>org.apache.commons</groupId>
			    <artifactId>commons-email</artifactId>
			    <version>${version.common-email}</version>
			</dependency>
			
			<dependency>
			    <groupId>org.apache.commons</groupId>
			    <artifactId>commons-exec</artifactId>
			    <version>${version.common-exec}</version>
			</dependency>
			
			<dependency>
				<groupId>joda-time</groupId>
				<artifactId>joda-time</artifactId>
				<version>${version.joda-time}</version>
			</dependency>
			
			<dependency>
				<groupId>com.oracle</groupId>
				<artifactId>ojdbc7</artifactId>
				<version>${version.ojdbc6}</version>
				
			</dependency>

			<dependency>
			    <groupId>org.apache.poi</groupId>
			    <artifactId>poi</artifactId>
			    <version>${version.poi}</version>
			</dependency>

			<dependency>
			    <groupId>org.apache.poi</groupId>
			    <artifactId>poi-ooxml</artifactId>
			   <version>${version.poi}</version>
			</dependency>
			
			<dependency>
				<groupId>dom4j</groupId>
				<artifactId>dom4j</artifactId>
				<version>${version.dom4j}</version>
			</dependency>
			
			<dependency>
			    <groupId>xerces</groupId>
			    <artifactId>xercesImpl</artifactId>
			    <version>${version.xerces}</version>
			</dependency>
			
			<dependency>
				<groupId>net.sourceforge.jexcelapi</groupId>
				<artifactId>jxl</artifactId>
				<version>${version.jxl}</version>
				<exclusions>
				    <exclusion>
				     <groupId>log4j</groupId>
  					 <artifactId>log4j</artifactId>
				    </exclusion>
				 </exclusions>
			</dependency>
			
			<!-- <dependency>
				<groupId>org.picketbox</groupId>
				<artifactId>picketbox</artifactId>
				<version>${version.picketbox}</version>
				<scope>provided</scope>
			</dependency>
 -->
			<dependency>
				<groupId>javax.mail</groupId>
				<artifactId>javax.mail-api</artifactId>
				<version>${version.javamail}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>org.jboss.resteasy</groupId>
				<artifactId>resteasy-jaxrs</artifactId>
				<version>${resteasy.version}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
				<groupId>org.jboss.resteasy</groupId>
				<artifactId>jaxrs-api</artifactId>
				<version>${resteasy.version}</version>
				<scope>provided</scope>
			</dependency>

			<dependency>
			    <groupId>org.jgroups</groupId>
			    <artifactId>jgroups</artifactId>
			    <version>${version.jgroups}</version>
			</dependency>
			
			<dependency>
			    <groupId>org.jboss.cache</groupId>
			    <artifactId>jbosscache-core</artifactId>
			    <version>${version.jbosscache}</version>
			   <!--  <scope>provided</scope> -->
			   <exclusions>
			    <exclusion>
			    	 <groupId>org.jboss</groupId>
    				<artifactId>jboss-common-core</artifactId>
			    </exclusion>
			    <exclusion>
			    	 <groupId>jgroups</groupId>
   					 <artifactId>jgroups</artifactId>
			    </exclusion>
			    <exclusion>
			    	 <groupId>org.jboss.javaee</groupId>
  				 	<artifactId>jboss-transaction-api</artifactId>
			    </exclusion>
			   
			    <exclusion>
			    	<groupId>commons-logging</groupId>
   					 <artifactId>commons-logging</artifactId>
			    </exclusion>
			   
			 </exclusions>
			</dependency>
			
			<dependency>
			    <groupId>org.jboss.weld</groupId>
			    <artifactId>weld-core</artifactId>
			    <version>${version.weldcore}</version>
			</dependency>
			
			<dependency>
			    <groupId>commons-jxpath</groupId>
			    <artifactId>commons-jxpath</artifactId>
			    <version>${version.common-jxpath}</version>
			</dependency>
			
			<!-- Logback artifacts  -->
				
			<dependency>
				<groupId>ch.qos.logback</groupId>
				<artifactId>logback-core</artifactId>
				<version>${version.logback}</version>
			</dependency>
			
			<dependency>
				<groupId>ch.qos.logback</groupId>
				<artifactId>logback-classic</artifactId>
				<version>${version.logback}</version>
			</dependency> 
			
			<dependency>
				<groupId>org.slf4j</groupId>
				<artifactId>slf4j-api</artifactId>
				<version>${version.slf4j}</version>
			</dependency>
			
			
			<!-- Test dependencies -->
			<dependency>
				<groupId>junit</groupId>
				<artifactId>junit</artifactId>
				<version>${version.junit}</version>
				<!-- <scope>test</scope> -->
			</dependency>
			<dependency>
				<groupId>org.easymock</groupId>
				<artifactId>easymock</artifactId>
				<version>${version.easymock}</version>
				<!-- <scope>test</scope> -->
			</dependency>
			
			<!-- DeltaSpike -->
			
			
		</dependencies>
	</dependencyManagement>

	<build>
		<pluginManagement>
			<plugins>
				<plugin>
					<artifactId>maven-compiler-plugin</artifactId>
					<version>3.1</version>
					<configuration>
						<source>1.8</source>
						<target>1.8</target>
					</configuration>
				</plugin>
				
				<!-- Maven jar plugin -->
				<plugin>
		            <groupId>org.apache.maven.plugins</groupId>
		       		<artifactId>maven-jar-plugin</artifactId>
		       		<version>2.4</version>
	                <configuration>
	                  <archive>
	          	          <manifestFile>src/main/resources/META-INF/MANIFEST.MF</manifestFile>
               			</archive>
               		</configuration>
              	</plugin>
				<!-- Maven EJB plugin -->
				<plugin>
					<artifactId>maven-ejb-plugin</artifactId>
					<version>2.3</version>
					<configuration>
						<ejbVersion>3.1</ejbVersion>
					</configuration>

				</plugin>
				<!-- Maven resource plugin -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-resources-plugin</artifactId>
					<version>2.5</version>
					<configuration>
						<!-- specify UTF-8, ISO-8859-1 or any other file encoding -->
						<encoding>UTF-8</encoding>
					</configuration>
				</plugin>

				<!-- The JBoss AS plugin deploys your ear to a local JBoss AS container -->
				<plugin>
					<groupId>org.jboss.as.plugins</groupId>
					<artifactId>jboss-as-maven-plugin</artifactId>
					<version>7.1.1.Final</version>
					<inherited>true</inherited>
					<configuration>
						<skip>true</skip>
					</configuration>
				</plugin>

				<plugin>
					<groupId>org.bsc.maven</groupId>
					<artifactId>maven-processor-plugin</artifactId>
					<version>2.0.5</version>
				</plugin>

				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>build-helper-maven-plugin</artifactId>
					<version>1.7</version>
				</plugin>

				<!-- Site plugin -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-site-plugin</artifactId>
					<version>2.1</version>
					<configuration>
						<outputDirectory>${basedir}/target/reports/site</outputDirectory>
						<destDir>bhagat</destDir>
					</configuration>
				</plugin>

				<!-- Code Quality Inspection -->
				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>sonar-maven-plugin</artifactId>
					<version>2.5</version>
				</plugin>


				<plugin>
					<groupId>org.codehaus.mojo</groupId>
					<artifactId>cobertura-maven-plugin</artifactId>
					<version>${corbetura.plugin.version}</version>
				</plugin>

				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-surefire-report-plugin</artifactId>
					<version>2.18.1</version>
					<configuration>
						<outputDirectory>${basedir}/target/reports/surefire</outputDirectory>
						<destDir>bhagat-ear</destDir>
					</configuration>
				</plugin>

				<!-- javadoc -->
				<plugin>
					<groupId>org.apache.maven.plugins</groupId>
					<artifactId>maven-javadoc-plugin</artifactId>
					<version>2.10.2</version>
					<configuration>
						<reportOutputDirectory>${basedir}/target/reports/javadoc</reportOutputDirectory>
						<destDir>bhagat</destDir>
					</configuration>
				</plugin>
				
			    <!-- The WildFly plugin deploys your ear to a local JBoss
                    AS container -->
                <!-- Due to Maven's lack of intelligence with EARs we need 
                    to configure the wildfly maven plugin to skip deployment for all modules.
                    We then enable it specifically in the ear module. -->
                <plugin>
                    <groupId>org.wildfly.plugins</groupId>
                    <artifactId>wildfly-maven-plugin</artifactId>
                    <version>${version.wildfly.maven.plugin}</version>
                    <inherited>true</inherited>
                    <configuration>
                        <skip>true</skip>
                    </configuration>
                </plugin>
			</plugins>
		</pluginManagement>
	</build>

  <repositories>
  <repository>
      <id>primefaces-repo </id>
      <url>http://repository.primefaces.org/</url>
    </repository>
    <repository>
      <id>hibernate-repo </id>
      <url>http://www.gridgainsystems.com/nexus/content/repositories/external/</url>
    </repository>
    <repository>
      <id>redhat-repo </id>
      <url> https://maven.repository.redhat.com/ga/</url>
    </repository>
    <repository>
      <id>codelds</id>
      <url>https://code.lds.org/nexus/content/groups/main-repo</url>
    </repository>
    <repository>
	    <id>nuxeo</id>
	    <name>nuxeo</name>
	    <url>https://maven-eu.nuxeo.org/nexus/content/repositories/public/</url>
	</repository>
   
  </repositories>

     <modules>
     	<module>bhagat-core</module>
        <module>bhagat-ejb</module>
        <module>bhagat-web</module>
        <module>bhagat-ear</module>
    </modules>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd";>
   <modelVersion>4.0.0</modelVersion>

   <parent>
      <artifactId>bhagat</artifactId>
      <groupId>com.regist.audit</groupId>
      <version>1.0</version>
   </parent>

   <artifactId>bhagat-web</artifactId>
   <packaging>war</packaging>

   <name>bhagat: WAR Module</name>

   <properties>
	   <resources.directory>src/main/resources</resources.directory>
	    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  	</properties>
  	
  	
   <dependencies>

      <dependency>
         <groupId>com.regist.audit</groupId>
         <artifactId>bhagat-ejb</artifactId>
         <type>ejb</type>
         <scope>provided</scope>
      </dependency>

 	 <dependency> 
         <groupId>com.regist.audit</groupId>
         <artifactId>bhagat-core</artifactId>
         <type>jar</type>
         <scope>provided</scope>
      </dependency>
      
      <dependency>
		 <groupId>ch.qos.logback</groupId>
		 <artifactId>logback-classic</artifactId>
		 <scope>provided</scope>
	  </dependency> 
		
		<dependency>
		    <groupId>ch.qos.logback</groupId>
		    <artifactId>logback-core</artifactId>
		    <scope>provided</scope>
		</dependency>
		
		<dependency>
		    <groupId>org.slf4j</groupId>
		    <artifactId>slf4j-api</artifactId>
		    <scope>provided</scope>
		</dependency>
		
		
		<dependency>
			<groupId>javax.enterprise</groupId>
			<artifactId>cdi-api</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.jboss.spec.javax.servlet</groupId>
			<artifactId>jboss-servlet-api_3.1_spec</artifactId>
			<scope>provided</scope>
		</dependency>

 		 <dependency>
			<groupId>org.jboss.spec.javax.faces</groupId>
			 <artifactId>jboss-jsf-api_2.2_spec</artifactId>
		</dependency>
		
	<!-- 	<dependency>
			<groupId>com.sun.faces</groupId>
			<artifactId>jsf-api</artifactId>
			<scope>provided</scope>
		</dependency>
		
		<dependency>
			<groupId>com.sun.faces</groupId>
			<artifactId>jsf-impl</artifactId>
			<scope>provided</scope>
		</dependency>  -->
		
				
				
		<dependency>
			<groupId>org.primefaces</groupId>
			<artifactId>primefaces</artifactId>
		</dependency>
		
		<dependency>
			<groupId>org.primefaces.extensions</groupId>
			<artifactId>primefaces-extensions</artifactId>
		</dependency>
		
		<dependency>
			<groupId>org.primefaces.themes</groupId>
			<artifactId>all-themes</artifactId>
		</dependency>
	
		<dependency>
              <groupId>javax.validation</groupId>
               <artifactId>validation-api</artifactId>
         </dependency>
         
		<dependency>
			 <groupId>javax.el</groupId>
			  <artifactId>javax.el-api</artifactId>
		</dependency>
		
		<dependency>
			<groupId>commons-collections</groupId>
			<artifactId>commons-collections</artifactId>
		</dependency>
		
		<dependency>
			<groupId>commons-lang</groupId>
			<artifactId>commons-lang</artifactId>
		</dependency>
		
		<dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
        </dependency>
            
		<dependency>
			<groupId>commons-fileupload</groupId>
			<artifactId>commons-fileupload</artifactId>
		</dependency>
		
		<dependency>
			<groupId>commons-codec</groupId>
			<artifactId>commons-codec</artifactId>
		</dependency>
		
		<dependency>
			<groupId>joda-time</groupId>
			<artifactId>joda-time</artifactId>
	  	</dependency>
	  	
	  	<dependency>
			<groupId>org.jboss.resteasy</groupId>
			<artifactId>resteasy-jaxrs</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.jboss.resteasy</groupId>
			<artifactId>jaxrs-api</artifactId>
			<scope>provided</scope>
		</dependency>
	  	
	</dependencies>

	<build>
		<plugins>
			<plugin>
			 	<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-war-plugin</artifactId>
				<version>2.6</version>
				<configuration>
				<failOnMissingWebXml>false</failOnMissingWebXml>
				<archive>
					<manifest>
						<addClasspath>true</addClasspath>
					</manifest>
				</archive>
		         <webResources>
		            <resource>
		              <directory>../resources/${build.profile.id}/web</directory>
		              <targetPath>WEB-INF</targetPath>
		              <includes>
				      	<include>*.xml</include>
				      </includes>
		            </resource>
		            <resource>
		              <directory>../resources/${build.profile.id}/web</directory>
		              <targetPath>WEB-INF/classes</targetPath>
		              <includes>
				      	<include>*.properties</include>
				      </includes>
		            </resource>
		            
				  </webResources>
		        </configuration>
			</plugin>
		</plugins>
	</build>
</project>

Reply via email to