Configure maven-war-plugin to include project classes in root of WAR

218 Views Asked by At

Is it possible to configure the maven-war-plugin so that it adds the project's classes into the root of the WAR as well as into WEB-INF/classes?

An overlay requires that the classes be a dependency so that doesn't seem like it will work for classes within the same project.

At the moment I am using the antrun-plugin to copy the classes over during pre-package, but it feels a little hacky. Is there a cleaner solution? If so what?

0

There are 0 best solutions below