Marshall
Marshall

Reputation: 1

Installed XStream Dependency Not Recognized as a Class (Java 17 + Intellij)

I am looking into marshalling and unmarshalling xml data for a program design, and I've correctly installed XStream into my Maven dependency.

https://i.sstatic.net/9NeQQ.png

The library is not missing from my project...

https://i.sstatic.net/tGC12.png

But when I go to initialize the class, XStream is not available in any import.

https://i.sstatic.net/VZCRm.png

Is this an issue with my pom.xml dependencies or plugins? Am I supposed to add a custom file to my main package, resource package, or anywhere else?

My project is a JavaFx project with JDK 17.0.1 and default Maven dependencies on creation. Thanks for anyone's help in advance!

Upvotes: 0

Views: 628

Answers (1)

Marshall
Marshall

Reputation: 1

I actually found the answer by messing around with dependency injection.

Though there is still an overall error, this gave me access to the dependency class for XML binding.

https://i.sstatic.net/XKLOM.png

Upvotes: 0

Related Questions