Hello,

I have a question about invalidating resources. Let's say we have a maven
project that generates an ejb-jar module. In our project.xml we have
something like this:

        <sourceDirectory>${basedir}/src/java</sourceDirectory>
        <resources>
            <resource>
                <directory>${basedir}/src/conf</directory>
                <includes>
                    <include>*.properties</include>
                </includes>
            </resource>
            <resource>
                <directory>target</directory>
                <includes>
 
<include>kserver-synch-${pom.currentVersion}.sar</include>
                    <include>kserver-synch.wsr</include>
                </includes>
            </resource>
        </resources>


Now, let's say we have to swith version from 1.2 to 1.3. If we don't do a
maven clean and we rebuild the same ejb-jar we'll have 2 sar file
(kserver-synch-1.2.jar and the kserver-sync-1.3.jar we've just generated). Is
there a way to invalidate resources. Also, let's say one of my properties is
removed from the project because it should not be used anymore. Is there a
way to check this.

What I would like is to remove everything declared in the resoources
directory. One solution would be to remove the classes directory but then I
have to recompile everything each time.

Any idea?

Regards,

Stephane

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

Reply via email to