Hi,

Thanks, now I think I got the solution.
I just changed the resoure directory and the resources
are still in the jar.

But I still have to test this in the next release.

Thanks

Timo



        <resources>
          <!-- include the java directory to the resources -->
          <resource>
                <targetPath></targetPath>
                <filtering>false</filtering>
                <directory>${basedir}/src/main/java</directory>
                <includes>
                  <include>**/*.properties</include>
                  <include>**/*.gif</include>               
                  <include>**/*.jpg</include>               
                  <include>**/*.png</include>                       
                  <include>**/*.wav</include>               
                </includes>
                <excludes>
                  <exclude>**/*.java</exclude>
                </excludes>
          </resource>
        </resources>


On Nov 16, 2006, at 12:32 PM, Jochen Wiedmann wrote:

On 11/16/06, Timo Wolf <[EMAIL PROTECTED]> wrote:

          <resource>
                <targetPath>org</targetPath>
                <filtering>false</filtering>
                <directory>${basedir}/src/main/java/org</directory>

That is exactly as I expected.

There is one thing I do understand: You put these things into org/...,
but want them to appear without the org/... in the classpath? Is that
what you want? I would expect

   <directory>src/main/java</directory>

(the ${basedir} can be omitted, btw).

If so, the suggested solution is to create a new directory
src/main/resources, remove the resources specification from your POM,
and move the images to that directory.

Jochen


--
My wife Mary and I have been married for forty-seven years and not
once have we had an argument serious enough to consider divorce;
murder, yes, but divorce, never.
(Jack Benny)

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



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

Reply via email to