EDIT5更新/
我正在使用Maven 3.3.3.
我只是创建新项目并添加了编译和执行插件,作为Web上的示例.
我试图执行,但是我收到了错误
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project QNAProject: An exception occured while executing the Java class. com.jadex.qna.QNAProject.App -> [Help 1]<br>
[ERROR] <br>
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.<br>
[ERROR] Re-run Maven using the -X switch to enable full debug logging.<br>
[ERROR] <br>
[ERROR] For more information about the errors and possible solutions, please read the following articles:<br>
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException<br>
Run Code Online (Sandbox Code Playgroud)
我试过exec-maven-plugin版本1.2.1和1.4.0,但是得到了同样的错误.这是我的pom.xml
<project …Run Code Online (Sandbox Code Playgroud) 我是 TypeScript 的新手。
我正在努力将我自己的 React.js 项目迁移到 TypeScript 中,该项目是用 JS 编写的。
我修复了所有错误并检查了它在npm start.
但是当我尝试用 tsc 编译时,它永远不会工作,也永远不会显示任何日志。
但如你所见,tsc -v有效。
我在 VSCode 中尝试了 Ctrl+Shift+B,但它也显示了相同的结果,没有。
在我的tsconfig.json,我只是说outDir成自动生成tsconfig.json。
{
"compilerOptions": {
"target": "es5",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"allowJs": true,
"skipLibCheck": true,
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"strict": true,
"forceConsistentCasingInFileNames": true,
"module": "esnext",
"moduleResolution": "node",
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react",
"outDir": "./dist"
},
"include": [
"./src/*"
]
}
Run Code Online (Sandbox Code Playgroud)
无论如何我可以修复它吗?
提前致谢。