首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Windows环境下从源代码构建Unicenta oPos

在Windows环境下从源代码构建Unicenta oPos
EN

Stack Overflow用户
提问于 2016-02-25 09:48:19
回答 1查看 3.9K关注 0票数 0

我有很多困难,从源头建设Unicenta的销售点软件。

  • 我在Windows上使用NetBeans v8.1 (我试过SE和EE,不知道这是否重要)
  • Maven已经下载并添加到path变量中。
  • 安装了JDK1.8并创建了JAVA_HOME变量
  • 下载UnicentaV3.91.3源代码(来自source ),并在oPos中打开项目
  • 在“项目”窗格中右击项目,选择“使用依赖项构建”。

结果

代码语言:javascript
复制
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.

然后,它开始下载各种软件包:

代码语言:javascript
复制
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

此消息显示在几个包中:

代码语言:javascript
复制
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"

最后:

代码语言:javascript
复制
------------------------------------------------------------------------
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中,但没有帮助。

EN

回答 1

Stack Overflow用户

发布于 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)

再建一次,你就到了

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35623683

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档