猿问

运行jetty失败的问题?

这是我的配置

<plugins>
            <plugin>
                <!--  <groupId>org.mortbay.jetty</groupId>
                <artifactId>jetty-maven-plugin</artifactId>
                <version>8.1.16.v20140903</version>-->
                <groupId>org.apache.tomcat.maven</groupId>
                 <artifactId>tomcat7-maven-plugin</artifactId>
                 <version>2.2</version>
                <executions>
                    <execution>
                        <phase>package</phase>
                        <goals>
                            <goal>run</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>



运行jetty和tomcat时都报错,报错信息如下:

[ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run (default) on project helloworld: Execution default of goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run failed: Plugin org.apache.tomcat.maven:tomcat7-maven-plugin:2.2 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.tomcat.maven:tomcat7-maven-plugin:jar:2.2 -> org.apache.tomcat.embed:tomcat-embed-core:jar:7.0.47: Failed to read artifact descriptor for org.apache.tomcat.embed:tomcat-embed-core:jar:7.0.47: Could not transfer artifact org.apache.tomcat.embed:tomcat-embed-core:pom:7.0.47 from/to central (https://repo.maven.apache.org/maven2): RSA premaster secret error: SunTlsRsaPremasterSecret KeyGenerator not available -> [Help 1]


GENIUS_L
浏览 2411回答 1
1回答

qq_forerver_lov_0

我现在也遇到这个错误,你解决了么???解决了告诉我一声,怎么解决的??谢谢,
随时随地看视频慕课网APP

相关分类

Java
我要回答