Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Too strict against some pom files #58

Open
baztian opened this issue Jun 16, 2020 · 0 comments
Open

Too strict against some pom files #58

baztian opened this issue Jun 16, 2020 · 0 comments

Comments

@baztian
Copy link
Contributor

baztian commented Jun 16, 2020

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 ben-manes/gradle-versions-plugin#238

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant