I think i'm doing something wrong.
I put the thing for the jar-plugin in my pom.xml (the one that builds the
war).
And i do get a test-jar build.  But building this jar is the last thing
maven does.
So when i put the dependency in my war-plugin like this:

<plugin>
        <artifactId>maven-war-plugin</artifactId>
        <configuration>
            <excludes>**/_svn/**</excludes>
            <archive>
                <manifest>
                    <addClasspath>true</addClasspath>
                </manifest>
            </archive>
        </configuration>
        <dependencies>
            <dependency>
                 <groupId>be.delaware.jpetstore.samples</groupId>
                 <artifactId>jpetstore</artifactId>
                 <version>0.0.1</version>
                 <type>test-jar</type>
            </dependency>
        </dependencies>
</plugin>

But he keeps saying he's missing an artifact for the war-plugin (what would
be logical because he tries to   make the war before the test-jar is even
build).
any ideas?

(p.s. i can't put my tests in the main source tree, because they want me to
follow the
maven default directory structure).

thx!
-- 
View this message in context: 
http://www.nabble.com/test-classes-in-War-tf2028156.html#a5590289
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