if you are not allowed to change the web app structure in any way, don't use maven... use ant.
maven is opinionated... maven's opinion is the structure you want to follow is a load of rubbish... maven will fight you all the way... and any time you fight maven, you will loose. btw. with some minor tweaks, your webapp structure could be not so rubbish, but you seem adamant that the structure is set in stone... i suspect it is not as rigidly fixed as you think... for example, a jar in web-inf/lib is equivalent to the contents of that jar in web-inf/classes (unless you have duplicate classes on your classpath... but that is a bug you need to fix)... so what was being suggested about adding the dependencies will "just work" unless your application is breaking all the rules about writing good java apps... and part of maven's opinionated nature is to help people follow best practices... so maven will only be your friend if you are prepared to write your application the right way. (in general i find it is quicker to write applications the right way with maven, than the wrong way without maven) - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on the screen On 8 Dec 2011 04:50, "AK-47" <akshay.learn...@gmail.com> wrote: > Hi > > i want to make me more clear > > setting only deppendencies will not work, > i got full java source com.comp.abc in JavaModule > i want to get WAR to be done WebContent module > so i need all complied java class files must be available in WebContent > before building was > > now the question here is - > 1) first how get all comipled classes > 2.) how to place them WebContent module so that in war build these must be > included in WEB-INF > \classes folder > > the situation with me is i am not working with default maven web project > structure > I have java web project structure which i m not allowed to change > i need some way to locate java source files for compiling to build war > along > with java classes files > > Plz help me to get solve this > > Thanks > > -- > View this message in context: > http://maven.40175.n5.nabble.com/Building-war-for-different-project-structure-from-maven-j2ee-statndard-one-tp5055483p5057701.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > >