You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@archiva.apache.org by "Benoit Decherf (JIRA)" <ji...@codehaus.org> on 2008/06/18 17:06:26 UTC

[jira] Created: (MRM-843) Fails to read pom.

Fails to read pom.
------------------

                 Key: MRM-843
                 URL: http://jira.codehaus.org/browse/MRM-843
             Project: Archiva
          Issue Type: Bug
          Components: repository scanning
    Affects Versions: 1.0.2
            Reporter: Benoit Decherf


I attached the log file and the pom that make it fails.

The pom.xml was created using MavenXpp3Writer and has the "Project" tag on the same line as the xml header. I suppose this make it fails.
<?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 

-- 
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

        

[jira] Issue Comment Edited: (MRM-843) Fails to read pom.

Posted by "Keith Naas (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=150725#action_150725 ] 

keithnaas edited comment on MRM-843 at 10/13/08 3:28 PM:
----------------------------------------------------------

I think the issue is likely fixable by changing XMLWriter.java between lines 64 and 65.
{code}
OutputFormat outputFormat = OutputFormat.createPrettyPrint();
+ outputFormat.setNewLineAfterDeclaration(true);
xmlwriter = new org.dom4j.io.XMLWriter( writer, outputFormat );
{code}

      was (Author: keithnaas):
    I think the issue is likely fixable by changing XMLWriter.java between lines 64 and 65.
{code}
OutputFormat outputFormat = OutputFormat.createPrettyPrint();
+ outputFormat.setNewLineAfterDeclaration(true);
xmlwriter = new org.dom4j.io.XMLWriter( writer, outputFormat );
{code{
  
> Fails to read pom.
> ------------------
>
>                 Key: MRM-843
>                 URL: http://jira.codehaus.org/browse/MRM-843
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository scanning
>    Affects Versions: 1.0.2
>            Reporter: Benoit Decherf
>             Fix For: 1.1.x
>
>         Attachments: archiva.log, shoppingAdvancedServices-6.3.0-20080617.094200-58.pom
>
>
> I attached the log file and the pom that make it fails.
> The pom.xml was created using MavenXpp3Writer and has the "Project" tag on the same line as the xml header. I suppose this make it fails.
> <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 

-- 
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

        

[jira] Updated: (MRM-843) Fails to read pom.

Posted by "Benoit Decherf (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benoit Decherf updated MRM-843:
-------------------------------

    Attachment: shoppingAdvancedServices-6.3.0-20080617.094200-58.pom
                archiva.log

> Fails to read pom.
> ------------------
>
>                 Key: MRM-843
>                 URL: http://jira.codehaus.org/browse/MRM-843
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository scanning
>    Affects Versions: 1.0.2
>            Reporter: Benoit Decherf
>         Attachments: archiva.log, shoppingAdvancedServices-6.3.0-20080617.094200-58.pom
>
>
> I attached the log file and the pom that make it fails.
> The pom.xml was created using MavenXpp3Writer and has the "Project" tag on the same line as the xml header. I suppose this make it fails.
> <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 

-- 
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

        

[jira] Updated: (MRM-843) Fails to read pom.

Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRM-843?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Brett Porter updated MRM-843:
-----------------------------

    Fix Version/s: 1.1.x

> Fails to read pom.
> ------------------
>
>                 Key: MRM-843
>                 URL: http://jira.codehaus.org/browse/MRM-843
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository scanning
>    Affects Versions: 1.0.2
>            Reporter: Benoit Decherf
>             Fix For: 1.1.x
>
>         Attachments: archiva.log, shoppingAdvancedServices-6.3.0-20080617.094200-58.pom
>
>
> I attached the log file and the pom that make it fails.
> The pom.xml was created using MavenXpp3Writer and has the "Project" tag on the same line as the xml header. I suppose this make it fails.
> <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 

-- 
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

        

[jira] Commented: (MRM-843) Fails to read pom.

Posted by "Keith Naas (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRM-843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=150725#action_150725 ] 

Keith Naas commented on MRM-843:
--------------------------------

I think the issue is likely fixable by changing XMLWriter.java between lines 64 and 65.
{code}
OutputFormat outputFormat = OutputFormat.createPrettyPrint();
+ outputFormat.setNewLineAfterDeclaration(true);
xmlwriter = new org.dom4j.io.XMLWriter( writer, outputFormat );
{code{

> Fails to read pom.
> ------------------
>
>                 Key: MRM-843
>                 URL: http://jira.codehaus.org/browse/MRM-843
>             Project: Archiva
>          Issue Type: Bug
>          Components: repository scanning
>    Affects Versions: 1.0.2
>            Reporter: Benoit Decherf
>             Fix For: 1.1.x
>
>         Attachments: archiva.log, shoppingAdvancedServices-6.3.0-20080617.094200-58.pom
>
>
> I attached the log file and the pom that make it fails.
> The pom.xml was created using MavenXpp3Writer and has the "Project" tag on the same line as the xml header. I suppose this make it fails.
> <?xml version="1.0" encoding="UTF-8"?><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> 

-- 
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