【问题标题】:What is this parent (jboss-parent) that the parent pom in Wildfly Quickstart is pointing to?Wildfly Quickstart 中的父 pom 指向的这个父 (jboss-parent) 是什么?
【发布时间】:2014-05-21 15:04:07
【问题描述】:
<parent>
    <groupId>org.jboss</groupId>
    <artifactId>jboss-parent</artifactId>
    <version>14</version>
    <relativePath />
</parent>

一旦我找到这个父母,我应该去哪里?还是可以忽略不计?

【问题讨论】:

    标签: maven pom.xml wildfly wildfly-8


    【解决方案1】:

    它位于GitHubMaven central

    您可能不需要它,但这取决于您在做什么。它用于仅拉入一些默认插件版本和依赖版本。

    【讨论】:

      【解决方案2】:

      将 settings.xml 文件从 $MAVEN_HOME/conf 复制到本地 .m2 目录。

      编辑和添加:

      &lt;profiles&gt; 节点内:

          <profile>  
                  <id>jboss-public-repository</id>  
                  <repositories>  
                      <repository>  
                          <id>jboss-public-repository-group</id>  
                          <name>JBoss Public Maven Repository Group</name>  
                          <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>  
                          <layout>default</layout>  
                          <releases>  
                              <enabled>true</enabled>  
                              <updatePolicy>never</updatePolicy>  
                          </releases>  
                          <snapshots>  
                              <enabled>true</enabled>  
                              <updatePolicy>never</updatePolicy>  
                          </snapshots>  
                      </repository>  
                  </repositories>  
                  <pluginRepositories>  
                      <pluginRepository>  
                          <id>jboss-public-repository-group</id>  
                          <name>JBoss Public Maven Repository Group</name>  
                          <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>  
                          <layout>default</layout>  
                          <releases>  
                              <enabled>true</enabled>  
                              <updatePolicy>never</updatePolicy>  
                          </releases>  
                          <snapshots>  
                              <enabled>true</enabled>  
                              <updatePolicy>never</updatePolicy>  
                          </snapshots>  
                      </pluginRepository>  
                  </pluginRepositories>  
              </profile>
      

      &lt;/profiles&gt; 节点下方&lt;settings&gt; 节点:

          <activeProfiles>  
              <activeProfile>jboss-public-repository</activeProfile>  
          </activeProfiles>
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-03-31
        • 2015-11-21
        • 2014-05-03
        • 1970-01-01
        • 2011-12-23
        • 2020-08-19
        • 2022-07-30
        • 2018-07-18
        相关资源
        最近更新 更多