Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven 服务器启动期间Wildfly运行超时_Maven_Maven 3_Wildfly_Maven Plugin_Wildfly 10 - Fatal编程技术网

Maven 服务器启动期间Wildfly运行超时

Maven 服务器启动期间Wildfly运行超时,maven,maven-3,wildfly,maven-plugin,wildfly-10,Maven,Maven 3,Wildfly,Maven Plugin,Wildfly 10,以下是我在maven中使用测试集成时使用的配置: [...] <plugin> <groupId>org.wildfly.plugins</groupId> <artifactId>wildfly-maven-plugin</artifactId> <version>1.2.0.Final</version>

以下是我在maven中使用测试集成时使用的配置:

        [...]
        <plugin>
            <groupId>org.wildfly.plugins</groupId>
            <artifactId>wildfly-maven-plugin</artifactId>
            <version>1.2.0.Final</version>

            <configuration>
                <jboss-home>${wildfly.home}</jboss-home>
                <modules-path>${wildfly.home}/modules</modules-path>
                <hostname>localhost</hostname>
                <username>XXX</username>
                <password>XXX</password>
                <serverArgs>
                    <serverArg>-b=0.0.0.0</serverArg>
                    <serverArg>-bmanagement=0.0.0.0</serverArg>
                </serverArgs>
                <env>
                    <jboss.server.base.dir>${wildfly.home}/standalone</jboss.server.base.dir>
                    <jboss.host.name>localhost</jboss.host.name>
                    <!--<jboss.socket.binding.port-offset>${wildfly.portoffset}</jboss.socket.binding.port-offset>-->
                </env>
                <javaOpts>
                    <javaOpt>-server</javaOpt>
                    <javaOpt>-Xms8192m</javaOpt>
                    <javaOpt>-Xmx8192m</javaOpt>
                </javaOpts>
                <serverConfig>standalone-full.xml</serverConfig>
                <startupTimeout>480</startupTimeout>
                <timeout>480</timeout>
            </configuration>

            <executions>
                <execution>
                    <id>wildfly-run</id>
                    <phase>pre-integration-test</phase>
                    <goals>
                        <goal>start</goal>
                        <goal>deploy</goal>
                    </goals>
                    <configuration>
                        <name>${app.name}</name>
                    </configuration>
                </execution>
                <execution>
                    <id>wildfly-stop</id>
                    <phase>post-integration-test</phase>
                    <goals>
                        <goal>undeploy</goal>
                        <goal>shutdown</goal>
                    </goals>
                    <configuration>
                        <name>${app.name}</name>
                    </configuration>
                </execution>
            </executions>
        </plugin>
        [...]
我错过了什么吗

war被部署,java参数被传递,服务器参数也被传递

好吧,一切都在运作,狂野地说战争已经部署完毕

唯一可疑的是:

WFLYCTL0186:   Services which failed to start:      service jboss.patching.manager: org.jboss.msc.service.StartException in service jboss.patching.manager: java.lang.IllegalStateException: Duplicate layer 'base'

你很久以前就问过这个问题了,但我会把我的答案贴出来供以后搜索。 您可能会更改配置文件中的管理端口,并且必须在wildfly maven插件的配置部分中设置该端口。例如:

<plugin>
 <groupId>org.wildfly.plugins</groupId>
 <artifactId>wildfly-maven-plugin</artifactId>
 <configuration>
    <port>7770</port>
</configuration>

org.wildfly.plugins
wildfly maven插件
7770

故障后是否有任何消息?比如,可能是关于无法连接。是的,有一个无法连接,但我不知道如何调试它。考虑到我确实连接到服务器(管理和部署),这很奇怪。用户名和密码可能不是必需的。你试过把那些评论出来吗?
<plugin>
 <groupId>org.wildfly.plugins</groupId>
 <artifactId>wildfly-maven-plugin</artifactId>
 <configuration>
    <port>7770</port>
</configuration>