我有很多困难,从源头建设Unicenta的销售点软件。
结果
cd C:\Users\Jakov\Documents\Java projekti\Unicenta oPos 3.91.3; "JAVA_HOME=C:\\Program Files\\Java\\jdk1.8.0_74" cmd /c "\"\"C:\\Program Files\\NetBeans 8.1\\java\\maven\\bin\\mvn.bat\" -Dmaven.ext.class.path=\"C:\\Program Files\\NetBeans 8.1\\java\\maven-nblib\\netbeans-eventspy.jar\" -Dfile.encoding=UTF-8 install\""
Scanning for projects...
Some problems were encountered while building the effective model for com.unicenta:unicentaopos:jar:3.91.3
'build.plugins.plugin.version' for org.apache.maven.plugins:maven-jar-plugin is missing. @ line 346, column 21
It is highly recommended to fix these problems because they threaten the stability of your build.
For this reason, future Maven versions might no longer support building such malformed projects.然后,它开始下载各种软件包:
Downloading: http://repo.maven.apache.org/maven2/commons-logging/commons-logging/1.1/commons-logging-1.1.pom
Downloaded: http://repo.maven.apache.org/maven2/commons-logging/commons-logging/1.1/commons-logging-1.1.pom (7 KB at 43.1 KB/sec)
Downloading: http://s448089793.websitehome.co.uk/maven2/org/springframework/spring-core/2.0.6/spring-core-2.0.6.pom此消息显示在几个包中:
Downloading: http://bits.netbeans.org/maven2/org/springframework/spring-core/2.0.6/spring-core-2.0.6.pom
velj 25, 2016 10:17:57 AM org.apache.maven.wagon.providers.http.httpclient.client.protocol.ResponseProcessCookies processCookies
WARNING: Cookie rejected [rememberMe="deleteMe", version:0, domain:bits.netbeans.org, path:/nexus, expiry:Thu Feb 25 10:17:57 CET 2016] Illegal path attribute "/nexus". Path of origin: "/maven2/org/springframework/spring-core/2.0.6/spring-core-2.0.6.pom"最后:
------------------------------------------------------------------------
BUILD FAILURE
------------------------------------------------------------------------
Total time: 3:10.127s
Finished at: Thu Feb 25 10:20:59 CET 2016
Final Memory: 10M/66M
------------------------------------------------------------------------
Failed to execute goal on project unicentaopos: Could not resolve dependencies for project com.unicenta:unicentaopos:jar:3.91.3: The following artifacts could not be resolved: com.unicenta:pos:jar:1.0, com.handpoint:headstartsimulator:jar:1.1.2, com.handpoint:heft:jar:1.1.0, com.handpoint:hal-pc:jar:1.1.2: Could not find artifact com.unicenta:pos:jar:1.0 in private-repo (http://s448089793.websitehome.co.uk/maven2/) -> [Help 1]
To see the full stack trace of the errors, re-run Maven with the -e switch.
Re-run Maven using the -X switch to enable full debug logging.
For more information about the errors and possible solutions, please read the following articles:
[Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException第一个警告是在为maven-jar插件添加<version>标记后解决的。但我想不出错误的解决办法。我尝试将Apache的Maven存储库添加到POM中,但没有帮助。
发布于 2016-03-25 01:34:54
是的,不知道为什么Unicenta没有将正确的pom打包到他们提供的.zip文件中。
只需从pom.xml下载https://sourceforge.net/projects/unicentaopos/files/source/文件

并使用它替换netbeans项目中的pom.xml文件(.\unicentaopos-3.91.3-source\po.xml)
再建一次,你就到了
https://stackoverflow.com/questions/35623683
复制相似问题