Uploaded image for project: 'Maven Plugin Tools'
  1. Maven Plugin Tools
  2. MPLUGIN-449

spurious warning when unpacking dependencies on windows.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.7.0
    • None
    • None

    Description

      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.

      [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.
      

      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.

            <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>
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jnord_cbs James Nord
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: