psakar / buildmetadata-plugin-git-provider

0 stars 0 forks source link

Domain stripping problem #4

Open rnc opened 8 years ago

rnc commented 8 years ago

I have built revision SHA 4a734a985a7102085a905a040e9e6222c36c108d and my configuration for Jest is

              <providers>
                <provider>
                <type>org.ncl.maven.plugin.buildmetadata.data.GitScmMetadataProvider</type>
                <properties>
                  <readLocalGitRepositoryInfo>true</readLocalGitRepositoryInfo>
                  <removeDomainFromScmConnectionHostname>true</removeDomainFromScmConnectionHostname>
                </properties>
            </provider>
         </providers>

This is giving me a full domain name in the scm URL. Is there something I am missing in the configuration?

psakar commented 8 years ago

Can you please provide full details about configuration used ?

rnc commented 8 years ago
      <plugin>
        <groupId>de.smartics.maven.plugin</groupId>
    <!-- <groupId>com.redhat.rcm.maven.plugin</groupId> -->
        <artifactId>buildmetadata-maven-plugin</artifactId>
        <version>1.6.1</version>
        <executions>
          <execution>
            <id>build-metadata</id>
            <phase>validate</phase>
            <goals>
              <goal>provide-buildmetadata</goal>
            </goals>
            <configuration>
              <addToLocations>
                <addToLocation>${session.executionRootDirectory}</addToLocation>
              </addToLocations>
              <queryRangeInDays>365</queryRangeInDays>
              <activateOutputFileMapping>false</activateOutputFileMapping>
              <addBuildDateInfo>false</addBuildDateInfo>
              <addLocallyModifiedTagToFullVersion>false</addLocallyModifiedTagToFullVersion>
              <addHostInfo>false</addHostInfo>
              <addJavaRuntimeInfo>true</addJavaRuntimeInfo>
              <validateCheckout>false</validateCheckout>
              <addOsInfo>false</addOsInfo>
              <hideJavaOptsInfo>false</hideJavaOptsInfo>
              <forceNewProperties>true</forceNewProperties>
              <hideCommandLineInfo>false</hideCommandLineInfo>
              <addBuildDateToFullVersion>false</addBuildDateToFullVersion>
              <createPropertiesReport>true</createPropertiesReport>
              <addToGeneratedSources>false</addToGeneratedSources>
              <createXmlReport>false</createXmlReport>
              <propertiesOutputFile>${project.build.outputDirectory}/META-INF/build.metadata</propertiesOutputFile>
              <addMavenExecutionInfo>false</addMavenExecutionInfo>
              <providers>
                <provider>
                <type>org.ncl.maven.plugin.buildmetadata.data.GitScmMetadataProvider</type>
                <properties>
                  <readLocalGitRepositoryInfo>true</readLocalGitRepositoryInfo>
                  <removeDomainFromScmConnectionHostname>true</removeDomainFromScmConnectionHostname>
                </properties>
            </provider>
            </providers>
          </configuration>
        </execution>
      </executions>
      <dependencies>
        <dependency>
          <groupId>org.ncl</groupId>
          <artifactId>buildmetadata-plugin-git-provider</artifactId>
          <version>1.0-SNAPSHOT</version>
        </dependency>
      </dependencies>
    </plugin>