Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 979877
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T04:17:16+00:00 2026-05-16T04:17:16+00:00

I have a web-app with the configuration below (inherited from a parent’s pluginManagement). JSPC

  • 0

I have a web-app with the configuration below (inherited from a parent’s pluginManagement). JSPC precompiles my JSPs just fine but there is some really weird behaviour:

In my web-app, if I run of mvn clean install, the compiled JSP class gets placed in target/classes just like I want.
If I then run mvn install without cleaning, the compiled JSP is placed alongside the JSP itself in target/jsp-source/jsp

Result is that on a non-clean run, it’s the old version of the JSP class that gets included in the WAR.

Anyone know why this might be happening?

<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jspc-maven-plugin</artifactId>
<version>1.4.6</version>
<executions>
    <execution>
        <id>jspc</id>
        <goals>
            <goal>compile</goal>
        </goals>
        <configuration>
            <injectString>&lt;!-- [INSERT JSPC FRAGMENT HERE] --&gt;</injectString>
        </configuration>
    </execution>
</executions>
<dependencies>
    <dependency>
        <groupId>org.codehaus.mojo.jspc</groupId>
        <!-- change tomcat6 to tomcat5 below for 5.5 compatibility  -->
        <artifactId>jspc-compiler-tomcat6</artifactId>
        <version>2.0-alpha-3</version>
    </dependency>
</dependencies></plugin>

Thanks

Gary

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T04:17:17+00:00Added an answer on May 16, 2026 at 4:17 am

    I think I found it.

    Default behaviour is that jsp files are compiled to target/jsp-source/jsp. The resulting class file is then moved to target/classes.

    However, the move is executed using Java’s file.rename() method, which does not guarantee behaviour if a file with the intended name already exists in target/classes. I guess on Windows, it just aborts the rename.

    I see the current trunk version of the code (2.0-alpha-4-SNAPSHOT) uses Groovy to call an Ant Copy instead, this will cause the existing file to be over-written if it’s older than the new file. That’s what I need, I’ll try that, even though it’s an SNAPSHOT of an alpha.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an MVC2 C#.Net web app using VS2010. Below is an entry in
I have a web app consisting of some JSPs that were previously running on
I have inherited a working VB.NET 2.0 web app that has several User Controls
I have a ASP.NET Web app and here is the below entry in Web.Config
I have a web app game and while in the game I want to
I have a web app in production that is used for typical data entry,retrieval,
We have an web app that is talking to Netsuite via Netsuite's web services.
I have a web app built on Java Servlet technology. I am thinking of
I have a web app on JBoss 4.2.3 and I'd like it to send
I have a web app that I've recently applied a jQuery ThemeRoller theme to.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.