Maven 1

Error reading POM

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 1.1-beta-3
  • Fix Version/s: 1.1-beta-3
  • Component/s: model
  • Labels:
    None
  • Environment:
    1.1 beta 3 2005-10-11
  • Number of attachments :
    3

Description

In some cases, maven breaks because it can't read a POM.
It occurs when there's for exemple a blank line just before the <project> tag.
I already saw this error several times and it must occurs with all 1.1 releases.
We must try to upgrade plexus-utils to see if it fixes the problem.

  1. MAVEN-1711-log.txt
    11/Oct/05 3:57 AM
    7 kB
    Arnaud Heritier
  2. project.xml
    13/Apr/06 12:07 PM
    1.0 kB
    Arnaud Heritier
  3. project.xml
    11/Oct/05 3:58 AM
    3 kB
    Arnaud Heritier

Issue Links

Activity

Hide
Arnaud Heritier added a comment -

The error log

Show
Arnaud Heritier added a comment - The error log
Hide
Arnaud Heritier added a comment -

The invalid POM

Show
Arnaud Heritier added a comment - The invalid POM
Hide
Arnaud Heritier added a comment -

I upgraded to plexus-utils 1.0.3 and I have the same error. It seems to be a problem of encoding.

Show
Arnaud Heritier added a comment - I upgraded to plexus-utils 1.0.3 and I have the same error. It seems to be a problem of encoding.
Hide
Lukas Theussl added a comment -

Arnaud, I cannot reproduce this. I can put as many blank lines and whitespace in front of <project> as I want, I don't see this error. Are you sure that you don't have a tab instead of a space somewhere? Can you attach a stand-alone pom that gives you the error?

Show
Lukas Theussl added a comment - Arnaud, I cannot reproduce this. I can put as many blank lines and whitespace in front of <project> as I want, I don't see this error. Are you sure that you don't have a tab instead of a space somewhere? Can you attach a stand-alone pom that gives you the error?
Hide
Arnaud Heritier added a comment -

Here is a new pom with no inheritence.
This problem is due to a bad encoding.
In this file the first character is in hexa : EF

Show
Arnaud Heritier added a comment - Here is a new pom with no inheritence. This problem is due to a bad encoding. In this file the first character is in hexa : EF
Hide
Arnaud Heritier added a comment -

This is the same type of error.
The POM is invalid because of an invalid character (hidden or not).

Show
Arnaud Heritier added a comment - This is the same type of error. The POM is invalid because of an invalid character (hidden or not).
Hide
Arnaud Heritier added a comment -

The resolution duplicates MAVEN-1707

Show
Arnaud Heritier added a comment - The resolution duplicates MAVEN-1707

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: