This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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: 32

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
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    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: 32

thanks Peter, with this you give me a great help.
 
wood burning stoves
 
subject: build a dynamic web project with Maven
 
Similar Threads
Deployement Error -- Very Arjunt
Problem in Maven2 pom for converting ejb2.1 project into sources.
Ant Path problem
"Recompile with -Xlint:unchecked for details message" appear when run Ant project
Maven build dependencies from .classpath