Jasig / jspc-maven-plugin

UNMAINTAINED Maven plugin that compiles JSPs
http://unmaintained.tech/
Apache License 2.0
24 stars 38 forks source link

Do not copy compiled JSPs to output directory if "includeInProject" is set to false #20

Closed muffl0n closed 7 years ago

muffl0n commented 10 years ago

Currently compiled JSPs (.class-files) are copied into the output directory even if "includeInProject" is set to false.

I'm just using the plugin to check if all JSPs can be compiled before deploying the application to the production servers.

The compiled JSPs should only be copied to the output directory and thus included in the project if "includeInProject" is set to true. Currently the parameter name is misleading.

muffl0n commented 10 years ago

See https://jira.codehaus.org/browse/MJSPC-45

muffl0n commented 10 years ago

Please ignore all commits but a574e95

sellersj commented 8 years ago

This would be awesome if this was applied, but until then a work around is to use the following config. (codehaus is dead so I can't see the linked ticket directly)

<compile>false</compile>
<includeInProject>false</includeInProject>
daniele-athome commented 7 years ago

Is there any chance this will get merged? I can't see the Jira ticket because the server is down :-(

daniele-athome commented 7 years ago

Anyway the workaround suggested by @sellersj skips actual compilation, which might be useful. I've used instead this in the war plugin:

<packagingExcludes>WEB-INF/classes/**/*_jsp.class</packagingExcludes>
muffl0n commented 7 years ago

Those commits are broken anyway. It's just a574e95 that matters. Or you could just accept #38. That's basically the same.