maven吧 关注:1,579贴子:3,524

回复:遇到问题请召唤我,我会尽可能解决你们的问题的。

只看楼主收藏回复

楼主,就是创建了maven框架以后,pom.xml文件里面什么都没有,右边的也是Unknown,求解决


来自Android客户端200楼2018-05-22 08:51
收起回复
    怎么将maven中setting.xml注释掉。?


    201楼2018-07-19 13:50
    回复(1)
      2026-06-30 10:09:56
      广告
      不感兴趣
      开通SVIP免广告
      楼主你好 请问 创建MAVEN的web项目时 出现Can't rename E:\Workspaces\MyEclipse 10\a. 这个怎么解决呢


      202楼2018-07-30 23:45
      回复(1)
        用IDEA构建MAVEN项目时出错,求解!!
        "C:\Program Files (x86)\Java\jdk1.6.0_03\bin\java.exe" -Xms128m -Xmx512m -Duser.language=zh -Dfile.encoding=UTF-8 -Dmaven.home=D:\Maven\apache-maven-3.2.5 -Dclassworlds.conf=D:\Maven\apache-maven-3.2.5\bin\m2.conf -classpath D:\Maven\apache-maven-3.2.5\boot\plexus-classworlds-2.5.2.jar org.codehaus.classworlds.Launcher -Didea.version=2018.1.5 -DinteractiveMode=false -DgroupId=cn.hhh -DartifactId=qqqq -Dversion=1.0-SNAPSHOT -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-webapp -DarchetypeVersion=RELEASE org.apache.maven.plugins:maven-archetype-plugin:RELEASE:generate
        [INFO] Scanning for projects...
        Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-archetype-plugin/maven-metadata.xml
        [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org
        [INFO] ------------------------------------------------------------------------
        [INFO] BUILD FAILURE
        [INFO] ------------------------------------------------------------------------
        [INFO] Total time: 0.545 s
        [INFO] Finished at: 2018-07-31T14:59:37+08:00
        [INFO] Final Memory: 2M/127M
        [INFO] ------------------------------------------------------------------------
        [ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Failed to resolve version for org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Could not find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml in local (C:\Users\Administrator\.m2\repository) -> [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/PluginResolutionException


        IP属地:广东203楼2018-07-31 20:10
        回复
          [INFO] Scanning for projects...
          [INFO]
          [INFO] ------------------------------------------------------------------------
          [INFO] Building Maven_2 0.0.1-SNAPSHOT
          [INFO] ------------------------------------------------------------------------
          [INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.4/maven-jar-plugin-2.4.pom
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD FAILURE
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 2.917 s
          [INFO] Finished at: 2018-08-04T16:05:15+08:00
          [INFO] Final Memory: 7M/16M
          [INFO] ------------------------------------------------------------------------
          [ERROR] Plugin org.apache.maven.plugins:maven-jar-plugin:2.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-jar-plugin:jar:2.4: Could not transfer artifact org.apache.maven.plugins:maven-jar-plugin:pom:2.4 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [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/PluginResolutionException
          楼主求解
          执行Maven test命令时就报这个错,多次清仓也没用


          204楼2018-08-04 16:09
          回复(2)
            为什么我的maven项目修改了jdk版本 也改了
            但是我刷新后 它又变成了myeclipse默认的javase-1.6
            试了很多种方法都不行,


            205楼2018-09-03 14:39
            回复(1)
              web工程源码编译后应该放到webapp/web-inf/classes下,还是应该放到target/classes下?我在idea中看到两个位置都可以设置,请问有什么区别?maven打包的时候,是将哪块文件打包?


              IP属地:北京206楼2018-09-10 09:04
              回复(2)
                什么是maven插件?它的底层是用java实现的吗?比如maven-install插件,我们在双击它的时候,到底在程序中进行了那些动作?
                再比如本地安装的tomcat,和在maven的pom.xml中引入的tomcat的插件区别在什么地方?
                tomcat在本地的时候,我将web项目打成war包,放入本地tomcat的webapps下,启动tomcat容器,就可以通过浏览器访问。
                tomcat是maven导入的插件时,我点击tomcat 7:run-war的时候,会打包,但是打完包后idea会将war包放在什么地方?


                IP属地:北京207楼2018-09-30 15:31
                回复(1)
                  2026-06-30 10:03:56
                  广告
                  不感兴趣
                  开通SVIP免广告
                  吧主我遇到了问题,
                  这是cmd的报错
                  D:\maven\apache-maven-3.5.4\lib>mvn install:install-file -DgroupId=org.apache.m
                  aven.archetypes -DartifactId=maven-archetype-quickstart -Dversion=1.1 -Dpackagin
                  g=jar -Dfile=maven-archetype-quickstart-1.1.jar
                  [INFO] Scanning for projects...
                  [INFO] ------------------------------------------------------------------------
                  [INFO] BUILD FAILURE
                  [INFO] ------------------------------------------------------------------------
                  [INFO] Total time: 0.401 s
                  [INFO] Finished at: 2018-10-08T09:53:43+08:00
                  [INFO] ------------------------------------------------------------------------
                  [ERROR] The goal you specified requires a project to execute but there is no POM
                  in this directory (D:\maven\apache-maven-3.5.4\lib). Please verify you invoked
                  Maven from the correct directory. -> [Help 1]
                  [ERROR]
                  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
                  ch.
                  [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 rea
                  d the following articles:
                  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MissingProject
                  Exception


                  208楼2018-10-08 10:10
                  回复(2)
                    楼主这个怎么办呀,,创建maven项目总是这样


                    IP属地:广东209楼2018-10-10 15:26
                    收起回复
                      求助吧主,我需要使用spring-orm,结果eclipse只导入了 spring-orm.jar,他的依赖包全部没有下载,请问是什么原因?


                      211楼2018-10-15 17:18
                      回复(2)

                        打包之后*.properties可以排除掉,但是*.xml文件依旧存在,没有排除掉


                        212楼2018-11-08 09:27
                        回复(2)
                          请问springmvc的jsp的表单能跳转到controller的类吗


                          IP属地:广东来自Android客户端213楼2018-11-12 22:58
                          收起回复
                            您好,这个问题要怎么解决?


                            来自Android客户端215楼2018-12-22 14:31
                            回复
                              2026-06-30 09:57:56
                              广告
                              不感兴趣
                              开通SVIP免广告
                              请教一下 版主 linux下打包 我正常引入了
                              <dependency>
                              <groupId>com.github.sgroschupf</groupId>
                              <artifactId>zkclient</artifactId>
                              <version>0.1</version>
                              </dependency>
                              这个依赖 为什么他关联下的 图片里面的zookeeper.jar 90%的情况下正常有这个包 但是10%是没有这个包的 ,会是网络的原因没打进去,还是操作不档导致的这样的情况



                              IP属地:北京216楼2018-12-29 09:23
                              回复(2)