Hi Paul, I did a mvn clean install, followed by a mvn -o assembly:assembly -Drelease -Dmaven.test.skip=true.
Inside Apache-Syanpse/target , found the bin zip created. Then inside Apache-Synapse/target/synapse-1.0-RC2-SNAPSHOT/bin , I executed synapse.bat It worked. Thanks a lot ! Regards Eric. On 5/31/07, Paul Fremantle <[EMAIL PROTECTED]> wrote:
Eric Our docs are out of date! SORRY! We moved to Maven2. You need to do: mvn clean install mvn -Drelease assembly:assembly That will build you the latest src and bin distributions.Let us know if you have any problems. Paul On 5/31/07, Eric Nygma <[EMAIL PROTECTED]> wrote: > Hi , > > I want use Synapse. I checked out the sources with : > > $ svn checkout http://svn.apache.org/repos/asf/webservices/synapse/trunk/java > Apache-Synapse > > I have Maven 2.0.6 installed on my system. > > To build/compile I looked at the Synapse User Guide at : > http://ws.apache.org/synapse/Synapse_Userguide.html. > > There is a section : > -------------------------------------- > Building the Synapse source > > If you have downloaded the Synapse source, and set up Maven and its > dependencies, you could build the binary distribution as follows: > > maven dist-bin > > This creates the Synapse-Incubating-M2-SNAPSHOT-bin.zip distribution file > within target\dist > > maven dist-extensions > > The dist-extensions target builds the Synapse extensions > Extensions-Synapse-M2-SNAPSHOT-bin.zip into target\dist > > ----------------------------------------------- > > I tried this but that didnt work ; gave the following error : > [INFO] Scanning for projects... > [INFO] Reactor build order: > [INFO] Apache Synapse > [INFO] Apache Synapse - HttpCore-NIO > [INFO] Apache Synapse - Core > [INFO] Apache Synapse - Extensions > [INFO] Apache Synapse - Samples > [INFO] Apache Synapse - Module > [INFO] > ------------------------------------------------------------------------ > [ERROR] BUILD FAILURE > [INFO] > ------------------------------------------------------------------------ > [INFO] Invalid task 'dist-bin': you must specify a valid lifecycle phase, or > a goal in the format plugin:goal or > pluginGroupId:pluginArtifactId:pluginVersion:goal > [INFO] > ------------------------------------------------------------------------ > [INFO] For more information, run Maven with the -e switch > [INFO] > ------------------------------------------------------------------------ > [INFO] Total time: < 1 second > [INFO] Finished at: Thu May 31 15:16:04 IST 2007 > [INFO] Final Memory: 1M/3M > [INFO] > ------------------------------------------------------------------------ > > > So I thought of doing a 'compile' > mvn compile succeeded. > > In the dir : Apache-Synapse/src/main/bin : I found synapse.bat and > synapse.sh. I assume that these are the scripts to start synapse. > Upon executing synapse.sh I got : > > Using Bouncy castle JAR for Java 1.5 > Starting Synapse/Java ... > Using SYNAPSE_HOME: d:\Gateway\Apache-Synapse\src\main > Using JAVA_HOME: c:\installs\jdk1.5.0_11 > Using SYNAPSE_XML: - > Dsynapse.xml=d:\Gateway\Apache-Synapse\src\main/repository/conf/synapse.xml > java.lang.NoClassDefFoundError: org/apache/synapse/SynapseServer > Exception in thread "main" > > Next I tried executing synapse.bat . Now I got : > SYNAPSE_HOME is set incorrectly or SYNAPSE could not be located. Please set > SYNAPSE_HOME. > > > Can you please help me, on how to build the sources. I may mention that I am > rather new to using Maven too :-S. > > Thanks in advance. > E/ > -- Paul Fremantle Co-Founder and VP of Technical Sales, WSO2 OASIS WS-RX TC Co-chair blog: http://pzf.fremantle.org [EMAIL PROTECTED] "Oxygenating the Web Service Platform", www.wso2.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
