question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Sort plugins by executionId

See original GitHub issue

So that the gpg plugin can be sorted after javadoc and source plugin

Sorted plugins should keep this order ’ <sortPlugins>executionId,groupId,artifactId</sortPlugins>’

          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <version>3.2.0</version>
            <configuration>
              <minmemory>128m</minmemory>
              <maxmemory>512</maxmemory>
              <breakiterator>true</breakiterator>
              <quiet>true</quiet>
              <source>${compileSource}</source>
              <verbose>false</verbose>
              <linksource>true</linksource>
              <links>
                <!-- JSE -->
                <link>http://docs.oracle.com/javase/8/docs/api/</link>
              </links>
            </configuration>
            <executions>
              <execution>
                <id>1_attach-javadoc</id>
                <goals>
                  <goal>jar</goal>
                </goals>
                <phase>verify</phase>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <version>3.2.1</version>
            <executions>
              <execution>
                <id>2_attach-sources</id>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
                <phase>verify</phase>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.6</version>
            <executions>
              <execution>
                <id>3_sign-artifacts</id>
                <goals>
                  <goal>sign</goal>
                </goals>
                <phase>verify</phase>
              </execution>
            </executions>
          </plugin>

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
famodcommented, Jan 17, 2022

YMMV, but I usually sort after the phase and my ids don’t have numbers (I have actually never seens executionIds starting with numbers). Just my 2 cents.

0reactions
Ekrydcommented, Mar 7, 2022

The problem with phases is that the plugin does not analyze the content of the POM. It is basically an xml sorter with custom xml ordering. So the plugin does not know about a default phase of a plugin unless you explicitly state each phase in the pom file. I agree that sorting by phase would be excellent, but that is a job for another plugin.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maven plugin execution ID - Stack Overflow
<id></id> exists only for you to be able to distinguish between other executions. This tag will be displayed when you do the actual...
Read more >
Maven RPM Plugin - Usage Scenarios - MojoHaus
Listed below are the various scenarios where the RPM plugin can be used ... The project itself may be configured to produce any...
Read more >
Execution Id cannot be found - Camunda Forum
Hello, I am using camunda 7.9 with postgres DB I am using the following approach -
Read more >
org.camunda.bpm.engine.history.HistoricActivityInstanceQuery ...
Best Java code snippets using org.camunda.bpm.engine.history.HistoricActivityInstanceQuery.executionId (Showing top 20 results out of 315).
Read more >
Using wf-build-plugin - Escenic Widget Framework Developer ...
sort -groups-alphabetically.xsl. Gathers together all ui:group elements and sorts them alphabetically by their ui:label element. filter-content-type ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found