Intellij 找不到 类 而 运行 Ivy 项目
Intellij unable to find classes while running Ivy Project
我在 Intellij 中导入了一个 Ivy 项目。我正在使用 IvyIdea 插件。我也有 ivy-settings.xml 到位。我能够成功地构建项目。当我在码头服务器上部署我的应用程序时,出现此错误。基本上它无法找到我所有的库。
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
我想,这意味着我的库不在类路径中,我在 "Project Structure" -> Dependencies -> IvyIdea 中确认,我可以在那里看到所有的 jar。
我在这里错过了什么?
对于 Maven 项目,依赖项是自动生成的,而对于手动创建的项目或使用 IvyIDEA 插件提供的依赖项,您必须 configure the artifacts manually and ensure that all the required dependencies are added to the artifact 部署在服务器上。
我在 Intellij 中导入了一个 Ivy 项目。我正在使用 IvyIdea 插件。我也有 ivy-settings.xml 到位。我能够成功地构建项目。当我在码头服务器上部署我的应用程序时,出现此错误。基本上它无法找到我所有的库。
java.lang.ClassNotFoundException: org.springframework.web.context.ContextLoaderListener
我想,这意味着我的库不在类路径中,我在 "Project Structure" -> Dependencies -> IvyIdea 中确认,我可以在那里看到所有的 jar。
我在这里错过了什么?
对于 Maven 项目,依赖项是自动生成的,而对于手动创建的项目或使用 IvyIDEA 插件提供的依赖项,您必须 configure the artifacts manually and ensure that all the required dependencies are added to the artifact 部署在服务器上。