[ http://jira.codehaus.org/browse/MJSPC-4?page=comments#action_83607 ] 
            
Jeff Genender commented on MJSPC-4:
-----------------------------------

This actually looks like it may be a maven bug, not jspc-maven-plugin.  The 
jspc plugin gets the classpath by asking for the 
${project.compileClasspathElements}.  When run individually, by doing a mvn 
install -X to get the debug output, you will note all is correct:

 /Users/mbp/.m2/repository/javax/servlet/jsp-api/2.0/jsp-api-2.0.jar
 /Users/mbp/.m2/repository/taglibs/standard/1.1.2/standard-1.1.2.jar
 /Users/mbp/.m2/repository/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar
 /Users/mbp/.m2/repository/tldtestapp/testexttld/1/testexttld-1.jar
 /Users/mbp/.m2/repository/javax/servlet/jstl/1.1.2/jstl-1.1.2.jar]

In particular, it find your testexttld-1.jar.  Now when run from the top level, 
it's classpath looks like the following:

 /Users/mbp/.m2/repository/javax/servlet/jsp-api/2.0/jsp-api-2.0.jar
 /Users/mbp/.m2/repository/javax/servlet/servlet-api/2.4/servlet-api-2.4.jar
 /Users/mbp/.m2/repository/taglibs/standard/1.1.2/standard-1.1.2.jar
 /Users/mbp/Desktop/jsp-example/TestTldProject/target/classes
 /Users/mbp/.m2/repository/javax/servlet/jstl/1.1.2/jstl-1.1.2.jar]

Notice, it has no jar, but instead is using a path to the classed for the 
TestTldProject in  /Users/mbp/Desktop/jsp-example/TestTldProject/target/classes.

This seems like a maven bug to me since the plugin is simply asking for the jar 
as a dependency.  AFAICT, this needs to be opened on maven.

> JSPs Cannot Be Compiled if They Depend on Tag Files
> ---------------------------------------------------
>
>                 Key: MJSPC-4
>                 URL: http://jira.codehaus.org/browse/MJSPC-4
>             Project: Maven 2.x Jspc Plugin
>          Issue Type: Bug
>            Reporter: Stephen Duncan Jr
>         Attachments: jspc-example-revised.zip, jspcexample.zip
>
>
> At a minimum, if a tag library is provided as a jar, and the tags are 
> implemented as tag files, then the JSP compilation fails.  The tag files need 
> to be compiled first.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to