我从源头构建Unicenta的销售点软件遇到了很多困难。
RESULT
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-plugin添加<version>
标记后,第一个警告就解决了。但我无法弄清楚错误的解决方案。我已经尝试将Apache的Maven存储库添加到POM中,但没有帮助。
答案 0 :(得分:0)
是的,不知道为什么Unicenta没有在他们提供的.zip文件中包装正确的pom。
只需从中下载pom.xml文件即可 https://sourceforge.net/projects/unicentaopos/files/source/
用它来替换netbeans项目中的pom.xml文件(... \ unicentaopos-3.91.3-source \ pom.xml)
再次构建,然后你去