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]

Reply via email to