Nexus is absolutely required. We took 2 years to get ours installed. It
cost us a lot of wasted time.
Using Maven without Nexus or another equivalent is not a good idea if
you are serious about getting stuff done.
Ron
On 08/01/2011 3:17 PM, Anders Hammar wrote:
You should add the "external" libraries (I assume you mean third party
libraries?) as artifacts to a remote repo. What you need is a repository
manager (like Nexus), where you upload these artifacts (libs). That will
make them accessible for all your devs. Then you just declare dependencies
to them like any dependency.
/Anders
On Sat, Jan 8, 2011 at 13:41, koxkorrita<[email protected]> wrote:
hello
i have some projects. all of these projects have them external libraries.
i am thinking for making one proyect only for theses external libraries and
the rest of the projects to have the dependency from this project.
is correct?
for this i have made this pom (bellow) can you say me that is correct the
pom? must it have one packaging as jar or pom?
into the rest of the projects i'll put the reference to this project as
dependency:
<dependencies>
<dependency>
<groupId>my.group</groupId>
<artifactId>myShLib</artifactId>
<version>0.0.1-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>
Pom file of the library project:
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>my.group</groupId>
<artifactId>myShLib</artifactId>
<packaging>jar</packaging>
<version>0.0.1-SNAPSHOT</version>
<name myShLib</name>
<url>http://maven.apache.org</url>
<description>Libraries</description>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.6</source>
<target>1.6</target>
<encoding>Cp1252</encoding>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>wlserver</groupId>
<artifactId>wlfullclient.jar</artifactId>
<version>10.3</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.15</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-beanutils</artifactId>
<version>1.8.3</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-logging</artifactId>
<version>1.0</version>
</dependency>
<!-- the rest of dependencies -->
</dependencies>
</project>
can you help me?
thanks
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]