Github user indrgun commented on the pull request:

    https://github.com/apache/maven-scm/pull/31#issuecomment-178854338
  
    HI sergei,
    
    I patched the latest scm with the patch on top, built it as version 
1.9.5-beta-1 and use it with version 2.5 maven release plugin as such:
    
    <profile>
          <id>release-profile</id>
          <build>
            <plugins>
              <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-javadoc-plugin</artifactId>
                  <version>2.6.1</version>
                  <configuration>
                    <aggregate>true</aggregate>
                    <excludePackageNames>*.internal:*.impl</excludePackageNames>
                  </configuration>
              </plugin>
              <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.5</version>
                 <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.scm</groupId>
                        <artifactId>maven-scm-api</artifactId>
                        <version>1.9.5-beta-1</version>
                    </dependency>
                    <dependency>
                        <groupId>org.apache.maven.scm</groupId>
                        <artifactId>maven-scm-provider-gitexe</artifactId>
                        <version>1.9.5-beta-1</version>
                    </dependency>
                 </dependencies>
                <configuration>
                  <scmCommentPrefix>${release.commit.comment} 
[maven-release-plugin]</scmCommentPrefix>
                  <preparationGoals>-s ${release.settings.file} clean install 
-DskipTests=true</preparationGoals>
                  <goals>-s ${release.settings.file} deploy 
-DskipTests=true</goals>
                  <username>${release.commit.user}</username>
                  <localCheckout>true</localCheckout>
                 <!-- <autoVersionSubmodules>true</autoVersionSubmodules> -->
                </configuration>
                <executions>
                     <execution>
                        <id>default</id>
                        <goals>
                            <goal>perform</goal>
                      </goals>
                     <configuration>
                            
<pomFileName>apic_int/comp/ifm_apic_rest/pom.xml</pomFileName>
                    </configuration>
                 </execution>
              </executions>
              </plugin>
            </plugins>
          </build>
        </profile>
    
    However I am getting error:
    
    [INFO] Checking in modified POMs...
    [INFO] Executing: /bin/sh -c cd 
/scratch/jenkinsci-ws/workspace/apic-int-ifm_apic_rest/apic_int/comp/ifm_apic_rest
 && git rev-parse --show-toplevel
    [INFO] Working directory: 
/scratch/jenkinsci-ws/workspace/apic-int-ifm_apic_rest/apic_int/comp/ifm_apic_rest
    [INFO] Executing: /bin/sh -c cd 
/scratch/jenkinsci-ws/workspace/apic-int-ifm_apic_rest/apic_int/comp/ifm_apic_rest
 && git status --porcelain .
    [INFO] Working directory: 
/scratch/jenkinsci-ws/workspace/apic-int-ifm_apic_rest/apic_int/comp/ifm_apic_rest
    [WARNING] Ignoring unrecognized line: ?? 
apic_int/comp/ifm_apic_rest/pom.xml.releaseBackup
    [WARNING] Ignoring unrecognized line: ?? 
apic_int/comp/ifm_apic_rest/release.properties
    [INFO] Executing: /bin/sh -c cd 
/scratch/jenkinsci-ws/workspace/apic-int-ifm_apic_rest/apic_int/comp/ifm_apic_rest
 && git add -- apic_int/comp/ifm_apic_rest/pom.xml 
apic_int/comp/ifm_apic_rest/release-pom.xml
    [INFO] Working directory: 
/scratch/jenkinsci-ws/workspace/apic-int-ifm_apic_rest/apic_int/comp/ifm_apic_rest
    [INFO] 
------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] 
------------------------------------------------------------------------
    [INFO] Total time: 01:52 min
    [INFO] Finished at: 2016-02-02T13:09:29-08:00
    [INFO] Final Memory: 58M/378M
    [INFO] 
------------------------------------------------------------------------
    [ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-release-plugin:2.5.3:prepare-with-pom 
(default-cli) on project ifm_apic_rest: Unable to commit files
    [ERROR] Provider message:
    [ERROR] The git-add command failed.
    [ERROR] Command output:
    [ERROR] fatal: pathspec 'apic_int/comp/ifm_apic_rest/pom.xml' did not match 
any files
    
    I am wondering about which version of maven-release-plugin did you try the 
patch with?  Did you run 'release-with-pom'?
    
    Thank you
    -Indra


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to