Bramha Naidu,

The pom.xml file for a SU should contain a dependency on the JBI component it targets.

An example: if your SU targets servicemix-lwcontainer, the pom.xml file should have this dependency
<dependency>
<groupId>org.apache.servicemix</groupId>
<artifactId>servicemix-lwcontainer</artifactId>
<version>${servicemix-version}</version>
</dependency>

Gert

[EMAIL PROTECTED] wrote:

Gert,

When I am executing mvn eclipse:eclipse command. I got an error.

* Error:*

* *

* [INFO] The service unit FileFTP-LW-SU does not have a dependency which is packaged as a jbi-component or a project property 'componentName'*

How to resolve this error?

Please help me.

Thanks&Regards

Brahma Naidu

-----Original Message-----
From: Gert Vanthienen [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 14, 2007 7:16 PM
To: Aelem, Bramha Naidu (Cognizant)
Subject: Re: Reg:Servicemix-file

Brahma,

I've taken the liberty to create you a sample project to start with. The

sample project should do what you intended (poll files and send them to

a receiver POJO).

You only have to perform these two steps to get a working SA, deployable

on our latest release (3.1-incubating)

# change the file attribute in bramha/bramha-file-su/xbean.xml to refer

to your folder

# run mvn install

The SA will be available in bramha-sa/target. Afterwards, you can modify

the code in ReceiverPojo to do whatever you want.

I'm currenly working on a tutorial that explains how to create this

yourself. When it is ready, I'll let it know on the user mailing list so

you can check it out. It always great to get a newbie's feedback on

these kind of documents.

For now, I hope this gets you started...

Gert

[EMAIL PROTECTED] wrote:

>

> Gert,

>

> 1. I don’t know how to use Subversion and Maven Could you please tell

> to me how to do it?

>

> 2. We want to poll files and send the content to JSR-181 compliant

> POJO for further processing.

>

> Please give me suggestions on how this can be done.

>

> Regards

>

> Brahma Naidu

>

> -----Original Message-----

> From: Gert Vanthienen [mailto:[EMAIL PROTECTED]

> Sent: Thursday, June 14, 2007 4:45 PM

> To: Aelem, Bramha Naidu (Cognizant)

> Subject: Re: Reg:Servicemix-file

>

> Brahma,

>

> 3.2-incubating-SNAPSHOT is our current development version. The best

>

> way to get them is by building ServiceMix yourself. If you know how to

>

> use Subversion and Maven, this shouldn't be too difficult...

>

> Gert

>

> [EMAIL PROTECTED] wrote:

>

> >

>

> > Gert,

>

> >

>

> >

>

> >

>

> >

>

> >

>

> > *ftppoller command:*

>

> >

>

> > *mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling

>

> > -DarchetypeArtifactId=servicemix-ftp-poller-service-unit

>

> > -DarchetypeVersion=3.2-incubating-SNAPSHOT

>

> > -DgroupId=com.dummy.FileFTPPOC.FileFTPExample

>

> > -DartifactId=FilePoller-FTP-SU*

>

> >

>

> > *ftpsender Command:*

>

> >

>

> > *mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling

>

> > -DarchetypeArtifactId=servicemix-ftp-sender-service-unit

>

> > -DarchetypeVersion=3.2-incubating-SNAPSHOT

>

> > -DgroupId=com.dummy.FileFTPPOC.FileFTPExample

>

> > -DartifactId=FileSender-FTP-SU*

>

> >

>

> > * *

>

> >

>

> > From these two commands I made file poller and filesender commands.

>

> >

>

> >

>

> >

>

> > *filepoller command:*

>

> >

>

> > *mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling

>

> > -DarchetypeArtifactId=servicemix-file-poller-service-unit

>

> > -DarchetypeVersion=3.2-incubating-SNAPSHOT

>

> > -DgroupId=com.dummy.FilePOC.FileExample -DartifactId=FilePoller-FTP-SU*

>

> >

>

> > *filesender Command:*

>

> >

>

> > *mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling

>

> > -DarchetypeArtifactId=servicemix-file-sender-service-unit

>

> > -DarchetypeVersion=3.2-incubating-SNAPSHOT

>

> > -DgroupId=com.dummy.FilePOC.FileExample -DartifactId=FileSender-FTP-SU*

>

> >

>

> >

>

> >

>

> > when run these commands in command prompt. I got this error.

>

> >

>

> >

>

> >

>

> > [INFO] snapshot

>

> > org.apache.servicemix.tooling:servicemix-file-poller-service-unit:3.2-incubating-SNAPSHOT:

>

>

> > checking for updates from apache. Snapshots

>

> >

>

> > Downloading:

>

> > http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/tooling/servicemix-file-poller-service-unit/3.2-incubating-SNAPSHOT/serv

>

> >

>

> > icemix-file-poller-service-unit-3.2-incubating-SNAPSHOT.jar

>

> >

>

> > *[WARNING] Unable to get resource from repository apache. snapshots

>

> > (_http://people.apache.org/repo/m2-snapshot-repository)_*

>

> >

>

> > [INFO]

>

> > ------------------------------------------------------------------------

>

> >

>

> > [ERROR] BUILD ERROR

>

> >

>

> > [INFO]

>

> > ------------------------------------------------------------------------

>

> >

>

> > [INFO] Failed to resolve artifact.

>

> >

>

> >

>

> >

>

> > GroupId: org.apache.servicemix.tooling

>

> >

>

> > ArtifactId: servicemix-file-poller-service-unit

>

> >

>

> > Version: 3.2-incubating-SNAPSHOT

>

> >

>

> > Reason: Unable to download the artifact from any repository Try

>

> > downloading the file manually from the project website.Then, install

>

> > it using the command:

>

> >

>

> > * mvn install:install-file -DgroupId=org.apache.servicemix.tooling

>

> > -DartifactId=servicemix-file-poller-service-unit\

>

> > -Dversion=3.2-incubating-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file*

>

> >

>

> >

>

> >

>

> >

>

> > org.apache.servicemix.tooling:servicemix-file-poller-service-unit:jar:3.2-incubating-SNAPSHOT

>

> >

>

> >

>

> >

>

> > from the specified remote repositories:

>

> >

>

> > central (http://repo1.maven.org/maven2),

>

> >

>

> > apache.snapshots (http://people.apache.org/repo/m2-snapshot-repository),

>

> >

>

> > apache (http://people.apache.org/repo/m2-incubating-repository)

>

> >

>

> >

>

> >

>

> > *From warning:*

>

> >

>

> > I go and see in this site

>

> > *http://people.apache.org/repo/m2-snapshot-repository/org/apache/servicemix/tooling/*

>

>

> > there is no file poller and file sender.

>

> >

>

> >

>

> >

>

> > At which site these service units are available?

>

> >

>

> >

>

> >

>

> > Please help me.

>

> >

>

> >

>

> >

>

> >

>

> >

>

> > *Thanks&Regards*

>

> >

>

> > *Bramha Naidu Aelem*

>

> >

>

> >

>

> >

>

> > This e-mail and any files transmitted with it are for the sole use of

>

> > the intended recipient(s) and may contain confidential and privileged

>

> > information.

>

> > If you are not the intended recipient, please contact the sender by

>

> > reply e-mail and destroy all copies of the original message.

>

> > Any unauthorized review, use, disclosure, dissemination, forwarding,

>

> > printing or copying of this email or any action taken in reliance on

>

> > this e-mail is strictly

>

> > prohibited and may be unlawful.

>

> >

>

> This e-mail and any files transmitted with it are for the sole use of

> the intended recipient(s) and may contain confidential and privileged

> information.

> If you are not the intended recipient, please contact the sender by

> reply e-mail and destroy all copies of the original message.

> Any unauthorized review, use, disclosure, dissemination, forwarding,

> printing or copying of this email or any action taken in reliance on

> this e-mail is strictly

> prohibited and may be unlawful.

>

This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email or any action taken in reliance on this e-mail is strictly
prohibited and may be unlawful.


Reply via email to