Ovidio Mallo wrote:
Hi,

I think you should replace your exclude pattern by
    <exclude>conf/**</exclude>

hi, thanks, I forgot to mention that I tried this already
but it does not help.

It looks like the plugin does not see the configuration:

[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-jar-plugin:2.0:jar' -->
[DEBUG]   (f) basedir = D:\xxx
[DEBUG]   (f) finalName = xxx-1.0-SNAPSHOT
[DEBUG]   (f) outputDirectory = D:\xxx\target\classes
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG] -- end configuration --
[INFO] [jar:jar]
[INFO] Building jar: D:\xxx\target\xxx-1.0-SNAPSHOT.jar
...
[DEBUG] adding directory conf/

Bernd

HPH & Regards,
  Ovidio

berndq wrote:
Hi,

I have a maven standard directory layout:

  src/main/resources

and different directories there:

  src/main/resources/conf
  src/main/resources/images


How can I exlcude the conf directory from the jar?

MJAR-30 says that there is no exclude for the jar plugin
but one could exclude resources.

So I tried

  <build>
    ...
    <resources>
      <resource>
        <directory>src/main/resources</directory>
          <excludes>
            <exclude>conf</exclude>
          </excludes>
      </resource>
    </resources>
  </build>

in my pom but this did not help.

What is wrong here? thanks for you help!

Bernd

---------------------------------------------------------------------
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]




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

Reply via email to