<i id='bP2dP'><tr id='bP2dP'><dt id='bP2dP'><q id='bP2dP'><span id='bP2dP'><b id='bP2dP'><form id='bP2dP'><ins id='bP2dP'></ins><ul id='bP2dP'></ul><sub id='bP2dP'></sub></form><legend id='bP2dP'></legend><bdo id='bP2dP'><pre id='bP2dP'><center id='bP2dP'></center></pre></bdo></b><th id='bP2dP'></th></span></q></dt></tr></i><div id='bP2dP'><tfoot id='bP2dP'></tfoot><dl id='bP2dP'><fieldset id='bP2dP'></fieldset></dl></div>
      • <bdo id='bP2dP'></bdo><ul id='bP2dP'></ul>

      <small id='bP2dP'></small><noframes id='bP2dP'>

      <tfoot id='bP2dP'></tfoot>

    1. <legend id='bP2dP'><style id='bP2dP'><dir id='bP2dP'><q id='bP2dP'></q></dir></style></legend>
    2. 我的 Maven 配置有什么问题?

      What is wrong with my Maven Config?(我的 Maven 配置有什么问题?)

      1. <legend id='eI04E'><style id='eI04E'><dir id='eI04E'><q id='eI04E'></q></dir></style></legend>

              <bdo id='eI04E'></bdo><ul id='eI04E'></ul>
            • <i id='eI04E'><tr id='eI04E'><dt id='eI04E'><q id='eI04E'><span id='eI04E'><b id='eI04E'><form id='eI04E'><ins id='eI04E'></ins><ul id='eI04E'></ul><sub id='eI04E'></sub></form><legend id='eI04E'></legend><bdo id='eI04E'><pre id='eI04E'><center id='eI04E'></center></pre></bdo></b><th id='eI04E'></th></span></q></dt></tr></i><div id='eI04E'><tfoot id='eI04E'></tfoot><dl id='eI04E'><fieldset id='eI04E'></fieldset></dl></div>

              <small id='eI04E'></small><noframes id='eI04E'>

                <tbody id='eI04E'></tbody>
                <tfoot id='eI04E'></tfoot>

                本文介绍了我的 Maven 配置有什么问题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                I want to checkout sonar, so I added the following snippet to my pom.xml the dependency part was taken from http://maven.apache.org/general.html#tools-jar-dependency

                <profile>
                     <id>sonar</id>
                     <activation>
                        <activeByDefault>true</activeByDefault>
                     </activation>
                     <properties>
                       <sonar.jdbc.url>jdbc:derby://localhost:1527/sonar;create=true</sonar.jdbc.url>
                       <sonar.jdbc.driverClassName>org.apache.derby.jdbc.ClientDriver
                       </sonar.jdbc.driverClassName>
                       <sonar.jdbc.username>sonar</sonar.jdbc.username>
                       <sonar.jdbc.password>sonar</sonar.jdbc.password>
                       <sonar.host.url>http://localhost:8080/sonar</sonar.host.url>
                     </properties>
                     <dependencies>
                    <dependency>
                    <groupId>com.sun</groupId>
                    <artifactId>tools</artifactId>
                    <version>1.4.2</version>
                    <scope>system</scope>
                    <systemPath>${java.home}/../lib/tools.jar</systemPath>
                    </dependency>
                      </dependencies>
                </profile>
                

                Unfortunatly the error persists

                Embedded error: Missing:
                ----------
                1) com.sun:tools:jar:1.4.2
                
                  Try downloading the file manually from the project website.
                
                  Then, install it using the command: 
                      mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file
                

                I also followed the suggestion to add the missing jar manually to the repository, which had no effect.

                mvn install:install-file -DgroupId=com.sun -DartifactId=tools -Dversion=1.4.2 -Dpackaging=jar -Dfile=$JAVA_HOME/lib/tools.jar
                

                What am I doing wrong?

                EDIT:

                I verified that tools.jar has been added to my local repository. In debug mode maven shows the error:

                1 required artifact is missing.
                
                for artifact: 
                  group:artifact:war:1.0.0-BUILD-SNAPSHOT
                
                from the specified remote repositories:
                  central (http://repo1.maven.org/maven2)
                

                解决方案

                Are you running this in eclipse? If the answer is yes, this is an annoying and very misunderstood problem. Take a look at my answer here

                You may not be pointing eclipse to the right jre/jdk when you're starting up (this is something you didn't necessarily configure rather was Windows)

                这篇关于我的 Maven 配置有什么问题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                Slf4j LoggerFactory.getLogger and sonarqube(Slf4j LoggerFactory.getLogger 和 sonarqube)
                Security - Array is stored directly(安全性 - 数组直接存储)
                SonarQube quot;Class Not Foundquot; during Main AST Scan(SonarQube“找不到类在主 AST 扫描期间)
                Integrate Spock#39;s test with Sonar(将 Spock 的测试与声纳集成)
                How do I make Hudson/Jenkins fail if Sonar thresholds are breached?(如果违反声纳阈值,我如何让 Hudson/Jenkins 失败?)
                automatically add curly brackets to all if/else/for/while etc. in a java code-base(自动将大括号添加到 java 代码库中的所有 if/else/for/while 等)

                        • <bdo id='8CvuE'></bdo><ul id='8CvuE'></ul>
                            <tbody id='8CvuE'></tbody>

                          <small id='8CvuE'></small><noframes id='8CvuE'>

                          <tfoot id='8CvuE'></tfoot>

                          <legend id='8CvuE'><style id='8CvuE'><dir id='8CvuE'><q id='8CvuE'></q></dir></style></legend>
                          <i id='8CvuE'><tr id='8CvuE'><dt id='8CvuE'><q id='8CvuE'><span id='8CvuE'><b id='8CvuE'><form id='8CvuE'><ins id='8CvuE'></ins><ul id='8CvuE'></ul><sub id='8CvuE'></sub></form><legend id='8CvuE'></legend><bdo id='8CvuE'><pre id='8CvuE'><center id='8CvuE'></center></pre></bdo></b><th id='8CvuE'></th></span></q></dt></tr></i><div id='8CvuE'><tfoot id='8CvuE'></tfoot><dl id='8CvuE'><fieldset id='8CvuE'></fieldset></dl></div>