Le mar. 26 nov. 2024 à 07:30, Delany <delany.middle...@gmail.com> a écrit :

> Hi. Two issues came up:
>
> I use this archived plugin to ensure consistent filenames (if there's an
> alternative please let me know!)
>
>       <plugin>
>         <groupId>com.github.ngeor</groupId>
>         <artifactId>yak4j-filename-conventions-maven-plugin</artifactId>
>         <dependencies>
>           <dependency>
>             <groupId>org.codehaus.plexus</groupId>
>             <artifactId>plexus-utils</artifactId>
>             <version>4.0.0</version>
>           </dependency>
>         </dependencies>
>         <executions>
>           <execution>
>             <id>validate-changelog-filename</id>
>             <goals>
>               <goal>check</goal>
>             </goals>
>             <configuration>
>               <directory>.</directory>
>               <includes>changelog/*.md</includes>
>
> <pattern>^changelog[/|\\][0-9][0-9][0-9][0-9]*[0-9]*\.md$</pattern>
>             </configuration>
>           </execution>
>         </executions>
>       </plugin>
>
> Works on Apache Maven 3.9.9 but fails on RC1 with
>

Could you please raise a JIRA issue and provide a small reproducer project
for this one ?


>
> [ERROR] Failed to execute goal
> com.github.ngeor:yak4j-filename-conventions-maven-plugin:0.18.1:check
> (validate-changelog-filename) on project ponyrides-parent: Unclosed
> character class near index 46
> [ERROR] ^changelog[/|\][0-9][0-9][0-9][0-9]*[0-9]*\.md$
> [ERROR]                                               ^
>
> When monospaced the caret points to the dollar. I tried some variations -
> it always fails.
> Something to do with the plexus dep?
>
> Then I get this upper bounds issue
>
> [ERROR] Rule 7:
> org.apache.maven.enforcer.rules.dependency.RequireUpperBoundDeps failed
> with message:
> [ERROR] Failed while enforcing RequireUpperBoundDeps. The error(s) are [
> [ERROR] Require upper bound dependencies error for
> jakarta.mail:jakarta.mail-api:2.1.2 paths to dependency are:
> [ERROR] +-com.ponyrides.webservices:restfulwebservice:2.4.1-SNAPSHOT
> [ERROR]   +-org.eclipse.persistence:org.eclipse.persistence.moxy:4.0.4
> [ERROR]     +-org.eclipse.angus:angus-mail:2.0.3
> [ERROR]       +-jakarta.mail:jakarta.mail-api:2.1.2 (managed) <--
> jakarta.mail:jakarta.mail-api:2.1.3
>
> I seem to remember Maven 4 now considers the parent poms (Angus parent is
> used to set jakarta.mail-api version)
> But I don't have jakarta.mail-api under management. So I'm guessing its
> just being set in another parent or an import bom?
> These don't show up in dependency:analyze
> How can I discover this?
>

Maven 4 now uses a fully transitive dependency manager, so that the
dependency tree may be slightly different.
You can try investigating using:
  jbang toolbox@maveniverse tree --verboseTree
org.eclipse.persistence:org.eclipse.persistence.moxy:4.0.4
--verbosity=CHATTER
or
  jbang toolbox@maveniverse dm-tree --verboseTree
org.eclipse.persistence:org.eclipse.persistence.moxy:4.0.4
--verbosity=CHATTER

Guillaume


> Thanks,
>
>
> On Mon, 25 Nov 2024 at 13:49, Tamás Cservenák <ta...@cservenak.net> wrote:
>
> > Howdy,
> >
> > We solved 46 issues:
> >
> >
> https://issues.apache.org/jira/secure/ReleaseNote.jspa?projectId=12316922&version=12355164
> >
> > There are still a couple of issues left in JIRA:
> >
> >
> https://issues.apache.org/jira/issues/?jql=project%20%3D%20MNG%20AND%20resolution%20%3D%20Unresolved
> >
> > Staging repo:
> > https://repository.apache.org/content/repositories/maven-2247/
> >
> > Dev dist directory:
> > https://dist.apache.org/repos/dist/dev/maven/maven-4/4.0.0-rc-1/
> >
> > Source release checksums:
> > apache-maven-4.0.0-rc-1-src.tar.gz.sha512
> >
> >
> 4d0f9db5e25c67d25e2598e92cd17f63d944a252f6a44ea770dd5e03baea5248f789a747a510ff7728d58840ce423a2cab7286fd6d2a5a3acdf6ee6ca1870467
> >
> > apache-maven-4.0.0-rc-1-src.zip.sha512
> >
> >
> 4fdfce1b515ac770622cd8e2767cb61b9ab3005df0b1b6c96664b660d3935b07517f71a1204a137b57639523e41abcc0ff2a7c625a2aca7abe5b5a8fb370af86
> >
> > Staged site:
> > https://maven.apache.org/ref/4-LATEST/
> >
> > Draft for release notes:
> > https://github.com/apache/maven-site/pull/582
> >
> > Guide to testing staged releases:
> > http://maven.apache.org/guides/development/guide-testing-releases.html
> >
> > Vote open for 72h
> >
> > [ ] +1
> > [ ] +0
> > [ ] -1
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
> > For additional commands, e-mail: dev-h...@maven.apache.org
> >
> >
>


-- 
------------------------
Guillaume Nodet

Reply via email to