You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "James Nord (Jira)" <ji...@apache.org> on 2023/04/03 16:43:00 UTC

[jira] [Commented] (MPLUGIN-449) spurious warning when unpacking dependencies on windows.

    [ https://issues.apache.org/jira/browse/MPLUGIN-449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17708040#comment-17708040 ] 

James Nord commented on MPLUGIN-449:
------------------------------------

I'm guessing this can be closed now - however I lack the ability to do so.

> spurious warning when unpacking dependencies on windows.
> --------------------------------------------------------
>
>                 Key: MPLUGIN-449
>                 URL: https://issues.apache.org/jira/browse/MPLUGIN-449
>             Project: Maven Plugin Tools
>          Issue Type: Bug
>          Components: maven-plugin-tools-annotations
>    Affects Versions: 3.7.0
>            Reporter: James Nord
>            Priority: Major
>
> when running on windows and searching dependencies for annotations the mojo emits a large amount of warnings as there is a case issue in the dependencies.
> However there is no case issue as can be seen with inspection and this is a bug in the version of the plexus archiver that is in use.
> upgrading the version of the plexus-archiver dependency in the plugin definition fixes this warning.
> {noformat}
> [INFO] --- maven-plugin-plugin:3.7.0:descriptor (mojo-descriptor) @ maven-hpi-plugin ---
> [ERROR]
> Artifact Ids of the format maven-___-plugin are reserved for
> plugins in the Group Id org.apache.maven.plugins
> Please change your artifactId to the format ___-maven-plugin
> In the future this error will break the build.
> [INFO] Using 'UTF-8' encoding to read mojo source files.
> [WARNING] Archive entry 'META-INF/MANIFEST.MF' and existing file 'C:\workarea\source\github\jenkinsci\maven-hpi-plugin\target\maven-plugin-plugin-sources\org.eclipse.jetty\jetty-maven-plugin\10.0.13\sources\META-INF\MANIFEST.MF' names differ only by case. This may lead to an unexpected outcome on case-insensitive filesystems.
> [WARNING] Archive entry 'org/eclipse/' and existing file 'C:\workarea\source\github\jenkinsci\maven-hpi-plugin\target\maven-plugin-plugin-sources\org.eclipse.jetty\jetty-maven-plugin\10.0.13\sources\org\eclipse' names differ only by case. This may lead to an unexpected outcome on case-insensitive filesystems.
> [WARNING] Archive entry 'org/eclipse/jetty/' and existing file 'C:\workarea\source\github\jenkinsci\maven-hpi-plugin\target\maven-plugin-plugin-sources\org.eclipse.jetty\jetty-maven-plugin\10.0.13\sources\org\eclipse\jetty' names differ only by case. This may lead to an unexpected outcome on case-insensitive filesystems.
> [WARNING] Archive entry 'org/eclipse/jetty/maven/' and existing file 'C:\workarea\source\github\jenkinsci\maven-hpi-plugin\target\maven-plugin-plugin-sources\org.eclipse.jetty\jetty-maven-plugin\10.0.13\sources\org\eclipse\jetty\maven' names differ only by case. This may lead to an unexpected outcome on case-insensitive filesystems.
> [WARNING] Archive entry 'org/eclipse/jetty/maven/plugin/' and existing file 'C:\workarea\source\github\jenkinsci\maven-hpi-plugin\target\maven-plugin-plugin-sources\org.eclipse.jetty\jetty-maven-plugin\10.0.13\sources\org\eclipse\jetty\maven\plugin' names differ only by case. This may lead to an unexpected outcome on case-insensitive filesystems.
> [WARNING] Archive entry 'org/eclipse/jetty/maven/plugin/utils/' and existing file 'C:\workarea\source\github\jenkinsci\maven-hpi-plugin\target\maven-plugin-plugin-sources\org.eclipse.jetty\jetty-maven-plugin\10.0.13\sources\org\eclipse\jetty\maven\plugin\utils' names differ only by case. This may lead to an unexpected outcome on case-insensitive filesystems.
> [WARNING] Archive entry 'org/eclipse/jetty/jetty_maven_plugin/' and existing file 'C:\workarea\source\github\jenkinsci\maven-hpi-plugin\target\maven-plugin-plugin-sources\org.eclipse.jetty\jetty-maven-plugin\10.0.13\sources\org\eclipse\jetty\jetty_maven_plugin' names differ only by case. This may lead to an unexpected outcome on case-insensitive filesystems.
> [WARNING] Archive entry 'META-INF/services/' and existing file 'C:\workarea\source\github\jenkinsci\maven-hpi-plugin\target\maven-plugin-plugin-sources\org.eclipse.jetty\jetty-maven-plugin\10.0.13\sources\META-INF\services' names differ only by case. This may lead to an unexpected outcome on case-insensitive filesystems.
> {noformat}
> can be observed with the tree dc277b661f9a8da78136d2b0d7865e50569f2820  in  https://github.com/jenkinsci/maven-hpi-plugin 
> workaround is to add the archiver dependency to a newer version in the projects pom - but this should not be needed.
> {noformat}
>       <plugin>
>         <groupId>org.apache.maven.plugins</groupId>
>         <artifactId>maven-plugin-plugin</artifactId>
>         <version>${maven-plugin-tools.version}</version>
>         <configuration>
>           <goalPrefix>hpi</goalPrefix>
>           <extractors>java-annotations</extractors>
>           <mojoDependencies>org.eclipse.jetty:jetty-maven-plugin</mojoDependencies>
>         </configuration>
>         <executions>
>           <execution>
>             <id>help-goal</id>
>             <goals>
>               <goal>helpmojo</goal>
>             </goals>
>           </execution>
>           <execution>
>             <id>mojo-descriptor</id>
>             <goals>
>               <goal>descriptor</goal>
>             </goals>
>           </execution>
>         </executions>
>         <dependencies>
>           <dependency>
>             <groupId>org.codehaus.plexus</groupId>
>             <artifactId>plexus-archiver</artifactId>
>             <version>4.6.1</version>
>           </dependency>
>         </dependencies>
>       </plugin>
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)