posted 16 years ago
Hi Guys,
I am trying to build an sar project...and I have a dependency on a jar that i created...I have added it in the dependency section...but it doesnt seem to take it from there...also..to make sure I added the dependency (the jar) manually into my local repository...any suggestions?...
here is the snippet of my pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project>
<modelVersion>4.0.0</modelVersion>
<groupId>xyz.webportal</groupId>
<artifactId>PortalSar</artifactId>
<name>WebPortal Sar</name>
<packaging>sar</packaging>
<description>WebPortal Sar</description>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>xyz.webportal</groupId>
<artifactId>PortalEJB</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
</dependencies>
<build>
<sourceDirectory>src</sourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.5</source>
<target>1.5</target>
</configuration>
</plugin>
<plugin>
<groupId>net.sf.maven-sar</groupId>
<artifactId>maven-sar-plugin</artifactId>
<version>1.0</version>
<extensions>true</extensions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
</plugin>
</plugins>
<!-- <resources>
<resource>
<directory>src</directory>
</resource>
</resources> -->
</build>
</project>
PortalEJB-1.0-SNAPSHOT.jar is the jar file which is the dependency...should I modify my pom?
Thanks
Preetham
"In theory, there is no difference between theory and practice. But, in practice, there is."<br /> - Jan L.A. van de Snepscheut