首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Mac上安装UMLGraph

在Mac上安装UMLGraph
EN

Stack Overflow用户
提问于 2015-10-05 11:02:17
回答 1查看 120关注 0票数 1

我正在尝试在我的AntBuild.xml(osx10.9.5)上编译UMLGraph,但在尝试运行‘MacBook build.xml’时遇到错误。有没有人遇到过这个问题?下面是错误:

代码语言:javascript
复制
UMLGraph-5.7_2.3-SNAPSHOT$ ant build.xml
Buildfile: /Users/jeremy/UMLGraph-5.7_2.3-SNAPSHOT/build.xml
[echo] git describe --abbrev=6 => 'version'

BUILD FAILED
/Users/jeremy/UMLGraph-5.7_2.3-SNAPSHOT/build.xml:50: The following error occurred while executing this line:
/Users/jeremy/UMLGraph-5.7_2.3-SNAPSHOT/build.xml:27: exec returned: 128

Total time: 1 second

下面是来自build.xml的第50行及其上方几行的代码片段:

代码语言:javascript
复制
 23   <sequential>
 24     <echo message="git describe --abbrev=6 => '@{outputproperty}'"/>
 25   <exec executable="git"
 26     failonerror="true"
 27     outputproperty="@{outputproperty}">
 28     <arg value="describe"/>
 29     <arg value="--abbrev=6"/>
 30     <arg value="HEAD"/>
 31     <redirector>
 32       <outputfilterchain>
 33       <tokenfilter>
 34         <replaceregex pattern="R" replace=""/>
 35         <replaceregex pattern="_" replace="."/>
 36         <replaceregex pattern="-" replace="."/>
 37         <replaceregex pattern="(-.*)$" replace="-SNAPSHOT"/>
 38       </tokenfilter>
 39       </outputfilterchain>
 40     </redirector>
 41     </exec>
 42     <echo message="gitversion returned '${@{outputproperty}}'"/>
 43   </sequential>
 44 </macrodef>
 45 
 46 <!-- define Maven coordinates; see https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-7c.DeploySnaps    hotsandStageReleaseswithAnt -->
 47 <property name="groupId" value="org.umlgraph" />
 48 <property name="artifactId" value="UmlGraph" />
 49 <!-- <property name="version" value="1.0-SNAPSHOT" /> -->
 50 <gitversion outputproperty="version"/>

以下是README.txt中的说明:

代码语言:javascript
复制
UMLGraph - Declarative Drawing of UML Diagrams

UMLGraph allows the declarative specification and drawing of
UML class and sequence diagrams.  You can browse the system's
documentation from the doc/index.html page, or print it from
doc/indexw.html.

To install the elements required to run UMLGraph, simply copy
the contents of the lib directory to a location consistent with
your installation's conventions (for example to /usr/local/lib).

To compile the Java doclet from the source code run ant on the
build.xml file.

If you change the source code, you can run regression tests by
executing "ant test".

Project home page: http://www.umlgraph.org
GitHub page: git@github.com:dspinellis/UMLGraph.git

Diomidis Spinellis - November 2005, August 2008, April 2012

我将文件从lib/复制到/usr/local/lib,就像说明所说的那样,但是我似乎没有正确构建它。

谢谢你的帮助。

EN

回答 1

Stack Overflow用户

发布于 2015-10-07 05:15:12

为了编译该项目,您必须从GitHub克隆它。这是获取版本字符串所必需的。

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

https://stackoverflow.com/questions/32940685

复制
相关文章

相似问题

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