I just noticed that the file wso2caching-core-0.1.jar in the Synapse
1.1 binary distribution is not the same as the one from the
dist.wso2.org repository. Can somebody explain this?
Mehdi, you will be able to compile Synapse 1.1 if you take wso2caching-
core-0.1.jar from the binary distribution and put it into your local
Maven repository.
Andreas
On 02 Jan 2008, at 17:55, mehdi ait oufkir 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
).
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
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]