這是我的配置<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]
添加回答
舉報
0/150
提交
取消