Hi Suhaas,

I did try to build the 3.0 sources. I didn't get the error that you got but I did find an issue with a missing dependency caused by the maven-shade-plugin.

As 3.1 was just released, I tried again with that source to make sure it could build from the src zip. Everything built cleanly. Here's the command I used:

 mvn clean install

Give that a try and feel free to post any issues.

-David

On Oct 21, 2008, at 10:20 AM, suhaas wrote:


Hi,

I wanted to build a jar out of Open EJB source code with Eclipse. So I
downloaded openejb-3.0-src.zip from the website and unzipped it. At the root
of the unzipped directory, there is a pom.xml. When I run
"mvn package" or "mvn clean package install" I get the following build error
[INFO] Error building POM (may not be this project's POM).

This is the Maven 2 Log

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO]   OpenEJB
[INFO]   OpenEJB :: Dependencies
[INFO]   OpenEJB :: Dependencies :: XBean Finder
[INFO]   OpenEJB :: Dependencies :: XBean Reflect
[INFO]   OpenEJB :: iTests
[INFO]   OpenEJB :: iTests Beans
[INFO]   OpenEJB :: iTests Servlets
[INFO]   OpenEJB :: iTests Client
[INFO]   OpenEJB :: iTests Interceptor Beans
[INFO]   OpenEJB :: iTests App
[INFO]   OpenEJB :: iTests Web
[INFO]   OpenEJB :: Container
[INFO]   OpenEJB :: Container :: Loader
[INFO]   OpenEJB :: Container :: Java Agent
[INFO]   OpenEJB :: Container :: Java EE
[INFO]   OpenEJB :: Container :: Core
[INFO]   OpenEJB :: Server
[INFO]   OpenEJB :: Server :: Client
[INFO]   OpenEJB :: Server :: Core
[INFO]   OpenEJB :: Server :: EJBd
[INFO]   OpenEJB :: Server :: Admin
[INFO]   OpenEJB :: Server :: Http
[INFO]   OpenEJB :: Server :: WebAdmin
[INFO]   OpenEJB :: Server :: Telnet
[INFO]   OpenEJB :: Server :: ActiveMQ
[INFO]   OpenEJB :: Server :: CORBA
[INFO]   OpenEJB :: Server :: Derby Network Service
[INFO]   OpenEJB :: Server :: Hsql
[INFO]   OpenEJB :: Server :: Webservices
[INFO]   OpenEJB :: Server :: Axis
[INFO]   OpenEJB :: Server :: Axis2
[INFO]   OpenEJB :: Server :: CXF
[INFO]   OpenEJB :: Examples :: Simple Stateful Pojo
[INFO]   OpenEJB :: Examples :: Simple Stateless Pojo
[INFO]   OpenEJB :: Examples :: Simple Webservice
[INFO]   OpenEJB :: Examples :: EJB 2.1 Component Interfaces
[INFO]   OpenEJB :: Examples :: @EJB Injection
[INFO]   OpenEJB :: Examples :: @Resource env-entry Injection
[INFO]   OpenEJB :: Examples :: @Resource DataSource Injection
[INFO] OpenEJB :: Examples :: @PersistenceContext EntityManager Injection
[INFO]   OpenEJB :: Examples :: Testing Transactions
[INFO]   OpenEJB :: Examples :: Testing Security
[INFO]   OpenEJB :: Examples :: Interceptors
[INFO]   OpenEJB :: Examples :: Expanded support for Env Entries
[INFO]   OpenEJB :: Examples :: Hello World - Weblogic
[INFO]   OpenEJB :: Examples :: JPA with Hibernate
[INFO]   OpenEJB :: Examples :: Telephone Stateful Pojo
[INFO]   OpenEJB :: Web Examples :: EJB Examples War
[INFO]   OpenEJB :: Web Examples
[INFO]   OpenEJB :: Examples
[INFO]
------------------------------------------------------------------------
[INFO] Building OpenEJB
[INFO]    task-segment: [package]
[INFO]
------------------------------------------------------------------------
[INFO] Setting property: classpath.resource.loader.class =>
'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.
[INFO] Setting property: velocimacro.messages.on => 'false'.
[INFO] Setting property: resource.loader => 'classpath'.
[INFO] Setting property: resource.manager.logwhenfound => 'false'.
[INFO] [remote-resources:process {execution: default}]
[INFO] [dependency-report:report {execution: default}]
[INFO] No dependencies to report
[INFO] [bundle:manifest {execution: bundle-manifest}]
[INFO] [site:attach-descriptor]
[INFO]
------------------------------------------------------------------------
[INFO] Building OpenEJB :: Dependencies
[INFO]    task-segment: [package]
[INFO]
------------------------------------------------------------------------
[INFO] [remote-resources:process {execution: default}]
[INFO] [dependency-report:report {execution: default}]
[INFO] No dependencies to report
[INFO] [bundle:manifest {execution: bundle-manifest}]
[INFO] [site:attach-descriptor]
[INFO]
------------------------------------------------------------------------
[INFO] Building OpenEJB :: Dependencies :: XBean Finder
[INFO]    task-segment: [package]
[INFO]
------------------------------------------------------------------------
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).


Project ID: org.apache.maven.plugins:maven-surefire-plugin
POM Location: C:\Documents and
Settings\Suhas.Valanjoo\.m2\repository\org\apache\maven\plugins \maven-surefire-plugin\2.4\maven-surefire-plugin-2.4.pom

Reason: Not a v4.0.0 POM. for project
org.apache.maven.plugins:maven-surefire-plugin at C:\Documents and
Settings\Suhas.Valanjoo\.m2\repository\org\apache\maven\plugins \maven-surefire-plugin\2.4\maven-surefire-plugin-2.4.pom


[INFO]
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 26 seconds
[INFO] Finished at: Tue Oct 21 13:07:10 EDT 2008
[INFO] Final Memory: 20M/254M
[INFO]
------------------------------------------------------------------------

Please advise.

Warm Regards,
Suhaas

--
View this message in context: 
http://www.nabble.com/Error-Building-OpenEJB-Source-File-tp20095220p20095220.html
Sent from the OpenEJB User mailing list archive at Nabble.com.



Reply via email to