[
https://issues.apache.org/jira/browse/SLING-8571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16882555#comment-16882555
]
mengln commented on SLING-8571:
-------------------------------
use org.apache.sling:jspc-maven-plugin 2.1.0。Some of the error messages are as
follows:
[ERROR] Failed to execute goal org.apache.sling:jspc-maven-plugin:2.1.0:jspc
(compile) on project d-webui: Execution compile of goal
org.apache.sling:jspc-maven-plugin:2.1.0:jspc failed: An API incompatibility
was encountered while executing org.apache.sling:jspc-maven-plugin:2.1.0:jspc:
java.lang.NoSuchMethodError:
javax.servlet.jsp.tagext.TagAttributeInfo.<init>(Ljava/lang/String;ZLjava/lang/String;ZZLjava/lang/String;ZZLjava/lang/String;Ljava/lang/String;)V
[ERROR] -----------------------------------------------------
[ERROR] realm = plugin>org.apache.sling:jspc-maven-plugin:2.1.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] =
file:/G:/FM_code/repository/org/apache/sling/jspc-maven-plugin/2.1.0/jspc-maven-plugin-2.1.0.jar
[ERROR] urls[1] =
file:/G:/FM_code/repository/javax/servlet/jstl/1.1.2/jstl-1.1.2.jar
[ERROR] urls[2] =
file:/G:/FM_code/repository/org/apache/taglibs/standard/1.1.2/standard-1.1.2.jar
[ERROR] urls[3] =
file:/G:/FM_code/repository/org/apache/pluto/pluto/1.0.1/pluto-1.0.1.jar
[ERROR] urls[4] =
file:/G:/FM_code/repository/javax/portlet/portlet-api/1.0/portlet-api-1.0.jar
pom.xml:
<plugin>
<groupId>org.apache.sling</groupId>
<artifactId>jspc-maven-plugin</artifactId>
<version>2.1.0</version>
<dependencies>
<!-- Use the Tomcat 6 JSP compiler -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>jstl</artifactId>
<version>${jstlVersion}</version>
</dependency>
<dependency>
<groupId>org.apache.taglibs</groupId>
<artifactId>standard</artifactId>
<version>${standardVersion}</version>
</dependency>
<dependency>
<groupId>org.apache.pluto</groupId>
<artifactId>pluto</artifactId>
<version>${plutoVersion}</version>
</dependency>
<dependency>
<groupId>javax.portlet</groupId>
<artifactId>portlet-api</artifactId>
<version>${portletApiVersion}</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>compile</id>
<goals>
<goal>jspc</goal>
</goals>
</execution>
</executions>
<configuration>
<sourceDirectory>${project.build.directory}/${artifactId}-${version}</sourceDirectory>
<inputWebXml>
${basedir}/src/main/webapp/${artifactId}/WEB-INF/web.xml
</inputWebXml>
<outputWebXml>
${project.build.directory}/${artifactId}-${version}/WEB-INF/web.xml
</outputWebXml>
</configuration>
</plugin>
> jspc-maven-plugin
> -----------------
>
> Key: SLING-8571
> URL: https://issues.apache.org/jira/browse/SLING-8571
> Project: Sling
> Issue Type: Wish
> Reporter: mengln
> Priority: Major
>
> Using jspc-maven-plugin in java11 At the beginning groupId
> org.codehaus.mojo.jspc will report an error: can't find tools.jar, then
> change to org.apache.sling also, I need help. Can other jspc plugins be used
> in java11?
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)