You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "TeslaCN (via GitHub)" <gi...@apache.org> on 2023/04/17 06:51:12 UTC

[GitHub] [shardingsphere] TeslaCN opened a new issue, #25190: Build failed with error Could not find resource 'src/resources/spotless/java.xml' if working dir is not root of ShardingSphere

TeslaCN opened a new issue, #25190:
URL: https://github.com/apache/shardingsphere/issues/25190

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   
   master - e4d0557d5039dc1dce2c8d8c8fe9eb06b85aa1ac
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   Failed:
   ```bash
   % pwd
   /home/wuweijie/projects/shardingsphere/sql-parser/dialect/mysql
   
   % mvn clean install -q -DskipTests
   ```
   
   This worked:
   ```bash
   % pwd
   /home/wuweijie/projects/shardingsphere
   
   % mvn clean install -f sql-parser/dialect/mysql/pom.xml -q -DskipTests
   ```
   
   ### Expected behavior
   
   Build specific modules successfully.
   
   ### Actual behavior
   
   ```
   % pwd
   /home/wuweijie/projects/shardingsphere/sql-parser/dialect/mysql
   % mvn clean install -q -DskipTests
   Running `/home/wuweijie/projects/shardingsphere/mvnw`...
   [ERROR] Failed to execute goal com.diffplug.spotless:spotless-maven-plugin:2.22.1:apply (default) on project shardingsphere-sql-parser-mysql: Execution default of goal com.diffplug.spotless:spotless-maven-plugin:2.22.1:apply failed: Unable to locate file with path: src/resources/spotless/java.xml: Could not find resource 'src/resources/spotless/java.xml'. -> [Help 1]
   [ERROR] 
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR] 
   [ERROR] For more information about the errors and possible solutions, please read the following articles:
   [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
   
   ```
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] wuxihao01 commented on issue #25190: Build failed with error Could not find resource 'src/resources/spotless/java.xml' if working dir is not root of ShardingSphere

Posted by "wuxihao01 (via GitHub)" <gi...@apache.org>.
wuxihao01 commented on issue #25190:
URL: https://github.com/apache/shardingsphere/issues/25190#issuecomment-1512795551

   Hi @TeslaCN ,pls assign to me


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] wuxihao01 commented on issue #25190: Build failed with error Could not find resource 'src/resources/spotless/java.xml' if working dir is not root of ShardingSphere

Posted by "wuxihao01 (via GitHub)" <gi...@apache.org>.
wuxihao01 commented on issue #25190:
URL: https://github.com/apache/shardingsphere/issues/25190#issuecomment-1518575457

   Hi, @TeslaCN , I try to fix `pom.xml,` now i am not receive error message when running the mvn clean install -q -DskipTests in the /shardingsphere/sql-parser/dialect/mysql. Does this mean that the problem has been fixed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] TeslaCN commented on issue #25190: Build failed with error Could not find resource 'src/resources/spotless/java.xml' if working dir is not root of ShardingSphere

Posted by "TeslaCN (via GitHub)" <gi...@apache.org>.
TeslaCN commented on issue #25190:
URL: https://github.com/apache/shardingsphere/issues/25190#issuecomment-1514285347

   I've double checked and found this issue is related to https://github.com/apache/shardingsphere/pull/24927
   
   Maybe `${maven.multiModuleProjectDirectory}` could solve this issue.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] TeslaCN commented on issue #25190: Build failed with error Could not find resource 'src/resources/spotless/java.xml' if working dir is not root of ShardingSphere

Posted by "TeslaCN (via GitHub)" <gi...@apache.org>.
TeslaCN commented on issue #25190:
URL: https://github.com/apache/shardingsphere/issues/25190#issuecomment-1512799400

   > Hi @TeslaCN ,pls assign to me
   
   Welcome.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] wuxihao01 commented on issue #25190: Build failed with error Could not find resource 'src/resources/spotless/java.xml' if working dir is not root of ShardingSphere

Posted by "wuxihao01 (via GitHub)" <gi...@apache.org>.
wuxihao01 commented on issue #25190:
URL: https://github.com/apache/shardingsphere/issues/25190#issuecomment-1514251842

   Hi @TeslaCN ,I'm a newcomer for shardingsphere, and I'm interested in this problem.  How can I start about this problem?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] wuxihao01 commented on issue #25190: Build failed with error Could not find resource 'src/resources/spotless/java.xml' if working dir is not root of ShardingSphere

Posted by "wuxihao01 (via GitHub)" <gi...@apache.org>.
wuxihao01 commented on issue #25190:
URL: https://github.com/apache/shardingsphere/issues/25190#issuecomment-1518592904

   > > Hi, @TeslaCN , I try to fix `pom.xml`, now i am not receive error message when running the `mvn clean install -q -DskipTests` in the `/shardingsphere/sql-parser/dialect/mysql.` Does this mean that the problem has been fixed
   > > <img alt="c00d5d36e882be5fe45adc0743ec4c2" width="510" src="https://user-images.githubusercontent.com/43370512/233775568-ce76acfa-2d94-4a13-8738-e30959eff7c6.png">
   > 
   > Yes. Please submit a PR.
   
   Thank for your help, i have submit the PR. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] wuxihao01 commented on issue #25190: Build failed with error Could not find resource 'src/resources/spotless/java.xml' if working dir is not root of ShardingSphere

Posted by "wuxihao01 (via GitHub)" <gi...@apache.org>.
wuxihao01 commented on issue #25190:
URL: https://github.com/apache/shardingsphere/issues/25190#issuecomment-1518574889

   Hi, @TeslaCN , I try to fix the bug, now i am not receive error message when running the `mvn clean install -q -DskipTests`  in the  `/shardingsphere/sql-parser/dialect/mysql`.  Does this mean that the problem has been fixed


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] terrymanu closed issue #25190: Build failed with error Could not find resource 'src/resources/spotless/java.xml' if working dir is not root of ShardingSphere

Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu closed issue #25190: Build failed with error Could not find resource 'src/resources/spotless/java.xml' if working dir is not root of ShardingSphere
URL: https://github.com/apache/shardingsphere/issues/25190


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] TeslaCN commented on issue #25190: Build failed with error Could not find resource 'src/resources/spotless/java.xml' if working dir is not root of ShardingSphere

Posted by "TeslaCN (via GitHub)" <gi...@apache.org>.
TeslaCN commented on issue #25190:
URL: https://github.com/apache/shardingsphere/issues/25190#issuecomment-1518590800

   > Hi, @TeslaCN , I try to fix `pom.xml`, now i am not receive error message when running the `mvn clean install -q -DskipTests` in the `/shardingsphere/sql-parser/dialect/mysql.` Does this mean that the problem has been fixed
   > <img width="510" alt="c00d5d36e882be5fe45adc0743ec4c2" src="https://user-images.githubusercontent.com/43370512/233775568-ce76acfa-2d94-4a13-8738-e30959eff7c6.png">
   > 
   
   Yes. Please submit a PR.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] wuxihao01 commented on issue #25190: Build failed with error Could not find resource 'src/resources/spotless/java.xml' if working dir is not root of ShardingSphere

Posted by "wuxihao01 (via GitHub)" <gi...@apache.org>.
wuxihao01 commented on issue #25190:
URL: https://github.com/apache/shardingsphere/issues/25190#issuecomment-1518576725

   Hi, @TeslaCN , I try to fix `pom.xml`, now i am not receive error message when running the `mvn clean install -q -DskipTests` in the `/shardingsphere/sql-parser/dialect/mysql.` Does this mean that the problem has been fixed
   <img width="510" alt="c00d5d36e882be5fe45adc0743ec4c2" src="https://user-images.githubusercontent.com/43370512/233775568-ce76acfa-2d94-4a13-8738-e30959eff7c6.png">
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [shardingsphere] wuxihao01 commented on issue #25190: Build failed with error Could not find resource 'src/resources/spotless/java.xml' if working dir is not root of ShardingSphere

Posted by "wuxihao01 (via GitHub)" <gi...@apache.org>.
wuxihao01 commented on issue #25190:
URL: https://github.com/apache/shardingsphere/issues/25190#issuecomment-1514324587

   Thanks for your advice, I am trying to fix it now


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org