Hi Jochen,

I don't have a canned solution unfortunately. I am an Eclipse fan but the
m2e plug-in seems to fall short sometimes with multi-module projects. Since
we have a few MM projects in Commons, it would be nice to have a template
to follow.

Starting with an m2e PR seems reasonable but that may be too big a reach
for someone whose not an Eclipse developer.

Gary

On Sat, Jun 7, 2025, 10:26 Jochen Wiedmann <jochen.wiedm...@gmail.com>
wrote:

> 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