I want to use filter to generate a src/main/resources/filter/hello.java
to replace the old one in src/main/java/com/my-company/hello.java
<resource> in pom.xml
      <resource>
        <directory>src/main/resources/filter/</directory>
        <filtering>true</filtering>
        <includes>
            <include>hello.java</include>
        </includes>
        <targetPath>com/my-company/</targetPath>
      </resource>

the result is:
hello.class is compiled using the old hello.java,
the new hello.java source file is in the jar file

does anyone knows how to do it?

BR//Rex

Reply via email to