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

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
com.stabtechs - local-link_sjs0.6_2.11 version 0.1.0 Maven dependency. How to use local-link_sjs0.6_2.11 version 0.1.0 in pom.xml?
-link_sjs0.6_2.11 in pom.xml? How to use local-link_sjs0.6_2.11 version 0.1.0 in pom.xml? Learn...: Save pom.xml file - Now you are ready to use the  com.stabtechs - local... of com.stabtechs - local-link_sjs0.6_2.11 version 0.1.0 in your pom.xml file you
org.eclipse.dirigible - dirigible-repository-local version 8.8.1 Maven dependency. How to use dirigible-repository-local version 8.8.1 in pom.xml?
of dirigible-repository-local in pom.xml? How to use dirigible-repository-local...-repository-local in project by the help of adding the dependency in the pom.xml file...org.eclipse.dirigible  - Version 8.8.1 of dirigible-repository-local
org.eclipse.dirigible - dirigible-repository-local version 3.3.1 Maven dependency. How to use dirigible-repository-local version 3.3.1 in pom.xml?
of dirigible-repository-local in pom.xml? How to use dirigible-repository-local...-repository-local in project by the help of adding the dependency in the pom.xml file...org.eclipse.dirigible  - Version 3.3.1 of dirigible-repository-local
jar file
jar file  steps to create jar file with example
jar file
jar file  jar file where it s used
jar file
jar file  how to create a jar file in java
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
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
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
org.springframework.cloud - spring-cloud-deployer-local version 1.2.0.RELEASE Maven dependency. How to use spring-cloud-deployer-local version 1.2.0.RELEASE in pom.xml?
; - Version 1.2.0.RELEASE of spring-cloud-deployer-local in pom.xml? How to use spring-cloud-deployer-local version 1.2.0.RELEASE in pom.xml? Learn to use...-deployer-local version 1.2.0.RELEASE in your pom.xml file you can run
Local Language
Local Language  Anybody help me..... how to implement local language in my project
org.apache.maven.plugins - maven-jar-plugin version 3.1.1 Maven dependency. How to use maven-jar-plugin version 3.1.1 in pom.xml?
-jar-plugin in pom.xml? How to use maven-jar-plugin version 3.1.1 in pom.xml... of org.apache.maven.plugins - maven-jar-plugin version 3.1.1 in your pom.xml file you...org.apache.maven.plugins  - Version 3.1.1 of maven-jar-plugin Maven
io.streamnative - pulsar-functions-local-runner-original version 3.0.0.4 Maven dependency. How to use pulsar-functions-local-runner-original version 3.0.0.4 in pom.xml?
of pulsar-functions-local-runner-original in pom.xml? How to use pulsar-functions-local-runner-original version 3.0.0.4 in pom.xml? Learn to use... - pulsar-functions-local-runner-original version 3.0.0.4 in your pom.xml file you can
io.streamnative - pulsar-functions-local-runner-original version 2.9.4.4 Maven dependency. How to use pulsar-functions-local-runner-original version 2.9.4.4 in pom.xml?
of pulsar-functions-local-runner-original in pom.xml? How to use pulsar-functions-local-runner-original version 2.9.4.4 in pom.xml? Learn to use... - pulsar-functions-local-runner-original version 2.9.4.4 in your pom.xml file you can
com.gluonhq - charm-down-plugin-local-notifications-android version 3.7.0 Maven dependency. How to use charm-down-plugin-local-notifications-android version 3.7.0 in pom.xml?
of charm-down-plugin-local-notifications-android in pom.xml? How to use charm-down-plugin-local-notifications-android version 3.7.0 in pom.xml? Learn to use...com.gluonhq  - Version 3.7.0 of charm-down-plugin-local-notifications
com.gluonhq - charm-down-plugin-local-notifications-android version 3.4.1 Maven dependency. How to use charm-down-plugin-local-notifications-android version 3.4.1 in pom.xml?
of charm-down-plugin-local-notifications-android in pom.xml? How to use charm-down-plugin-local-notifications-android version 3.4.1 in pom.xml? Learn to use...com.gluonhq  - Version 3.4.1 of charm-down-plugin-local-notifications
php local variables
php local variables  Creating and calling a local variable in PHP
Local Maven Depenency
Local Maven Depenency  Hi, What is local maven dependency? How to manage local maven dependency? Thanks (adsbygoogle = window.adsbygoogle... on the public maven repository you can add it to the local maven repository. The local
guava-21.0.jar maven dependency
guava-21.0.jar maven dependency  hi, What is code for adding guava-21.0.jar maven dependency in pom.xml file? Thanks   Hi, Use this: <dependency> <groupId>com.google.guava</groupId> <
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
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
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
Structs jar files
Structs jar files  please Post required jar files for structs. Thanks, L.Mahesh Kumar
ModuleNotFoundError: No module named 'jar'
ModuleNotFoundError: No module named 'jar'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'jar' How to remove the ModuleNotFoundError: No module named 'jar' error
jar file - Java Beginners
jar file  jar file When creating a jar file it requires a manifest... options in jar file. What is Jar File? JAR files are packaged in the zip format  What is Jar File?JAR files are packaged in the zip format making
quqtion on jar files
quqtion on jar files  give me realtime examples on .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
org.apache.commons.collections15.Transformer jar file
org.apache.commons.collections15.Transformer jar file  Dear, Please can you provide me the link for the following jar file: import org.apache.commons.collections15.Transformer; tahnks too much
JAR File - Swing AWT
JAR File   Is there anybody to solve my problem of not executing the JAR file? I have asked the question previously but I haven't got any answer yet. Please help me
Adding Jar into Eclipse
Adding Jar into Eclipse  Hi, Please provide Step by step procedure to add jar, tld files and configurations in Eclipse Helios version and i am using Jboss5. Thanks&Regards, Shiva sADS_TO_REPLACE_1
jar file with html
jar file with html  I have a jar file. On double click it shows an applet page. Please tell me how to connect that applet into html or jsp page
ModuleNotFoundError: No module named 'local'
ModuleNotFoundError: No module named 'local'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'local' How to remove the ModuleNotFoundError: No module named 'local'
Creating an executable jar file
Creating an executable jar file  When I try to create jar.exe through CMD, the manifest file created doesn't contain Main-Class attribute, even though it is included in text file used during creation of jar file
Java FTP jar
Java FTP jar  Which Java FTP jar should be used in Java program for uploading files on FTP server? Thanks   Hi, You should use commons-net-3.2.jar in your java project. Read more at FTP File Upload in Java
Jar file - Java Beginners
Jar file  Hello this is my second question and i hope atleast i will get answer i bulid a jar file of my project using netbeans but now problem is when i open that jar file in command prompt i got error exception in thread
File path for jar file
File path for jar file  Hi Experts, I have created one eclipse... jar file of that application, unfortunately it is giving the error that resource... handle the paths given to program in jar files
Need Jar in the JPA examples
Need Jar in the JPA examples  JPA - tutorial is good, very easy to understand and simple. But to run the examples, the jar/helping files are needed. and how Hibernates are used in the JPA example? Thnaks Abhijit Das   
creating JAR - Java Beginners
installed SQL and Tomcat.I created a JAR of my java project and included... JAR to the lib, the WEBAPPlication libraries doesnot reflect the new class added
How to create a jar file
How to create a jar file  Hello!!!! I have a project which has... a single executable jar of it... so pls tell me how it will b possible for me???   The given code creates a jar file using java. import java.io.*; import
HttpClient 4.0 dependency jar
HttpClient 4.0 dependency jar  Hi, I want to use the HttpClient 4.0 from Apache library. Tell me the code to add in pom.xml file. Thanks (adsbygoogle = window.adsbygoogle || []).push({});   HI, You
struts jar file problem
struts jar file problem  hi.. I'm using struts-core-1.3.9.jar. it works well if am using ma application with internet but it shows me an error while initializing ActionServlet when i disconnected to Internet The error stack trace
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

Ads