Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

build a dynamic web project with Maven

 
Jhonnathan Emilio Cardona Saineda
Ranch Hand
Posts: 38
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Jhonnathan Emilio Cardona Saineda
Ranch Hand
Posts: 38
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Peter, with this you give me a great help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic