From Intrument Element Wiki

Jump to: navigation, search

How to define the version number and dependency in your pom.xml file?

If you have missing dependency maven will look for lib in your remote repository and/or local repository You can add artifact into your local repository by using the following command in a shell:

mvn install:install-file -DgroupId=<myGroupID> -DartifactId=<myID> -Dversion=1.0.0 -Dpackaging=jar -Dfile=<myFullURL>

You probably have to do it for jaxrpc.jar and for junit.jar So the command lines will be similar to what follow:

mvn install:install-file -DgroupId=jaxrpc -DartifactId=jaxrpc -Dversion=1.0.0 -Dpackaging=jar -Dfile=/Users/francescolelli/Documents/workspace/tinyIE/src/main/webapp/WEB-INF/lib/jaxrpc.jar  
mvn install:install-file -DgroupId=junit -DartifactId=junit -Dversion=1.0.0 -Dpackaging=jar -Dfile=/Users/francescolelli/Documents/workspace/tinyIE/src/main/webapp/WEB-INF/lib/junit.jar

Then you have to specify these dependences in your pom file. If you use the same artifactId and groupId your file should look like the following (you probably do not have to edit anything) :

<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance <http://www.w3.org/2001/XMLSchema-instance> ">  
    <description>Web App IE with Axis 1.4</description>    

You will be able to build the code by using the target:

Maven install 

That will create a war file in your target directory and has been previously linked to your tomcat. You can refer to:

For a complete guide on how to set up your working environment

Personal tools