From: <Sim...@cs...> - 2010-12-14 12:49:02
|
Have seen this quite a few times from the command line and using jdk 1.6.0_20 - but for me a clean will fix it. Maybe: mvn clean package Not sure why the clean should be required on a new trunk checkout but I've also seen it (some times) when executing a build after a previous build failed with compilation errors. Cheers, Simon ________________________________________ From: Justin Rowles (C) [Jus...@or...] Sent: Tuesday, 14 December 2010 11:08 PM To: tro...@gm... Cc: geo...@li... Subject: Re: [GeoNetwork-devel] Clean trunk not building with Java 1.6? This was a command line build, not Eclipse. “svn co …” followed by “mvn package”. How odd. My settings are: $ mvn -version Apache Maven 2.2.1 (r801777; 2009-08-06 20:16:01+0100) Java version: 1.6.0_15 Java home: C:\Program Files\Java\jdk1.6.0_15\jre Default locale: en_GB, platform encoding: Cp1252 OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows" Oh well, I’m up and running with InputStreamBridge in its own file for now. Never mind. J. ________________________________ From: heikki [mailto:tro...@gm...] Sent: 14 December 2010 12:05 To: Justin Rowles (C) Cc: geo...@li... Subject: Re: [GeoNetwork-devel] Clean trunk not building with Java 1.6? hi Justin, I have no problem doing "mvn package" on a clean trunk with Java 1.6. My version is java version "1.6.0_22" Java(TM) SE Runtime Environment (build 1.6.0_22-b04) Java HotSpot(TM) Client VM (build 17.1-b03, mixed mode, sharing) Running on Windows 7. Did you try building on the command line, to see if there is not any Eclipse-related problem ? Kind regards Heikki Doeleman On Tue, Dec 14, 2010 at 11:11 AM, Justin Rowles (C) <Jus...@or...<mailto:Jus...@or...>> wrote: Hi all, I’ve just started rebuilding my workspace after a tragic Eclipse based incident, and I can’t get the clean trunk to build with ‘mvn package’. I am using JDK 1.6.02. Specifically, I get: [ERROR] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Compilation failure C:\jrowles_Inspire_2_5_0_view\inspire\src\GeoNetworkWorkspace\GeoNetworkMavenEclipse2\trunk\web\src\main\java\org\fao\geonet\kernel\mef\MEFVisitor.java:[59,2] cannot find symbol symbol : class InputStreamBridge location: class org.fao.geonet.kernel.mef.MEFVisitor C:\jrowles_Inspire_2_5_0_view\inspire\src\GeoNetworkWorkspace\GeoNetworkMavenEclipse2\trunk\web\src\main\java\org\fao\geonet\kernel\mef\MEFVisitor.java:[59,30] cannot find symbol symbol : class InputStreamBridge location: class org.fao.geonet.kernel.mef.MEFVisitor C:\jrowles_Inspire_2_5_0_view\inspire\src\GeoNetworkWorkspace\GeoNetworkMavenEclipse2\trunk\web\src\main\java\org\fao\geonet\kernel\mef\MEFVisitor.java:[101,2] cannot find symbol symbol : class InputStreamBridge location: class org.fao.geonet.kernel.mef.MEFVisitor C:\jrowles_Inspire_2_5_0_view\inspire\src\GeoNetworkWorkspace\GeoNetworkMavenEclipse2\trunk\web\src\main\java\org\fao\geonet\kernel\mef\MEFVisitor.java:[101,30] cannot find symbol symbol : class InputStreamBridge location: class org.fao.geonet.kernel.mef.MEFVisitor InputStreamBridge is declared in IVisitor.java (not sure why) . If I move it out to its own file, I can build fine. Anyone know anything about scope changes in Java 1.6? It may mean that this change needs to be committed to trunk. Justin. This email is only intended for the person to whom it is addressed and may contain confidential information. If you have received this email in error, please notify the sender and delete this email which must not be copied, distributed or disclosed to any other person. Unless stated otherwise, the contents of this email are personal to the writer and do not represent the official view of Ordnance Survey. Nor can any contract be formed on Ordnance Survey's behalf via email. We reserve the right to monitor emails and attachments without prior notice. Thank you for your cooperation. Ordnance Survey Romsey Road Southampton SO16 4GU Tel: 08456 050505 http://www.ordnancesurvey.co.uk ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ GeoNetwork-devel mailing list Geo...@li...<mailto:Geo...@li...> https://lists.sourceforge.net/lists/listinfo/geonetwork-devel GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork This email is only intended for the person to whom it is addressed and may contain confidential information. If you have received this email in error, please notify the sender and delete this email which must not be copied, distributed or disclosed to any other person. Unless stated otherwise, the contents of this email are personal to the writer and do not represent the official view of Ordnance Survey. Nor can any contract be formed on Ordnance Survey's behalf via email. We reserve the right to monitor emails and attachments without prior notice. Thank you for your cooperation. Ordnance Survey Romsey Road Southampton SO16 4GU Tel: 08456 050505 http://www.ordnancesurvey.co.uk |