jsp - jspc-maven-plugin - inconsistent genereated class directory -
I have a web-app with configuration below (parent to parent plugin). JSPC fixes my JSP properly but there is some very strange behavior:
In my web app, if I run mvn clean install , then compiled JSP class Is placed in the target / classes like I want if I run mvn install without cleaning, then the compiled JSP is placed in target / JSP-source / JSP with JSP
The result is that on a non-clean run, it will join the war The old version of the SP class is.
Why is this happening to anyone?
& lt; Plugin & gt; & Lt; Group & gt; Org.codehaus.mojo & lt; / Group & gt; & Lt; ArtifactId & gt; Jspc-maven-plugin & lt; / ArtifactId> & Lt; Version & gt; 1.4.6 & lt; / Edition & gt; & Lt; Hanging & gt; & Lt; Execution & gt; & Lt; ID & gt; Jspc & lt; / Id & gt; & Lt; Goals & gt; & Lt; Goal & gt; Collection & lt; / Target & gt; & Lt; / Targets & gt; & Lt; Configuration & gt; & Lt; InjectString & gt; & Amp; Lt ;! - [INSERT JSPC FRAGMENT HERE] - & amp; Gt; & Lt; / InjectString & gt; & Lt; / Configuration & gt; & Lt; / Execution & gt; & Lt; / Hanging & gt; & Lt; Dependency & gt; & Lt; Dependency & gt; & Lt; Group & gt; Org.codehaus.mojo.jspc & lt; / Group & gt; & Lt ;! - Change Tomcat 6 to Tomcat 5 below 5.5 for compatibility - & gt; & Lt; ArtifactId & gt; Jspc-compiler tomcat6 & lt; / ArtifactId> & Lt; Version & gt; 2.0-alpha3 & lt; / Edition & gt; & Lt; / Dependencies & gt; & Lt; / Dependencies & gt; & Lt; / Plugin & gt; I think I found it.
The default behavior is that target / jsp-source / jsp is compiled to jsp files, as a result the class file is again moved to target / squares.
However, this step is Java's file. Is executed using the name () method, which does not guarantee the behavior if the file in the targeted name already exists / classes. I think on Windows, it just changes the name.
I think that the current trunk version of the code (2.0-alpha-4-SNAPSHOT) uses GROV to make an ant copy call, due to the current if the file is older than the new file So the file has to be overwritten, this is what I want, I try, even if it is a alpha's SNAPHOT.
Comments
Post a Comment