Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Maven pom.xml local jar
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


samar
pom.xml local jar
1 Answer(s)      2 years and 3 months ago
Posted in : Maven


Hi,

I have placed one jar file in the WEB-INF/lib folder now I wan't to use this jar in the maven build and test phases. How to use this jar file?

Thanks


Advertisement
View Answers

July 30, 2012 at 10:22 AM


HI,

You can add following dependency in pom.xml file:

<dependency>
  <groupId>mylibrary</groupId>
  <artifactId>artifact</artifactId>
  <version>1.0</version>
  <scope>system</scope>
    <systemPath>${basedir}/src/main/webapp/WEB-INF/lib/mylibrary.jar</systemPath>
</dependency>

Thanks



Related Tutorials/Questions & Answers:
pom.xml local jar
pom.xml local jar  Hi, I have placed one jar file in the WEB-INF/lib folder now I wan't to use this jar in the maven build and test phases. How to use this jar file? Thanks
pom.xml local jar
pom.xml local jar  Hi, I have placed one jar file in the WEB-INF/lib folder now I wan't to use this jar in the maven build and test phases. How to use this jar file? Thanks   HI, You can add following dependency
Advertisements
including jar file in maven pom.xml
including jar file in maven pom.xml   Hi, I want to include a jar file from the WEB-INF/lib folder. Please let's know how to to do this? Thanks.... Add the following code into your pom.xml file and the error will go away
How to Configure pom.xml file in Maven ?
How to Configure pom.xml file in Maven ?  How to Configure pom.xml file in Maven
How to add the servlet api to my pom.xml?
How to add the servlet api to my pom.xml?  Hi, I have learned Maven... have to add the servlet api in pom.xml file. Let's know how to add the servlet api to my pom.xml? Thanks   Hi, Use the following code in your
Local Language
Local Language  Anybody help me..... how to implement local language in my project
Local Maven Depenency
Local Maven Depenency  Hi, What is local maven dependency? How to manage local maven dependency? Thanks   Hi, If some library is not available on the public maven repository you can add it to the local maven
php local variables
php local variables  Creating and calling a local variable in PHP
What are local variables?
What are local variables?   hi, What are local variables? thanks   Hi, The Local varaiables are those which are declared within a block of syntax like methods. Local variables should be initialised before
jar file
jar file  how to create a jar file in java
jar file
jar file  steps to create jar file with example
jar file
jar file  jar file where it s used
Local repository in Maven
Local repository in Maven  How to read the jars/plugins from local instead of online while building an application with Maven. Any detailed steps will be appreciated
Local Variable and Instant Variable
Local Variable and Instant Variable  difference between Local Variable and Instant Variable   Difference between local variable... a method, while a local variable is declared within a method. Instance variable get
jar filw
jar filw  how can i run window based program using jar file
JAR FILE
JAR FILE  WHAT IS JAR FILE,EXPLAIN IN DETAIL?   A JAR file... and applications. The Java Archive (JAR) file format enables to bundle multiple... link: Jar File Explanation
Local transport in Agra
Local transport in Agra  Hi, What all local transports are available in Agra? I want to see Agra local places myself. Thanks   Hi, Taj... to move around Agra. You can hire any Local transport available in City. Read
URL folder download to local
URL folder download to local  I have a requirement to download all the folders and files inside from a SVN link to my local directory. Can you help how it could be done
Access a variable local and globally
Access a variable local and globally  how can we access a variable local and globel??   hello, if you want to access your variable with in the view then declare it in the view.h file and if you want your variable
quotion on .jar
quotion on .jar  in realtime where we use .jar class files.   A Jar file combines several classes into a single archive file. Basically,library classes are stored in the jar file. For more information,please go through
jar file
jar file  how to run a java file by making it a desktop icon i need complete procedur ..through cmd
Runnable JAR
Runnable JAR  How to create runnable JAR file in eclipse ? Please provide me step by step demo... I am windows 7 user. I have made one jar file but when I double click it,it doesn't run. Why so
Runnable JAR
Runnable JAR  How to create runnable JAR file in eclipse ? Please provide me step by step demo... I am windows 7 user. I have made one jar file but when I double click it,it doesn't run. Why so
What is a local, member and a class variable?
What is a local, member and a class variable?   Hi, What is a local, member and a class variable? thanks
JAR Generation
JAR Generation  Hi, I have done this code. Can u pls tell me how to create a jar for this in eclipse, this is only a single java file? package com.dcp.ui; import java.awt.BorderLayout; import java.awt.Color; import
JAR Generation
JAR Generation  Hi, I have done this code. Can u pls tell me how to create a jar for this in eclipse, this is only a single java file? package com.dcp.ui; import java.awt.BorderLayout; import java.awt.Color; import
Running Jar file in Windows
Running Jar file in Windows  Running Jar file in Windows
Extract Jar File
Extract Jar File  How to extract jar file?   Hi Please open the command Prompt and to the jar file and write the command jar -xvf JaraFileName.jar
Structs jar files
Structs jar files  please Post required jar files for structs. Thanks, L.Mahesh Kumar
servlet (tomcat server) and jar
servlet (tomcat server) and jar  how to create a jar file and where to place the jar file in tomecat server
Local Variable ,Package & import
Local Variable ,Package & import A local variable has a local scope.Such... it is declared. Example of Local variable : The class variable are declared in the class but not within methods of any class. Whereas the local variable exits within
 

 

 

DMCA.com