RE: How to create Hello World Projects using Maven for Spring, Hibernate, JPA, EJB, ActiveMQ?

2009-09-12 Thread siegfried

There was a nice archetype that created a simple spring hibernate that uses
dbunit. Now I cannot find it. Was it this one?
mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create
-DgroupId=www.signitek.com -DartifactId=demo-osgi-spring
-DarchetypeArtifactId -DarchetypeArtifactId=spring-osgi-bundle-archetype
-DarchetypeGroupId=org.springframework.osgi

I tried execute this and the results are below.


>
>-Original Message-
>From: Wayne Fay [mailto:wayne...@gmail.com] 
>Sent: Friday, May 22, 2009 1:18 PM
>To: Maven Users List
>Subject: Re: How to create Hello World Projects using Maven for Spring,
Hibernate, JPA, EJB, ActiveMQ?
>
>> Is http://docs.codehaus.org/display/MAVENUSER/Archetypes+List the best
list
>> of archetypes?
>
>As I sent in a previous email...
>The listing of archetpes on the Maven User wiki is pretty complete, as
>far as I am aware. There are no specific archetypes for "session
>stateful ejb" -- just generic project/framework archetypes. Of course,
>you're welcome to build something and contribute it back.
>
>Wayne
>

 [INFO] Scanning for projects...

Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugi
n/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.pom

4/4K
4/4K
4K downloaded  (maven-archetype-plugin-1.0-alpha-7.pom)

Downloading:
http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype/1.0
-alpha-7/maven-archetype-1.0-alpha-7.pom

3/3K
3K downloaded  (maven-archetype-1.0-alpha-7.pom)

Downloading:
http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-par
ent/2/maven-archetype-parent-2.pom

2/2K
2K downloaded  (maven-archetype-parent-2.pom)

Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-archetype-plugi
n/1.0-alpha-7/maven-archetype-plugin-1.0-alpha-7.jar

4/12K
8/12K
12/12K
12/12K
12K downloaded  (maven-archetype-plugin-1.0-alpha-7.jar)

[INFO]


[INFO] Building Maven Default Project

[INFO]task-segment:
[org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create]
(aggregator-style)

[INFO]


Downloading:
http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-cor
e/1.0-alpha-7/maven-archetype-core-1.0-alpha-7.pom

1/1K
1K downloaded  (maven-archetype-core-1.0-alpha-7.pom)

Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1.1.2/plex
us-velocity-1.1.2.pom

4/7K
7/7K
7K downloaded  (plexus-velocity-1.1.2.pom)

Downloading:
http://repo1.maven.org/maven2/commons-collections/commons-collections/2.0/co
mmons-collections-2.0.pom

171/171b
171b downloaded  (commons-collections-2.0.pom)

Downloading:
http://repo1.maven.org/maven2/commons-logging/commons-logging-api/1.0.4/comm
ons-logging-api-1.0.4.pom

168/168b
168b downloaded  (commons-logging-api-1.0.4.pom)

Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-default/1
.0-alpha-9/plexus-container-default-1.0-alpha-9.pom

1/1K
1K downloaded  (plexus-container-default-1.0-alpha-9.pom)

Downloading:
http://repo1.maven.org/maven2/org/apache/maven/shared/maven-downloader/1.0/m
aven-downloader-1.0.pom

1/1K
1K downloaded  (maven-downloader-1.0.pom)

Downloading:
http://repo1.maven.org/maven2/org/apache/maven/shared/maven-shared-component
s/4/maven-shared-components-4.pom

2/2K
2K downloaded  (maven-shared-components-4.pom)

Downloading:
http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-cre
ator/1.0-alpha-7/maven-archetype-creator-1.0-alpha-7.pom

1/1K
1K downloaded  (maven-archetype-creator-1.0-alpha-7.pom)

Downloading:
http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-mod
el/1.0-alpha-7/maven-archetype-model-1.0-alpha-7.pom

1/1K
1K downloaded  (maven-archetype-model-1.0-alpha-7.pom)

Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-archiver/1.0-alpha-
5/plexus-archiver-1.0-alpha-5.pom

439/439b
439b downloaded  (plexus-archiver-1.0-alpha-5.pom)

Downloading:
http://repo1.maven.org/maven2/org/apache/maven/shared/maven-downloader/1.0/m
aven-downloader-1.0.jar

Downloading:
http://repo1.maven.org/maven2/plexus/plexus-utils/1.0.2/plexus-utils-1.0.2.j
ar

Downloading:
http://repo1.maven.org/maven2/org/apache/maven/archetype/maven-archetype-cor
e/1.0-alpha-7/maven-archetype-core-1.0-alpha-7.jar

Downloading:
http://repo1.maven.org/maven2/commons-logging/commons-logging-api/1.0.4/comm
ons-logging-api-1.0.4.jar

Downloading:
http://repo1.maven.org/maven2/org/codehaus/plexus/plexus-velocity/1.1.2/plex
us-velocity-1.1.2.jar

4/6K
6/6K
6K downloaded  (maven-downloader-1.0.jar)

Downloading:
http://repo1.maven.org/maven2/commons-collections/commons-collections/2.0/co
mmons-collections-2.0.jar

4/24K
8/24K
9/24K
9/24K 4/156K
9/24K 8/156K
9/24K 9/156K
9/24K 9/156K 4/25K
9

Re: How to create Hello World Projects using Maven for Spring, Hibernate, JPA, EJB, ActiveMQ?

2009-05-22 Thread Wayne Fay
> Is http://docs.codehaus.org/display/MAVENUSER/Archetypes+List the best list
> of archetypes?

As I sent in a previous email...
The listing of archetpes on the Maven User wiki is pretty complete, as
far as I am aware. There are no specific archetypes for "session
stateful ejb" -- just generic project/framework archetypes. Of course,
you're welcome to build something and contribute it back.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: How to create Hello World Projects using Maven for Spring, Hibernate, JPA, EJB, ActiveMQ?

2009-05-22 Thread siegfried
Renaming .m2 to save.m2 seems to have fixed the problem. Thanks!

Is http://docs.codehaus.org/display/MAVENUSER/Archetypes+List the best list
of archetypes?

>
>> Ooops!  Do I need to delete me repository?
>>
>> [INFO] Required goal not found: archetype:generate in
>> org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7
>
>If you look at the documentation, you'll see the generate goal was not
>added until 2.0-alpha-4, so this error message is correct. Your
>archetype plugin is WAY out of date.
>
>> [INFO] The plugin 'org.apache.maven.plugins:maven-help-plugin' does not
>> exist or  no valid version could be found
>
>Try again with "mvn -U -e archetype:generate" and "mvn -U
>help:compile". If that doesn't work, you could try deleting your local
>repo cache and things would probably start working again. It sounds
>like you've managed to mess up some metadata, or something.
>
>Wayne
>


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to create Hello World Projects using Maven for Spring, Hibernate, JPA, EJB, ActiveMQ?

2009-05-22 Thread Wayne Fay
> Ooops!  Do I need to delete me repository?
>
> [INFO] Required goal not found: archetype:generate in
> org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7

If you look at the documentation, you'll see the generate goal was not
added until 2.0-alpha-4, so this error message is correct. Your
archetype plugin is WAY out of date.

> [INFO] The plugin 'org.apache.maven.plugins:maven-help-plugin' does not
> exist or  no valid version could be found

Try again with "mvn -U -e archetype:generate" and "mvn -U
help:compile". If that doesn't work, you could try deleting your local
repo cache and things would probably start working again. It sounds
like you've managed to mess up some metadata, or something.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: How to create Hello World Projects using Maven for Spring, Hibernate, JPA, EJB, ActiveMQ?

2009-05-21 Thread siegfried
Ooops!  Do I need to delete me repository?


Sorry: here it is!

bash-3.2$ mvn -e archetype:generate   
+ Error stacktraces are turned on.   
[INFO] Scanning for projects...   
[INFO] Searching repository for plugin with prefix: 'archetype'.   
[INFO]
   
[ERROR] BUILD FAILURE   
[INFO]
   
[INFO] Required goal not found: archetype:generate in
org.apache.maven.plugins:m   
aven-archetype-plugin:1.0-alpha-7  
[INFO]
   
[INFO] Trace   
org.apache.maven.BuildFailureException: Required goal not found:
archetype:gener   
ate in org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7  
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor   
(DefaultLifecycleExecutor.java:1802)   
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListBy   
AggregationNeeds(DefaultLifecycleExecutor.java:446)   
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi   
fecycleExecutor.java:176)   
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:356)   
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:137)   
at org.apache.maven.cli.MavenCli.main(MavenCli.java:356)   
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)   
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.   
java:39)   
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces   
sorImpl.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)   
[INFO]
   
[INFO] Total time: < 1 second   
[INFO] Finished at: Thu May 21 01:04:52 PDT 2009  
[INFO] Final Memory: 1M/4M   
[INFO]
   
bash-3.2$   
  
bash-3.2$ mvn -v   
Apache Maven 2.1.0 (r755702; 2009-03-18 12:10:27-0700)   
Java version: 1.6.0  
Java home: c:\Program Files\Java\jdk1.6.0\jre   
Default locale: en_US, platform encoding: Cp1252   
OS name: "windows 2003" version: "5.2" arch: "x86" Family: "windows"  
bash-3.2$   
C:\Documents and Settings\Administrator\temp>mvn help:compile
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'help'.
[INFO] artifact org.apache.maven.plugins:maven-help-plugin: checking for
updates
 from central
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] The plugin 'org.apache.maven.plugins:maven-help-plugin' does not
exist or
 no valid version could be found
[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 1 second
[INFO] Finished at: Thu May 21 21:26:05 PDT 2009
[INFO] Final Memory: 1M/4M
[INFO]

C:\Documents and Settings\Administrator\temp>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: How to create Hello World Projects using Maven for Spring, Hibernate, JPA, EJB, ActiveMQ?

2009-05-21 Thread Wayne Fay
> I found http://openejb.apache.org/examples.html and tried them and when they
> would not work, I posted in the ejb forum. But now that I see the results
> below, I'm wondering if it is a maven problem instead of a bad openejb
> example.

1. What "results below"? You didn't include anything in your email.

2. If you read the openejb page, it says these examples can "be run...
with Maven". It doesn't say anything about there being archetypes for
each one of them. Instead, there's a zip file with all the samples
inside, and then you click around between directories to run/build
each one.

The listing of archetpes on the Maven User wiki is pretty complete, as
far as I am aware. There are no specific archetypes for "session
stateful ejb" -- just generic project/framework archetypes. Of course,
you're welcome to build something and contribute it back.

Perhaps you'd find Archy helpful/useful?
http://code.google.com/p/archy/

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org