Thanks.  I can't see any good reason for this though.  It seems that this
would be a pretty common use case - including test jars inside an ear.

Ken 

-----Alkuperäinen viesti-----
Lähettäjä: Tom Huybrechts [mailto:[EMAIL PROTECTED] 
Lähetetty: 29. syyskuuta 2006 16:16
Vastaanottaja: Maven Users List
Aihe: Re: Re: test-jar - unknown artefact type

The maven-ear-plugin only handles a limited number of artifact types, and
test-jar is not one of them.
See
https://svn.apache.org/repos/asf/maven/plugins/trunk/maven-ear-plugin/src/ma
in/java/org/apache/maven/plugin/ear/EarModuleFactory.java

Tom

On 9/29/06, Ken Helmes <[EMAIL PROTECTED]> wrote:
>
> Tom,
>
> (This comes as a new post since I was unsubscribed.  I am subscribed
> again.)
>
> I am working almost exactly from the directions given here:
>
> http://maven.apache.org/guides/mini/guide-attached-tests.html
>
> module1 - t2_config (ear level) - multilevel build creates a
> t2_config_logic-1.28-SNAPSHOT-tests.jar including its unit tests.
> The jar level pom includes this and works.
>
>         <artifactId>maven-jar-plugin</artifactId>
>
>        <executions>
>
>          <execution>
>
>            <goals>
>
>              <goal>test-jar</goal>
>
>            </goals>
>
>          </execution>
>
>        </executions>
>
> module2 - t2_test (ear level) - multilevel build wants to include
> t2_config
> test-jar in its ear.
> The ear packaging pom tries to include this:
>
>     <dependency>
>
>       <groupId>t2.1_0_0.t2_config</groupId>
>
>       <artifactId>t2_config_logic</artifactId>
>
>       <version>1.28-SNAPSHOT</version>
>
>       <type>test-jar</type>
>
>     </dependency>
>
> Putting <scope>test</test> results in a successful ear build, but the
> t2_config-logic.-tests.jar is not included in the module2 ear.
>
> Regards,
> Ken
>
>
> >Can you give us some more context for the error ?
> >Try giving your test-jar dependency a <scope>test</scope>
>
> >Tom
>
> >On 9/29/06, Ken Helmes <[EMAIL PROTECTED]> wrote:
> >
> > Hello,
> >
> >
> >
> > Has anyone run into this error when trying to use the "test-jar" type:
> >
> >
> >
> > "Embedded error: Unknown artefact type[test-jar]"
> >
> >
> >
> > -          Maven 2.0.4
> >
> > -          The actual test-jar is created correctly and can be found
> from
> > the repository.  It is when being used that the error comes:
> >
> >     <dependency>
> >
> >       <groupId>config</groupId>
> >
> >       <artifactId>config_logic</artifactId>
> >
> >       <version>1.28-SNAPSHOT</version>
> >
> >       <type>test-jar</type>
> >
> >     </dependency>
> >
> >
> >
> > Ken Helmes
> >
> >
>
>
>
>
>
>



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

Reply via email to