[
https://issues.apache.org/jira/browse/SCM-1000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17963931#comment-17963931
]
ASF GitHub Bot commented on SCM-1000:
-------------------------------------
jira-importer commented on issue #1225:
URL: https://github.com/apache/maven-scm/issues/1225#issuecomment-2964658117
**[robert](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=JIRAUSER294511)**
commented
[Michael
Osipov](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=michael-o)
Is there anything else you need?
I have attached a [^0001-sample-problem-for-SCM-1000.patch] based on
https://github.com/apache/maven.git based on _commit
a53a1aa232bc383baf055d884a7c66319d10d404 (origin/master, origin/HEAD, master)_
Obviously when you apply the patch you will need to modify the pom.xml by
adding a space to it, **so pom.xml is locally modified** . Run _git status_ to
ensure the pom.xml file is listed as **Changes not staged for commit**
Taken from [^SCM-1000.txt]
```java
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-scm-plugin:1.13.0:check-local-modification
(default) on project maven: The build will stop as there is local modifications
-> [Help 1]
```
> check-local-modification ignoring excludes (scm:git)
> ----------------------------------------------------
>
> Key: SCM-1000
> URL: https://issues.apache.org/jira/browse/SCM-1000
> Project: Maven SCM (Moved to GitHub Issues)
> Issue Type: Bug
> Affects Versions: 1.13.0
> Reporter: robert
> Assignee: Michael Osipov
> Priority: Major
> Fix For: 2.0.0-M3
>
> Attachments: 0001-sample-problem-for-SCM-1000.patch, SCM-1000.txt
>
>
> Add this to any `pomx.ml`. The run `mvn clean install`. Everything should
> build with no issues since the excludes has `star star /pom.xml` in it. *The
> build stops with the follow error message* The build will stop as there is
> local modifications.
>
> I believe the pom.xml file should be excluded from the modification check.
>
> {code:xml}
> <plugin>
> <groupId>org.apache.maven.plugins</groupId>
> <artifactId>maven-scm-plugin</artifactId>
> <version>1.13.0</version>
> <executions>
> <execution>
> <goals>
> <goal>check-local-modification</goal>
> </goals>
> <phase>validate</phase>
> </execution>
> </executions>
> <configuration>
> <excludes>**/pom.xml</excludes>
> <skip>${skip.local-modification.check}</skip>
> </configuration>
> </plugin>
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)