Hi List,

I am trying to create a build environment to make some development on
felix-webconsole project. I want to build felix-webconsole with maven pax
plugin. I am following the instructions listed in below link.

http://books.sonatype.com/mcookbook/reference/index.html

more specific link :
http://books.sonatype.com/mcookbook/reference/ch01s04.html


Currently I could not succeed.  Here what I have done so far.

1. download the source of felix-webconsole-4.2.2
2. add maven pax plugin into the pom.xml
3. mvn clean install (succeded)
4. add below dependencies as mentioned in above link.
   mvn pax:import-bundle -DgroupId=tr.com.torqum
-DartifactId=torqum-osgi-webconsole -Dversion=4.2.2
mvn pax:import-bundle -DgroupId=javax.servlet -DartifactId=servlet-api
-Dversion=2.4.0
mvn pax:import-bundle -DgroupId=org.apache.felix
-DartifactId=org.apache.felix.scr -Dversion=1.6.0
mvn pax:import-bundle -DgroupId=org.apache.felix
-DartifactId=org.apache.felix.http.jetty -Dversion=2.2.2
5. mvn install (as mentioned above link)

when I run "mvn pax:provision"  I am getting below error:

======================copy-paste:start===========================
...

 -> Resolved (org.apache.felix:org.apache.felix.inventory:jar:1.0.0) as
C:\Users
\BTG\.m2\repository\org\apache\felix\org.apache.felix.inventory\1.0.0\org.apache
.felix.inventory-1.0.0.jar
 -> mvn:org.apache.felix/org.apache.felix.inventory/1.0.0 : 51125 bytes @ [
5112
5kBps ]
 -> Using execution environment [J2SE-1.7]
 -> Runner has successfully finished his job!

Error: Could not find or load main class Development

 -> Platform has been shutdown.
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2.193 s
[INFO] Finished at: 2014-08-19T14:58:36+03:00
[INFO] Final Memory: 14M/244M
[INFO]
------------------------------------------------------------------------


======================copy-paste:end===========================

Actually I could not understand the root cause of "Error: Could not find or
load main class Development". Is there a library  missing?



best,


-halil agin.

Reply via email to