Hi,
Well I've run into some problems.
My command was: C:\servicemix3.3\bin>smx-arch.bat su mail
the build failed and the output was:
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: org.apache.servicemix.tooling
ArtifactId: servicemix-mail-service-unit
Version: RELEASE
Reason: Unable to determine the release version
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.servicemix.tooling
-DartifactI
d=servicemix-mail-service-unit -Dversion=RELEASE -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.servicemix.tooling
-DartifactId=
servicemix-mail-service-unit -Dversion=RELEASE -Dpackaging=jar
-Dfile=/path/to/f
ile -Durl=[url] -DrepositoryId=[id]
org.apache.servicemix.tooling:servicemix-mail-service-unit:jar:RELEASE
This is porbably cause because it didn't find the correct jar for mail. I
manually installed that by doing a:
C:\servicemix3.3\bin>mvn install:install-file
-DgroupId=org.apache.servicemix.to
oling -DartifactId=servicemix-mail-service-unit -Dversion=RELEASE
-Dpackaging=ja
r -Dfile=C:\servicemix3.3\lib\mail-1.4.jar
and some variations thereof. No go. It still throws the same error. What
could be the problem?
Sylvester
lhe77 wrote:
>
> Sylvester,
>
>
> actually there is no sample for that component available.
> But it is not that difficulty to setup a working service unit.
>
> 1. use the smx-arch tool inside <SERVICEMIX_HOME>/bin/ folder to create a
> servicemix-mail service-unit
> 2. inside modify the pom.xml to fit your needs
> 3. in the src/main/resources/xbean.xml you need to put in your
> configuration
> (see http://servicemix.apache.org/servicemix-mail.html for details)
> 4. create a service assembly the same way you did for the service unit
> 5. build the unit and the assembly
> 6. deploy the assembly to smx
>
> Notice that the 3.2.x version of SMX does not contain servicemix-mail.
>
> Feel free to ask if you run into problems.
>
> Regards
> Lars
>
>
>
> Am Mittwoch 15 Oktober 2008 14:43:46 schrieb Sylvester Steele:
>> Hi,
>>
>> Can someone point me to a servicemix-mail example please?
>>
>> Thanks
>>
>> Sylvester
>
>
>
--
View this message in context:
http://www.nabble.com/Hi%21-I-need-some-service-mix-examples-tp19992710p20011605.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.