You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Lukas Theussl (JIRA)" <ji...@codehaus.org> on 2006/02/03 20:06:13 UTC

[jira] Closed: (MAVEN-1626) j:file not allowing in its body

     [ http://jira.codehaus.org/browse/MAVEN-1626?page=all ]
     
Lukas Theussl closed MAVEN-1626:
--------------------------------

     Resolution: Won't Fix
    Fix Version:     (was: 1.1-rc1)

We pinned this down to a namespace issue: you have to give a xmlns="dummy" attribute to the <project> element you want to use in <j:file>. This is necessary because the xml parser in m11 is namespace aware and you have to distinguish it from the main top-level project element.

> j:file not allowing <project></project> in its body
> ---------------------------------------------------
>
>          Key: MAVEN-1626
>          URL: http://jira.codehaus.org/browse/MAVEN-1626
>      Project: Maven
>         Type: Bug

>     Versions: 1.1-beta-1
>  Environment: maven-1.1-b1
>     Reporter: Dan Tran
>  Attachments: MAVEN-1626-test-propject.tar.gz
>
>
> This code (in my maven.xml)  works in 1.0.2.  See like a conflict with maven.xml's project element. No problem when rename project to someelse.
> I also try to ecsape it ( use &lt; and &gt, etc).  got  parsing error
>     <j:file name="${maven.gen.docs}/navigation.xml" prettyPrint="true" xmlns="dummy">
>       <x:comment>Maven generated file, do not checkin</x:comment>
>       
>       <project name="${pom.artifactId}" >
>       </project>
>     </j:file>
> here is the error
> BUILD FAILED
> File...... C:\Documents and Settings\dtran\.maven\cache\maven-multiproject-plugi
> n-1.4.1\plugin.jelly
> Element... maven:reactor
> Line...... 104
> Column.... -1
> Unable to obtain goal [site] -- M:\dtran_everest_int\OpCenter\eclipse\plugins\co
> mmon\maven.xml:60:-1: <j:file> M:\dtran_everest_int\OpCenter\eclipse\plugins\com
> mon\maven.xml:63:-1: <project> This tag does not understand the 'name' attribute

-- 
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, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org