jiptool / jip

Java dependency management for Jython
http://pypi.python.org/pypi/jip/
Other
59 stars 15 forks source link

Too strict against some pom files #58

Open baztian opened 4 years ago

baztian commented 4 years ago

Running

jip install org.apache.hadoop:hadoop-project:3.1.0

I get

jip [Checking] pom file /tmp/jip/.m2/repository/org/apache/hadoop/hadoop-project/3.1.0/hadoop-project-3.1.0.pom
jip [Skipped] pom file not found at /tmp/jip/.m2/repository/org/apache/hadoop/hadoop-project/3.1.0/hadoop-project-3.1.0.pom
jip [Checking] pom file https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-project/3.1.0/hadoop-project-3.1.0.pom
Traceback (most recent call last):
File "/tmp/jip/bin/jip", line 11, in <module>
    load_entry_point('jip', 'console_scripts', 'jip')()
File "/home/me/Sources/jip/jip/main.py", line 62, in main
    commands[cmd](**args)
File "/home/me/Sources/jip/jip/commands.py", line 46, in wrapper
    func(*args, **kwargs)
File "/home/me/Sources/jip/jip/commands.py", line 175, in install
    _install([artifact], options=options)
File "/home/me/Sources/jip/jip/commands.py", line 145, in _install
    download_list = _resolve_artifacts(artifacts, exclusions)
File "/home/me/Sources/jip/jip/commands.py", line 126, in _resolve_artifacts
    for r in pom_obj.get_repositories():
File "/home/me/Sources/jip/jip/maven.py", line 294, in get_repositories
    eletree = self.get_element_tree()
File "/home/me/Sources/jip/jip/maven.py", line 113, in get_element_tree
    parser.feed(pom_string.encode('utf-8'))
xml.etree.ElementTree.ParseError: not well-formed (invalid token): line 1784, column 11

The line that's causing the error is the Xlint:-unchecked one.

          <compilerArguments>
            <Xlint/>
            <Xlint:-unchecked/>
            <Xmaxwarns>9999</Xmaxwarns>
          </compilerArguments>

It seems to be the same error as in https://github.com/ben-manes/gradle-versions-plugin/issues/238