login button

how to set up wso2 esb in eclipse?

Forums :

This article explains the setup for wsas in eclipse:
http://wso2.org/library/2709

Is there anything available for esb?

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Pete You could just checkout

Pete

You could just checkout the Synapse and ESB sources from SVN, and run "mvn clean install" and then run "mvn eclipse:eclipse" for the eclipse project or "mvn idea:idea" for the IDEA project files

asankha

Do I run eclipse:eclipse before importing into eclipse?

Thanks for the reply.

I am assuming that I generally follow these instructions
http://wso2.org/library/2709
but for esb.

Hi Pete I am not an Eclipse

Hi Pete

I am not an Eclipse user.. but the general project files are created by a standard Maven plugin for both IDEA and Eclipse.. so both should work the same. I use the "mvn idea:idea" to generate the project files.. So you should first build - i.e. "mvn clean install" and then build the project files again "mvn eclipse:eclipse" and then open the project from Eclipse

asankha

mvn clean install has errors

Any idea what happened to this?
I used SVN https://wso2.org/repos/wso2/trunk/esb/java
then did the mvn clean install

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.synapse:synapse-core:jar:SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.synapse -DartifactId=synapse
-core -Dversion=SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:

mvn deploy:deploy-file -DgroupId=org.apache.synapse -DartifactId=synapse-c
ore -Dversion=SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Dreposi
toryId=[id]

Path to dependency:
1) org.wso2.esb:wso2-esb-startup:jar:SNAPSHOT
2) org.apache.synapse:synapse-core:jar:SNAPSHOT

2) org.apache.synapse:synapse-extensions:jar:SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.synapse -DartifactId=synapse
-extensions -Dversion=SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:

mvn deploy:deploy-file -DgroupId=org.apache.synapse -DartifactId=synapse-e
xtensions -Dversion=SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -D
repositoryId=[id]

Path to dependency:
1) org.wso2.esb:wso2-esb-startup:jar:SNAPSHOT
2) org.apache.synapse:synapse-extensions:jar:SNAPSHOT

3) org.apache.synapse:synapse-samples:jar:SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.synapse -DartifactId=synapse
-samples -Dversion=SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:

mvn deploy:deploy-file -DgroupId=org.apache.synapse -DartifactId=synapse-s
amples -Dversion=SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -Drep
ositoryId=[id]

Path to dependency:
1) org.wso2.esb:wso2-esb-startup:jar:SNAPSHOT
2) org.apache.synapse:synapse-samples:jar:SNAPSHOT

4) org.apache.synapse:synapse-transports:jar:SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.synapse -DartifactId=synapse
-transports -Dversion=SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:

mvn deploy:deploy-file -DgroupId=org.apache.synapse -DartifactId=synapse-t
ransports -Dversion=SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -D
repositoryId=[id]

Path to dependency:
1) org.wso2.esb:wso2-esb-startup:jar:SNAPSHOT
2) org.apache.synapse:synapse-transports:jar:SNAPSHOT

5) org.apache.synapse:synapse:mar:SNAPSHOT

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.synapse -DartifactId=synapse
-Dversion=SNAPSHOT -Dpackaging=mar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:

mvn deploy:deploy-file -DgroupId=org.apache.synapse -DartifactId=synapse -
Dversion=SNAPSHOT -Dpackaging=mar -Dfile=/path/to/file -Durl=[url] -DrepositoryI
d=[id]

Path to dependency:
1) org.wso2.esb:wso2-esb-startup:jar:SNAPSHOT
2) org.apache.synapse:synapse:mar:SNAPSHOT

----------
5 required artifacts are missing.

for artifact:
org.wso2.esb:wso2-esb-startup:jar:SNAPSHOT

from the specified remote repositories:
central (http://repo1.maven.org/maven2),
ibiblio-m2 (http://www.ibiblio.org/maven2),
wso2-m2 (http://dist.wso2.org/maven2/),
apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository/)

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14 minutes 26 seconds
[INFO] Finished at: Fri Aug 22 16:33:37 EDT 2008
[INFO] Final Memory: 16M/29M
[INFO] ------------------------------------------------------------------------

AttachmentSize
mvn.log_.txt61.96 KB

Pete Right now the ESB trunk

Pete

Right now the ESB trunk is going through a LOT of changes. ranging from OSGi to a lot more.. so it would be better to use the 1.7 source zip or TAG from the SVN for now.

asankha

1.7 mvn fails

Using source from https://wso2.org/repos/wso2/tags/esb/java/1.7

mvn clean install
fails with this error

Downloading: http://repo1.maven.org/maven2/org/apache/qpid/qpid/1.0-incubating-M3-615355/qpid-1.0-incubating-M3-615355.pom
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

GroupId: org.apache.qpid
ArtifactId: qpid
Version: 1.0-incubating-M3-615355

Reason: Unable to download the artifact from any repository

org.apache.qpid:qpid:pom:1.0-incubating-M3-615355

from the specified remote repositories:
central (http://repo1.maven.org/maven2),
ibiblio-m2 (http://www.ibiblio.org/maven2),
wso2-m2 (http://dist.wso2.org/maven2/),
apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository/)

mvn eclipse:eclipse failed - same error.
1.7.1 failed - same error.

mvn eclipse:eclipse can be used before building as well

Hi,

Actually you can issue mvn eclipse:eclipse prior to issuing mvn clean install. The former command simply generates the .classpath and .project files to suite eclipse.

Thanks,
Saliya

Pete This is the original

Pete

This is the original source from which I requested the admin of the WSO2 repo to copy the artifacts, and I am sure we had them back in January!.. anyway I just sent an email to look what happened to our copy..

meanwhile, please add http://people.apache.org/~rajith/maven2 to your pom and compile

asankha

still not working

I think I did the right thing, adding http://people.apache.org/~rajith/maven2 as another repository in the pom. But I'm still getting the same error. Any other ideas on how to get this going?

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.qpid:qpid-client:jar:1.0-incubating-M3-615355

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.qpid -DartifactId=qpid-client -Dversion=1.0-incubating-M3-615355 -Dpackaging=jar -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.apache.qpid -DartifactId=qpid-client -Dversion=1.0-incubating-M3-615355 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) org.wso2.esb:wso2-esb-startup:jar:1.7
2) org.apache.synapse:synapse-core:jar:1.2
3) org.apache.qpid:qpid-client:jar:1.0-incubating-M3-615355

----------
1 required artifact is missing.

for artifact:
org.wso2.esb:wso2-esb-startup:jar:1.7

from the specified remote repositories:
central (http://repo1.maven.org/maven2),
ibiblio-m2 (http://www.ibiblio.org/maven2),
wso2-m2 (http://dist.wso2.org/maven2/),
apache-snapshots (http://people.apache.org/repo/m2-snapshot-repository/),
apache~rajith (http://people.apache.org/~rajith/maven2)

Hi Pete, You could download

Hi Pete,

You could download the files manually from http://people.apache.org/~rajith/maven2/org/apache/qpid/ and use the mvn install command as specified in the above mvn error log

mvn install:install-file -DgroupId=org.apache.qpid -DartifactId=qpid-client -Dversion=1.0-incubating-M3-615355 -Dpackaging=jar -Dfile=/path/to/file

You will need to change the -Dpackaging to pom when installing pom file.

Thanks,
Ruwan Linton

that worked, thanks

A bit sloppy though, eh?

I cant get it to work

Added http://people.apache.org/~rajith/maven2 to repository list.. and I still get the build error.

1 required artifact is missing

for artifact;
org.wso2.esb:wso2-esb-startup:jar:1.7.1

this is very annoying, where can I get the missing jar?

thx
Peter Thygesen

Peter Some time back the

Peter

Some time back the missing artifact was copied to the WSO2 M2 repository.. and you should NOT need to add any other repositories any more.. could you try without rajith's repo with an online build and post the output?

asankha
http://esbmagic.blogspot.com

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.