This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Spring and the fly likes Need com.thoughtworks.xstream.annotations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "Need com.thoughtworks.xstream.annotations" Watch "Need com.thoughtworks.xstream.annotations" New topic

Need com.thoughtworks.xstream.annotations

Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 325
I am using the Spring framework. And I use Maven to build the project; therefore, I have a pom.xml file.

I need to import com.thoughtworks.xstream.annotations and there is a free download xstream-1.3.1.jar.

I have tried to put the xstream-1.3.1.jar in the project main/java/resources directory and in the project main/webapp/WEB-INF/lib directory. But the xstream-1.3.1.jar cannot be recognized when I use pom.xml to build the project.

I think that I have to put the JAR as a dependency in my pom.xml file; however, I do not know a proper way to specify it. Please help. I can show some of my depency specifications in my pom.xml file. I just do not know how to do it for the xstream-1.3.1.jar.

Natalie Kopple
Ranch Hand

Joined: May 06, 2003
Posts: 325
I have figured out the answer to my question:

Thanks a lot anyway.
It is sorta covered in the JavaRanch Style Guide.
subject: Need com.thoughtworks.xstream.annotations
Similar Threads
unable to integrate my dao classes with spring
Could not resolve dependencies
Could not resolve dependencies for maven project
Spring Major version '3' expected
Incorrect hibernate version or maven ignore and didn't download hibernate jar file.