Online Training Spring Hibernate Training in Delhi R Programming Training Course Big Data and Hadoop Training Java Training  
 

Maven Exclusion

Ads

 
 

Share on Google+Share on Google+

Deepak Kumar
Maven Exclusion
1 Answer(s)      9 years ago
Posted in : Maven

While doing a project I was encountered a problem... jsf-api-1.2_06.jar jsf-impl-1.2_06.jar Here is the full code of maven-war plugin maven-war-plugin 2.0.2 **/jdbc.properties

Ads
View Answers

February 25, 2008 at 1:21 PM


Hello,

My problem was to exclude the following jar files while creating war file:
jsf-api-1.2_06.jar &
jsf-impl-1.2_06.jar

So, resolve the problem I added following code into pom.xml file

<warSourceExcludes>jsf-api-1.2_06.jar</warSourceExcludes>
<warSourceExcludes>jsf-impl-1.2_06.jar</warSourceExcludes>

Here is the full code of maven-war plugin


<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.0.2</version>
<configuration>
<dependentWarExcludes>
**/jdbc.properties,**/hibernate.cfg.xml,**/sql-map-config.xml,**/web.xml,WEB-INF/classes/META-INF/**
</dependentWarExcludes>
<warSourceExcludes>jsf-api-1.2_06.jar</warSourceExcludes>
<warSourceExcludes>jsf-impl-1.2_06.jar</warSourceExcludes>
</configuration>
</plugin>

Hope this quick tip will help you in your projects.

Maven resource:
http://www.roseindia.net/maven2/index.shtml
http://www.javajazzup.com/issue2/page18.shtml

Thanks

Ads









Related Tutorials/Questions & Answers:
Maven Exclusion - Maven
Maven Exclusion  While doing a project I was encountered a problem... jsf-api-1.2_06.jar jsf-impl-1.2_06.jar Here is the full code of maven-war plugin maven-war-plugin 2.0.2 **/jdbc.properties   Hello,My problem
Maven - Maven
Maven  I am new to maven tool.i don't know anything abt that? plesae explain me about maven   Hi mamatha, Maven is a high-level... software foundation group. Maven deals with application development lifecycle
Advertisements
Artifacts of maven
List of Artifacts of maven maven depenency
Version of maven>maven dependency
List of Version of maven>maven dependency
Maven Dependency maven >> 1.0
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.0 in your project
Maven Dependency maven >> 1.0-beta-10
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.0-beta-10 in your project
Maven Dependency maven >> 1.0-beta-7
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.0-beta-7 in your project
Maven Dependency maven >> 1.0-beta-8.20030202.153444
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.0-beta-8.20030202.153444 in your project
Maven Dependency maven >> 1.0-rc1
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.0-rc1 in your project
Maven Dependency maven >> 1.0-rc4
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.0-rc4 in your project
Maven Dependency maven >> 1.1-beta-2
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.1-beta-2 in your project
Maven Dependency maven >> 20030211.132709
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version20030211.132709 in your project
Maven Dependency maven >> 1.0.1
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.0.1 in your project
Maven Dependency maven >> 1.0.2
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.0.2 in your project
Maven Dependency maven >> 1.0-beta-5
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.0-beta-5 in your project
Maven Dependency maven >> 1.0-beta-6
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.0-beta-6 in your project
Maven Dependency maven >> 1.0-beta-8
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.0-beta-8 in your project
Maven Dependency maven >> 1.0-beta-8.20021007.010812
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.0-beta-8.20021007.010812 in your project
Maven Dependency maven >> 1.0-beta-8.20030202.153715
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.0-beta-8.20030202.153715 in your project
Maven Dependency maven >> 1.0-beta-8.20030202.153859
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.0-beta-8.20030202.153859 in your project
Maven Dependency maven >> 1.0-rc2
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.0-rc2 in your project
Maven Dependency maven >> 1.0-rc3
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.0-rc3 in your project
Maven Dependency maven >> 1.1
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.1 in your project
Maven Dependency maven >> 1.1-beta-1
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.1-beta-1 in your project
Maven Dependency maven >> 1.1-beta-3
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.1-beta-3 in your project
Maven Dependency maven >> 1.1-RC1
You should include the dependency code given in this page to add Maven Dependency of maven >> maven version1.1-RC1 in your project
Maven Jobss Plugin - Maven
Maven Jobss Plugin  How to deploy your application using maven tool.... So, to make the things simple we used jboss-maven-plugin to deploy... org.codehaus.mojo jboss-maven-plugin  Hi, I was working on a project where
Version of maven>maven-component dependency
List of Version of maven>maven-component dependency
Version of maven>maven-it-support dependency
List of Version of maven>maven-it-support dependency
Version of maven>maven-model dependency
List of Version of maven>maven-model dependency
Maven 2 - Maven
Maven 2   Hi, I m new to Maven 2 and in process to implement Maven2. I have browse in the net and got my Maven 2 installed but now I m facing few concerns on creating a small project. Please help me in this regard Thanks