Problem description
Error running ' mvn install:install-file -DgroupId=xxx.xxx.xxx -DartifactId=myArtifactId -Dversion=0.7.0 -Dpackaging=jar -Dfile=E:\myProject.jar ': Cannot run program "mvn" (in directory "E:\javawarkspace\webhisprotal\ips-portal-admin\hsa-ips-admin-biz\src\main\java\cn\hsa\ips\admin"): CreateProcess error=2, The system cannot find the specified file
. However, it can be executed normally in the command line window.
Problem solving
When using the idea command, the prefix cannot have extra spaces. Note the beginning of the command: 'MVN install: install file...
, there is a space here. Cause program exception.
Read More:
- Phpstrom reported an error when using SVN: CreateProcess error = 2, the system could not find a solution for the specified file
- Perfect solution for IntelliJ idea error “CreateProcess error = 2, system cannot find the specified file”
- The file is generated, but an error is still reported. Error: CreateProcess failed
- When python installs pocketsphinx module (package), an error is reported: command ‘swig.exe’ failed: No such file or directory
- When the spring MVC project is running on idea, an error is reported when the controller is a null pointer
- [screen recording] an error is reported in the screenrecord command: inaccessible or not found
- Hololens2 reported an error. Microsoft.windows.system is missing
- net start mysql System error 2 has occurred. The system cannot find the file specified.
- [error handling] when logging into MySQL with CentOS command, an error 1045 (28000) is reported
- When installing pyaudio, an error is reported: failed error: portaudio. H: there is no such file or directory
- An error is reported in the idea editor missing return statement
- When centos7 uses the man search command, an error is reported no manual entry for XXXX
- Idea always reports errors when using “SVN” to associate projects Error:Cannot run Program “SVN” (in directory “path XXXXXX”): CreateProcess error = 2,
- An error is reported when uploading a file using commonsmultipartfile
- An error is reported when the less file is introduced into main.js
- Mac idea springboot project reported an error
- The list command in HBase shell reported an error org.apache.hadoop . hbase.PleaseHoldException : Master is initializing
- Syntax error: typeerror: this.getoptions is not a function an error is reported when the. SCSS file is imported globally
- An error is reported when the file in hive parquet format is written in the Flink connection
- When using idea to start a project, an error is reported: Error:java : Compilation failed: internal java compiler error