Hello,

It seems that Maven can't 'see' resources when they are in the target
dir. In the POM, I specified resources for the unit tests:

<resources>
        <resource>
                <directory>${basedir}/target/res/</directory>
                <targetPath>/</targetPath>
                <includes>
                        <include>**/*</include>
                </includes>
        </resource>
</resources>

This does not work. When I try to load a file using something like this
:
retval.getClass().getResourceAsStream("/netlist.txt");

I get a null InputStream. The resources are dynamically generated in a
post-goal on test:test-resources, but I've confirmed that the files are
indeed present.

Now here is the interesting part. If I generate the resources in
${basedir}/res instead of ${basedir}/target/res, maven:site will find
the files. I've set maven.junit.fork to true, otherwise Maven does not
find the files at all.

Is this a bug or a specified behavior?

Best Regards,
David Garnier
-- 



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

Reply via email to