spring-boot project never reload the jsp in src/main/webapp

ZeroTurnaround Homepage Forums JRebel Support spring-boot project never reload the jsp in src/main/webapp

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Meelis 6 months, 3 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #62543

    Peter Cheung
    Member

    spring-boot project never reload the jsp in src/main/webapp. I run my project in netbeans with maven goal : spring-boot:run

    Below are my pom.xml

    <plugin>
    <groupId>org.zeroturnaround</groupId>
    <artifactId>jrebel-maven-plugin</artifactId>
    <version>1.1.7</version>
    <executions>
    <execution>
    <id>generate-rebel-xml</id>
    <phase>process-resources</phase>
    <goals>
    <goal>generate</goal>
    </goals>
    </execution>
    </executions>
    <configuration>
    <web>
    <resources>
    <resource>
    <target>/</target>
    <directory>src/main/webapp</directory>
    </resource>
    </resources>
    </web>
    </configuration>
    </plugin>

    Please tell me how to make it works?
    thanks
    from Peter

    #62546

    Meelis
    Moderator

    Hi Peter,

    From the above snippet it seems you are trying to use a relative path, however this does not work in the rebel.xml. One option is to prepend the maven property ${project.baseDir} to “src/main/webapp”.

    However this should not be needed at all as the default configuration generates a classpath element pointing to “target/classes” and a web element pointing to “/src/main/webapp” for modules packaged as war. For jar modules “src/main/webapp” is not used.

    If you are still unable to reload your jsp-s, can you send your jrebel.log to support@zeroturnaround.com? It will help us get a better overview of your project structure and see why the files aren’t reloading. The best way to do this is via NetBeans -> Help -> JRebel -> Submit a Support ticket

    In the ticket comments you can reference this post.

    #62558

    Peter Cheung
    Member

    sorry not working, even I use absolute path, it just can’t work

    
    <configuration>
    	<web>
    		<resources>
    			<resource>
    			<target>/</target><directory>/Users/peter/workspace/StockMonitor/src/main/webapp</directory>
    			</resource>
    		</resources>
    	</web>
    </configuration>
    
    • This reply was modified 6 months, 3 weeks ago by  Peter Cheung.
    #62560

    Peter Cheung
    Member

    I know the problem cause, because the spring boot project is a jar project, my pom.xml defined <packaging>jar</packaging>, so how can I add src/main/webapp ?

    #62572

    Peter Cheung
    Member

    css can reload, but tsp just can’t.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.