简介:idea中maven打包工具类 repackage failed: Unable to find main class 今天遇到一个着实让人蛋疼的问题,repackage failed: Unable to find main class 查看次维护项目是一个多模块依赖的项目,通用工具类打包的时候上面的错误,耽误了我十几分钟,后来忽然想到,工具包打包的时候不应该有maven的依赖,去掉pom文件中的...
进入生成的jar目录中...maven通过命令行为SpringBoot项目打包一、maven通过命令行打jar包 进入项目目录,执行如下命令: 发现报如下错误: [ERROR]Failedtoexecute goal mvn install 报错Unable to find main class :spring-boot-maven-plugin:2.2.6.RELEASE:repackagefailed:Unabletofindmainclass简单install一个自定义的工...
一、创建maven项目 File -> New Module,进入创建项目窗口 点击Next,填写GroupId、ArtifactId和Version 接着下一步,这里需要注在Properties中添加一个参数 archetypeCatalog=internal,不加这个参数,在maven生成骨架的时候将会非常慢,有时候直接卡住。来自网上的解释: archetypeCatalog表示插件使用的archetype元数据,不加这个...
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-plugin-plugin:3.2:descriptor (default-descriptor) on project pojo: Execution default-descriptor of goal org.apache.maven.plugins:maven-plugin-plugin:3.2:descriptor failed:10024-> [Help1] [ERROR] [ERROR] To see the full stack trace ...
Maven所提倡的目录结构当前已经成为事实上的行业标准,Gradle在默认情况下也采用了Maven的目录结构,这对于多数项目来说已经足够了。此外,除了Java代码,项目中还存在其他类型的文件,比如Gradle插件的配置、工具脚本和部署配置等。无论如何,项目目录结构的原则是简单而有条理,不要随意地增加多余的文件夹,并且也需要及时重构...
Alternatively, we can ask Maven to add this line of code into theMANIFEST.MFfile with the following code inpom.xml: In yourPOMspecify theManifest fileinformation, so you can use Maven to generate an executablejarfile. Alternatively, you can executepackageinstead of theinstallcommand to achieve ...
有时候,明明pom.xml里添加了外部架包,代码里也能正常运行,查是源码里就是提示报错,说类不存在,刷新这里就好了,maven更新不及时的原因: 外部架包jar里用到了一个Service, 但是本部项目却识别不了它,说bean不存在。 解决办法1:File -> Project Structure -> 左边菜单找到Facets -> 中间菜单选中 Spring(xxx) ...
步骤一:使用IDEA创建maven工程 创建函数工程 配置IDEA,创建maven工程,如图1所示。 图1 创建工程 添加工程依赖 根据Java SDK下载提供的SDK地址,下载JavaRuntime SDK到本地开发环境解压,如图2所示。 图2 下载SDK解压 将zip中的Runtime-2.0.5.jar拷贝到本地目录,例如d:\\runtime中,在命令行窗口执行如下命令...
Shadow: 1.2.4 Gradle: 2.5 From what I understand compile project(path: ':common', configuration: 'shadow') should result in the shaded artifact being selected as a dependency. This appears to work, however, IntelliJ IDEA will not resolve...
IDEA创建Maven项目报错Unable to import Maven project 报错:Caused by:java.rmi.RemoteException:Cannot start maven service;nested exception is:com.itellij.execution.ExecutionException: 刚创建好项目就报这个错我也是很懵。 然后查看错误信息。打开Help–>show log in explorer–&g... ...