Is it possible to build multiple artifacts in a single POM file? It is not about building multiple assemblies but the artifacts have different builds and dependencies but refer the same source.

For e.g. one artifact I need to build is a WAR file which excludes certain AspectJ files from the build and the other is a JAR file which needs those Aspects to be weaved during the build.

Right now, I have 2 pom.xml's which run on 2 copies of the same source to produce the desired artifacts. Can this be done in a single POM?