Details

    • Type: New Feature New Feature
    • Status: Backlog
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: root-38
    • Component/s: root
    • Labels:
      None

      Description

      Using the pre-push profile it should be possible to get rid of using the openengsb-maven-plugin for this task which is anyhow extremely crappy. In addition we can reuse the logic that way also for all other releases we do with the OpenEngSB.

      The pre-push profile should include a) a dependency:analyse with a "fail" property and b) the current check:

      <profiles><profile><id>ba72116f-5197-42e4-b8ae-e4685c9b201e</id><build><plugins><plugin>
            <inherited>false</inherited>
            <groupId>com.mycila.maven-license-plugin</groupId>
            <artifactId>maven-license-plugin</artifactId>
            <configuration>
              <!-- header is added dynamically -->
              <failIfMissing>true</failIfMissing>
              <aggregate>true</aggregate>
              <strictCheck>true</strictCheck>
              <excludes>
                <!-- openengs-maven-plugin test resources -->
                <exclude>src/main/resources/license/header.txt</exclude>
                <eclude>src/test/resources/licenseCheck/fail/src/main/java/org/openengsb/licensecheck/App.java</eclude>
                <exclude>src/test/resources/licenseFormat/backup/Without_Header.java</exclude>
                <!-- #################################### -->
                <exclude>docs/examples/**/*.config</exclude>
                <exclude>etc/eclipse/checkstyle.xml</exclude>
                <exclude>license.txt</exclude>
                <exclude>**/*.vm</exclude>
                <exclude>**/license.txt</exclude>
                <exclude>runner/**</exclude>
                <exclude>assembly/runner/**</exclude>
                <exclude>features/**</exclude>
                <exclude>NOTICE</exclude>
                <exclude>**/*.3pm</exclude>
                <exclude>**/*.dll</exclude>
                <exclude>**/*.pdb</exclude>
                <exclude>**/*.pdf</exclude>
                <exclude>**/LICENSE</exclude>
                <exclude>**/*checkstyle.xml</exclude>
                <exclude>**/*.log.*</exclude>
                <exclude>**/*.log</exclude>
                <exclude>**/*.packlist</exclude>
                <exclude>**/*.pod</exclude>
                <exclude>**/imports</exclude>
                <exclude>**/globals</exclude>
                <exclude>**/.keep</exclude>
                <exclude>**/EngSB.sln</exclude>
                <exclude>**/nb-configuration.xml</exclude>
                <exclude>**/*.checkstyle</exclude>
                <exclude>**/*.rf</exclude>
              </excludes>
              <mapping>
                <bnd>SCRIPT_STYLE</bnd>
                <drl>SCRIPT_STYLE</drl>
                <index>SCRIPT_STYLE</index>
                <gitignore>SCRIPT_STYLE</gitignore>
                <cfg>SCRIPT_STYLE</cfg>
                <wsdl>XML_STYLE</wsdl>
                <csproj>XML_STYLE</csproj>
                <rf>XML_STYLE</rf>
                <composite>SCRIPT_STYLE</composite>
                <config>XML_STYLE</config>
                <script>DOUBLESLASH_STYLE</script>
                <rule>SCRIPT_STYLE</rule>
              </mapping>
            <header>/tmp/bfdc7d7a-7179-49de-8576-4da876e0ae113748192517462559456.txt</header></configuration>
            <executions>
              <execution>
                <id>check-headers</id>
                <phase>validate</phase>
                <goals>
                  <!-- the goal (check/format) is added dynamically -->
                <goal>check</goal></goals>
              </execution>
            </executions>
          </plugin><plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-checkstyle-plugin</artifactId>
            <configuration>
              <!-- the config location is added dynamically by the mojo -->
              <consoleOutput>true</consoleOutput>
              <enableRulesSummary>true</enableRulesSummary>
              <failsOnError>true</failsOnError>
              <includeTestSourceDirectory>true</includeTestSourceDirectory>
            <configLocation>file:/tmp/4f66990d-d7a7-488a-b007-02220a26fd02568661727122488289.xml</configLocation></configuration>
            <executions>
              <execution>
                <id>check</id>
                <phase>verify</phase>
                <goals>
                  <goal>checkstyle</goal>
                </goals>
              </execution>
            </executions>
          </plugin><plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-surefire-plugin</artifactId>
            <configuration>
              <excludes>
                <exclude>*</exclude>
              </excludes>
              <includes>
                <include>**/*Test.java</include>
                <include>**/*IT.java</include>
              </includes>
            </configuration>
          </plugin></plugins><resources/></build><modules/></profile></profiles>

        Gliffy Diagrams

        Error rendering 'com.meetme.plugins.jira.gerrit-plugin:gerritreviewsmodule'. Please contact your JIRA administrators.

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Andreas Pieber
              Reporter:
              Andreas Pieber
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: