I have two wars say War-A and War - B. I need to build war - B re-using the src and resources directory of War - A with some minor config changes in web.xml of war-B. Hence I given the below code in war - B
<srcPath>${project.parent.basedir}/War-A/src/main/java</srcPath>
<resourcespath>${project.parent.basedir}/War-A/src/main</resourcespath>
But while building the war-B, Maven not referring the proper path of parent.basedir instead it is showing below logs
[INFO] skip non existing resourceDirectory C:\..\war-B\${project.parent.basedir}\war-A\src\main
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @
war-B ---
[INFO] No sources to compile
[INFO]
However with the same configuration
<webapp>${project.parent.basedir}/War-A/src/main</webapp>
it is able to generate the war with webapp directory. Please suggest some solution and I am using eclipse + maven
Try this
../War-A/src/main/java