Java 找不到application.xml中定义的子模块[xxx.jar]

Java 找不到application.xml中定义的子模块[xxx.jar],java,maven,deployment,Java,Maven,Deployment,我的Intellij中有一个在Glassfish上运行的项目,它当前运行的是Application.xml中的版本9.5.0 当我将项目更改为9.7.0时,我可以无错误地重建项目,但当我尝试运行它时,它会抛出以下内容: Exception while deploying the app [Application-9.7.0] : Could not find sub module [Panton9-ejb-9.5.0.jar] as defined in application.xml]] 我

我的Intellij中有一个在Glassfish上运行的项目,它当前运行的是Application.xml中的版本
9.5.0

当我将项目更改为
9.7.0
时,我可以无错误地重建项目,但当我尝试运行它时,它会抛出以下内容:

Exception while deploying the app [Application-9.7.0] : Could not find sub module [Panton9-ejb-9.5.0.jar] as defined in application.xml]]
我将每个模块的pom.xml更改为9.7.0,它们没有显示任何错误,只是针对这个特定的子模块。我不知道我做错了什么,因为我仔细检查了版本,它都设置为9.7.0

这是my application.xml:

 <dependencies>
        <dependency>
        <groupId>com.htasia</groupId>
        <artifactId>Panton9-ejb</artifactId>
        <version>9.7.0</version>
        <type>ejb</type>
    </dependency>
    <dependency>
        <groupId>com.htasia</groupId>
        <artifactId>Generic</artifactId>
        <version>9.7.0</version>
        <type>war</type>
    </dependency>
        <dependency>
            <groupId>com.htasia</groupId>
            <artifactId>PantonNotify</artifactId>
            <version>9.7.0</version>
            <type>ejb</type>
        </dependency>
        <dependency>
            <groupId>com.htasia</groupId>
            <artifactId>PantonMCRE</artifactId>
            <version>9.7.0</version>
            <type>ejb</type>
        </dependency>
        <dependency>
            <groupId>com.htasia</groupId>
            <artifactId>PantonForm</artifactId>
            <version>9.7.0</version>
            <type>ejb</type>
        </dependency>
        <dependency>
            <groupId>com.htasia</groupId>
            <artifactId>PantonWorkflow</artifactId>
            <version>9.7.0</version>
            <type>ejb</type>
        </dependency>
    </dependencies>

com.htasia
Panton9EJB
9.7.0
ejb
com.htasia
通用的
9.7.0
战争
com.htasia
潘顿通知
9.7.0
ejb
com.htasia
潘托姆克雷
9.7.0
ejb
com.htasia
PantonForm
9.7.0
ejb
com.htasia
PantonWorkflow
9.7.0
ejb

如果您使用Maven构建应用程序并在IntelliJ IDEA之外手动部署,该应用程序是否有效?我还没有尝试过这一点,但我知道我的glassfish服务器不会出现问题,因为它适用于我的旧版本(9.5.0),但不适用于此新版本。这里我肯定遗漏了什么。这将有助于缩小问题范围,以确定问题是与Maven项目配置有关还是与IntelliJ IDEA有关。好的,我需要在IDE之外部署,对吗?是的,从Maven构建/部署,并查看结果是否相同。