The Regex used in the Javac Parser also finds skipped UnitTests. see

      [WARNING] Tests run: 16, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.308 s - in org.faktorips.devtools.model.internal.enums.EnumValueContainerTest
      ...
      [WARNING] Tests run: 1209, Failures: 0, Errors: 0, Skipped: 3
       

      Also it finds JavaDoc Warnings deep in the target folder of an Maven-Project: target/maven-plugin-plugin-sources/org.eclipse.tycho.extras/tycho-p2-extras-plugin/3.0.1/sources/org/eclipse/tycho/plugins/p2/extras/MirrorMojo.java

          /**
           * Source repositori(es) to mirror from.
           * 
           * @see also {@link #targetPlatformAsSource} and {@link #currentModuleAsSource}
           */
          @Parameter(required = false)
          private List<Repository> source;
      

      yields

      Invalid format of javadoc reference: also {@link #targetPlatformAsSource} and {@link #currentModuleAsSource}
      

      The Problem seems to be in the Javac parser since: https://github.com/jenkinsci/analysis-model/releases/tag/v11.4.0

          [JENKINS-72077] Javac Parser warns about skipped UnitTests

          Ulli Hafner added a comment -

          Can you please add the context of the maven goal that occurred before and after the message? Something like

          INFO] --- clean:3.2.0:clean (default-clean) @ analysis-model ---
          

          Then we can create a small unit test for that snippet.

          Ulli Hafner added a comment - Can you please add the context of the maven goal that occurred before and after the message? Something like INFO] --- clean:3.2.0:clean ( default -clean) @ analysis-model --- Then we can create a small unit test for that snippet.

          Ulli Hafner added a comment -

          I'm not sure if I understand the second problem. If this is similar I need the console log part of that problem.

          Ulli Hafner added a comment - I'm not sure if I understand the second problem. If this is similar I need the console log part of that problem.

          Daniel added a comment -

          I have uploaded the whole build output as reference see build-output.zip .

          But in this Part of the log build.part.txt the javac Parser finds two Lines:

          [WARNING] Tests run: 16, Failures: 0, Errors: 0, Skipped: 3, Time elapsed: 0.01 s - in org.faktorips.runtime.internal.XmlUtilTest
          ...
          [WARNING] Tests run: 1209, Failures: 0, Errors: 0, Skipped: 3
          

          Also I attached the Json of the Warnings-UI (java/api/json?pretty=true) in Warnings-Ui.json where you can see the Warnings found in the build.

          Daniel added a comment - I have uploaded the whole build output as reference see build-output.zip . But in this Part of the log build.part.txt the javac Parser finds two Lines: [WARNING] Tests run: 16, Failures: 0, Errors: 0, Skipped: 3, Time elapsed: 0.01 s - in org.faktorips.runtime.internal.XmlUtilTest ... [WARNING] Tests run: 1209, Failures: 0, Errors: 0, Skipped: 3 Also I attached the Json of the Warnings-UI (java/api/json?pretty=true) in Warnings-Ui.json where you can see the Warnings found in the build.

          Daniel added a comment -

          The second problem seems to come from this snippet:

          [INFO] --- maven-plugin-plugin:3.7.0:descriptor (default-descriptor) @ faktorips-maven-plugin ---
          [INFO] Using 'UTF-8' encoding to read mojo source files.
          [WARNING] Unresolvable link in javadoc tag with value also {@link #targetPlatformAsSource} and {@link #currentModuleAsSource} found in maven/build/target/maven-plugin-plugin-sources/org.eclipse.tycho.extras/tycho-p2-extras-plugin/3.0.1/sources/org/eclipse/tycho/plugins/p2/extras/MirrorMojo.java:76: Invalid format of javadoc reference: also {@link #targetPlatformAsSource} and {@link #currentModuleAsSource}
          [WARNING] Deprecated @Component annotation for 'project' field in org.faktorips.maven.plugin.mojo.IpsCleanMojo: replace with @Parameter( defaultValue = "${project}", readonly = true )
          [WARNING] Deprecated @Component annotation for 'pluginDescriptor' field in org.faktorips.maven.plugin.mojo.IpsBuildMojo: replace with @Parameter( defaultValue = "${plugin}", readonly = true )
          [WARNING] Deprecated @Component annotation for 'project' field in org.faktorips.maven.plugin.mojo.IpsBuildMojo: replace with @Parameter( defaultValue = "${project}", readonly = true )
          [INFO] java-annotations mojo extractor found 2 mojo descriptors.
          [INFO] java-javadoc mojo extractor found 0 mojo descriptor.
          [INFO] ant mojo extractor found 0 mojo descriptor.
          [INFO] bsh mojo extractor found 0 mojo descriptor.
          

          Daniel added a comment - The second problem seems to come from this snippet: [INFO] --- maven-plugin-plugin:3.7.0:descriptor ( default -descriptor) @ faktorips-maven-plugin --- [INFO] Using 'UTF-8' encoding to read mojo source files. [WARNING] Unresolvable link in javadoc tag with value also {@link #targetPlatformAsSource} and {@link #currentModuleAsSource} found in maven/build/target/maven-plugin-plugin-sources/org.eclipse.tycho.extras/tycho-p2-extras-plugin/3.0.1/sources/org/eclipse/tycho/plugins/p2/extras/MirrorMojo.java:76: Invalid format of javadoc reference: also {@link #targetPlatformAsSource} and {@link #currentModuleAsSource} [WARNING] Deprecated @Component annotation for 'project' field in org.faktorips.maven.plugin.mojo.IpsCleanMojo: replace with @Parameter( defaultValue = "${project}" , readonly = true ) [WARNING] Deprecated @Component annotation for 'pluginDescriptor' field in org.faktorips.maven.plugin.mojo.IpsBuildMojo: replace with @Parameter( defaultValue = "${plugin}" , readonly = true ) [WARNING] Deprecated @Component annotation for 'project' field in org.faktorips.maven.plugin.mojo.IpsBuildMojo: replace with @Parameter( defaultValue = "${project}" , readonly = true ) [INFO] java-annotations mojo extractor found 2 mojo descriptors. [INFO] java-javadoc mojo extractor found 0 mojo descriptor. [INFO] ant mojo extractor found 0 mojo descriptor. [INFO] bsh mojo extractor found 0 mojo descriptor.

          Ulli Hafner added a comment -

          The second problem looks like a Java warning (and uses the same format).

          Maybe it makes sense to change the filtering from a blacklist to a whitelist: currently warnings are removed if they are part of a maven build step, maybe they should be added only if they are part of a maven build step.

          Ulli Hafner added a comment - The second problem looks like a Java warning (and uses the same format). Maybe it makes sense to change the filtering from a blacklist to a whitelist: currently warnings are removed if they are part of a maven build step, maybe they should be added only if they are part of a maven build step.

          Ulli Hafner added a comment -

          The tests are now excluded. Exclusion of warnings from custom plugins is not supported yet.

          Ulli Hafner added a comment - The tests are now excluded. Exclusion of warnings from custom plugins is not supported yet.

            drulli Ulli Hafner
            hookyat Daniel
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: