Hi,

attempted to pull the main branch of commons-fileupload (2.x) into my Eclipse.
Fails, due to the section in the POM below (Example taken from
commons-fileupload2-core, but most likely identical with the other
subprojects)

<resources>
  <!-- include NOTICE/LICENSE in generated jar -->
  <resource>
    <directory>${commons.parent.dir}</directory>
    <targetPath>META-INF</targetPath>
    <includes>
       <include>NOTICE.txt</include>
       <include>LICENSE.txt</include>
      </includes>
   </resource>
</resources>

What this is supposed to do, is to just copy NOTICE.txt, and
LICENSE.txt from the projects
root directory into the directory target/classes, so that they end up
in the created jar file.

Unfortunately, this runs into a problem with M2E
(ps://github.com/eclipse-m2e/m2e-core/issues/1790), so I can't start
working.

There has to be a better solution for this, like using the
maven-dependency-plugin, or the maven-remote-resources-plugin to copy
files from a resource bundle, or the like. Any examples, that I might
follow?

Thanks,

Jochen




-- 
The woman was born in a full-blown thunderstorm. She probably told it
to be quiet. It probably did. (Robert Jordan, Winter's heart)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to