File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes build a dynamic web project with Maven Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "build a dynamic web project with Maven" Watch "build a dynamic web project with Maven" New topic
Author

build a dynamic web project with Maven

Jhonnathan Emilio Cardona Saineda
Ranch Hand

Joined: Jan 24, 2012
Posts: 38

Hi everyone,
How can i compile my project with a jar located in C:/libWeblogic/standard/wfullclient.jar since maven?
with ANT was:

<path id="classpath">
<pathelement location="${classes}"/>
<pathelement location="C:\libWeblogic\standard\wfullclient.jar"/>
</path>

but with maven??

<dependency>
.....
</dependency>

thanks


Sorry for my English, I'll improve
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5838
    
    7

First use "mvn install:install-file ..." to load the wfullclient.jar into your local repository. When you do this, you have to give the coordinates for the JAR, and those same coordinates are used for the dependency.


JBoss In Action
Jhonnathan Emilio Cardona Saineda
Ranch Hand

Joined: Jan 24, 2012
Posts: 38

thanks Peter, with this you give me a great help.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: build a dynamic web project with Maven