I¹m probably missing something but I¹m making progress. I fix the dependency issue of synapse 1.1 with current wso2caching-core-0.1.jar by taking the file from the 1.1 release. (thanks to asankha)
Then I was able to compile from command line (mvn clean install from top directory). However, when I try to follow the steps explained by Ant. I can¹t get the six synapse projects to import. So I still can¹t build thru eclipse even though I have the 2 plugins mentioned. Regards, Mehdi. On 1/2/08 12:28 PM, "ant elder" <[EMAIL PROTECTED]> wrote: > Re the building in eclipse, i forgot to mention the Eclipse bits in the > previous email, here's what i do: > > You still need to build from the command line with mvn but you can set up > Synapse in Eclipse as follows: > > At the top level Synapse folder run: > > mvn eclipse:eclipse > > Now within eclipse you can import those Synapse projects into an Eclipse > workspace. From Eclipse do File -> Import, expand the "General" toggle and > choose "Existing Projects into Workspace", click Next, click Browse and > navigate to your Synapse SVN folder, click OK and it should find the six > Synapse projects, click Finish. That should set up the projects and show them > in the Package Explorer. There will be lots of compile errors about missing > classpath entries, to fix this select Window -> Preferences, expend the Java > toggle, then expand the Build Path toggle and select Classpath Variables. > Click New and use the name "M2_REPO" and then click Folder and navigate to you > local Maven repository (eg C:/Documents and > Settings/Administrator/.m2/repository), click OK and again OK and it should > rebuild everything with all the compile errors gone. > > If you're developing Synapse a lot it might be useful to install the SVN > Eclipse plugin, see http://subclipse.tigris.org/install.html. > > There's also a Maven Eclipse plugin at http://m2eclipse.codehaus.org/, i've > not used that much. > > ...ant > > > > > On Jan 2, 2008 4:55 PM, mehdi ait oufkir < [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > wrote: >> >> Thank you ant but I still have some trouble to build synapse 1.1. >> Here is some more information: >> I'm using JDK 1.5 and maven 2.0.6 (I'll try to upgrade if it still doesn't >> work). I fee like I won't be able to build synapse inside eclipse because the >> mvn plugin is not precise enough. However when I try to build it from the >> command line (mvn clean install) here is the error I have: >> >> Compiling 222 source files to >> /Users/mehdi/ysi/workspace/ysb/modules/core/target/classes >> [INFO] >> ------------------------------------------------------------------------ >> [ERROR] BUILD FAILURE >> [INFO] >> ------------------------------------------------------------------------ >> [INFO] Compilation failure >> >> /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synapse/ >> mediators/builtin/CacheMediator.java:[151,25] setResponseEnvelope(byte[]) in >> org.wso2.caching.CachedObject cannot be applied to >> (org.apache.axiom.soap.SOAPEnvelope ) >> >> /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synapse/ >> mediators/builtin/CacheMediator.java:[212,26] >> setEnvelope(org.apache.axiom.soap.SOAPEnvelope) in >> org.apache.synapse.MessageContext cannot be applied to (byte[]) >> >> /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synapse/ >> mediators/builtin/CacheMediator.java:[283,17] setRequestEnvelope(byte[]) in >> org.wso2.caching.CachedObject cannot be applied to >> (org.apache.axiom.soap.SOAPEnvelope ) >> >> /Users/mehdi/ysi/workspace/ysb/modules/core/src/main/java/org/apache/synapse/ >> mediators/builtin/CacheMediator.java:[284,17] >> setRequestHash(java.lang.String) in org.wso2.caching.CachedObject cannot be >> applied to (java.lang.Object ) >> >> Let me know what you think. >> mehdi >> >> >> On 1/2/08 3:55 AM, "ant elder" <[EMAIL PROTECTED]> wrote: >> >>> In case you've not got past this yet here's some info and Maven commands >>> which I find useful, we should add this to the Synapse website: >>> >>> Building Synapse: >>> >>> Synapse requires JDK 1.5 or later and Maven 2.0.7 or later >>> (http://maven.apache.org/download.html). >>> <http://maven.apache.org/download.html%29.> >>> >>> To build, in the top level Synapse folder do: >>> >>> mvn clean install >>> >>> Or to build the distribution archive packages do (the distribution archives >>> are created in new folder named target): >>> >>> mvn assembly:assembly -Drelease >>> >>> The first time you build Maven downloads all the required dependency jars to >>> your local repository, after there has been a successful build you can add >>> the "-o" parameter to the above commands to run in offline mode which >>> avoids going out to remote Maven repositories so the build runs faster. Eg >>> >>> mvn clean install -o >>> or >>> mvn assembly:assembly -Drelease -o >>> >>> If you don't want to have all the Synapse test cases run during the build >>> you can add the parameter "-Dmaven.test.skip=true", eg: >>> >>> mvn clean install -o -Dmaven.test.skip=true >>> or >>> mvn assembly:assembly -Drelease -o -Dmaven.test.skip=true >>> >>> Sometimes the trunk build uses snapshot versions of some dependency jars >>> which can go out of date but may not get refreshed in your local Maven >>> repository even when the "-o" parameter is not used. So if you get build >>> failures you can try refreshing any snapshot dependencys with the "-U" >>> parameter, eg: >>> >>> mvn clean install -U >>> >>> By default the Maven local repository is in your home directory, you can >>> change this so the build uses use a different local repository with the >>> parameter "-Dmaven.repo.local=", eg: >>> >>> mvn clean install -Dmaven.repo.local=\Synapse\MyRepo >>> >>> HTH, >>> >>> ...ant >>> >>> On Dec 31, 2007 8:29 PM, mehdi ait oufkir <[EMAIL PROTECTED] >>> <mailto:[EMAIL PROTECTED]> > wrote: >>>> Hi, >>>> So I have issues with maven under eclipse. I guess the installation didn't >>>> work properly. When I want to build, it's complaining about:[ERROR] BUILD >>>> [INFO] The PluginDescriptor for the plugin >>>> org.apache.maven.plugins:maven-resources-plugin was not found >>>> >>>> I don't know how to solve that. >>>> >>>> Also, I have a lot of type that cannot be resolved. It seems that I'm >>>> missing a lot of apache packages (org.apache.axis2, org.apache.log...) >>>> >>>> Let me know what I should do to fix those issues. >>>> Mehdi. >>>> >>>> >>>> On 12/30/07 7:51 AM, "Paul Fremantle" <[EMAIL PROTECTED]> wrote: >>>> >>>>> > Yes it works fine for me.... let me know if you have any problems. >>>>> > >>>>> > Paul >>>>> > >>>>> > On Dec 30, 2007 2:38 PM, Asankha C. Perera <[EMAIL PROTECTED]> wrote: >>>>>> >> mehdi ait oufkir wrote: >>>>>>> >>> Concerning the build of synapse. Do you have some documentation >>>>>>> somewhere or >>>>>>> >>> can I build it from eclipse. I have heard about maven but I'm not >>>>>>> familiar >>>>>>> >>> at all with it, I know more about ant. >>>>>>> >>> >>>>>> >> If you have Maven 2.0.6 or later installed on your system, you should >>>>>> be >>>>>> >> able to type "mvn eclipse:eclipse" and it should download any/all >>>>>> >> dependencies and create your Eclipse project correctly.. >>>>>> >> >>>>>> >> If this does not work for any unknown reason, we have a few committers >>>>>> >> like Upul and Ant, who uses Eclipse and they would be able to help >>>>>> you.. >>>>>> >> >>>>>> >> asankha >>>>>> >> >>>>>> >> >>>>>> >> --------------------------------------------------------------------- >>>>>> >> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>>>> >> For additional commands, e-mail: [EMAIL PROTECTED] >>>>>> >> >>>>>> >> >>>>> > >>>>> > >>>> >>>> Mehdi Ait Oufkir >>>> Webapp lead >>>> O: 408.879.9118 x222 | F: 408.879.9117 >>>> >>>> yousendit >>>> 1919 S. Bascom Ave, 3rd Floor | Campbell | CA 95008 >>>> Send, Receive, Track. . . www.YouSendIt.com <http://www.YouSendIt.com> >>>> <http://www.YouSendIt.com> >>>> >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>> <mailto:[EMAIL PROTECTED]> >>>> <mailto:[EMAIL PROTECTED]> >>>> >>> >>> >> >> >> Mehdi Ait Oufkir >> Webapp lead >> O: 408.879.9118 x222 | F: 408.879.9117 >> >> yousendit >> 1919 S. Bascom Ave, 3rd Floor | Campbell | CA 95008 >> Send, Receive, Track. . . www.YouSendIt.com <http://www.YouSendIt.com> >> > Mehdi Ait Oufkir Webapp lead O: 408.879.9118 x222 | F: 408.879.9117 yousendit 1919 S. Bascom Ave, 3rd Floor | Campbell | CA 95008 Send, Receive, Track. . . www.YouSendIt.com