java项目怎么部署到生产环境,Java Project项目(带main方法),而不是Web项目

java项目怎么部署到生产环境,请注意是Java Project项目(带main方法的),而不是Web项目
之前学习的时候,只学习了java普通项目的写和在eclipse下运行(找到带main方法的类,直接右键 run as -- Java Application),但没教怎么部署,很蛋疼.在网上搜索了下,但没部署成功--链接:https://blog.csdn.net/acat95/article/details/60766748 这就很气了
javaweb项目(B/S,带jsp页面的SSM或者SSH等项目)当时也是没教怎么部署,但后来到了公司,知道了直接把eclipse的运行环境下的已经编译好的项目整个copy到服务器,或者打成war包,直接上传到服务器,就行了
来个前辈,指点下,在自己电脑上运行java普通项目(非eclipse等IDE工具下)和部署到linux服务器

10个回答

打jar包就可以了 推荐工具eclipse插件:fatjar打包
fatjar打包项目参考:https://blog.csdn.net/qq473179304/article/details/70208038
linux执行jar文件参考:https://blog.csdn.net/qq_30739519/article/details/51115075

java项目从创建到运行/部署,无论是否使用IDE,关键都是以下几点:
1. 编写源码,此过程无特别要求。IDE仅仅只是提供代码补全等辅助功能;
2. 编译源码,此过程要求必须有javac程序,IDE只是简化了编译过程,实际操作依然是调用javac将源码.java编译成字节码.class;
3. 运行程序,此过程要求必须有java程序,IDE只是简化了运行操作,实际操作依然是调用java执行字节码.class,字节码可源于.jar,或.class;
4. 打包程序,此过程要求必须有jar程序,IDE只是简化了打包过程,实际操作依然是调用jar将.class以及其他相关文件打进压缩包.jar;

需要注意的是:

  • 打包过程对于程序的运行是没有任何影响的,java执行时可以直接读取.class,也可识别.jar;
  • 打包的目的一般是为了缩小体积,发布方便

针对你的问题:
1. 运行, 调用java程序并制定相应参数即可,详细内容java --help查看
2. 部署,将所有内容打包传送到服务器即可

部署项目通常都是将项目打成war包,打成war包我们通常的手段是通过Maven,在你install你的maven项目后会产生一个target文件夹,里面就有 [项目名].war,将这个项目拷贝至你的本地tomcat的webapp下,解压缩,启动tomcat,就算部署完成了。上服务器一样的,将war包传至你的服务器里面的tomcat下,一样的解压缩成项目名,启动tomcat就OK了。

SinY_Chan
Colder丶 回复qq_27130997: install和package是有区别的,install同样会更新项目成war包。
一年多之前 回复
qq_27130997
安小然然 打包命令是 mvn clean package ; mvn clean install 将你的工程安装到本地仓库
一年多之前 回复

首先
你的项目是maven项目还是普通项目

 普通项目你可以用一些优秀的第三方工具进行打包,上面也有码友帮忙解释了

 我在这里说明maven项目从打包到部署的过程

 1 很多程序猿,直接使用IDE的打包方式,本人不建议使用。

 2 maven作为一个快速构建工具,提供了一套完成的构建流程。

 3 windows系统下进入工程目录,唤起dos窗口,在窗口上输入 mvn clean package . 执行此命令后。target目录下你会得到一个jar文件

 4 将此jar文件上传至服务器。

 5 进入你的jar文件所属位置

 6  利用JDK提供的 java -jar    具体语法为  java -jar 加上你jar包的名字
shimily1227
shimily1227 正常编译过后会生成class文件,在web路径下,拷出来然后放到服务器上运行
一年多之前 回复
qq_30791769
我在学习java 回复qq_27130997:不适合我的情况,或许以后有人百度到这的时候,会给别人帮助吧
一年多之前 回复
qq_30791769
我在学习java 回复qq_27130997: 好吧,没用过IDEA,我不说其它了,还是谢谢!多谢!
一年多之前 回复
qq_27130997
安小然然 回复qq_30791769: eclipse不等同于Java体系 你说的Java Project 是eclipse创建项目时候的叫法。如果你用过IDEA以后就明白了
一年多之前 回复
qq_27130997
安小然然 你当我没说。没办法给你解释
一年多之前 回复
qq_27130997
安小然然 回复qq_30791769: 下面图片 我刚做一个demo,你这 让我对你没办法解释
一年多之前 回复
qq_27130997
安小然然 回复qq_30791769: Java Project项目 不会是maven进行构建的
一年多之前 回复
qq_30791769
我在学习java 会看题不
一年多之前 回复

图片说明

第一、部署web项目,我目前知道的两种方式。1.把你的项目打包成war包,放到tomcat的webapp目录下,启动tomcat。网页访问地址要加上你的项目名(webapp下面war包解压出的名字,或者可以配置下tomcat的配置文件)
第二、直接把编译文件和配置文件一起拷贝到webapp下的面。

看你图片打包成的是jar包,如果是想运行jar包服务,直接用命令启动 java -jar XXX.jar,运行起jar包服务,但是这样的服务目前我只用到关于内服服务的调用
(dubbo内部服务的调用)

可能是srpingboot

如果只是普通工程项目直接在eclipse导出jar,File->Export->选择java下的jar图片说明
->下一步,选择你的项目和导出位置图片说明-->下一步,默认->选择项目用到的MANIFEST.MF图片说明点击finish,完成!
将打包好的jar放到服务器,使用命令 java -jar ###.jar方式运行

1、将java项目导出*.jar包,(跟导出war包的方式一样);
2、然后将*.jar包放到服务器某一个目录下;
3、在命令行中,用cd命令进入*.jar包放置的目录,并运行java -jar *.jar命令即可。(windows和linux操作步骤是一样的)。

打成jar包,用jdk自带的命令启动,就可以运行了

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
java web项目如何调用.so文件?
我这里有一个libhf_test.so文件,开始是放在android project里边的,调用什么的都没有问题。 现在新加了一个需求:把这个libhf_test.so文件放到web project项目中 然后我就写了个小小的测试类 ``` public class AppUtil{ static{ System.loadLibrary("hf_test"); } //so文件中的native方法 public native static String getNString(String paramsString); public static void main(String[] args) { System.out.println("load:"+getNString("020#2#B621#merexpand")); } } ``` 然后运行报错了 java.lang.UnsatisfiedLinkError: no hfswpay in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1709) at java.lang.Runtime.loadLibrary0(Runtime.java:823) at java.lang.System.loadLibrary(System.java:1030) at com.umpay.huafubao.util.AppUtil.<clinit>(AppUtil.java:8) Exception in thread "main" 百度了好多解决办法,有把so文件放到java.library.path各个路径中的,有用System.load("路径/libhf_test.so")的,都不行啊 System.load("路径/libhf_test.so")会报文件类型的错,好像只能加载.dll文件 然而我就只想用System.loadLibrary()这个方法了, adnroid工程可以直接调用是因为,它本身已经做好了配置 我想web工程也需要做一些ndk的配置才能使用吧? 希望大家能指点一二 另外:还有说要用到.h头文件的,我的开发工具myeclipse,用Java,不是vs
eclipse ee 运行Dynamic Web Project出现Select Java Application窗口
代码: /Sparrow/src/com/sparrow/dao/ResourceDao.java ``` package com.sparrow.test; import com.sparrow.dao.ResourceDao; import com.sparrow.daoImpl.ResourceDaoImpl; import com.sparrow.vo.Resource; public class ResourceTest1 { static ResourceDao rd =new ResourceDaoImpl(); //增加方法 public static void add(){ Resource rd = new Resource(); rd.setResourceName("mybatis"); rd.setResourceDescrtption("mybatis"); rd.setResourceType("视频"); ((ResourceDao) rd).addResource(rd); } //修改方法 public static void update() { Resource rd = new Resource(); rd.setResourceNo(2); rd.setResourceName("mybatis1"); rd.setResourceDescrtption("mybatis2"); ((ResourceDao) rd).updateResource(rd); } //删除方法 public static void delete() { rd.deleteResource(1); } //全查询 public static void selectAll(){ rd.selectAll(); } //指定方法 public static void selectById(){ rd.selectByResourceNo(1); } public static void main(String[] args) { // TODO Auto-generated method stub add(); delete(); update(); selectAll(); selectById(); } } ``` /Sparrow/src/com/sparrow/daoImpl/ResourceDaoImpl.java ``` package com.sparrow.daoImpl; import java.io.IOException; import java.io.Reader; import java.util.List; import org.apache.ibatis.io.Resources; import org.apache.ibatis.session.SqlSession; import org.apache.ibatis.session.SqlSessionFactory; import org.apache.ibatis.session.SqlSessionFactoryBuilder; import com.sparrow.dao.ResourceDao; import com.sparrow.vo.Resource; public class ResourceDaoImpl implements ResourceDao { //读取配置文件(连接数据库) static SqlSessionFactory sf=null; static{ try { Reader reader=Resources.getResourceAsReader("mybatis.xml"); sf=new SqlSessionFactoryBuilder().build(reader); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } //增加 @Override public int addResource(Resource t) { // TODO Auto-generated method stub SqlSession ss =sf.openSession() ; int i=ss.insert("Resource.add",t); ss.commit(); ss.close(); return i; } //删除 @Override public void deleteResource(int resourceNo) { // TODO Auto-generated method stub SqlSession ss =sf.openSession() ; ss.delete("Resource.delete", resourceNo); ss.commit(); ss.close(); } //修改 @Override public int updateResource(Resource t) { // TODO Auto-generated method stub SqlSession ss =sf.openSession() ; int i=ss.update("Resource.update",t); ss.commit(); ss.close(); return i; } //全查询 @Override public List<Resource> selectAll() { // TODO Auto-generated method stub SqlSession ss =sf.openSession() ; List<Resource> list = ss.selectList("Resource.selectAll"); for(Resource t:list) { System.out.println(t.getResourceNo()+"--"+t.getResourceName()+"=="+t.getCommitTime()+"--"+ t.getResourceDescrtption()+"--"+t.getResourceType()); } ss.close(); return list; } //资源编号查询 @Override public List<Resource> selectByResourceNo(int resourceNo) { // TODO Auto-generated method stub SqlSession ss =sf.openSession() ; List<Resource> list = ss.selectList("Resource.selectByResourceNo",resourceNo); for(Resource t:list) { System.out.println(t.getResourceNo()+"--"+t.getResourceName()+"=="+t.getCommitTime()+"--"+ t.getResourceDescrtption()+"--"+t.getResourceType()); } ss.close(); return list; } } ``` /Sparrow/src/com/sparrow/test/ResourceTest1.java ``` package com.sparrow.test; import com.sparrow.dao.ResourceDao; import com.sparrow.daoImpl.ResourceDaoImpl; import com.sparrow.vo.Resource; public class ResourceTest1 { static ResourceDao rd =new ResourceDaoImpl(); //增加方法 public static void add(){ Resource rd = new Resource(); rd.setResourceName("mybatis"); rd.setResourceDescrtption("mybatis"); rd.setResourceType("视频"); ((ResourceDao) rd).addResource(rd); } //修改方法 public static void update() { Resource rd = new Resource(); rd.setResourceNo(2); rd.setResourceName("mybatis1"); rd.setResourceDescrtption("mybatis2"); ((ResourceDao) rd).updateResource(rd); } //删除方法 public static void delete() { rd.deleteResource(1); } //全查询 public static void selectAll(){ rd.selectAll(); } //指定方法 public static void selectById(){ rd.selectByResourceNo(1); } public static void main(String[] args) { // TODO Auto-generated method stub // add(); // delete(); // update(); selectAll(); // selectById(); } } ```
关于java package的疑惑
``` //package com.antiy; abstract class animal { public abstract void eat(); public abstract void run(); } class human extends animal { human(){} public void eat(){ System.out.println("Human eat"); } public void run(){ System.out.println("Human run"); } } public class Hello { public static void main(String[] args){ System.out.println("Hello"); human o1 = new human(); Hello.do_eat(o1); } static void do_eat(animal o){ o.eat(); } } ``` 在Hello.java中包含如上代码,编译和运行都正常: ``` wangbo@wangbodeMBP:/tmp/java_project$ cat Hello.java //package com.antiy; abstract class animal { public abstract void eat(); public abstract void run(); } class human extends animal { human(){} public void eat(){ System.out.println("Human eat"); } public void run(){ System.out.println("Human run"); } } public class Hello { public static void main(String[] args){ System.out.println("Hello"); human o1 = new human(); Hello.do_eat(o1); } static void do_eat(animal o){ o.eat(); } } wangbo@wangbodeMBP:/tmp/java_project$ javac Hello.java wangbo@wangbodeMBP:/tmp/java_project$ java Hello Hello Human eat ``` 如果把package放开,编译没有问题,运行会提示human类找不到: ``` wangbo@wangbodeMBP:/tmp/java_project$ cat Hello.java package com.antiy; abstract class animal { public abstract void eat(); public abstract void run(); } class human extends animal { human(){} public void eat(){ System.out.println("Human eat"); } public void run(){ System.out.println("Human run"); } } public class Hello { public static void main(String[] args){ System.out.println("Hello"); human o1 = new human(); Hello.do_eat(o1); } static void do_eat(animal o){ o.eat(); } } wangbo@wangbodeMBP:/tmp/java_project$ javac Hello.java wangbo@wangbodeMBP:/tmp/java_project$ cp Hello.class com/antiy/ wangbo@wangbodeMBP:/tmp/java_project$ java com/antiy/Hello 错误: 无法初始化主类 com.antiy.Hello 原因: java.lang.NoClassDefFoundError: com/antiy/animal ``` 如果把package放开,把human相关的代码注释掉也可以正常运行: ``` wangbo@wangbodeMBP:/tmp/java_project$ cat Hello.java package com.antiy; abstract class animal { public abstract void eat(); public abstract void run(); } class human extends animal { human(){} public void eat(){ System.out.println("Human eat"); } public void run(){ System.out.println("Human run"); } } public class Hello { public static void main(String[] args){ System.out.println("Hello"); //human o1 = new human(); //Hello.do_eat(o1); } static void do_eat(animal o){ o.eat(); } } wangbo@wangbodeMBP:/tmp/java_project$ javac Hello.java wangbo@wangbodeMBP:/tmp/java_project$ cp Hello.class com/antiy/ wangbo@wangbodeMBP:/tmp/java_project$ java com/antiy/Hello Hello ``` 我知道优雅的java工程不会把两个类放在一个java文件中,但是两个类放在一个java文件系统也可以支持 我的疑惑是如上代码,如果放开package为什么runtime会提示human类找不到 ?
从myeclipse导入eclipse,不能识别为web项目(java项目转为web项目)
1、进入项目目录,找到.project文件,打开。 2、找到<natures>...</natures>代码段。 3、在第2步的代码段中加入如下标签内容并保存: <nature>org.eclipse.jem.workbench.JavaEMFNature</nature> <nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature> <nature>org.eclipse.wst.common.project.facet.core.nature</nature> <nature>org.eclipse.jdt.core.javanature</nature> <nature>org.eclipse.wst.jsdt.core.jsNature</nature> 4、删除.setting下的文件,从其它EclipseJee web项目[记住为了保险起见,一定要用eclipse新建一个]的.setting文件下拷贝以下文件[其实就是把整个文件夹都拷过来] .jsdtscope org.eclipse.jst.common.project.facet.core.prefs org.eclipse.wst.common.component org.eclipse.wst.common.project.facet.core.xml org.eclipse.wst.jsdt.ui.superType.Container org.eclipse.wst.jsdt.ui.superType.name 修改org.eclipse.wst.common.component中项目名称相关的内容 比如下面的jngl_mysql换成你的项目名称。 然后wb-resource就是你的资源文件,默认是src一个。如果你是用maven可能是src/Java/main,src/java/resource这些玩意。记得加上。 [html] view plain copy print? <?xml version="1.0" encoding="UTF-8"?> <project-modules id="moduleCoreId" project-version="1.5.0"> <wb-module deploy-name="jngl_mysql"> <wb-resource deploy-path="/" source-path="/WebRoot" tag="defaultRootSource"/> <wb-resource deploy-path="/WEB-INF/classes" source-path="/src"/> <property name="context-root" value="jngl_mysql"/> <property name="java-output-path" value="/jngl_mysql/WEB-INF/classes"/> </wb-module> </project-modules> 然后是.jsdtscope文件,这个里面记得改你的输出路径。 [html] view plain copy print? <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" path="WebRoot"/> <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/> <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.WebProject"> <attributes> <attribute name="hide" value="true"/> </attributes> </classpathentry> <classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/> <classpathentry kind="output" path=""/> </classpath>
运行报错,大佬们帮忙看看什么原因java.util.concurrent.ExecutionException
"C:\Program Files\Java\jdk1.8.0_201\bin\java" "-Dmaven.multiModuleProjectDirectory=C:\Users\Administrator\Desktop\travel - 副本" -Dfile.encoding=gb2312 "-Dmaven.home=C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\plugins\maven\lib\maven3\bin\m2.conf" "-javaagent:C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\lib\idea_rt.jar=51249:C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\bin" -classpath "C:\Program Files\JetBrains\IntelliJ IDEA 2017.2.6\plugins\maven\lib\maven3\boot\plexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2017.2.6 tomcat7:run [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for cn.itcast:travel:war:1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 131, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building travel 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> tomcat7-maven-plugin:2.1:run (default-cli) > process-classes @ travel >>> [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ travel --- [WARNING] Using platform encoding (gb2312 actually) to copy filtered resources, i.e. build is platform dependent! [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ travel --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 40 source files to C:\Users\Administrator\Desktop\travel - 副本\target\classes [WARNING] /C:/Users/Administrator/Desktop/travel - 副本/src/main/java/cn/itcast/travel/dao/impl/FindDaoImpl.java: 某些输入文件使用了未经检查或不安全的操作。 [WARNING] /C:/Users/Administrator/Desktop/travel - 副本/src/main/java/cn/itcast/travel/dao/impl/FindDaoImpl.java: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。 [INFO] [INFO] <<< tomcat7-maven-plugin:2.1:run (default-cli) < process-classes @ travel <<< [INFO] [INFO] --- tomcat7-maven-plugin:2.1:run (default-cli) @ travel --- [INFO] Running war on http://localhost:80/travel [INFO] Using existing Tomcat server configuration at C:\Users\Administrator\Desktop\travel - 副本\target\tomcat [INFO] create webapp with contextPath: /travel 七月 21, 2019 5:00:20 下午 org.apache.coyote.AbstractProtocol init 信息: Initializing ProtocolHandler ["http-bio-80"] 七月 21, 2019 5:00:20 下午 org.apache.catalina.core.StandardService startInternal 信息: Starting service Tomcat 七月 21, 2019 5:00:20 下午 org.apache.catalina.core.StandardEngine startInternal 信息: Starting Servlet Engine: Apache Tomcat/7.0.37 七月 21, 2019 5:00:21 下午 org.apache.catalina.core.ContainerBase startInternal 严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/travel]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].StandardContext[/travel]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) ... 6 more Caused by: java.lang.IllegalArgumentException: Invalid <url-pattern> #write/* in servlet mapping at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3223) at org.apache.catalina.core.StandardContext.addServletMapping(StandardContext.java:3198) at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1366) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1353) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5179) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 6 more 七月 21, 2019 5:00:21 下午 org.apache.catalina.core.ContainerBase startInternal 严重: A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]] at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:302) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:443) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:732) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.startup.Tomcat.start(Tomcat.java:335) at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.startContainer(AbstractRunMojo.java:1091) at org.apache.tomcat.maven.plugin.tomcat7.run.AbstractRunMojo.execute(AbstractRunMojo.java:512) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) at org.codehaus.classworlds.Launcher.main(Launcher.java:47) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost]] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1131) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:800) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) ... 6 more [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.989 s [INFO] Finished at: 2019-07-21T17:00:21+08:00 [INFO] Final Memory: 32M/279M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.tomcat.maven:tomcat7-maven-plugin:2.1:run (default-cli) on project travel: Could not start Tomcat: Failed to start component [StandardServer[-1]]: Failed to start component [StandardService[Tomcat]]: Failed to start component [StandardEngine[Tomcat]]: A child container failed during start -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException Process finished with exit code 1
项目运行出现Java heap space错误怎么解决的?
项目是导入的别人的,下面是console [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for com.zjtzsw.sjjy:ZJSX2014:war:1.0.0 [WARNING] 'build.plugins.plugin.(groupId:artifactId)' must be unique but found duplicate declaration of plugin org.apache.maven.plugins:maven-surefire-plugin @ line 112, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-compiler-plugin is missing. @ line 75, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-surefire-plugin is missing. @ line 112, column 12 [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 96, column 12 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building 就业项目 1.0.0 [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> jetty-maven-plugin:8.1.9.v20130131:run (default-cli) > test-compile @ ZJSX2014 >>> [WARNING] The POM for com.zjtzsw:sjjy:jar:api:1.0.0 is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ZJSX2014 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 653 resources [INFO] Copying 227 resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ ZJSX2014 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) @ ZJSX2014 --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /Users/mockingjay/Documents/workspace/ZJSX2014/src/test/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:testCompile (default-testCompile) @ ZJSX2014 --- [INFO] Nothing to compile - all classes are up to date [INFO] [INFO] <<< jetty-maven-plugin:8.1.9.v20130131:run (default-cli) < test-compile @ ZJSX2014 <<< [INFO] [INFO] --- jetty-maven-plugin:8.1.9.v20130131:run (default-cli) @ ZJSX2014 --- [INFO] Configuring Jetty for project: 就业项目 [INFO] webAppSourceDirectory not set. Defaulting to /Users/mockingjay/Documents/workspace/ZJSX2014/src/main/webapp [INFO] Reload Mechanic: automatic [INFO] Classes = /Users/mockingjay/Documents/workspace/ZJSX2014/target/classes [INFO] Context path = /lemis [INFO] Tmp directory = /Users/mockingjay/Documents/workspace/ZJSX2014/target/tmp [INFO] Web defaults = org/eclipse/jetty/webapp/webdefault.xml [INFO] Web overrides = none [INFO] web.xml file = file:/Users/mockingjay/Documents/workspace/ZJSX2014/src/main/webapp/WEB-INF/web.xml [INFO] Webapp directory = /Users/mockingjay/Documents/workspace/ZJSX2014/src/main/webapp [INFO] jetty-8.1.9.v20130131 [INFO] No Transaction manager found - if your webapp requires one, please configure one. [INFO] No Spring WebApplicationInitializer types detected on classpath [INFO] Initializing Spring root WebApplicationContext [INFO] Root WebApplicationContext: initialization started <org.springframework.web.context.ContextLoader.initWebApplicationContext()> (ContextLoader.java:273) [INFO] Refreshing Root WebApplicationContext: startup date [Wed Aug 15 08:40:23 CST 2018]; root of context hierarchy <org.springframework.web.context.support.XmlWebApplicationContext.prepareRefresh()> (AbstractApplicationContext.java:495) [INFO] Loading XML bean definitions from class path resource [applicationContext.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] JSR-250 'javax.annotation.ManagedBean' found and supported for component scanning <org.springframework.context.annotation.ClassPathBeanDefinitionScanner.registerDefaultFilters()> (ClassPathScanningCandidateComponentProvider.java:202) [INFO] JSR-330 'javax.inject.Named' annotation found and supported for component scanning <org.springframework.context.annotation.ClassPathBeanDefinitionScanner.registerDefaultFilters()> (ClassPathScanningCandidateComponentProvider.java:210) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-comsubsidy.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-reemployment.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-common.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-daoru.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-sysmanager.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-organization.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-payment.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-android.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-miniui.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-entrepsubsidv.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-personsubsidy.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-graduate.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-othermessage.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/migrate/applicationContext-bean-basicinfo.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/extension/spring/applicationContext-x.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading XML bean definitions from file [/Users/mockingjay/Documents/workspace/ZJSX2014/target/classes/extension/spring/applicationContext-bean-laboragency.xml] <org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions()> (XmlBeanDefinitionReader.java:315) [INFO] Loading properties file from class path resource [db.properties] <org.springframework.context.support.PropertySourcesPlaceholderConfigurer.loadProperties()> (PropertiesLoaderSupport.java:177) [INFO] JSR-330 'javax.inject.Inject' annotation found and supported for autowiring <org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.<init>()> (AutowiredAnnotationBeanPostProcessor.java:139) [INFO] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4c821f8c: defining beans [cb57Services,cc73Services,ce24Services,ce19Services,cc59Services,ce20Services,cc70Services,ce3233Services,ce27Services,cc74Services,ce23Services,ce3031Services,cb69Services,ce3738Services,cb67Services,cb60Services,cb58Services,cb65Services,cb66Services,cc72hServices,ce3435Services,ce3839Services,ce28Services,ce22Services,cc75Services,ce26Services,labpublicServices,cb68Services,cb56Services,ce21Services,ce25Services,cc72Services,cd07Services,cd06Services,cd1119Services,cd1113Services,cd1117Services,cd1114Services,aa12Services,cd1115Services,cd1111Services,cd1116Services,cd1112Services,cd1118Services,cd1302Services,cd1301Services,cd1303Services,cd1201Services,cd130403Services,cd3327Services,cd130401Services,cd130402Services,cd8004Services,cd6131Services,cd6152Services,cd6121Services,personSubsidyServices,comSubsidyServices,oftenfunServices,aa33Services,daoRuServices,sc13Services,ca11Services,sc10Services,ze12Services,sc14Services,sc03Services,sc89Services,aa10Services,sc20Services,aa01Services,sc18Services,ad13Services,sc88Services,sc01dmServices,sc02Services,sc11Services,sc06Services,sc01Services,sc05Services,sc12Services,homeInfoServices,homeServices,personalServices,pubsearchServices,miniuiServices,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,dataSource,sqlSessionFactory,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,txAdvice,allManagerMethod,allManagerMethod2,allManagerMethod3,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#2,comSubsidyMapper,aa33Mapper,oftenfunMapper,daoRuMapper,sc01Mapper,sc02Mapper,sc01dmMapper,sc03Mapper,sc06Mapper,ad13Mapper,sc05Mapper,sc88Mapper,sc89Mapper,ze12Mapper,cd1111Mapper,cd1112Mapper,cd1113Mapper,cd1114Mapper,cd1115Mapper,cd1116Mapper,cd1117Mapper,cd1118Mapper,cd1119Mapper,aa12Mapper,cd3327Mapper,cd130401Mapper,cd130402Mapper,cd130403Mapper,cd8004Mapper,homeMapper,homeinfoMapper,personalMapper,pubsearchMapper,miniuiMapper,entrepSubsidyMapper,personSubsidyMapper,cd6131Mapper,cd6121Mapper,cd6152Mapper,cd1301Mapper,cd1302Mapper,cd1303Mapper,cd1201Mapper,cb60Mapper,cb65Mapper,cb66Mapper,cb67Mapper,cb68Mapper,cb69Mapper,labpublicMapper,cb57Mapper,cb58Mapper,ce23Mapper,ce22Mapper,cb56Mapper,cc72Mapper,cc72hMapper,cc73Mapper,ce21Mapper,cc70Mapper,cc75Mapper,cc59Mapper,ce3435Mapper,cc74Mapper,ce19Mapper,ce20Mapper,ce24Mapper,ce25Mapper,aa10Mapper,aa01Mapper,sc10Mapper,sc11Mapper,sc12Mapper,sc13Mapper,sc14Mapper,sc18Mapper,sc20Mapper,ca11Mapper,ce26Mapper,ce27Mapper,ce28Mapper,ce3031Mapper,ce3233Mapper,ce3738Mapper,ce3839Mapper,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy <org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons()> (DefaultListableBeanFactory.java:557) [INFO] MLog clients using log4j logging. <com.mchange.v2.log.MLog.<clinit>()> (MLog.java:80) [INFO] Initializing c3p0-0.9.1.1 [built 15-March-2007 01:32:31; debug? true; trace: 10] <com.mchange.v2.c3p0.C3P0Registry.banner()> (C3P0Registry.java:204) [INFO] Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4c821f8c: defining beans [cb57Services,cc73Services,ce24Services,ce19Services,cc59Services,ce20Services,cc70Services,ce3233Services,ce27Services,cc74Services,ce23Services,ce3031Services,cb69Services,ce3738Services,cb67Services,cb60Services,cb58Services,cb65Services,cb66Services,cc72hServices,ce3435Services,ce3839Services,ce28Services,ce22Services,cc75Services,ce26Services,labpublicServices,cb68Services,cb56Services,ce21Services,ce25Services,cc72Services,cd07Services,cd06Services,cd1119Services,cd1113Services,cd1117Services,cd1114Services,aa12Services,cd1115Services,cd1111Services,cd1116Services,cd1112Services,cd1118Services,cd1302Services,cd1301Services,cd1303Services,cd1201Services,cd130403Services,cd3327Services,cd130401Services,cd130402Services,cd8004Services,cd6131Services,cd6152Services,cd6121Services,personSubsidyServices,comSubsidyServices,oftenfunServices,aa33Services,daoRuServices,sc13Services,ca11Services,sc10Services,ze12Services,sc14Services,sc03Services,sc89Services,aa10Services,sc20Services,aa01Services,sc18Services,ad13Services,sc88Services,sc01dmServices,sc02Services,sc11Services,sc06Services,sc01Services,sc05Services,sc12Services,homeInfoServices,homeServices,personalServices,pubsearchServices,miniuiServices,org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,dataSource,sqlSessionFactory,transactionManager,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0,org.springframework.transaction.interceptor.TransactionInterceptor#0,org.springframework.transaction.config.internalTransactionAdvisor,txAdvice,allManagerMethod,allManagerMethod2,allManagerMethod3,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#2,comSubsidyMapper,aa33Mapper,oftenfunMapper,daoRuMapper,sc01Mapper,sc02Mapper,sc01dmMapper,sc03Mapper,sc06Mapper,ad13Mapper,sc05Mapper,sc88Mapper,sc89Mapper,ze12Mapper,cd1111Mapper,cd1112Mapper,cd1113Mapper,cd1114Mapper,cd1115Mapper,cd1116Mapper,cd1117Mapper,cd1118Mapper,cd1119Mapper,aa12Mapper,cd3327Mapper,cd130401Mapper,cd130402Mapper,cd130403Mapper,cd8004Mapper,homeMapper,homeinfoMapper,personalMapper,pubsearchMapper,miniuiMapper,entrepSubsidyMapper,personSubsidyMapper,cd6131Mapper,cd6121Mapper,cd6152Mapper,cd1301Mapper,cd1302Mapper,cd1303Mapper,cd1201Mapper,cb60Mapper,cb65Mapper,cb66Mapper,cb67Mapper,cb68Mapper,cb69Mapper,labpublicMapper,cb57Mapper,cb58Mapper,ce23Mapper,ce22Mapper,cb56Mapper,cc72Mapper,cc72hMapper,cc73Mapper,ce21Mapper,cc70Mapper,cc75Mapper,cc59Mapper,ce3435Mapper,cc74Mapper,ce19Mapper,ce20Mapper,ce24Mapper,ce25Mapper,aa10Mapper,aa01Mapper,sc10Mapper,sc11Mapper,sc12Mapper,sc13Mapper,sc14Mapper,sc18Mapper,sc20Mapper,ca11Mapper,ce26Mapper,ce27Mapper,ce28Mapper,ce3031Mapper,ce3233Mapper,ce3738Mapper,ce3839Mapper,org.springframework.context.annotation.ConfigurationClassPostProcessor$ImportAwareBeanPostProcessor#0]; root of factory hierarchy <org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons()> (DefaultSingletonBeanRegistry.java:433) [WARNING] FAILED o.m.j.p.JettyWebAppContext{/lemis,[file:/Users/mockingjay/Documents/workspace/ZJSX2014/src/main/webapp/, file:/Users/mockingjay/Documents/workspace/ZJSX2014/target/ProductWebapp/]},[file:/Users/mockingjay/Documents/workspace/ZJSX2014/src/main/webapp/, file:/Users/mockingjay/Documents/workspace/ZJSX2014/target/ProductWebapp/]: java.lang.OutOfMemoryError: Java heap space java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2367) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130) at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415) at java.lang.StringBuffer.append(StringBuffer.java:237) at java.io.StringWriter.write(StringWriter.java:112) at java.io.PrintWriter.write(PrintWriter.java:456) at java.io.PrintWriter.write(PrintWriter.java:473) at java.io.PrintWriter.print(PrintWriter.java:603) at java.io.PrintWriter.println(PrintWriter.java:756) at java.lang.Throwable$WrappedPrintWriter.println(Throwable.java:764) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:697) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printStackTrace(Throwable.java:667) at java.lang.Throwable.printStackTrace(Throwable.java:721) at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:176) at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:180) at org.apache.log4j.DefaultThrowableRenderer.render(DefaultThrowableRenderer.java:60) at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:87) at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:413) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:313) at org.apache.log4j.WriterAppender.append(WriterAppender.java:162) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66) at org.apache.log4j.Category.callAppenders(Category.java:206) at org.apache.log4j.Category.forcedLog(Category.java:391) at org.apache.log4j.Category.log(Category.java:856) at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:257) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:308) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) [WARNING] FAILED org.eclipse.jetty.server.handler.ContextHandlerCollection@133804ce: java.lang.OutOfMemoryError: Java heap space java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2367) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130) at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415) at java.lang.StringBuffer.append(StringBuffer.java:237) at java.io.StringWriter.write(StringWriter.java:112) at java.io.PrintWriter.write(PrintWriter.java:456) at java.io.PrintWriter.write(PrintWriter.java:473) at java.io.PrintWriter.print(PrintWriter.java:603) at java.io.PrintWriter.println(PrintWriter.java:756) at java.lang.Throwable$WrappedPrintWriter.println(Throwable.java:764) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:697) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printStackTrace(Throwable.java:667) at java.lang.Throwable.printStackTrace(Throwable.java:721) at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:176) at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:180) at org.apache.log4j.DefaultThrowableRenderer.render(DefaultThrowableRenderer.java:60) at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:87) at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:413) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:313) at org.apache.log4j.WriterAppender.append(WriterAppender.java:162) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66) at org.apache.log4j.Category.callAppenders(Category.java:206) at org.apache.log4j.Category.forcedLog(Category.java:391) at org.apache.log4j.Category.log(Category.java:856) at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:257) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:308) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) [WARNING] FAILED org.eclipse.jetty.server.handler.HandlerCollection@42c37a3d: java.lang.OutOfMemoryError: Java heap space java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2367) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130) at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415) at java.lang.StringBuffer.append(StringBuffer.java:237) at java.io.StringWriter.write(StringWriter.java:112) at java.io.PrintWriter.write(PrintWriter.java:456) at java.io.PrintWriter.write(PrintWriter.java:473) at java.io.PrintWriter.print(PrintWriter.java:603) at java.io.PrintWriter.println(PrintWriter.java:756) at java.lang.Throwable$WrappedPrintWriter.println(Throwable.java:764) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:697) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printStackTrace(Throwable.java:667) at java.lang.Throwable.printStackTrace(Throwable.java:721) at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:176) at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:180) at org.apache.log4j.DefaultThrowableRenderer.render(DefaultThrowableRenderer.java:60) at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:87) at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:413) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:313) at org.apache.log4j.WriterAppender.append(WriterAppender.java:162) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66) at org.apache.log4j.Category.callAppenders(Category.java:206) at org.apache.log4j.Category.forcedLog(Category.java:391) at org.apache.log4j.Category.log(Category.java:856) at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:257) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:308) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) [WARNING] FAILED org.mortbay.jetty.plugin.JettyServer@7f8600ed: java.lang.OutOfMemoryError: Java heap space java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2367) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:130) at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:114) at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:415) at java.lang.StringBuffer.append(StringBuffer.java:237) at java.io.StringWriter.write(StringWriter.java:112) at java.io.PrintWriter.write(PrintWriter.java:456) at java.io.PrintWriter.write(PrintWriter.java:473) at java.io.PrintWriter.print(PrintWriter.java:603) at java.io.PrintWriter.println(PrintWriter.java:756) at java.lang.Throwable$WrappedPrintWriter.println(Throwable.java:764) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:697) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printEnclosedStackTrace(Throwable.java:709) at java.lang.Throwable.printStackTrace(Throwable.java:667) at java.lang.Throwable.printStackTrace(Throwable.java:721) at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:176) at org.springframework.beans.factory.BeanCreationException.printStackTrace(BeanCreationException.java:180) at org.apache.log4j.DefaultThrowableRenderer.render(DefaultThrowableRenderer.java:60) at org.apache.log4j.spi.ThrowableInformation.getThrowableStrRep(ThrowableInformation.java:87) at org.apache.log4j.spi.LoggingEvent.getThrowableStrRep(LoggingEvent.java:413) at org.apache.log4j.WriterAppender.subAppend(WriterAppender.java:313) at org.apache.log4j.WriterAppender.append(WriterAppender.java:162) at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251) at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66) at org.apache.log4j.Category.callAppenders(Category.java:206) at org.apache.log4j.Category.forcedLog(Category.java:391) at org.apache.log4j.Category.log(Category.java:856) at org.apache.commons.logging.impl.Log4JLogger.error(Log4JLogger.java:257) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:308) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111) [INFO] Jetty server exiting. [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 01:27 min [INFO] Finished at: 2018-08-15T08:41:01+08:00 [INFO] Final Memory: 20M/499M [INFO] ------------------------------------------------------------------------ [ERROR] Java heap space -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryError
Java IDEA 报错internal java compiler error
环境: Mac 10.10 IDEA版本: 2017.2.6 问题描述: 新建了maven项目,写了一个测试类,main方法运行报错`Error:java: Compilation failed: internal java compiler error` 已尝试的解决办法:在project和module中将JDK版本改成了1.8 且在setting中将Java Complier 改成了1.8 但在选择module的时候显示`nothing to show`故module的地方没有任何选择。继续运行还是报错。 相关图如下: ![图片说明](https://img-ask.csdn.net/upload/201801/13/1515824619_865297.png) ![图片说明](https://img-ask.csdn.net/upload/201801/13/1515824559_607318.png) ![图片说明](https://img-ask.csdn.net/upload/201801/13/1515824570_685295.png)
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]
idea中springboot内置tomcat起不起来 pom.xml: <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.2.1.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent> <groupId>com.aipuer</groupId> <artifactId>spring-boot</artifactId> <version>0.0.1-SNAPSHOT</version> <name>spring-boot</name> <description>Demo project for Spring Boot</description> <properties> <java.version>11</java.version> </properties> <dependencies> <!-- springBoot 的启动器 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-web</artifactId> </dependency> <!-- springBoot 的启动器 --> <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency> <!-- Mybatis 启动器 --> <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>1.1.1</version> </dependency> <!-- mysql 数据库驱动 --> <dependency> <groupId>mysql</groupId> <artifactId>mysql-connector-java</artifactId> </dependency> <!-- druid 数据库连接池 --> <dependency> <groupId>com.alibaba</groupId> <artifactId>druid</artifactId> <version>1.0.9</version> </dependency> </dependencies> <build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <version>1.5.9.RELEASE</version> </plugin> </plugins> </build> </project> 错误代码: 2019-12-03 10:08:21.181 INFO 7936 --- [ main] com.aipuer.springboot.Application : Starting Application on PC-20191121IKBV with PID 7936 (E:\java\develop\javacode\spring-boot\target\classes started by Administrator in E:\java\develop\javacode\spring-boot) 2019-12-03 10:08:21.183 INFO 7936 --- [ main] com.aipuer.springboot.Application : No active profile set, falling back to default profiles: default 2019-12-03 10:08:21.554 WARN 7936 --- [ main] o.m.s.mapper.ClassPathMapperScanner : No MyBatis mapper was found in '[com.aipuer.springboot]' package. Please check your configuration. 2019-12-03 10:08:21.839 INFO 7936 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) 2019-12-03 10:08:21.844 INFO 7936 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2019-12-03 10:08:21.844 INFO 7936 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.27] 2019-12-03 10:08:21.888 ERROR 7936 --- [ main] org.apache.catalina.core.ContainerBase : A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [NonLoginAuthenticator[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]] at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:na] at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[na:na] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) ~[na:na] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.startup.Tomcat.start(Tomcat.java:459) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:107) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:88) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:438) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:191) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:180) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:153) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544) ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at com.aipuer.springboot.Application.main(Application.java:10) ~[classes/:na] Caused by: org.apache.catalina.LifecycleException: Failed to start component [NonLoginAuthenticator[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]] at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:176) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5063) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) ~[na:na] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) ~[tomcat-embed-core-9.0.27.jar:9.0.27] ... 29 common frames omitted Caused by: java.lang.NoSuchMethodError: 'java.lang.String javax.servlet.ServletContext.getVirtualServerName()' at org.apache.catalina.authenticator.AuthenticatorBase.startInternal(AuthenticatorBase.java:1220) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.27.jar:9.0.27] ... 39 common frames omitted 2019-12-03 10:08:21.889 ERROR 7936 --- [ main] org.apache.catalina.core.ContainerBase : A child container failed during start java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: A child container failed during start at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:na] at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[na:na] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.StandardService.startInternal(StandardService.java:421) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.startup.Tomcat.start(Tomcat.java:459) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:107) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.<init>(TomcatWebServer.java:88) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:438) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:191) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:180) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:153) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:544) ~[spring-context-5.2.1.RELEASE.jar:5.2.1.RELEASE] at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:141) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:747) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at org.springframework.boot.SpringApplication.run(SpringApplication.java:1215) ~[spring-boot-2.2.1.RELEASE.jar:2.2.1.RELEASE] at com.aipuer.springboot.Application.main(Application.java:10) ~[classes/:na] Caused by: org.apache.catalina.LifecycleException: A child container failed during start at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:928) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) ~[na:na] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) ~[tomcat-embed-core-9.0.27.jar:9.0.27] ... 21 common frames omitted Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [NonLoginAuthenticator[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]] at java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:na] at java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) ~[na:na] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916) ~[tomcat-embed-core-9.0.27.jar:9.0.27] ... 29 common frames omitted Caused by: org.apache.catalina.LifecycleException: Failed to start component [NonLoginAuthenticator[StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[]]] at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:176) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5063) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na] at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) ~[na:na] at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) ~[tomcat-embed-core-9.0.27.jar:9.0.27] ... 29 common frames omitted Caused by: java.lang.NoSuchMethodError: 'java.lang.String javax.servlet.ServletContext.getVirtualServerName()' at org.apache.catalina.authenticator.AuthenticatorBase.startInternal(AuthenticatorBase.java:1220) ~[tomcat-embed-core-9.0.27.jar:9.0.27] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ~[tomcat-embed-core-9.0.27.jar:9.0.27] ... 39 common frames omitted 2019-12-03 10:08:21.889 INFO 7936 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat] 2019-12-03 10:08:21.900 WARN 7936 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat 2019-12-03 10:08:21.906 INFO 7936 --- [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2019-12-03 10:08:21.909 ERROR 7936 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: An attempt was made to call a method that does not exist. The attempt was made from the following location: org.apache.catalina.authenticator.AuthenticatorBase.startInternal(AuthenticatorBase.java:1220) The following method did not exist: 'java.lang.String javax.servlet.ServletContext.getVirtualServerName()' The method's class, javax.servlet.ServletContext, is available from the following locations: jar:file:/E:/java/develop/javacode/spring-boot/lib/javaee.jar!/javax/servlet/ServletContext.class jar:file:/E:/maven/maven_repository/org/apache/tomcat/embed/tomcat-embed-core/9.0.27/tomcat-embed-core-9.0.27.jar!/javax/servlet/ServletContext.class It was loaded from the following location: file:/E:/java/develop/javacode/spring-boot/lib/javaee.jar Action: Correct the classpath of your application so that it contains a single, compatible version of javax.servlet.ServletContext Disconnected from the target VM, address: '127.0.0.1:52758', transport: 'socket' Process finished with exit code 1
SpringBoot打包后无法读取到resources下的资源
项目调试运行没有什么问题,在maven package后就无法读取到resources下的资源了 项目中有两个外部jar包,放在resources的lib下,在pom中引用如下 ```java <dependency> <groupId>com.tossft</groupId> <artifactId>sssk</artifactId> <version>0.0.1-SNAPSHOT</version> <scope>system</scope> <systemPath>${project.basedir}/src/main/resources/lib/sssk.jar</systemPath> </dependency> ``` ```java <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-war-plugin</artifactId> <configuration> <webResources> <resource> <!-- 原路径 --> <directory>src/main/resources/lib</directory> <targetPath>WEB-INF/lib/</targetPath> <includes> <include>**/*.jar</include> </includes> </resource> </webResources> </configuration> </plugin> ``` 这个jar需要读取resources下config文件夹下的xxx.xml配置文件, 在IDE中调试运行是没有问题的,maven package再运行就报错,找不到这个xml了
java.net.MalformedURLException: unknown protocol: jrt
win7 64位 官网下载jdk11 idea 2017 ```java public class Test { public static void main(String[] args) { System.out.println(11); } } ``` 异常 ``` Error:Internal error: (java.net.MalformedURLException) unknown protocol: jrt java.net.MalformedURLException: unknown protocol: jrt at java.net.URL.<init>(URL.java:421) at java.net.URL.<init>(URL.java:310) at java.net.URL.<init>(URL.java:333) at com.intellij.compiler.instrumentation.InstrumentationClassFinder.createJDKPlatformUrl(InstrumentationClassFinder.java:61) at org.jetbrains.jps.incremental.instrumentation.ClassProcessingBuilder.createInstrumentationClassFinder(ClassProcessingBuilder.java:125) at org.jetbrains.jps.incremental.instrumentation.ClassProcessingBuilder.build(ClassProcessingBuilder.java:93) at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1246) at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:923) at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:995) at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:886) at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:719) at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:371) at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:178) at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:138) at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:308) at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:138) at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:235) at org.jetbrains.jps.service.impl.SharedThreadPoolImpl.lambda$executeOnPooledThread$0(SharedThreadPoolImpl.java:42) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Please perform full project rebuild (Build | Rebuild Project) ```
idea项目突然编译不了了
Information:java: 编译器 (1.6.0_43) 中出现异常。 如果在 Bug Parade 中没有找到该错误,请在 Java Developer Connection (http://java.sun.com/webapps/bugreport) 对该错误进行归档。 请在报告中附上您的程序和以下诊断信息。谢谢您的合作。 Information:java: java.nio.BufferOverflowException Information:java: at java.nio.Buffer.nextPutIndex(Buffer.java:493) Information:java: at java.nio.HeapCharBuffer.put(HeapCharBuffer.java:145) Information:java: at org.jetbrains.jps.javac.OptimizedFileManager.decode(OptimizedFileManager.java:511) Information:java: at org.jetbrains.jps.javac.OptimizedFileManager.access$400(OptimizedFileManager.java:41) Information:java: at org.jetbrains.jps.javac.OptimizedFileManager$InputFileObject.loadFileContent(OptimizedFileManager.java:377) Information:java: at org.jetbrains.jps.javac.OptimizedFileManager$InputFileObject.getCharContent(OptimizedFileManager.java:367) Information:java: at org.jetbrains.jps.javac.OptimizedFileManager$InputFileObject.getCharContent(OptimizedFileManager.java:292) Information:java: at com.sun.tools.javac.main.JavaCompiler.readSource(JavaCompiler.java:483) Information:java: at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:550) Information:java: at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:804) Information:java: at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727) Information:java: at com.sun.tools.javac.main.Main.compile(Main.java:353) Information:java: at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:113) Information:java: at org.jetbrains.jps.javac.JavacMain.compile(JavacMain.java:198) Information:java: at org.jetbrains.jps.javac.ExternalJavacProcess.compile(ExternalJavacProcess.java:195) Information:java: at org.jetbrains.jps.javac.ExternalJavacProcess.access$400(ExternalJavacProcess.java:47) Information:java: at org.jetbrains.jps.javac.ExternalJavacProcess$CompilationRequestsHandler$1.run(ExternalJavacProcess.java:262) Information:java: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) Information:java: at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) Information:java: at java.util.concurrent.FutureTask.run(FutureTask.java:138) Information:java: at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) Information:java: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) Information:java: at java.lang.Thread.run(Thread.java:662) Information:java: Errors occurred while compiling module 'SC-GJ-20140528' Information:javac 6 was used to compile java sources Information:Module "SC-GJ-20140528" was fully rebuilt due to project configuration/dependencies changes Information:2018/5/22 18:11 - Compilation completed with 1 error and 0 warnings in 1 m 18 s 530 ms Error:java: Compilation failed: internal java compiler error 前几天都还运行的好好的,今天突然编译都过不了,同事的都没问题
求助:Maven构建java项目时出错
这个项目以前是用Ant构建的,现在转用Maven了。报错如下:An Ant BuildException has occured: You must not specify nested elements when using refid. 构建过程如下:![构建过程](https://img-ask.csdn.net/upload/201505/11/1431325571_52331.png) 这个项目的pom.xml文件如下: ``` <project> <modelVersion>4.0.0</modelVersion> <groupId>aopmetrics</groupId> <artifactId>aopmetrics</artifactId> <version>0.3</version> <name>AOP Metrics</name> <url>http://aopmetrics.tigris.org</url> <inceptionYear>2005</inceptionYear> <issueManagement> <system>Scarab</system> <url>http://aopmetrics.tigris.org/servlets/ProjectIssues</url> </issueManagement> <mailingLists> <mailingList> <name>dev@aopmetrics.tigris.org</name> <subscribe>dev-subscribe@aopmetrics.tigris.org</subscribe> <unsubscribe>dev-subscribe@aopmetrics.tigris.org</unsubscribe> <post>dev@aopmetrics.tigris.org</post> <archive>http://aopmetrics.tigris.org/servlets/SummarizeList?listName=dev</archive> </mailingList> <mailingList> <name>cvs@aopmetrics.tigris.org</name> <subscribe>cvs-subscribe@aopmetrics.tigris.org</subscribe> <unsubscribe>cvs-subscribe@aopmetrics.tigris.org</unsubscribe> <post>cvs@aopmetrics.tigris.org</post> <archive>http://aopmetrics.tigris.org/servlets/SummarizeList?listName=cvs</archive> </mailingList> <mailingList> <name>issues@aopmetrics.tigris.org</name> <subscribe>issues-subscribe@aopmetrics.tigris.org</subscribe> <unsubscribe>issues-subscribe@aopmetrics.tigris.org</unsubscribe> <post>issues@aopmetrics.tigris.org</post> <archive>http://aopmetrics.tigris.org/servlets/SummarizeList?listName=issues</archive> </mailingList> <mailingList> <name>users@aopmetrics.tigris.org</name> <subscribe>users-subscribe@aopmetrics.tigris.org</subscribe> <unsubscribe>users-subscribe@aopmetrics.tigris.org</unsubscribe> <post>users@aopmetrics.tigris.org</post> <archive>http://aopmetrics.tigris.org/servlets/SummarizeList?listName=users</archive> </mailingList> <mailingList> <name>announce@aopmetrics.tigris.org</name> <subscribe>announce-subscribe@aopmetrics.tigris.org</subscribe> <unsubscribe>announce-subscribe@aopmetrics.tigris.org</unsubscribe> <post>announce@aopmetrics.tigris.org</post> <archive>http://aopmetrics.tigris.org/servlets/SummarizeList?listName=announce</archive> </mailingList> </mailingLists> <developers> <developer> <id>misto</id> <name>Michal Stochmialek</name> <email>misto@e-informatyka.pl</email> <url>http://misto.e-informatyka.pl</url> </developer> </developers> <dependencies> <dependency> <groupId>ant</groupId> <artifactId>ant</artifactId> <version>1.6.5</version> </dependency> <dependency> <groupId>xpp3</groupId> <artifactId>xpp3</artifactId> <version>1.1.3.4-RC8</version> </dependency> <dependency> <groupId>xstream</groupId> <artifactId>xstream</artifactId> <version>1.1.1</version> </dependency> <dependency> <groupId>poi</groupId> <artifactId>poi</artifactId> <version>2.5.1-final-20040804</version> </dependency> <dependency> <groupId>aspectj</groupId> <artifactId>aspectjtools</artifactId> <version>1.5.1</version> </dependency> <dependency> <groupId>aspectj</groupId> <artifactId>aspectjrt</artifactId> <version>1.5.1</version> </dependency> <dependency> <groupId>commons-cli</groupId> <artifactId>commons-cli</artifactId> <version>1.0</version> </dependency> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> <plugin> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifest> <mainClass>org.tigris.aopmetrics.AopMetricsCLI</mainClass> <addClasspath>true</addClasspath> </manifest> </archive> </configuration> </plugin> <plugin> <artifactId>maven-surefire-plugin</artifactId> <configuration> <skip>true</skip> <systemProperties> <property> <name>tests.workdir</name> <value>target/workdir</value> </property> </systemProperties> </configuration> </plugin> </plugins> </build> <profiles> <profile> <id>dist</id> <build> <defaultGoal>assembly:assembly</defaultGoal> <plugins> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <id>aopmetrics-on-aopmetrics</id> <phase>package</phase> <configuration> <tasks> <taskdef name="aopmetrics" classname="org.tigris.aopmetrics.AopMetricsTask"> <classpath refid="maven.compile.classpath"/> <classpath refid="maven.test.classpath"/> <classpath location="${project.build.directory}/${project.build.finalName}.jar"/> </taskdef> <aopmetrics workdir="${project.build.directory}/work" sourcelevel="1.5" export="xls" resultsfile="${project.build.directory}/aop-metrics-results.xls"> <fileset dir="src/main/java" includes="**/*.java"/> <fileset dir="src/test/java" includes="**/*.java"/> <classpath refid="maven.compile.classpath"/> <classpath refid="maven.test.classpath"/> </aopmetrics> </tasks> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <executions> <execution> <id>javadoc-gen</id> <phase>package</phase> <goals> <goal>javadoc</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-assembly-plugin</artifactId> <configuration> <descriptors> <descriptor>src/main/assembly/bin.xml</descriptor> <descriptor>src/main/assembly/src.xml</descriptor> </descriptors> </configuration> </plugin> </plugins> </build> </profile> </profiles> </project> ``` 这个项目很急用,我是新手,跪求各位大神。
eclipse sts插件创建spring start project springboot项目报错
初学springboot框架,用sts插件搭建了一个 springboot 项目测试一下是否成功。 直接执行main方法说找不到或无法加载主类,当然我的Application类都是自动生成的,注解都有,这个都没问题,但是就是说找不到或无法加载主类。 然后我用maven build启动,报了如下错: [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building spring-boot-sample 0.0.1-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] >>> spring-boot-maven-plugin:1.5.3.RELEASE:run (default-cli) > test-compile @ spring-boot-sample >>> [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ spring-boot-sample --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] Copying 1 resource [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ spring-boot-sample --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 2 source files to E:\Java learn\All workspacce\dev_springboot\spring-boot-sample\target\classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] 读取E:\Java learn\Maven\apache-maven\org\springframework\boot\spring-boot-autoconfigure\1.5.3.RELEASE\spring-boot-autoconfigure-1.5.3.RELEASE.jar时出错; error in opening zip file [ERROR] 读取E:\Java learn\Maven\apache-maven\org\springframework\boot\spring-boot-autoconfigure\1.5.3.RELEASE\spring-boot-autoconfigure-1.5.3.RELEASE.jar时出错; cannot read zip file [ERROR] /E:/Java learn/All workspacce/dev_springboot/spring-boot-sample/src/main/java/com/example/simple/SpringBootSampleApplication.java:[4,46] 程序包org.springframework.boot.autoconfigure不存在 [ERROR] /E:/Java learn/All workspacce/dev_springboot/spring-boot-sample/src/main/java/com/example/simple/SpringBootSampleApplication.java:[6,2] 找不到符号 符号: 类 SpringBootApplication [INFO] 4 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.632 s [INFO] Finished at: 2017-05-07T22:06:15+08:00 [INFO] Final Memory: 22M/191M [INFO] ------------------------------------------------------------------------ [WARNING] The requested profile "pom.xml" could not be activated because it does not exist. [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project spring-boot-sample: Compilation failure: Compilation failure: [ERROR] 读取E:\Java learn\Maven\apache-maven\org\springframework\boot\spring-boot-autoconfigure\1.5.3.RELEASE\spring-boot-autoconfigure-1.5.3.RELEASE.jar时出错; error in opening zip file [ERROR] 读取E:\Java learn\Maven\apache-maven\org\springframework\boot\spring-boot-autoconfigure\1.5.3.RELEASE\spring-boot-autoconfigure-1.5.3.RELEASE.jar时出错; cannot read zip file [ERROR] /E:/Java learn/All workspacce/dev_springboot/spring-boot-sample/src/main/java/com/example/simple/SpringBootSampleApplication.java:[4,46] 程序包org.springframework.boot.autoconfigure不存在 [ERROR] /E:/Java learn/All workspacce/dev_springboot/spring-boot-sample/src/main/java/com/example/simple/SpringBootSampleApplication.java:[6,2] 找不到符号 [ERROR] 符号: 类 SpringBootApplication [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException 不知道怎么解决,有大神能说下 这个springboot 环境到底怎么搭建吗?
maven项目导入到Eclipse中红色叹号!
最近看一个开源CMS系统Magnolia。 环境: Ubuntu14,Eclipse4.4 for j2ee,jdk1.6,tomcat6,maven2.2.1 按照文档,写了一个小项目。用maven。在命令行创建的项目结构大概: myProject ----myProject-webapp ----myTemplateModule 下面两个是上面的module。 在命令行中已经clean install成功。 但是导入到Eclipse中myProject-webapp项目的图标上有红色感叹号。 ![CSDN移动问答][1] 网上说是jar引用问题。我在buildpath》library中没有发现有问题的jar啊,也尝试过order and export,sellect all。打开.classpath里面貌似也没有引用什么jar啊。内容如下:.classpath. 另外,myProject项目上还有个红叉,其中的一个文件引用的某个类,Eclipse说找不到,可是我在library中都找到这个类了。 ![CSDN移动问答][2] 后来,我不管这个红色提醒,就把myProject-webapp部署在tomcat上面了。运行错误: 2014-9-4 18:25:42 org.apache.catalina.startup.TldConfig tldScanJar 严重: Exception processing JAR at resource path /home/user/.m2/repository/com/vaadin/vaadin-shared/7.1.7/vaadin-shared-7.1.7.jar in context /myProject-webapp java.util.zip.ZipException: error in opening zip file at java.util.zip.ZipFile.open(Native Method) at java.util.zip.ZipFile.<init>(ZipFile.java:127) at java.util.jar.JarFile.<init>(JarFile.java:136) at java.util.jar.JarFile.<init>(JarFile.java:100) at org.apache.catalina.startup.TldConfig.tldScanJar(TldConfig.java:393) at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:320) at org.apache.catalina.startup.TldConfig.lifecycleEvent(TldConfig.java:688) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:142) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4616) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardHost.start(StandardHost.java:822) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463) at org.apache.catalina.core.StandardService.start(StandardService.java:525) at org.apache.catalina.core.StandardServer.start(StandardServer.java:754) at org.apache.catalina.startup.Catalina.start(Catalina.java:595) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414) 2014-9-4 18:25:42 org.apache.catalina.startup.TldConfig tldScanJar 严重: Exception processing JAR at resource path /home/user/.m2/repository/org/jsoup/jsoup/1.6.3/jsoup-1.6.3.jar in context /myProject-webapp ............ ......... **附件:** .classpath <?xml version="1.0" encoding="UTF-8"?> <classpath> <classpathentry kind="src" output="target/classes" path="src/main/java"> <attributes> <attribute name="optional" value="true"/> <attribute name="maven.pomderived" value="true"/> </attributes> </classpathentry> <classpathentry kind="src" output="target/test-classes" path="src/test/java"> <attributes> <attribute name="optional" value="true"/> <attribute name="maven.pomderived" value="true"/> </attributes> </classpathentry> <classpathentry exported="true" kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER"> <attributes> <attribute name="maven.pomderived" value="true"/> <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> </attributes> </classpathentry> <classpathentry kind="con" path="org.eclipse.jst.server.core.container/org.eclipse.jst.server.tomcat.runtimeTarget/Apache Tomcat v6.0"> <attributes> <attribute name="owner.project.facets" value="jst.web"/> </attributes> </classpathentry> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk1.6.0_45"> <attributes> <attribute name="owner.project.facets" value="java"/> </attributes> </classpathentry> <classpathentry kind="output" path="target/classes"/> </classpath> [1]: http://my.csdn.net/my/album/detail/1784229 [2]: http://my.csdn.net/my/album/detail/1784231
Android Studio 升级到3.5的错误
Android Studio 弹出升级的消息框,手贱点了一下 ,然后升级到了Android Studio3.5,升级完成后打开Android Studio ,提示升级失败,查看错误为: java.lang.UnsatisfiedLinkError: org.sqlite.core.NativeDB._open_utf8([BI)V at org.sqlite.core.NativeDB._open_utf8(Native Method) at org.sqlite.core.NativeDB._open(NativeDB.java:71) at org.sqlite.core.DB.open(DB.java:174) at org.sqlite.core.CoreConnection.open(CoreConnection.java:220) at org.sqlite.core.CoreConnection.<init>(CoreConnection.java:76) at org.sqlite.jdbc3.JDBC3Connection.<init>(JDBC3Connection.java:25) at org.sqlite.jdbc4.JDBC4Connection.<init>(JDBC4Connection.java:24) at org.sqlite.SQLiteConnection.<init>(SQLiteConnection.java:45) at org.sqlite.JDBC.createConnection(JDBC.java:114) at org.sqlite.JDBC.connect(JDBC.java:88) at java.sql.DriverManager.getConnection(DriverManager.java:664) at java.sql.DriverManager.getConnection(DriverManager.java:270) at com.android.tools.deployer.SqlApkFileDatabase.<init>(SqlApkFileDatabase.java:62) at com.android.tools.deployer.SqlApkFileDatabase.<init>(SqlApkFileDatabase.java:50) at com.android.tools.idea.run.DeploymentService.<init>(DeploymentService.java:56) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:423) at org.picocontainer.defaults.InstantiatingComponentAdapter.newInstance(InstantiatingComponentAdapter.java:193) at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.doGetComponentInstance(CachingConstructorInjectionComponentAdapter.java:92) at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.instantiateGuarded(CachingConstructorInjectionComponentAdapter.java:66) at com.intellij.util.pico.CachingConstructorInjectionComponentAdapter.getComponentInstance(CachingConstructorInjectionComponentAdapter.java:48) at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.createAndInitialize(ServiceManagerImpl.java:222) at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.lambda$getComponentInstance$0(ServiceManagerImpl.java:209) at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.getComponentInstance(ServiceManagerImpl.java:213) at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:246) at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:213) at com.intellij.openapi.components.ServiceManager.doGetService(ServiceManager.java:52) at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:30) at com.android.tools.idea.run.DeploymentService.getInstance(DeploymentService.java:48) at com.android.tools.idea.deploy.DeployActionsInitializer.updateDeployableProvider(DeployActionsInitializer.java:184) at com.android.tools.idea.deploy.DeployActionsInitializer.access$000(DeployActionsInitializer.java:56) at com.android.tools.idea.deploy.DeployActionsInitializer$1.projectOpened(DeployActionsInitializer.java:123) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:114) at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:393) at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:354) at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:343) at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:320) at com.intellij.util.messages.impl.MessageBusImpl.access$100(MessageBusImpl.java:29) at com.intellij.util.messages.impl.MessageBusImpl$1.invoke(MessageBusImpl.java:192) at com.sun.proxy.$Proxy17.projectOpened(Unknown Source) at com.intellij.openapi.project.impl.ProjectManagerImpl.fireProjectOpened(ProjectManagerImpl.java:780) at com.intellij.openapi.project.impl.ProjectManagerImpl.lambda$null$6(ProjectManagerImpl.java:401) at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransactionAndWait$2(TransactionGuardImpl.java:165) at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88) at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransaction$1(TransactionGuardImpl.java:111) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.doRun(LaterInvocator.java:435) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.runNextEvent(LaterInvocator.java:419) at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:403) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764) at java.awt.EventQueue.access$500(EventQueue.java:98) at java.awt.EventQueue$3.run(EventQueue.java:715) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:734) at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:757) at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:706) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:375) at com.intellij.ide.IdeEventQueue.pumpEventsForHierarchy(IdeEventQueue.java:814) at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:210) at com.intellij.openapi.progress.util.ProgressWindow.startBlocking(ProgressWindow.java:196) at com.intellij.openapi.application.impl.ApplicationImpl.runProcessWithProgressSynchronously(ApplicationImpl.java:609) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcessWithProgressSynchronously(CoreProgressManager.java:454) at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcessWithProgressSynchronously(ProgressManagerImpl.java:109) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcessWithProgressSynchronously(CoreProgressManager.java:251) at com.intellij.openapi.progress.impl.CoreProgressManager.runProcessWithProgressSynchronously(CoreProgressManager.java:205) at com.intellij.openapi.project.impl.ProjectManagerImpl.loadProjectUnderProgress(ProjectManagerImpl.java:450) at com.intellij.openapi.project.impl.ProjectManagerImpl.openProject(ProjectManagerImpl.java:425) at com.intellij.platform.PlatformProjectOpenProcessor.doOpenProject(PlatformProjectOpenProcessor.java:260) at com.intellij.ide.RecentProjectsManagerBase.doOpenProject(RecentProjectsManagerBase.java:512) at com.intellij.ide.RecentProjectsManagerBase.doReopenLastProject(RecentProjectsManagerBase.java:634) at com.intellij.ide.RecentProjectsManagerBase$MyAppLifecycleListener.appStarting(RecentProjectsManagerBase.java:692) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at com.intellij.util.messages.impl.MessageBusConnectionImpl.deliverMessage(MessageBusConnectionImpl.java:114) at com.intellij.util.messages.impl.MessageBusImpl.doPumpMessages(MessageBusImpl.java:393) at com.intellij.util.messages.impl.MessageBusImpl.pumpWaitingBuses(MessageBusImpl.java:354) at com.intellij.util.messages.impl.MessageBusImpl.pumpMessages(MessageBusImpl.java:343) at com.intellij.util.messages.impl.MessageBusImpl.sendMessage(MessageBusImpl.java:320) at com.intellij.util.messages.impl.MessageBusImpl.access$100(MessageBusImpl.java:29) at com.intellij.util.messages.impl.MessageBusImpl$1.invoke(MessageBusImpl.java:192) at com.sun.proxy.$Proxy63.appStarting(Unknown Source) at com.intellij.idea.IdeaApplication$IdeStarter.lambda$main$1(IdeaApplication.java:388) at com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction(TransactionGuardImpl.java:88) at com.intellij.openapi.application.TransactionGuardImpl.lambda$submitTransaction$1(TransactionGuardImpl.java:111) at com.intellij.openapi.application.TransactionGuardImpl.submitTransaction(TransactionGuardImpl.java:120) at com.intellij.openapi.application.TransactionGuard.submitTransaction(TransactionGuard.java:121) at com.intellij.idea.IdeaApplication$IdeStarter.main(IdeaApplication.java:386) at com.intellij.idea.IdeaApplication.lambda$run$1(IdeaApplication.java:220) at com.intellij.openapi.application.TransactionGuardImpl.performUserActivity(TransactionGuardImpl.java:195) at com.intellij.idea.IdeaApplication.run(IdeaApplication.java:220) at com.intellij.idea.IdeaApplication.lambda$initApplication$0(IdeaApplication.java:77) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:764) at java.awt.EventQueue.access$500(EventQueue.java:98) at java.awt.EventQueue$3.run(EventQueue.java:715) at java.awt.EventQueue$3.run(EventQueue.java:709) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:74) at java.awt.EventQueue.dispatchEvent(EventQueue.java:734) at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:349) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) 操作系统是Win10 专业版 64位。 以为是我的老版本导致的程序不对,然后把和Android Studio有关的文件都删了,重新安装,安装好了以后可以用了,但是关了AS,再重新打开AS,又开始报上面的错误,有没有遇到这个问题的?如何来解决这个问题? ------------------------------------------------------------》》》》》 很白痴的问题,以及个人的习惯导致的,使用管理员权限打开就好了,AS会在AppData/Local 中创建一个临时的sqlite 数据访问的dll,不是管理员权限访问不了,就导致了这个错误。
关于maven远程部署多模块web项目到tomcat失败问题
主模块: ``` <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>DeployTest</groupId> <artifactId>DeployTest</artifactId> <packaging>pom</packaging> <version>1.0-SNAPSHOT</version> <modules> <module>web2</module> <module>service</module> </modules> <build> <finalName>DeployTest</finalName> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.7</source> <target>1.7</target> <encoding>UTF-8</encoding> </configuration> </plugin> </plugins> </build> </project> ``` service模块: ``` <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <parent> <artifactId>DeployTest</artifactId> <groupId>DeployTest</groupId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>service</artifactId> <groupId>service</groupId> <version>1.0</version> </project> ``` web2模块: ``` <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <parent> <artifactId>DeployTest</artifactId> <groupId>DeployTest</groupId> <version>1.0-SNAPSHOT</version> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>web2</artifactId> <packaging>war</packaging> <name>web2 Maven Webapp</name> <url>http://maven.apache.org</url> <dependencies> <dependency> <groupId>service</groupId> <artifactId>service</artifactId> <version>1.0</version> </dependency> </dependencies> <build> <finalName>web2</finalName> <plugins> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.1</version> <configuration> <url>http://192.168.1.109:8080/manager/text</url> <username>admin</username> <password>admin</password> <server>tomcat</server> <path>/DeployTest</path> </configuration> </plugin> </plugins> </build> </project> ``` 运行tomcat7:redeploy时抛出异常,有关tomcat7-maven-plugin插件都会抛出异常,这里写的很明白是因为没找到service的jar,但是问题是他是子模块,我不需要这个子模块跑到本地仓库或者远程仓库啊,我只需要他在WEB-INF下的lib里就可以了,他现在是在的。求解决: ``` [ERROR] Failed to execute goal on project web2: Could not resolve dependencies for project DeployTest:web2:war:1.0-SNAPSHOT: Failure to find service:service:jar:1.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project web2: Could not resolve dependencies for project DeployTest:web2:war:1.0-SNAPSHOT: Failure to find service:service:jar:1.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117) at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.MojoExecutor.executeForkedExecutions(MojoExecutor.java:365) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:199) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) at org.codehaus.classworlds.Launcher.main(Launcher.java:47) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144) Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project DeployTest:web2:war:1.0-SNAPSHOT: Failure to find service:service:jar:1.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189) at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185) ... 32 more ``` 运行tomcat7:redeploy时抛出异常,有关tomcat7-maven-plugin插件都会抛出异常,这里写的很明白是因为没找到service的jar,但是问题是他是子模块,我不需要这个子模块跑到本地仓库或者远程仓库啊,我只需要他在WEB-INF下的lib里就可以了,他现在是在的。求解决
tomcat项目报错,但是没找到具体错误,求大神指点。
运行其他项目没问题,但是ldj项目就不行![图片说明](https://img-ask.csdn.net/upload/201905/05/1557024838_169501.png) 错误如下: 严重: Error deploying web application directory [E:\apache-tomcat-9.0.19-windows-x64\apache-tomcat-9.0.19\webapps\ldj] java.lang.IllegalStateException: Error starting child at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:716) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:690) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:695) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1133) at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1867) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:112) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:1045) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:429) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1576) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:309) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423) at org.apache.catalina.util.LifecycleBase.setState(LifecycleBase.java:366) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:929) at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:831) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1377) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1367) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) at java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:134) at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:902) at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardService.startInternal(StandardService.java:423) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:932) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.startup.Catalina.start(Catalina.java:633) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:350) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492) Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ldj]] at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:713) ... 37 more Caused by: java.lang.IllegalArgumentException: 名为 [com.ldj.servlet.cookie.ex1.BookDetailServlet]和 [com.ldj.servlet.session.BookDetailServlet] 的servlet不能映射为一个url模式(url-pattern) [/BookDetailServlet] at org.apache.tomcat.util.descriptor.web.WebXml.addServletMappingDecoded(WebXml.java:342) at org.apache.tomcat.util.descriptor.web.WebXml.addServletMapping(WebXml.java:335) at org.apache.catalina.startup.ContextConfig.processAnnotationWebServlet(ContextConfig.java:2453) at org.apache.catalina.startup.ContextConfig.processClass(ContextConfig.java:2129) at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2118) at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2010) at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2004) at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2004) at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2004) at org.apache.catalina.startup.ContextConfig.processAnnotationsWebResource(ContextConfig.java:2004) at org.apache.catalina.startup.ContextConfig.processClasses(ContextConfig.java:1227) at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1136) at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:768) at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:301) at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5048) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) ... 38 more 五月 05, 2019 10:24:52 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [E:\apache-tomcat-9.0.19-windows-x64\apache-tomcat-9.0.19\webapps\ldj] has finished in [74] ms 五月 05, 2019 10:24:52 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: 把web 应用程序部署到目录 [E:\apache-tomcat-9.0.19-windows-x64\apache-tomcat-9.0.19\webapps\manager] 五月 05, 2019 10:24:52 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [E:\apache-tomcat-9.0.19-windows-x64\apache-tomcat-9.0.19\webapps\manager] has finished in [30] ms 五月 05, 2019 10:24:52 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: 把web 应用程序部署到目录 [E:\apache-tomcat-9.0.19-windows-x64\apache-tomcat-9.0.19\webapps\Mybank] 五月 05, 2019 10:24:52 上午 org.apache.jasper.servlet.TldScanner scanJars 信息: 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。 五月 05, 2019 10:24:52 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [E:\apache-tomcat-9.0.19-windows-x64\apache-tomcat-9.0.19\webapps\Mybank] has finished in [351] ms 五月 05, 2019 10:24:52 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: 把web 应用程序部署到目录 [E:\apache-tomcat-9.0.19-windows-x64\apache-tomcat-9.0.19\webapps\project0424_001_web] 五月 05, 2019 10:24:52 上午 org.apache.jasper.servlet.TldScanner scanJars 信息: 至少有一个JAR被扫描用于TLD但尚未包含TLD。 为此记录器启用调试日志记录,以获取已扫描但未在其中找到TLD的完整JAR列表。 在扫描期间跳过不需要的JAR可以缩短启动时间和JSP编译时间。 五月 05, 2019 10:24:52 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [E:\apache-tomcat-9.0.19-windows-x64\apache-tomcat-9.0.19\webapps\project0424_001_web] has finished in [325] ms 五月 05, 2019 10:24:52 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: 把web 应用程序部署到目录 [E:\apache-tomcat-9.0.19-windows-x64\apache-tomcat-9.0.19\webapps\ROOT] 五月 05, 2019 10:24:52 上午 org.apache.catalina.startup.HostConfig deployDirectory 信息: Deployment of web application directory [E:\apache-tomcat-9.0.19-windows-x64\apache-tomcat-9.0.19\webapps\ROOT] has finished in [19] ms 五月 05, 2019 10:24:52 上午 org.apache.coyote.AbstractProtocol start 信息: 开始协议处理句柄["http-nio-8080"] 五月 05, 2019 10:24:52 上午 org.apache.coyote.AbstractProtocol start 信息: 开始协议处理句柄["ajp-nio-8009"] 五月 05, 2019 10:24:52 上午 org.apache.catalina.startup.Catalina start 信息: Server startup in [2,234] milliseconds
java 访问webservice 异常
log4j:WARN No appenders could be found for logger (org.apache.axis2.context.AbstractContext). log4j:WARN Please initialize the log4j system properly. Exception in thread "main" org.apache.axis2.AxisFault: First Element must contain the local name, Envelope , but found definitions at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:123) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:555) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:531) at ServiceQQ.getResult(ServiceQQ.java:25) at ServiceQQ.main(ServiceQQ.java:59) Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element must contain the local name, Envelope , but found definitions at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:299) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:246) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createNextOMElement(StAXSOAPModelBuilder.java:228) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:249) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:198) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSOAPModelBuilder.java:154) at org.apache.axiom.om.impl.llom.factory.AbstractOMMetaFactory.internalCreateStAXSOAPModelBuilder(AbstractOMMetaFactory.java:119) at org.apache.axiom.om.impl.llom.factory.AbstractOMMetaFactory.createSOAPModelBuilder(AbstractOMMetaFactory.java:129) at org.apache.axiom.om.OMXMLBuilderFactory.createSOAPModelBuilder(OMXMLBuilderFactory.java:426) at org.apache.axiom.om.OMXMLBuilderFactory.createSOAPModelBuilder(OMXMLBuilderFactory.java:405) at org.apache.axis2.builder.SOAPBuilder.processDocument(SOAPBuilder.java:55) at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:179) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:145) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:108) ... 9 more 访问代码: 不加访问验证的时候访问其他webservice正常 import org.apache.axiom.om.OMAbstractFactory; import org.apache.axiom.om.OMElement; import org.apache.axiom.om.OMFactory; import org.apache.axiom.om.OMNamespace; import org.apache.axiom.soap.SOAP11Constants; import org.apache.axis2.Constants; import org.apache.axis2.addressing.EndpointReference; import org.apache.axis2.client.Options; import org.apache.axis2.client.ServiceClient; import org.apache.axis2.transport.http.HTTPConstants; import org.apache.axis2.transport.http.HttpTransportProperties; // http://hi.baidu.com/e_ville/blog/item/f6529fa1a6616a8e471064a3.html /** * 测试WebService * @author * @history 2008-4-16 */ public class ServiceQQ{ private static EndpointReference targetEPR = new EndpointReference(WebServiceC.url); public void getResult()throws Exception{ ServiceClient sender = new ServiceClient(); sender.setOptions(buildOptions()); OMElement result = sender.sendReceive(buildParam()); System.out.println(result); } private static OMElement buildParam() { OMFactory fac = OMAbstractFactory.getOMFactory(); OMNamespace omNs = fac.createOMNamespace("urn:sap-com:document:sap:rfc:functions", ""); OMElement data = fac.createOMElement("ZTP_PROJECT", omNs); // OMElement inner = fac.createOMElement("byString", omNs); // inner.setText("1528"); // data.addChild(inner); return data; } private static Options buildOptions() { HttpTransportProperties.Authenticator basicAuth = new HttpTransportProperties.Authenticator(); basicAuth.setUsername(WebServiceC.userName); basicAuth.setPassword(WebServiceC.password); Options options = new Options(); options.setProperty(HTTPConstants.AUTHENTICATE, basicAuth); options.setSoapVersionURI(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI); options.setAction(""); options.setTo(targetEPR); //options.setProperty(propertyKey, property) // enabling MTOM in the client side // options.setProperty(Constants.Configuration.ENABLE_MTOM, Constants.VALUE_TRUE); options.setTransportInProtocol(Constants.TRANSPORT_HTTP); return options; } public static void main(String[] args) throws Exception { ServiceQQ s = new ServiceQQ(); s.getResult(); } }
发布项目到maven中央仓库时提示Access denied to
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project common-parent: Failed to deploy artifacts: Could not transfer artifact cn.dyaoming.common:common-parent:pom:1.0.0-20190411.094108-1 from/to maven-center-access (https://oss.sonatype.org/content/repositories/snapshots/): Access denied to: https://oss.sonatype.org/content/repositories/snapshots/cn/dyaoming/common/common-parent/1.0.0-SNAPSHOT/common-parent-1.0.0-20190411.094108-1.pom -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project common-parent: Failed to deploy artifacts: Could not transfer artifact cn.dyaoming.common:common-parent:pom:1.0.0-20190411.094108-1 from/to maven-center-access (https://oss.sonatype.org/content/repositories/snapshots/): Access denied to: https://oss.sonatype.org/content/repositories/snapshots/cn/dyaoming/common/common-parent/1.0.0-SNAPSHOT/common-parent-1.0.0-20190411.094108-1.pom at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: org.apache.maven.plugin.MojoExecutionException: Failed to deploy artifacts: Could not transfer artifact cn.dyaoming.common:common-parent:pom:1.0.0-20190411.094108-1 from/to maven-center-access (https://oss.sonatype.org/content/repositories/snapshots/): Access denied to: https://oss.sonatype.org/content/repositories/snapshots/cn/dyaoming/common/common-parent/1.0.0-SNAPSHOT/common-parent-1.0.0-20190411.094108-1.pom at org.apache.maven.plugin.deploy.DeployMojo.execute (DeployMojo.java:193) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: org.apache.maven.artifact.deployer.ArtifactDeploymentException: Failed to deploy artifacts: Could not transfer artifact cn.dyaoming.common:common-parent:pom:1.0.0-20190411.094108-1 from/to maven-center-access (https://oss.sonatype.org/content/repositories/snapshots/): Access denied to: https://oss.sonatype.org/content/repositories/snapshots/cn/dyaoming/common/common-parent/1.0.0-SNAPSHOT/common-parent-1.0.0-20190411.094108-1.pom at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy (DefaultArtifactDeployer.java:146) at org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy (AbstractDeployMojo.java:167) at org.apache.maven.plugin.deploy.DeployMojo.execute (DeployMojo.java:149) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: org.eclipse.aether.deployment.DeploymentException: Failed to deploy artifacts: Could not transfer artifact cn.dyaoming.common:common-parent:pom:1.0.0-20190411.094108-1 from/to maven-center-access (https://oss.sonatype.org/content/repositories/snapshots/): Access denied to: https://oss.sonatype.org/content/repositories/snapshots/cn/dyaoming/common/common-parent/1.0.0-SNAPSHOT/common-parent-1.0.0-20190411.094108-1.pom at org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:301) at org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:211) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy (DefaultRepositorySystem.java:371) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy (DefaultArtifactDeployer.java:142) at org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy (AbstractDeployMojo.java:167) at org.apache.maven.plugin.deploy.DeployMojo.execute (DeployMojo.java:149) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact cn.dyaoming.common:common-parent:pom:1.0.0-20190411.094108-1 from/to maven-center-access (https://oss.sonatype.org/content/repositories/snapshots/): Access denied to: https://oss.sonatype.org/content/repositories/snapshots/cn/dyaoming/common/common-parent/1.0.0-SNAPSHOT/common-parent-1.0.0-20190411.094108-1.pom at org.eclipse.aether.connector.basic.ArtifactTransportListener.transferFailed (ArtifactTransportListener.java:52) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run (BasicRepositoryConnector.java:368) at org.eclipse.aether.connector.basic.BasicRepositoryConnector.put (BasicRepositoryConnector.java:287) at org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:295) at org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:211) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy (DefaultRepositorySystem.java:371) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy (DefaultArtifactDeployer.java:142) at org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy (AbstractDeployMojo.java:167) at org.apache.maven.plugin.deploy.DeployMojo.execute (DeployMojo.java:149) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) Caused by: org.apache.maven.wagon.authorization.AuthorizationException: Access denied to: https://oss.sonatype.org/content/repositories/snapshots/cn/dyaoming/common/common-parent/1.0.0-SNAPSHOT/common-parent-1.0.0-20190411.094108-1.pom at org.apache.maven.wagon.providers.http.wagon.shared.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:724) at org.apache.maven.wagon.providers.http.wagon.shared.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:648) at org.apache.maven.wagon.providers.http.wagon.shared.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:630) at org.apache.maven.wagon.providers.http.wagon.shared.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:624) at org.apache.maven.wagon.providers.http.wagon.shared.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:604) at org.eclipse.aether.transport.wagon.WagonTransporter$PutTaskRunner.run (WagonTransporter.java:686) at org.eclipse.aether.transport.wagon.WagonTransporter.execute (WagonTransporter.java:435) at org.eclipse.aether.transport.wagon.WagonTransporter.put (WagonTransporter.java:418) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$PutTaskRunner.runTask (BasicRepositoryConnector.java:554) at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run (BasicRepositoryConnector.java:363) at org.eclipse.aether.connector.basic.BasicRepositoryConnector.put (BasicRepositoryConnector.java:287) at org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:295) at org.eclipse.aether.internal.impl.DefaultDeployer.deploy (DefaultDeployer.java:211) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.deploy (DefaultRepositorySystem.java:371) at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy (DefaultArtifactDeployer.java:142) at org.apache.maven.plugin.deploy.AbstractDeployMojo.deploy (AbstractDeployMojo.java:167) at org.apache.maven.plugin.deploy.DeployMojo.execute (DeployMojo.java:149) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305) at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192) at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105) at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956) at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288) at org.apache.maven.cli.MavenCli.main (MavenCli.java:192) at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke (Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356) [ERROR] [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
Java学习的正确打开方式
在博主认为,对于入门级学习java的最佳学习方法莫过于视频+博客+书籍+总结,前三者博主将淋漓尽致地挥毫于这篇博客文章中,至于总结在于个人,实际上越到后面你会发现学习的最好方式就是阅读参考官方文档其次就是国内的书籍,博客次之,这又是一个层次了,这里暂时不提后面再谈。博主将为各位入门java保驾护航,各位只管冲鸭!!!上天是公平的,只要不辜负时间,时间自然不会辜负你。 何谓学习?博主所理解的学习,它是一个过程,是一个不断累积、不断沉淀、不断总结、善于传达自己的个人见解以及乐于分享的过程。
大学四年自学走来,这些私藏的实用工具/学习网站我贡献出来了
大学四年,看课本是不可能一直看课本的了,对于学习,特别是自学,善于搜索网上的一些资源来辅助,还是非常有必要的,下面我就把这几年私藏的各种资源,网站贡献出来给你们。主要有:电子书搜索、实用工具、在线视频学习网站、非视频学习网站、软件下载、面试/求职必备网站。 注意:文中提到的所有资源,文末我都给你整理好了,你们只管拿去,如果觉得不错,转发、分享就是最大的支持了。 一、电子书搜索 对于大部分程序员...
linux系列之常用运维命令整理笔录
本博客记录工作中需要的linux运维命令,大学时候开始接触linux,会一些基本操作,可是都没有整理起来,加上是做开发,不做运维,有些命令忘记了,所以现在整理成博客,当然vi,文件操作等就不介绍了,慢慢积累一些其它拓展的命令,博客不定时更新 free -m 其中:m表示兆,也可以用g,注意都要小写 Men:表示物理内存统计 total:表示物理内存总数(total=used+free) use...
Vue + Spring Boot 项目实战(十四):用户认证方案与完善的访问拦截
本篇文章主要讲解 token、session 等用户认证方案的区别并分析常见误区,以及如何通过前后端的配合实现完善的访问拦截,为下一步权限控制的实现打下基础。
比特币原理详解
一、什么是比特币 比特币是一种电子货币,是一种基于密码学的货币,在2008年11月1日由中本聪发表比特币白皮书,文中提出了一种去中心化的电子记账系统,我们平时的电子现金是银行来记账,因为银行的背后是国家信用。去中心化电子记账系统是参与者共同记账。比特币可以防止主权危机、信用风险。其好处不多做赘述,这一层面介绍的文章很多,本文主要从更深层的技术原理角度进行介绍。 二、问题引入 假设现有4个人...
程序员接私活怎样防止做完了不给钱?
首先跟大家说明一点,我们做 IT 类的外包开发,是非标品开发,所以很有可能在开发过程中会有这样那样的需求修改,而这种需求修改很容易造成扯皮,进而影响到费用支付,甚至出现做完了项目收不到钱的情况。 那么,怎么保证自己的薪酬安全呢? 我们在开工前,一定要做好一些证据方面的准备(也就是“讨薪”的理论依据),这其中最重要的就是需求文档和验收标准。一定要让需求方提供这两个文档资料作为开发的基础。之后开发...
网页实现一个简单的音乐播放器(大佬别看。(⊙﹏⊙))
今天闲着无事,就想写点东西。然后听了下歌,就打算写个播放器。 于是乎用h5 audio的加上js简单的播放器完工了。 演示地点演示 html代码如下` music 这个年纪 七月的风 音乐 ` 然后就是css`*{ margin: 0; padding: 0; text-decoration: none; list-...
Python十大装B语法
Python 是一种代表简单思想的语言,其语法相对简单,很容易上手。不过,如果就此小视 Python 语法的精妙和深邃,那就大错特错了。本文精心筛选了最能展现 Python 语法之精妙的十个知识点,并附上详细的实例代码。如能在实战中融会贯通、灵活使用,必将使代码更为精炼、高效,同时也会极大提升代码B格,使之看上去更老练,读起来更优雅。
数据库优化 - SQL优化
以实际SQL入手,带你一步一步走上SQL优化之路!
2019年11月中国大陆编程语言排行榜
2019年11月2日,我统计了某招聘网站,获得有效程序员招聘数据9万条。针对招聘信息,提取编程语言关键字,并统计如下: 编程语言比例 rank pl_ percentage 1 java 33.62% 2 cpp 16.42% 3 c_sharp 12.82% 4 javascript 12.31% 5 python 7.93% 6 go 7.25% 7 p...
通俗易懂地给女朋友讲:线程池的内部原理
餐盘在灯光的照耀下格外晶莹洁白,女朋友拿起红酒杯轻轻地抿了一小口,对我说:“经常听你说线程池,到底线程池到底是个什么原理?”
经典算法(5)杨辉三角
杨辉三角 是经典算法,这篇博客对它的算法思想进行了讲解,并有完整的代码实现。
腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹?
昨天,有网友私信我,说去阿里面试,彻底的被打击到了。问了为什么网上大量使用ThreadLocal的源码都会加上private static?他被难住了,因为他从来都没有考虑过这个问题。无独有偶,今天笔者又发现有网友吐槽了一道腾讯的面试题,我们一起来看看。 腾讯算法面试题:64匹马8个跑道需要多少轮才能选出最快的四匹? 在互联网职场论坛,一名程序员发帖求助到。二面腾讯,其中一个算法题:64匹...
面试官:你连RESTful都不知道我怎么敢要你?
干货,2019 RESTful最贱实践
SQL-小白最佳入门sql查询一
不要偷偷的查询我的个人资料,即使你再喜欢我,也不要这样,真的不好;
项目中的if else太多了,该怎么重构?
介绍 最近跟着公司的大佬开发了一款IM系统,类似QQ和微信哈,就是聊天软件。我们有一部分业务逻辑是这样的 if (msgType = "文本") { // dosomething } else if(msgType = "图片") { // doshomething } else if(msgType = "视频") { // doshomething } else { // doshom...
漫话:什么是平衡(AVL)树?这应该是把AVL树讲的最好的文章了
这篇文章通过对话的形式,由浅入深带你读懂 AVL 树,看完让你保证理解 AVL 树的各种操作,如果觉得不错,别吝啬你的赞哦。 1、若它的左子树不为空,则左子树上所有的节点值都小于它的根节点值。 2、若它的右子树不为空,则右子树上所有的节点值均大于它的根节点值。 3、它的左右子树也分别可以充当为二叉查找树。 例如: 例如,我现在想要查找数值为14的节点。由于二叉查找树的特性,我们可...
“狗屁不通文章生成器”登顶GitHub热榜,分分钟写出万字形式主义大作
一、垃圾文字生成器介绍 最近在浏览GitHub的时候,发现了这样一个骨骼清奇的雷人项目,而且热度还特别高。 项目中文名:狗屁不通文章生成器 项目英文名:BullshitGenerator 根据作者的介绍,他是偶尔需要一些中文文字用于GUI开发时测试文本渲染,因此开发了这个废话生成器。但由于生成的废话实在是太过富于哲理,所以最近已经被小伙伴们给玩坏了。 他的文风可能是这样的: 你发现,...
程序员:我终于知道post和get的区别
是一个老生常谈的话题,然而随着不断的学习,对于以前的认识有很多误区,所以还是需要不断地总结的,学而时习之,不亦说乎
《程序人生》系列-这个程序员只用了20行代码就拿了冠军
你知道的越多,你不知道的越多 点赞再看,养成习惯GitHub上已经开源https://github.com/JavaFamily,有一线大厂面试点脑图,欢迎Star和完善 前言 这一期不算《吊打面试官》系列的,所有没前言我直接开始。 絮叨 本来应该是没有这期的,看过我上期的小伙伴应该是知道的嘛,双十一比较忙嘛,要值班又要去帮忙拍摄年会的视频素材,还得搞个程序员一天的Vlog,还要写BU...
开源并不是你认为的那些事
点击上方蓝字 关注我们开源之道导读所以 ————想要理清开源是什么?先要厘清开源不是什么,名正言顺是句中国的古代成语,概念本身的理解非常之重要。大部分生物多样性的起源,...
加快推动区块链技术和产业创新发展,2019可信区块链峰会在京召开
11月8日,由中国信息通信研究院、中国通信标准化协会、中国互联网协会、可信区块链推进计划联合主办,科技行者协办的2019可信区块链峰会将在北京悠唐皇冠假日酒店开幕。   区块链技术被认为是继蒸汽机、电力、互联网之后,下一代颠覆性的核心技术。如果说蒸汽机释放了人类的生产力,电力解决了人类基本的生活需求,互联网彻底改变了信息传递的方式,区块链作为构造信任的技术有重要的价值。   1...
程序员把地府后台管理系统做出来了,还有3.0版本!12月7号最新消息:已在开发中有github地址
第一幕:缘起 听说阎王爷要做个生死簿后台管理系统,我们派去了一个程序员…… 996程序员做的梦: 第一场:团队招募 为了应对地府管理危机,阎王打算找“人”开发一套地府后台管理系统,于是就在地府总经办群中发了项目需求。 话说还是中国电信的信号好,地府都是满格,哈哈!!! 经常会有外行朋友问:看某网站做的不错,功能也简单,你帮忙做一下? 而这次,面对这样的需求,这个程序员...
网易云6亿用户音乐推荐算法
网易云音乐是音乐爱好者的集聚地,云音乐推荐系统致力于通过 AI 算法的落地,实现用户千人千面的个性化推荐,为用户带来不一样的听歌体验。 本次分享重点介绍 AI 算法在音乐推荐中的应用实践,以及在算法落地过程中遇到的挑战和解决方案。 将从如下两个部分展开: AI算法在音乐推荐中的应用 音乐场景下的 AI 思考 从 2013 年 4 月正式上线至今,网易云音乐平台持续提供着:乐屏社区、UGC...
【技巧总结】位运算装逼指南
位算法的效率有多快我就不说,不信你可以去用 10 亿个数据模拟一下,今天给大家讲一讲位运算的一些经典例子。不过,最重要的不是看懂了这些例子就好,而是要在以后多去运用位运算这些技巧,当然,采用位运算,也是可以装逼的,不信,你往下看。我会从最简单的讲起,一道比一道难度递增,不过居然是讲技巧,那么也不会太难,相信你分分钟看懂。 判断奇偶数 判断一个数是基于还是偶数,相信很多人都做过,一般的做法的代码如下...
《C++ Primer》学习笔记(六):C++模块设计——函数
专栏C++学习笔记 《C++ Primer》学习笔记/习题答案 总目录 https://blog.csdn.net/TeFuirnever/article/details/100700212 —————————————————————————————————————————————————————— 《C++ Primer》习题参考答案:第6章 - C++模块设计——函数 文章目录专栏C+...
8年经验面试官详解 Java 面试秘诀
作者 |胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。 Java程序员准备和投递简历的实...
面试官如何考察你的思维方式?
1.两种思维方式在求职面试中,经常会考察这种问题:北京有多少量特斯拉汽车?某胡同口的煎饼摊一年能卖出多少个煎饼?深圳有多少个产品经理?一辆公交车里能装下多少个乒乓球?一个正常成年人有多少根头发?这类估算问题,被称为费米问题,是以科学家费米命名的。为什么面试会问这种问题呢?这类问题能把两类人清楚地区分出来。一类是具有文科思维的人,擅长赞叹和模糊想象,它主要依靠的是人的第一反应和直觉,比如小孩...
so easy! 10行代码写个"狗屁不通"文章生成器
前几天,GitHub 有个开源项目特别火,只要输入标题就可以生成一篇长长的文章。 背后实现代码一定很复杂吧,里面一定有很多高深莫测的机器学习等复杂算法 不过,当我看了源代码之后 这程序不到50行 尽管我有多年的Python经验,但我竟然一时也没有看懂 当然啦,原作者也说了,这个代码也是在无聊中诞生的,平时撸码是不写中文变量名的, 中文...
知乎高赞:中国有什么拿得出手的开源软件产品?(整理自本人原创回答)
知乎高赞:中国有什么拿得出手的开源软件产品? 在知乎上,有个问题问“中国有什么拿得出手的开源软件产品(在 GitHub 等社区受欢迎度较好的)?” 事实上,还不少呢~ 本人于2019.7.6进行了较为全面的回答,对这些受欢迎的 Github 开源项目分类整理如下: 分布式计算、云平台相关工具类 1.SkyWalking,作者吴晟、刘浩杨 等等 仓库地址: apache/skywalking 更...
相关热词 c# plc s1200 c#里氏转换原则 c# 主界面 c# do loop c#存为组套 模板 c# 停掉协程 c# rgb 读取图片 c# 图片颜色调整 最快 c#多张图片上传 c#密封类与密封方法
立即提问