You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by Rogier Enders <ro...@gmail.com> on 2021/12/21 12:52:32 UTC

Enforcer plugin RequireFileExists behavior change between 3.0.0-M3 en 3.0.0.

Hi,

I have a project which includes the enforcer plugin with a rule to check if
some file exist. With the version 3.0.0-M3 this works fine but with version
3.0.0 I get the error message:
Some required files are missing:
/Users/xxx/workspace/mywork/project/../scripts/mykey.secure

configuration in the pom.xml

<requireFilesExist>
  <files>
    <file>${project.basedir}/../scripts/mykey.secure</file>
  </files>
</requireFilesExist>


If I replace the path in the pom with:
/Users/xxx/workspace/mywork/project/../scripts/mykey.secure
it still isn't working.

If I replace the path in the pom with:
/Users/xxx/workspace/mywork/scripts/mykey.secure
Then it works fine.

I see that the content of RequireFilesExists.java has been changed between
version 3.0.0-M3 en 3.0.0 and a check osIndependentNameMatch is added. I'm
executing my maven build on a MacBook.

Is this a bug or a mistake of the configuration of mine.

With regards,

Rogier