Reputation: 155
Given:
mvn clean install
JSP compiler jspc
reports issuesProblem: Fix is not recognized by JSPC
<plugin>
<groupId>org.codehaus.mojo.jspc</groupId>
<artifactId>jspc-maven-plugin</artifactId>
<configuration>
<includeInProject>false</includeInProject>
<sources>
<directory>${basedir}/myapp/src/main/webapp/</directory>
<includes>
<include>**/*.jsp</include>
</includes>
</sources>
<source>1.6</source>
<target>1.6</target>
</configuration>
<executions>
<execution>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.codehaus.mojo.jspc</groupId>
<artifactId>jspc-compiler-tomcat6</artifactId>
<version>2.0-alpha-3</version>
</dependency>
</dependencies>
</plugin>
[ERROR] MyClass cannot be resolved to a type
Similar question about this here
It seems like a classpath problem, but where in pom can it be set please?
Upvotes: 2
Views: 804
Reputation: 96481
Try adding
<workingDirectory>${basedir}/myapp/target/classes</workingDirectory>
inside <configuration>
tags
Upvotes: 2