Maven Exclusion

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

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









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
ModuleNotFoundError: No module named 'odoo10-addon-base-cron-exclusion'
ModuleNotFoundError: No module named 'odoo10-addon-base-cron-exclusion' ...: ModuleNotFoundError: No module named 'odoo10-addon-base-cron-exclusion' How to remove the ModuleNotFoundError: No module named 'odoo10-addon-base-cron-exclusion'
Advertisements
ModuleNotFoundError: No module named 'odoo13-addon-base-cron-exclusion'
ModuleNotFoundError: No module named 'odoo13-addon-base-cron-exclusion' ...: ModuleNotFoundError: No module named 'odoo13-addon-base-cron-exclusion' How to remove the ModuleNotFoundError: No module named 'odoo13-addon-base-cron-exclusion'
ModuleNotFoundError: No module named 'odoo11-addon-base-cron-exclusion'
ModuleNotFoundError: No module named 'odoo11-addon-base-cron-exclusion' ...: ModuleNotFoundError: No module named 'odoo11-addon-base-cron-exclusion' How to remove the ModuleNotFoundError: No module named 'odoo11-addon-base-cron-exclusion'
ModuleNotFoundError: No module named 'odoo12-addon-base-cron-exclusion'
ModuleNotFoundError: No module named 'odoo12-addon-base-cron-exclusion' ...: ModuleNotFoundError: No module named 'odoo12-addon-base-cron-exclusion' How to remove the ModuleNotFoundError: No module named 'odoo12-addon-base-cron-exclusion'
ModuleNotFoundError: No module named 'odoo9-addon-base-cron-exclusion'
ModuleNotFoundError: No module named 'odoo9-addon-base-cron-exclusion' ...: ModuleNotFoundError: No module named 'odoo9-addon-base-cron-exclusion' How to remove the ModuleNotFoundError: No module named 'odoo9-addon-base-cron-exclusion' error
ModuleNotFoundError: No module named 'odoo9-addon-partner-contact-nutrition-exclusion'
-exclusion'  Hi, My Python program is throwing following error...-exclusion' How to remove the ModuleNotFoundError: No module named 'odoo9-addon-partner-contact-nutrition-exclusion' error? Thanks   Hi
Synchronization in java with example
synchronization Mutual Exclusive and Inter-thread communication. Mutual Exclusion... exclusion will keep a thread from interfering with another thread while sharing data
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
Artifacts of maven
List of Artifacts of maven maven depenency
Version of maven>maven dependency
List of Version of maven>maven dependency
GotoFile
modes of result display as well as exclusion filters for folders and files
Web-CAT Electronic Submission Plug-in
XML file File-pattern-based inclusion and exclusion of files
Maven Repository/Dependency: maven | maven
Maven Repository/Dependency of Group ID maven and Artifact ID maven. Latest version of maven:maven dependencies. # Version... 02 Aug 2005 You can read more at: Maven Tutorials
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.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-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-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-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
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.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-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-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-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.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
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-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 >> 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 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
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 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
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
Maven Repository/Dependency: maven | maven-component
Maven Repository/Dependency of Group ID maven and Artifact ID maven-component. Latest version of maven:maven-component dependencies. # Version Release Date You can read more at: Maven
Maven Repository/Dependency: maven | maven-it-support
Maven Repository/Dependency of Group ID maven and Artifact ID maven-it-support. Latest version of maven:maven-it-support dependencies... at: Maven Tutorials What is Apache Maven? How to create Maven Web
Maven Repository/Dependency: maven | maven-model
Maven Repository/Dependency of Group ID maven and Artifact ID maven-model. Latest version of maven:maven-model dependencies. # Version... You can read more at: Maven Tutorials What
Maven Dependency maven-component >> 2.0-SNAPSHOT
You should include the dependency code given in this page to add Maven Dependency of maven >> maven-component version2.0-SNAPSHOT in your project
Maven Dependency maven-model >> 3.0.1
You should include the dependency code given in this page to add Maven Dependency of maven >> maven-model version3.0.1 in your project
Maven Dependency maven-model >> 3.0.2
You should include the dependency code given in this page to add Maven Dependency of maven >> maven-model version3.0.2 in your project
Maven Dependency maven-it-support >> 1.0
You should include the dependency code given in this page to add Maven Dependency of maven >> maven-it-support version1.0 in your project
Maven Dependency maven-model >> 3.0.0
You should include the dependency code given in this page to add Maven Dependency of maven >> maven-model version3.0.0 in your project
Artifacts of cactus-maven
List of Artifacts of cactus-maven maven depenency

Ads