NutzCN Logo
问答 nutzwk 用idea打开项目为什么不能构建?自动下载jar包?
发布于 2503天前 作者 qq_cdeebfe2 2099 次浏览 复制 上一个帖子 下一个帖子
标签: nutzwk

nutzwk 用idea打开项目为什么不能构建?自动下载jar包? 本地的setting.xml需要配置吗?

16 回复

就是照文档做的,弄了半天也不行~求指点

何为不能构建?报什么错误?

就是nutz的相关的jar包都没有下载下来

settings.xml是不是配了阿里的maven镜像?

执行mvn install,贴日志

[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO] [INFO] NutzWk
[INFO] wk-framework
[INFO] wk-app
[INFO] wk-web
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] Building NutzWk 4.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ wk-parent ---
[INFO] Installing E:\Wokspaces20170519\NutzWk-modular\pom.xml to E:\maven\repo\cn\wizzer\wk-parent\4.0.1-SNAPSHOT\wk-parent-4.0.1-SNAPSHOT.pom
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] Building wk-framework 4.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
Downloading: http://192.168.3.254:8044/nexus/content/groups/public/org/nutz/nutz/1.r.61-SNAPSHOT/maven-metadata.xml
Downloading: http://192.168.3.254:8044/nexus/content/groups/public/org/nutz/nutz/1.r.61-SNAPSHOT/nutz-1.r.61-SNAPSHOT.pom
[WARNING] The POM for org.nutz:nutz:jar:1.r.61-SNAPSHOT is missing, no dependency information available
Downloading: http://192.168.3.254:8044/nexus/content/groups/public/org/nutz/nutz-plugins-daocache/1.r.61-SNAPSHOT/maven-metadata.xml
Downloading: http://192.168.3.254:8044/nexus/content/groups/public/org/nutz/nutz-plugins-daocache/1.r.61-SNAPSHOT/nutz-plugins-daocache-1.r.61-SNAPSHOT.pom
[WARNING] The POM for org.nutz:nutz-plugins-daocache:jar:1.r.61-SNAPSHOT is missing, no dependency information available
Downloading: http://192.168.3.254:8044/nexus/content/groups/public/org/nutz/nutz-plugins-cache/1.r.61-SNAPSHOT/maven-metadata.xml
Downloading: http://192.168.3.254:8044/nexus/content/groups/public/org/nutz/nutz-plugins-cache/1.r.61-SNAPSHOT/nutz-plugins-cache-1.r.61-SNAPSHOT.pom
[WARNING] The POM for org.nutz:nutz-plugins-cache:jar:1.r.61-SNAPSHOT is missing, no dependency information available
Downloading: http://192.168.3.254:8044/nexus/content/groups/public/org/nutz/nutz-integration-quartz/1.r.61-SNAPSHOT/maven-metadata.xml
Downloading: http://192.168.3.254:8044/nexus/content/groups/public/org/nutz/nutz-integration-quartz/1.r.61-SNAPSHOT/nutz-integration-quartz-1.r.61-SNAPSHOT.pom
[WARNING] The POM for org.nutz:nutz-integration-quartz:jar:1.r.61-SNAPSHOT is missing, no dependency information available
Downloading: http://192.168.3.254:8044/nexus/content/groups/public/org/nutz/nutz-integration-jedis/1.r.61-SNAPSHOT/maven-metadata.xml
[WARNING] The POM for org.nutz:nutz-integration-jedis:jar:1.r.61-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.nutz:nutzwx:jar:1.r.61-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.nutz:nutz-plugins-views:jar:1.r.61-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.nutz:nutz-integration-rabbitmq:jar:1.r.61-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for org.nutz:nutz-plugins-mock:jar:1.r.61-SNAPSHOT is missing, no dependency information available
[WARNING] The POM for cn.wizzer:wk-code-generator:jar:4.0.1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO] [INFO] NutzWk ............................................. SUCCESS [ 1.315 s] [INFO] wk-framework ....................................... FAILURE [ 6.126 s] [INFO] wk-app ............................................. SKIPPED
[INFO] wk-web ............................................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.794 s
[INFO] Finished at: 2017-06-13T09:04:43+08:00
[INFO] Final Memory: 9M/123M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project wk-framework: Could not resolve dependencies for project cn.wizzer:wk-framework:jar:4.0.1-SNAPSHOT: The following artifacts could not be resolved: org.nutz:nutz:jar:1.r.61-SNAPSHOT, org.nutz:nutz-plugins-daocache:jar:1.r.61-SNAPSHOT, org.nutz:nutz-plugins-cache:jar:1.r.61-SNAPSHOT, org.nutz:nutz-integration-quartz:jar:1.r.61-SNAPSHOT, org.nutz:nutz-integration-jedis:jar:1.r.61-SNAPSHOT, org.nutz:nutzwx:jar:1.r.61-SNAPSHOT, org.nutz:nutz-plugins-views:jar:1.r.61-SNAPSHOT, org.nutz:nutz-integration-rabbitmq:jar:1.r.61-SNAPSHOT, org.nutz:nutz-plugins-mock:jar:1.r.61-SNAPSHOT, cn.wizzer:wk-code-generator:jar:4.0.1-SNAPSHOT: Failure to find org.nutz:nutz:jar:1.r.61-SNAPSHOT in http://192.168.3.254:8044/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of local_mirror has elapsed or updates are forced -> [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/DependencyResolutionException
[ERROR] [ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :wk-framework

你的settings.xml配了mirror,贴出来看看

<?xml version="1.0" encoding="UTF-8"?>

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd"
E:/maven/repo





<!-- Another sample, using keys to authenticate.
<server>
  <id>siteServer</id>
  <privateKey>/path/to/private/key</privateKey>
  <passphrase>optional; leave empty if not used.</passphrase>
</server>
-->





local_mirror
*
local_mirror
http://192.168.3.254:8044/nexus/content/groups/public/



nexus-aliyun
*
Nexus aliyun
http://maven.aliyun.com/nexus/content/groups/public



<!--
 | Here is another profile, activated by the system property 'target-env' with a value of 'dev',
 | which provides a specific path to the Tomcat instance. To use this, your plugin configuration
 | might hypothetically look like:
 |
 | ...
 | <plugin>
 |   <groupId>org.myco.myplugins</groupId>
 |   <artifactId>myplugin</artifactId>
 |
 |   <configuration>
 |     <tomcatLocation>${tomcatPath}</tomcatLocation>
 |   </configuration>
 | </plugin>
 | ...
 |
 | NOTE: If you just wanted to inject this configuration whenever someone set 'target-env' to
 |       anything, you could just leave off the <value/> inside the activation-property.
 |
<profile>
  <id>env-dev</id>

  <activation>
    <property>
      <name>target-env</name>
      <value>dev</value>
    </property>
  </activation>

  <properties>
    <tomcatPath>/path/to/tomcat/instance</tomcatPath>
  </properties>
</profile>
-->
<profile>
        <id>nexus</id>
        <repositories>
            <repository>
                <id>nexus_public</id>
                <url>http://192.168.3.254:8044/nexus/content/groups/public/</url>
                <releases>
                    <enabled>true</enabled>
                </releases>
                <snapshots>
                <enabled>true</enabled>
            </snapshots>    
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>nexus_public</id>
            <url>http://192.168.3.254:8044/nexus/content/groups/public/</url>
            <releases>
                <enabled>true</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
         </pluginRepository>
    </pluginRepositories>
</profile>



nexus

带星号的都要改

这个是怎么解决的?我也遇到了这个问题,settings.xml也改了,还是找不到包.
[ERROR] Failed to execute goal on project wk-framework: Could not resolve dependencies for project cn.wizzer:wk-framework:jar:4.0.1-SNAPSHOT: The following artifact
tz:jar:1.r.65-SNAPSHOT, org.nutz:nutz-plugins-daocache:jar:1.r.65-SNAPSHOT, org.nutz:nutz-plugins-cache:jar:1.r.65-SNAPSHOT, org.nutz:nutz-integration-quartz:jar:1.
tion-jedis:jar:1.r.65-SNAPSHOT, org.nutz:nutz-plugins-wkcache:jar:1.r.65-SNAPSHOT, org.nutz:nutzwx:jar:1.r.65-SNAPSHOT, org.nutz:nutz-plugins-views:jar:1.r.65-SNAPS
tmq:jar:1.r.65-SNAPSHOT, org.nutz:nutz-plugins-mock:jar:1.r.65-SNAPSHOT, cn.wizzer:wk-code-generator:jar:4.0.1-SNAPSHOT: Failure to find org.nutz:nutz:jar:1.r.65-SN
exus/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forc

刚看到mvn install 信息请求的是本地库,刚重新改了次settings.xml,然后就可以了。必须打赏。good

添加回复
请先登陆
回到顶部