compile jsp using maven -
in our company have integrated jenkins sonar. have pom.xml file compile java files when build project in jenkins. similarily looking plugin compiles jsp pages. found "jspc-maven-plugin" in combination "maven-war-plugin" can job.
i have inserted piece of code in pom.xml dosent seem give me output:
<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> </execution> </executions> </plugin> <plugin> <groupid>org.apache.maven.plugins</groupid> <artifactid>maven-war-plugin</artifactid> <version>1.6.3</version> <configuration> <!--<webxml>${basedir}/target/jspweb.xml</webxml>--> <webxml>d:\buildrepository\ootb\xyz\codebase\web-inf\web.xml</webxml> </configuration> </plugin>
my web.xml in location "d:\buildrepository\ootb\xyz\codebase\web-inf\web.xml" , jsps in location "d:\abc\def\sourcecode\build\src\main\webapp\jsp". how configure pom.xml compile jsps present in mentioned location?
Comments
Post a Comment