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

Remove axiom #1109

Open
wants to merge 7 commits into
base: java17
Choose a base branch
from
Open

Remove axiom #1109

wants to merge 7 commits into from

Conversation

okauppinen
Copy link
Contributor

Remove axiom, fi.nls.oskari.XmlHelper and use org.oskari XmlHelper

Parsing with xpaths don't work with the "future" parser so we can't use it yet
=> didn't find problems with xpath but setting sax/features/namespaces to false for nsAware builder caused that ns/uri wasn't parsed and CSWService got null for responseElement.getNamespaceURI

CSWISORecordNamespaceContext.GMDNS.equals(responseElement.getNamespaceURI() => Invalid response exception

Without axiom-impl some control-base tests fails. Removing:
@PowerMockIgnore({"com.sun.org.apache.xalan.*", "com.sun.org.apache.xerces.*", "javax.xml.*", "org.w3c.dom.*", "org.xml.*", "com.sun.org.apache.xml.*"})
will fix tests.

For now left axiom-impl in pom.xml and used it in control-base with comments because junit will be udated also and there will be changes for powermock usage. I will remove axiom-impl after junit update.

<dependency>
<!-- some powermock tests ignores xml packages and tests fails without this -->
<groupId>org.apache.ws.commons.axiom</groupId>
<artifactId>axiom-impl</artifactId>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it only affects tests we could use test here?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<artifactId>axiom-impl</artifactId>
<artifactId>axiom-impl</artifactId>
<scope>test</scope>

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

Successfully merging this pull request may close these issues.

2 participants