Hi,

my name is Hal and I am starting with maven, but I have a little problem.
I want to build an EAR-File with dependencies on an har and a jar file. I build 
the har file using the jboss-packaging-maven-plugin. This works fine and the 
artifact is also installed inside the repository, but I have a problem to build 
the jar file. The classes inside the jar file have dependencies on the har. I 
thought it is possible to build the artifact using the a dependency type, but 
it doesn't work.

It would be nice if someone could help me to resolve this problem.

This is the pom.xml of the jar file:
<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>

    <parent>
        <groupId>example</groupId>
        <artifactId>example-parent</artifactId>
        <version>1-SNAPSHOT</version>
    </parent>

    <artifactId>c-backend-jar</artifactId>
    <packaging>jar</packaging>
    <name>Example Backend JAR</name>


    <dependencies>
        <dependency>
            <groupId>example</groupId>
            <artifactId>c-common</artifactId>
            <version>1-SNAPSHOT</version>
        </dependency>

        <dependency>
            <groupId>example</groupId>
            <artifactId>c-backend-persistence</artifactId>
            <version>1-SNAPSHOT</version>
            <type>har</type>
        </dependency>

        <dependency>
            <groupId>jboss</groupId>
            <artifactId>jboss-system</artifactId>
            <version>4.2.2.GA</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>jboss</groupId>
            <artifactId>jboss-ejb3x</artifactId>
            <version>4.2.2.GA</version>
            <scope>provided</scope>
        </dependency>

        <dependency>
            <groupId>jboss</groupId>
            <artifactId>jbossall-client</artifactId>
            <version>4.2.2.GA</version>
            <scope>test</scope>
        </dependency>

        <dependency>
            <groupId>jboss</groupId>
            <artifactId>jboss-ejb3</artifactId>
            <version>4.2.2.GA</version>
            <scope>provided</scope>
        </dependency>

    </dependencies>

</project>


Thank you,
Hal
-- 
Psssst! Schon das coole Video vom GMX MultiMessenger gesehen?
Der Eine für Alle: http://www.gmx.net/de/go/messenger03

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to