• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Maven Weblogic Precompilation....

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using Maven 2.0 for precompiling JSP. Using ant plugin, I have invoked a ant script and called weblogic.jspc. But i am not able to set classpath for .war file while doing precompilation. All other types like jsp, folders are working fine. Please find the pom.xml below for this.

<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>
<groupId>wkst</groupId>
<artifactId>reports</artifactId>
<packaging>war</packaging>
<name>reports : Base</name>
<url>http://maven.apache.org</url>;

<dependencies>
<dependency>
<groupId>wkst</groupId>
<artifactId>reports-java</artifactId>
<version>${pom.version}</version>
</dependency>

<dependency>
<groupId>wkst</groupId>
<artifactId>base-platform-java</artifactId>
<version>${pom.version}</version>
</dependency>

* <dependency>*
* <groupId>wkst</groupId>*
* <artifactId>base-platform</artifactId>*
* <version>${pom.version}</version>*
* <type>war</type>*
* </dependency>*

<dependency> <!--Included for Precompilation -->
<groupId>wkst</groupId>
<artifactId>server</artifactId>
<version>${pom.version}</version>
</dependency>

<dependency>
<groupId>ant</groupId>
<artifactId>ant</artifactId>
<version>1.6.5</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>ant</groupId>
<artifactId>ant-launcher</artifactId>
<version>1.6.5</version>
<scope>provided</scope>
</dependency>
<dependency> <!--Included for Precompilation -->
<groupId>weblogic</groupId>
<artifactId>weblogic</artifactId>
<version>7.0.6</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.1</version>
<executions>
<execution>
<phase>generate-sources</phase>
<configuration>
<tasks>
<property name="wl" value="src\main\webapp" />
<property name="wlhome" value="C:\Data\bea-7.0.7/weblogic700" />
<property name="wljava" value="C:\Data\j2sdk1.4.2_13" />
<property name="wlclasspath"
value="${wlhome}/server/lib/weblogic.jar;${wljava}/lib/tools.jar"/>
<property name="compile_classpath" refid="maven.compile.classpath"/>
<property name="runtime_classpath" refid="maven.runtime.classpath"/>
<property name="test_classpath" refid="maven.test.classpath"/>
<property name="plugin_classpath" refid="maven.plugin.classpath"/>
<property name="dependency_classpath" refid="maven.dependency.classpath"/>
<java classname="weblogic.jspc" fork="yes" classpath="${runtime_classpath}">
<arg line="-d ${wl}/WEB-INF/classes -k -g -compileAll -webapp ${wl} -compileAll -k -verboseJspc -O" />
</java>
</tasks>
<sourceRoot>
${project.build.directory}/generated-sources/main/java
</sourceRoot>
<testSourceRoot>
${project.build.directory}/generated-sources/test/java
</testSourceRoot>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>


Can anyone help???
[ June 17, 2008: Message edited by: TK Ganesh ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic