wxyhibernate
路人甲
路人甲
  • 注册日期2006-08-26
  • 发帖数44
  • QQ
  • 铜币225枚
  • 威望0点
  • 贡献值0点
  • 银元0个
阅读:2439回复:3

geoserver构建不成功

楼主#
更多 发布于:2008-10-16 18:57
<P>我安装geoserver上的帮助文档进行构建,编译还能成功,但是到了mvn install的时候总是不成功,请问哪位构建成功的,可以给点建议?</P>
<P>然后我想把geoserver+eclipse开发,只要能先构建起来运行起来就可以了,我下载了源代码等文件,请问还有没有其他构建方法?</P>
<P>谢谢指教</P>
[此贴子已经被作者于2008-10-16 18:58:35编辑过]
喜欢0 评分0
MSN: at9933@163.com e-mail: at9933@163.com QQ: 279644822 笑笑,于事有点补。
wxyhibernate
路人甲
路人甲
  • 注册日期2006-08-26
  • 发帖数44
  • QQ
  • 铜币225枚
  • 威望0点
  • 贡献值0点
  • 银元0个
1楼#
发布于:2008-10-16 23:32
<P>就没人来转转~~~~~~~</P>
MSN: at9933@163.com e-mail: at9933@163.com QQ: 279644822 笑笑,于事有点补。
举报 回复(0) 喜欢(0)     评分
wxyhibernate
路人甲
路人甲
  • 注册日期2006-08-26
  • 发帖数44
  • QQ
  • 铜币225枚
  • 威望0点
  • 贡献值0点
  • 银元0个
2楼#
发布于:2008-10-17 01:04
<P>我是按照帮助文档来的:</P>
<H2>Source Code</H2>
<OL>
<LI>Ensure you have Subversion properly setup. Instructions <a href="http://geoserver.org/display/GEOSDOC/2+Subversion" target="_blank" >here</A>
<LI>Create a directory (with no spaces in the path) for the source, such as:
<DIV class="code panel" style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-BOTTOM-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px">
<DIV class="codeContent panelContent"><PRE>C:\geoserver_dev</PRE></DIV></DIV>
<LI>Open up a terminal and navigate to a location where you want to checkout the code, the following examples are from UNIX and assume /home/username
<LI>Execute the following command:
<DIV class="code panel" style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-BOTTOM-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px">
<DIV class="codeContent panelContent"><PRE>[/home/username]% svn checkout https://svn.codehaus.org/geoserver/trunk/geoserver</PRE></DIV></DIV>
<DIV class=panelMacro>
<TABLE>
<COLGROUP>
<COL width=24>
<COL></COLGROUP>

<TR>
<TD vAlign=top><IMG src="http://geoserver.org/images/icons/emoticons/information.gif"></TD>
<TD><B>Note:</B> Geoserver will not build/run properly if it is in a folder with spaces in the name (eg: "Documents and Settings") so try to keep the folder names in the path for your source files space-free.</TD></TR></TABLE></DIV></LI></OL>
<H2>Building</H2>
<P>The term <B>building</B> refers to installing the geoserver modules into your local maven repository. Maven build commands are executed from the command line.</P>
<DIV class=panelMacro>
<TABLE>
<COLGROUP>
<COL width=24>
<COL></COLGROUP>

<TR>
<TD vAlign=top><IMG src="http://geoserver.org/images/icons/emoticons/information.gif"></TD>
<TD>
<P>If you're compiling GeoServer in a <B>headless enviroment</B> (e.g., a remote Linux server that you're accessing using an SSH terminal) you'll get "headless exceptions" unless you either:</P>
<UL>
<LI>set the envorinment variable <TT>java.awt.headless</TT> to <TT>true</TT>, that is "<TT>export java.awt.headless=true</TT>"
<LI>add -Djava.awt.headless=true to all the <TT>maven</TT> commands suggested for building and running GeoServer </LI></UL></TD></TR></TABLE></DIV>
<P>From the root of the geoserver source tree:</P>
<DIV class="code panel" style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-BOTTOM-WIDTH: 1px; BORDER-RIGHT-WIDTH: 1px">
<DIV class="codeContent panelContent"><PRE>[/home/username/geoserver]% mvn install</PRE><PRE>但是最后还是报错啊!~</PRE><PRE>[INFO] [compiler:compile]<BR>[INFO] Compiling 52 source files to D:\dev\geoserver\wfsv\target\classes<BR>[INFO] [resources:testResources]<BR>[INFO] Using default encoding to copy filtered resources.<BR>[INFO] [compiler:testCompile]<BR>[INFO] Compiling 8 source files to D:\dev\geoserver\wfsv\target\test-classes<BR>[INFO] ------------------------------------------------------------------------<BR>[ERROR] BUILD FAILURE<BR>[INFO] ------------------------------------------------------------------------<BR>[INFO] Compilation failure<BR>D:\dev\geoserver\wfsv\src\test\java\org\geoserver\wfsv\HistoryRelatedTest.java:[<BR>10,54] 警告:com.sun.org.apache.xalan.internal.xsltc.cmdline.Transform 是 Sun 的<BR>专用 API,可能会在未来版本中删除</PRE><PRE> </PRE><PRE>D:\dev\geoserver\wfsv\src\test\java\org\geoserver\wfsv\HistoryRelatedTest.java:[<BR>10,54] 警告:com.sun.org.apache.xalan.internal.xsltc.cmdline.Transform 是 Sun 的<BR>专用 API,可能会在未来版本中删除</PRE><PRE><BR>[INFO] ------------------------------------------------------------------------<BR>[INFO] For more information, run Maven with the -e switch</PRE></DIV></DIV>
MSN: at9933@163.com e-mail: at9933@163.com QQ: 279644822 笑笑,于事有点补。
举报 回复(0) 喜欢(0)     评分
wxyhibernate
路人甲
路人甲
  • 注册日期2006-08-26
  • 发帖数44
  • QQ
  • 铜币225枚
  • 威望0点
  • 贡献值0点
  • 银元0个
3楼#
发布于:2008-10-21 23:42
<P>好,我上面的问题可能是JDK的原因,那么我换了1.5.06的JDK,结果还是报错:</P>
<P>Tests run: 7, Failures: 0, Errors: 6, Skipped: 0, Time elapsed: 11.796 sec <<< F<BR>AILURE!<BR>Running org.vfny.geoserver.wms.responses.map.legend.GetLegendGraphicKvpReaderTes<BR>t<BR>Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.5 sec<BR>Running org.vfny.geoserver.wms.responses.featureinfo.FeatureTemplateTest<BR>Could not delete D:\dev\geoserver\wms\.\target\mock7425data\sf\PrimitiveGeoFeatu<BR>re.properties<BR>Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.532 sec<BR>Running org.vfny.geoserver.wms.requests.DescribeLayerKvpRequestReaderTest<BR>Tests run: 6, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.032 sec</P>
<P>Results :</P>
<P>Tests in error:<BR>  testVector(org.vfny.geoserver.wms.responses.map.kml.KMLTest)<BR>  testVectorWithFeatureId(org.vfny.geoserver.wms.responses.map.kml.KMLTest)<BR>  testOutput(org.vfny.geoserver.wms.responses.map.kml.GeoSearchKMLTest)<BR>  testDataRegionator(org.vfny.geoserver.wms.responses.map.kml.GeoSearchKMLTest)<BR>  testGeometryRegionator(org.vfny.geoserver.wms.responses.map.kml.GeoSearchKMLTe<BR>st)<BR>  testRandomRegionator(org.vfny.geoserver.wms.responses.map.kml.GeoSearchKMLTest<BR>)<BR>  testBigGeometries(org.vfny.geoserver.wms.responses.map.kml.GeoSearchKMLTest)<BR>  testStrategyChangesStuff(org.vfny.geoserver.wms.responses.map.kml.GeoSearchKML<BR>Test)</P>
<P>Tests run: 129, Failures: 0, Errors: 8, Skipped: 0</P>
<P>[INFO] ------------------------------------------------------------------------<BR>[ERROR] BUILD FAILURE<BR>[INFO] ------------------------------------------------------------------------<BR>[INFO] There are test failures.</P>
<P>Please refer to D:\dev\geoserver\wms\target\surefire-reports for the individual<BR>test results.</P>
<P>请高手好心指点迷津!!</P>
MSN: at9933@163.com e-mail: at9933@163.com QQ: 279644822 笑笑,于事有点补。
举报 回复(0) 喜欢(0)     评分
游客

返回顶部