Hi all,

I'm using the maven-ear-plugin to build an ear, which also should include
a secondary tests-jar-artifact (with the classifier "tests"). The artifact
is defined as dependency in the ear-projects pom. As the <javaModule>
definition provides no means to declare a classifier, I find no way to
define the test-jar as javaModule and include it in the generated
application.xml. 

Here is my configuration:

...
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-ear-plugin</artifactId>
        <configuration>
          <displayName>Test EAR</displayName>
          <description>EAR for tests in the app serv</description>
          <version>1.4</version>
          <defaultJavaBundleDir>lib</defaultJavaBundleDir>
          <modules>
            <javaModule>
              <groupId>aGroup</groupId>
              <artifactId>artifactA</artifactId>
              <includeInApplicationXml>true</includeInApplicationXml>
            </javaModule>
             ...
          </modules>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <dependencies>
    <dependency>
      <groupId>aGroup</groupId>
      <artifactId>artifactA</artifactId>
      <version>1.0-SNAPSHOT</version>
      <scope>compile</scope>
    </dependency>
    <dependency>
        <groupId>aGroup</groupId>
        <artifactId>artifactA</artifactId>
        <classifier>tests</classifier>
        <version>1.0-SNAPSHOT</version>
        <scope>compile</scope>
    </dependency>
     ...
  </dependencies>
...

Does somebody have an idea how I can accomplish this task?

Thanks

Markus


-- 
View this message in context: 
http://www.nabble.com/how-to-include-tests.jar-in-ear-tf2003128.html#a5500939
Sent from the Maven - Users forum at Nabble.com.


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

Reply via email to