You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by arshadansari27 <ar...@gmail.com> on 2010/09/23 14:41:44 UTC

How to build Servicemix http component from the source

I would like to know or be pointed to a documentation that would help me
understand how to build servicemix components from source. I've downloaded
the source and configured it to show in eclipse. Is there any documentation
or tutorials for me to follow.

Thanks in advance,
Arshad
-- 
View this message in context: http://servicemix.396122.n5.nabble.com/How-to-build-Servicemix-http-component-from-the-source-tp2851046p2851046.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

Re: How to build Servicemix http component from the source

Posted by arshadansari27 <ar...@gmail.com>.
I'm new to this, so please forgive the number of questions I'm asking.
However, when I try to run 
'mvn install', it is looking for component-parent pom file. I was thinking
of downloading the pom file, but not sure, where to keep it and so on. 
Following is the details for mvn install error:


 mvn -e install
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID:
org.apache.servicemix:servicemix-http:jbi-component:2010.02-SNAPSHOT

Reason: Cannot find parent: org.apache.servicemix:components-pom for
project:
org.apache.servicemix:servicemix-http:jbi-component:2010.02-SNAPSHOT for
project org.apache.servicemix:servicemix-http:jbi-component:2010.02-SNAPSHOT


[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.reactor.MavenExecutionException: Cannot find parent:
org.apache.servicemix:components-pom for project:
org.apache.servicemix:servicemix-http:jbi-component:2010.02-SNAPSHOT for
project org.apache.servicemix:servicemix-http:jbi-component:2010.02-SNAPSHOT
	at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:404)
	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:272)
	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find
parent: org.apache.servicemix:components-pom for project:
org.apache.servicemix:servicemix-http:jbi-component:2010.02-SNAPSHOT for
project org.apache.servicemix:servicemix-http:jbi-component:2010.02-SNAPSHOT
	at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1396)
	at
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(DefaultMavenProjectBuilder.java:823)
	at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFileInternal(DefaultMavenProjectBuilder.java:508)
	at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMavenProjectBuilder.java:200)
	at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:604)
	at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:487)
	at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:391)
	... 12 more
Caused by: org.apache.maven.project.ProjectBuildingException: POM
'org.apache.servicemix:components-pom' not found in repository: Unable to
download the artifact from any repository

  org.apache.servicemix:components-pom:pom:6-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

 for project org.apache.servicemix:components-pom
	at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:605)
	at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(DefaultMavenProjectBuilder.java:1392)
	... 18 more
Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException:
Unable to download the artifact from any repository

  org.apache.servicemix:components-pom:pom:6-SNAPSHOT

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)


	at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:228)
	at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:90)
	at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepository(DefaultMavenProjectBuilder.java:558)
	... 19 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: Unable to
download the artifact from any repository
	at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(DefaultWagonManager.java:404)
	at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:216)
	... 21 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Thu Sep 23 18:58:10 IST 2010
[INFO] Final Memory: 1M/4M
[INFO]
------------------------------------------------------------------------


Thanks and regards,
Arshad
-- 
View this message in context: http://servicemix.396122.n5.nabble.com/How-to-build-Servicemix-http-component-from-the-source-tp2851046p2851145.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

Re: How to build Servicemix http component from the source

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Dan is right.

Sorry for my mistake.

Regards
JB

On 09/23/2010 03:27 PM, Daniel Kulp wrote:
>
> It should be:
>
> https://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-
> http/trunk/
>
>
> (note the s in bindings)
>
> Dan
>
>
>
>
> On Thursday 23 September 2010 9:21:56 am arshadansari27 wrote:
>> Im unable to check out with this url..
>> http://svn.apache.org/repos/asf/servicemix/components/binding/servicemix-ht
>> tp/trunk
>>
>> This is what happens:
>>
>> svn co
>> https://svn.apache.org/repos/asf/servicemix/components/binding/servicemix-h
>> ttp/trunk servicemix-http
>> svn: URL
>> 'https://svn.apache.org/repos/asf/servicemix/components/binding/servicemix-
>> http/trunk' doesn't exist
>

Re: How to build Servicemix http component from the source

Posted by Daniel Kulp <dk...@apache.org>.
It should be:

https://svn.apache.org/repos/asf/servicemix/components/bindings/servicemix-
http/trunk/


(note the s in bindings)

Dan




On Thursday 23 September 2010 9:21:56 am arshadansari27 wrote:
> Im unable to check out with this url..
> http://svn.apache.org/repos/asf/servicemix/components/binding/servicemix-ht
> tp/trunk
> 
> This is what happens:
> 
> svn co
> https://svn.apache.org/repos/asf/servicemix/components/binding/servicemix-h
> ttp/trunk servicemix-http
> svn: URL
> 'https://svn.apache.org/repos/asf/servicemix/components/binding/servicemix-
> http/trunk' doesn't exist

-- 
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog

Re: How to build Servicemix http component from the source

Posted by arshadansari27 <ar...@gmail.com>.
Nevermind, there was some problem on my end. I got it to download the http
component. And thanks for the reply.
-- 
View this message in context: http://servicemix.396122.n5.nabble.com/How-to-build-Servicemix-http-component-from-the-source-tp2851046p2851132.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

Re: How to build Servicemix http component from the source

Posted by arshadansari27 <ar...@gmail.com>.
Im unable to check out with this url..
http://svn.apache.org/repos/asf/servicemix/components/binding/servicemix-http/trunk  

This is what happens:

svn co
https://svn.apache.org/repos/asf/servicemix/components/binding/servicemix-http/trunk 
servicemix-http
svn: URL
'https://svn.apache.org/repos/asf/servicemix/components/binding/servicemix-http/trunk'
doesn't exist

-- 
View this message in context: http://servicemix.396122.n5.nabble.com/How-to-build-Servicemix-http-component-from-the-source-tp2851046p2851125.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

Re: How to build Servicemix http component from the source

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Which URL ? the component-pom ?

On 09/23/2010 02:59 PM, arshadansari27 wrote:
>
> Thanks for the reply. I tired that, but it says that the url does not exist.
> I even tried replacing http with https, I thought would be the case.
> However, it says the same thing for both. Any ideas why?
>
> Thank and regards,
> Arshad

Re: How to build Servicemix http component from the source

Posted by arshadansari27 <ar...@gmail.com>.
Thanks for the reply. I tired that, but it says that the url does not exist.
I even tried replacing http with https, I thought would be the case.
However, it says the same thing for both. Any ideas why?

Thank and regards,
Arshad
-- 
View this message in context: http://servicemix.396122.n5.nabble.com/How-to-build-Servicemix-http-component-from-the-source-tp2851046p2851092.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.

Re: How to build Servicemix http component from the source

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Arshad,

simply co the component:

svn co 
http://svn.apache.org/repos/asf/servicemix/components/binding/servicemix-http/trunk 
servicemix-http

and make mvn install:

mvn install

The required version of maven is 2.2.1 and JDK 1.5.x.

Regards
JB

On 09/23/2010 02:41 PM, arshadansari27 wrote:
>
> I would like to know or be pointed to a documentation that would help me
> understand how to build servicemix components from source. I've downloaded
> the source and configured it to show in eclipse. Is there any documentation
> or tutorials for me to follow.
>
> Thanks in advance,
> Arshad