tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mansour Al Akeel <mansour.alak...@gmail.com>
Subject Re: Starting with EJB
Date Tue, 01 Dec 2009 02:13:48 GMT
Jonathan,
thank you, It's really good idea to provide a maven archetype for
openejb, that will provide basic skelton and a simple functionality.
But I am unable to create the archetype

[INFO] Generating project in Interactive mode
[INFO] No archetype defined. Using maven-archetype-quickstart
(org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
Choose archetype:
1: http://jrg.me.uk/repository/ -> maven-openejb-quickstart
(maven-openejb-quickstart)
2: http://jrg.me.uk/repository/ -> maven-openejb-quickstart-ear
(maven-openejb-quickstart-ear)
Choose a number:  (1/2): 2
[INFO] snapshot
org.apache.openejb:maven-openejb-quickstart-ear:1.0-SNAPSHOT: checking
for updates from maven-openejb-quickstart-ear-repo
[INFO] snapshot
org.apache.openejb:maven-openejb-quickstart-ear:1.0-SNAPSHOT: checking
for updates from central
Downloading: http://neptune:8081/nexus/content/groups/public/org/apache/openejb/maven-openejb-quickstart-ear/1.0-SNAPSHOT/maven-openejb-quickstart-ear-1.0-SNAPSHOT.jar
[INFO] Unable to find resource
'org.apache.openejb:maven-openejb-quickstart-ear:jar:1.0-SNAPSHOT' in
repository maven-openejb-quickstart-ear-repo
(http://jrg.me.uk/repository)
Downloading: http://neptune:8081/nexus/content/groups/public/org/apache/openejb/maven-openejb-quickstart-ear/1.0-SNAPSHOT/maven-openejb-quickstart-ear-1.0-SNAPSHOT.jar
[INFO] Unable to find resource
'org.apache.openejb:maven-openejb-quickstart-ear:jar:1.0-SNAPSHOT' in
repository central (http://central)
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] The desired archetype does not exist
(org.apache.openejb:maven-openejb-quickstart-ear:1.0-SNAPSHOT)
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch





On Mon, Nov 30, 2009 at 1:36 PM, Jonathan Gallimore
<jonathan.gallimore@gmail.com> wrote:
> Hi,
>
> I don't know if this will be any help, but I created a Maven Archetype for
> OpenEJB not long ago, and I have a Maven repository on my website which you
> should be able to point to.
>
> You can generate a project by doing the following:
>
> $ mvn -DarchetypeCatalog=http://jrg.me.uk/repository/ -DarchetypeRepository=
> http://jrg.me.uk/repository/ archetype:generate (the trailing / on the URL
> is necessary for some reason)
>
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO] ------------------------------
> ------------------------------------------
> [INFO] Building Maven Default Project
> [INFO]    task-segment: [archetype:generate] (aggregator-style)
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Preparing archetype:generate
> [INFO] No goals needed for project - skipping
> [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] [archetype:generate]
> [INFO] Generating project in Interactive mode
> [INFO] No archetype defined. Using maven-archetype-quickstart
> (org.apache.maven.archetypes:maven-archetype-quickstart:1.0)
> Choose archetype:
> 1: http://jrg.me.uk/repository/ -> maven-openejb-quickstart
> (maven-openejb-quickstart)
> 2: http://jrg.me.uk/repository/ -> maven-openejb-quickstart-ear
> (maven-openejb-quickstart-ear)
> Choose a number:  (1/2):
>
> Once you've followed the wizard, you should be able to cd to the newly
> created project, and run:
>
> $ mvn install eclipse:eclipse
>
> This should compile everything, run the tests and create an Eclipse project
> ready to be imported to your workspace. The maven-openejb-quickstart is in
> better shape than the maven-openejb-quickstart-ear archetype, but is limited
> to just EJBs, whereas the -ear archetype will build a whole EAR file. If you
> give this a go and have any feedback or additional features you feel would
> be useful, please do let me know.
>
> Cheers,
>
> Jon
>
>
> On Sun, Nov 29, 2009 at 8:07 PM, Mansour Al Akeel <mansour.alakeel@gmail.com
>> wrote:
>
>> Hello all:
>> I have looking into the EJB solution for a simulation project. We
>> decided to use openEJB but not sure yet to which server it will be
>> deployed (most probably to geronimo).
>> Initially, we are looking for a prototype. With my very limited skills
>> with ejb, I am finding it a bit challenging to start a project. The
>> lack of a ready made maven archetype, is adding difficulty. With a
>> maven archetype, we get the base skelton, with the minimal "Hello
>> World" like functionality, then we expand on it. However, I found an
>> archetype for j2ee simple application, and I don't know if that's what
>> I need. It looks a bit more than what I need. I am looking for the
>> maven depndencies required for a MessageDrivenBeans, MessageListener ,
>>  MessageDrivenContex ... etc.
>>
>> Any advice, about how to get this up a running ?
>>
>

Mime
View raw message