struts-community-plugins / struts2-jquery

Struts2 jQuery Plugin
Apache License 2.0
83 stars 49 forks source link

Incompatibility with struts-annotation ? #314

Closed Dcosmas closed 1 year ago

Dcosmas commented 1 year ago

Since I got struts2-jquery-plugin 5.0.0, I have a dependency with struts-annotation1.0.7. When I want to build a project that contains a custom taglib I get the message:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project XXX: Fatal error compiling: java.lang.IllegalArgumentException: 'tlibVersion' is missing -> [Help 1] at org.apache.struts.annotations.taglib.apt.TagAnnotationProcessor.checkOptions (TagAnnotationProcessor.java:208)

The taglib is of the form:

<?xml version="1.0" encoding="UTF-8" standalone="no"?> <taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"       version="2.0"       xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd">       <![CDATA["Some custom Cedralis Struts tags "]]>       Cedralis Struts Tags       1.0       v       /cedralis-struts-tags        ...

What do you think ? Is it a problem with struts2-jquery-plugin or with struts-annotation ?

Thanks for all !

lukaszlenart commented 1 year ago

It's a problem with your configuration, you must provide tlibVersion parameter as here https://github.com/apache/struts/blob/master/core/pom.xml#L111

Dcosmas commented 1 year ago

thanks a lot !!!! Have a nice day ! :)