• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Building War file - Including a package and its only one subpackage while excluding all the others.

 
krithika vittal
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

According to my project structure i want build a war file by including a package and its subpackage(only one) while exluding all the other subpackages.

For example, consider the below,

com.jf.broker.adapter
com.jf.broker.adapter.tpa
com.jf.broker.adapter.tpb
com.jf.broker.adapter.tpc
com.jf.broker.utils
com.jf.broker.client

I would like to build a war file according to profiles in maven.

Like if i run with a profile tpa the com.jf.broker.utils
com.jf.broker.client,com.jf.broker.adapter package with its classes and the subpackage com.jf.broker.adapter.tpa should be in the war file


I am using profile , maven-compiler-plugin , <excludes> under <configuration> to achieve the above scenario by excluding com.jf.broker.adapter.tpb
and com.jf.broker.adapter.tpc

If i add a new package com.jf.broker.adapter.tpd , this setup wont work.Is there a way to include the com.jf.broker.adapter.tpa subpackage if i run the tpa profile instead of excluding all the other subpackages ?

Many thanks.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try this: use <includes> instead and include com.jf.broker.adapter/*.java, com.jf.broker.adapter.tpa/**/*.java, com.jf.broker.utils/**/*.java, com.jf.broker.client/**/*.java.

If this doesn't help, please post your compiler plugin declaration from your POM.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic