我无法使用maven plugin for TomEE documented here的自动重装功能。我使用命令mvn clean install package tomee:run启动,并在一些代码更改后,在项目文件夹的另一个终端中使用mvn compile触发自动重装,异常为“无法查找部署者”。接下来是pom和stacktrace:
<groupId>codes.username</groupId>
<artifactId>algorithms</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>war</packaging>
<name>algorithms</name>
<properties>
<maven.compiler.release>17</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<failOnMissingWebXml>false</failOnMissingWebXml>
</properties>
<dependencies>
<dependency>
<groupId>jakarta.platform</groupId>
<artifactId>jakarta.jakartaee-api</artifactId>
<version>9.1.0</version>
<scope>provided</scope>
</dependency>
</dependencies>
<build>
<finalName>algorithms</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>3.3.2</version>
</plugin>
<plugin>
<groupId>org.apache.tomee.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>9.0.0</version>
<configuration>
<deployOpenEjbApplication>true</deployOpenEjbApplication>
<tomeeVersion>9.0.0</tomeeVersion>
<tomeeClassifier>plume</tomeeClassifier>
<synchronization>
<extensions>
<extension>.class
</extension>
</extensions>
</synchronization>
<reloadOnUpdate>true</reloadOnUpdate>
</configuration>
</plugin>
</plugins>
</build>
个字符
我尝试添加真正的一行,使用Java 11而不是17。当我在TomEE的活动终端上尝试命令“reload”时,我得到了类似的错误:
Can't lookup Deployer: Cannot lookup '/openejb/DeployerBusinessRemote'. Cannot read the response from the server (OEJP/4.6) : Prematurely reached the end of the stream. OEJP/4.6 :
Unable to read protocol version. Reached the end of the stream.
型
1条答案
按热度按时间7d7tgy0s1#
请点击下面的链接,谢谢。
https://vaadin.com/docs/v14/flow/configuration/live-reload/cdi
字符串