Re: Running "hello world" JPA app with maven: No Persistence provider for EntityManager named XXX

2012-12-11 Thread Wayne Fay
> I'm learning JEE6 and I'm also new to Maven. I'm trying to resolve this
> issue for two days already with no success, so maybe someone could help me
> here? The thing is, I can't run a hello world app, that uses JPA. Here's
> what I do and what I get:

This question is more suited to one of the JEE forums at CodeRanch.com.

Wayne

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



Running "hello world" JPA app with maven: No Persistence provider for EntityManager named XXX

2012-12-11 Thread Anton Reshetnikov
Hello,

I'm learning JEE6 and I'm also new to Maven. I'm trying to resolve this
issue for two days already with no success, so maybe someone could help me
here? The thing is, I can't run a hello world app, that uses JPA. Here's
what I do and what I get:

mvn exec:java -Dexec.mainClass="ru.hatchery.jeetest.App"

[INFO] Scanning for projects...
[INFO]

[INFO]

[INFO] Building jeetest 1.0-SNAPSHOT
[INFO]

[INFO]
[INFO] >>> exec-maven-plugin:1.2.1:java (default-cli) @ jeetest >>>
[INFO]
[INFO] <<< exec-maven-plugin:1.2.1:java (default-cli) @ jeetest <<<
[INFO]
[INFO] --- exec-maven-plugin:1.2.1:java (default-cli) @ jeetest ---
[WARNING]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:297)
at java.lang.Thread.run(Thread.java:722)
Caused by: javax.persistence.PersistenceException: No Persistence provider
for EntityManager named jeetest
at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:84)
at
javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:54)
at ru.hatchery.jeetest.App.main(App.java:16)
... 6 more
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 3.580s
[INFO] Finished at: Tue Dec 11 14:17:24 MSK 2012
[INFO] Final Memory: 8M/109M
[INFO]

[ERROR] Failed to execute goal
org.codehaus.mojo:exec-maven-plugin:1.2.1:java (default-cli) on project
jeetest: An exception occured while executing the Java class. null:
InvocationTargetException: No Persistence provider for EntityManager named
jeetest -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException



The persistence.xml file is located in my src/main/resources/META-INF and
it's being correctly copied to target/classes/META-INF. Here is the
persistence.xml:





http://java.sun/com/xml/ns/persistence";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd";
version="2.0">


org.eclipse.persistence.jpa.PersistenceProvider
ru.hatchery.jeetest.Book














The database is also up and running. And here is the pom.xml:


http://maven.apache.org/POM/4.0.0"; xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance";
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd";>
  4.0.0

  ru.hatchery
  jeetest
  1.0-SNAPSHOT
  jar

  jeetest

  

EclipseLink
http://download.eclipse.org/rt/eclipselink/maven.repo



DerbyClient
http://repository.apache.org/content/repositories/releases


  

  
UTF-8
  

  

  org.eclipse.persistence
  javax.persistence
  2.0.0



  org.eclipse.persistence
  eclipselink
  2.0.0



  org.apache.derby
  derbyclient
  10.6.1.0



  junit
  junit
  4.11
  test

  


Maybe I should add a dependency for that
org.eclipse.persistence.jpa.PersistenceProvider? But I don't know the
groupId, artifactId and version for it. I guess my mistake is stupid, but
I'm stuck on it. Please, give me a clue.

Thank you!
Anton Reshetnikov


AW: Hello World? And More

2011-03-24 Thread Stadelmann Josef
Hello Team

 

My problem goes into the same direction, hence no new thread;

 

When I first saw this archetype:generate , I was about to try it immediately.

 

ON PC

ON OpenVMS

 

I am using on the PC, maven 2.2.1 and my observations are:

I get 41 options to chose from offered; I use 15 and well it works; initially 
with some downloads

 

15, is OK and GENERATES a Project

mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes 
-DgroupId=com.mycompany.app -DartifactId=my-app-15

 

 

mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes 
-DgroupId=com.mycompany.app -DartifactId=my-app-1

. . . .

Choose a number:  
(1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41)
 15: : 1

[INFO] 

[ERROR] BUILD FAILURE

[INFO] 

[INFO] The defined artifact is not an archetype

 

 

mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes 
-DgroupId=com.mycompany.app -DartifactId=my-app-1

. . . 

Choose a number:  
(1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41)
 15: : 6

[INFO] artifact org.appfuse.archetypes:appfuse-modular-jsf: checking for 
updates from central

Downloading: 
http://repo1.maven.org/maven2/org/appfuse/archetypes/appfuse-modular-jsf/2.1.0-M2/appfuse-modular-jsf-2.1.0-M2.jar

 

[INFO] 

[ERROR] BUILD FAILURE

[INFO] 

[INFO] The defined artifact is not an archetype

 

In any unselected case it downloads first and fails

So numbers used are : 

 

1 to 9 FAILS;

 

10 to 17 is Ok and GENERATES, 

 

18 FAILS, 

 

19 is OK; 

 

20 FAILS --- 

Choose a number:  
(1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41)
 15: : 20

[INFO] artifact org.apache.maven.archetypes:softeu-archetype-seam: checking for 
updates from softeu-archetype-seam-repo

[INFO] artifact org.apache.maven.archetypes:softeu-archetype-seam: checking for 
updates from central

[INFO] 

[ERROR] BUILD FAILURE

[INFO] 

[INFO] The desired archetype does not exist 
(org.apache.maven.archetypes:softeu-archetype-seam:RELEASE)

 

21 FAILS

Choose a number:  
(1/2/3/4/5/6/7/8/9/10/11/12/13/14/15/16/17/18/19/20/21/22/23/24/25/26/27/28/29/30/31/32/33/34/35/36/37/38/39/40/41)
 15: : 21

[INFO] artifact org.apache.maven.archetypes:softeu-archetype-seam-simple: 
checking for updates from softeu-archetype-seam-simple-repo

[INFO] artifact org.apache.maven.archetypes:softeu-archetype-seam-simple: 
checking for updates from central

[INFO] 

[ERROR] BUILD FAILURE

[INFO] 

[INFO] The desired archetype does not exist 
(org.apache.maven.archetypes:softeu-archetype-seam-simple:RELEASE)

 

 

. . .

End of my test on PC

 

Guess someone has a little bit of work to do !

Or how shall I go on ???

 

And oooh yes; 

On OpenVMS the offerings are much greater (guess they come from remote), 

and they give me from the remote catalog 377 options to chose from

I have some parameter passing problems on OpenVMS but the default option 
perfectly generates a quick-start-project

 

Thank you

 

Josef

 

 

Von: Hahn, Christopher (SAN DIEGO) [mailto:christopher.h...@hp.com] 
Gesendet: Mittwoch, 23. März 2011 19:40
An: Maven Users List
Betreff: Hello World?

 

???

 

What can make Hello World fail:

==

D:\temp>mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes 
-DgroupId=com.mycompany.app -DartifactId=my-app

 

D:\temp>set MAVEN_OPTS=-Xmx1024m -Xms128m

[INFO] Scanning for projects...

[INFO] Searching repository for plugin with prefix: 'archetype'.

[INFO] org.apache.maven.plugins: checking for updates from central

[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be 
retrieved from repository: central due to an error: Error

transferring file: Connection refused: connect

[INFO] Repository 'central' will be blacklisted

[INFO] 

[ERROR] BUILD ERROR

[INFO] 

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

[INFO] 

[INF

RE: Hello World?

2011-03-23 Thread Hessick, Michael
@Christopher

Would you mind posting your settings.xml?  

It sounds like it needs to be updated.  




-Mike



-Original Message-
From: Asmann, Roland [mailto:roland.asm...@adesso.at] 
Sent: Wednesday, March 23, 2011 12:46 PM
To: Maven Users List
Subject: Re: Hello World?

Because that is Maven's default output, no matter if you are using nexus 
or not! If you run in debug, it should (when correctly configured) show 
that it is trying to download from 'central ()'.


On 23-03-11 19:43, Hessick, Michael wrote:
> If you are using Nexus, then why is your build trying to connect to central?
>
>
>
> From: Hahn, Christopher (SAN DIEGO) [mailto:christopher.h...@hp.com]
> Sent: Wednesday, March 23, 2011 12:40 PM
> To: Maven Users List
> Subject: Hello World?
>
> ???
>
> What can make Hello World fail:
> ==
> D:\temp>mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes 
> -DgroupId=com.mycompany.app -DartifactId=my-app
>
> D:\temp>set MAVEN_OPTS=-Xmx1024m -Xms128m
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO] org.apache.maven.plugins: checking for updates from central
> [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be 
> retrieved from repository: central due to an error: Error
> transferring file: Connection refused: connect
> [INFO] Repository 'central' will be blacklisted
> [INFO] 
> 
> [ERROR] BUILD ERROR
> [INFO] 
> 
> [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-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: Wed Mar 23 10:18:23 PDT 2011
> [INFO] Final Memory: 1M/127M
> [INFO] 
> 
> D:\temp>
> ==
>
> We are using Nexus, and something must be misconfigured there, but
> other full-blown targets are working fine.
>
> Do I need to re-add Central as a repo on my command line?
>
> Sorry, but I seem to be going backwards on this matter...
>
> Chris
>
> 
>
> [cid:image001.png@01CBE94E.4DE427B0]
>
> Christopher Hahn
> The Dude
> Software Production Engineering
> R&D Services, Hewlett-Packard
> Phone: 858-655-4096
> Cell: 619-630-9791
> ch...@hp.com<mailto:christopher.h...@hp.com>
>
> Visit our SPE Portal<http://teams5.sharepoint.hp.com/teams/SPE/default.aspx>
>
> 
>
>
>

-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock  T +43 1 2198790-27
Floridsdorfer Hauptstr. 1   F +43 1 2198790-927
A-1210 Wien M +43 664 88657566
E roland.asm...@adesso.at
W www.adesso.at

-
 >>> business. people. technology. <<<
-
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org


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



Re: Hello World?

2011-03-23 Thread Asmann, Roland
Because that is Maven's default output, no matter if you are using nexus 
or not! If you run in debug, it should (when correctly configured) show 
that it is trying to download from 'central ()'.


On 23-03-11 19:43, Hessick, Michael wrote:
> If you are using Nexus, then why is your build trying to connect to central?
>
>
>
> From: Hahn, Christopher (SAN DIEGO) [mailto:christopher.h...@hp.com]
> Sent: Wednesday, March 23, 2011 12:40 PM
> To: Maven Users List
> Subject: Hello World?
>
> ???
>
> What can make Hello World fail:
> ==
> D:\temp>mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes 
> -DgroupId=com.mycompany.app -DartifactId=my-app
>
> D:\temp>set MAVEN_OPTS=-Xmx1024m -Xms128m
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'archetype'.
> [INFO] org.apache.maven.plugins: checking for updates from central
> [WARNING] repository metadata for: 'org.apache.maven.plugins' could not be 
> retrieved from repository: central due to an error: Error
> transferring file: Connection refused: connect
> [INFO] Repository 'central' will be blacklisted
> [INFO] 
> 
> [ERROR] BUILD ERROR
> [INFO] 
> 
> [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-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: Wed Mar 23 10:18:23 PDT 2011
> [INFO] Final Memory: 1M/127M
> [INFO] 
> 
> D:\temp>
> ==
>
> We are using Nexus, and something must be misconfigured there, but
> other full-blown targets are working fine.
>
> Do I need to re-add Central as a repo on my command line?
>
> Sorry, but I seem to be going backwards on this matter...
>
> Chris
>
> 
>
> [cid:image001.png@01CBE94E.4DE427B0]
>
> Christopher Hahn
> The Dude
> Software Production Engineering
> R&D Services, Hewlett-Packard
> Phone: 858-655-4096
> Cell: 619-630-9791
> ch...@hp.com<mailto:christopher.h...@hp.com>
>
> Visit our SPE Portal<http://teams5.sharepoint.hp.com/teams/SPE/default.aspx>
>
> 
>
>
>

-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock  T +43 1 2198790-27
Floridsdorfer Hauptstr. 1   F +43 1 2198790-927
A-1210 Wien M +43 664 88657566
E roland.asm...@adesso.at
W www.adesso.at

-
 >>> business. people. technology. <<<
-
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Hello World?

2011-03-23 Thread Hessick, Michael
If you are using Nexus, then why is your build trying to connect to central?



From: Hahn, Christopher (SAN DIEGO) [mailto:christopher.h...@hp.com]
Sent: Wednesday, March 23, 2011 12:40 PM
To: Maven Users List
Subject: Hello World?

???

What can make Hello World fail:
==
D:\temp>mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes 
-DgroupId=com.mycompany.app -DartifactId=my-app

D:\temp>set MAVEN_OPTS=-Xmx1024m -Xms128m
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be 
retrieved from repository: central due to an error: Error
transferring file: Connection refused: connect
[INFO] Repository 'central' will be blacklisted
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-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: Wed Mar 23 10:18:23 PDT 2011
[INFO] Final Memory: 1M/127M
[INFO] 
D:\temp>
==

We are using Nexus, and something must be misconfigured there, but
other full-blown targets are working fine.

Do I need to re-add Central as a repo on my command line?

Sorry, but I seem to be going backwards on this matter...

Chris



[cid:image001.png@01CBE94E.4DE427B0]

Christopher Hahn
The Dude
Software Production Engineering
R&D Services, Hewlett-Packard
Phone: 858-655-4096
Cell: 619-630-9791
ch...@hp.com<mailto:christopher.h...@hp.com>

Visit our SPE Portal<http://teams5.sharepoint.hp.com/teams/SPE/default.aspx>







Re: Hello World?

2011-03-23 Thread Asmann, Roland
IT says 'connection refused', are you sure you can currently reach your 
Nexus?


On 23-03-11 19:39, Hahn, Christopher (SAN DIEGO) wrote:
> ???
>
> What can make Hello World fail:
>
> ==
>
> D:\temp>mvn archetype:generate
> -DarchetypeGroupId=org.apache.maven.archetypes
> -DgroupId=com.mycompany.app -DartifactId=my-app
>
> D:\temp>set MAVEN_OPTS=-Xmx1024m -Xms128m
>
> [INFO] Scanning for projects...
>
> [INFO] Searching repository for plugin with prefix: 'archetype'.
>
> [INFO] org.apache.maven.plugins: checking for updates from central
>
> [WARNING] repository metadata for: 'org.apache.maven.plugins' could not
> be retrieved from repository: central due to an error: Error
>
> transferring file: Connection refused: connect
>
> [INFO] Repository 'central' will be blacklisted
>
> [INFO]
> 
>
> [ERROR] BUILD ERROR
>
> [INFO]
> 
>
> [INFO] The plugin 'org.apache.maven.plugins:maven-archetype-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: Wed Mar 23 10:18:23 PDT 2011
>
> [INFO] Final Memory: 1M/127M
>
> [INFO]
> 
>
> D:\temp>
>
> ==
>
> We are using Nexus, and something must be misconfigured there, but
>
> other full-blown targets are working fine.
>
> Do I need to re-add Central as a repo on my command line?
>
> Sorry, but I seem to be going backwards on this matter...
>
> Chris
>
> 
>
> cid:image001.png@01CAF080.AD65F1E0
>
>   
>
> *Christopher Hahn*
> The Dude
>
> Software Production Engineering
> R&D Services, Hewlett-Packard
> Phone: 858-655-4096
> Cell: 619-630-9791
> ch...@hp.com <mailto:christopher.h...@hp.com>
>
> */Visit our SPE Portal/*
> <http://teams5.sharepoint.hp.com/teams/SPE/default.aspx>*//*
>
> 
>

-- 
Roland Asmann
Senior Software Engineer

adesso Austria GmbH
Floridotower 26. Stock  T +43 1 2198790-27
Floridsdorfer Hauptstr. 1   F +43 1 2198790-927
A-1210 Wien M +43 664 88657566
E roland.asm...@adesso.at
W www.adesso.at

-
 >>> business. people. technology. <<<
-
-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Hello World?

2011-03-23 Thread Hahn, Christopher (SAN DIEGO)
???

What can make Hello World fail:
==
D:\temp>mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes 
-DgroupId=com.mycompany.app -DartifactId=my-app

D:\temp>set MAVEN_OPTS=-Xmx1024m -Xms128m
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'archetype'.
[INFO] org.apache.maven.plugins: checking for updates from central
[WARNING] repository metadata for: 'org.apache.maven.plugins' could not be 
retrieved from repository: central due to an error: Error
transferring file: Connection refused: connect
[INFO] Repository 'central' will be blacklisted
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] The plugin 'org.apache.maven.plugins:maven-archetype-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: Wed Mar 23 10:18:23 PDT 2011
[INFO] Final Memory: 1M/127M
[INFO] 
D:\temp>
==

We are using Nexus, and something must be misconfigured there, but
other full-blown targets are working fine.

Do I need to re-add Central as a repo on my command line?

Sorry, but I seem to be going backwards on this matter...

Chris



[cid:image001.png@01CBE94E.4DE427B0]

Christopher Hahn
The Dude
Software Production Engineering
R&D Services, Hewlett-Packard
Phone: 858-655-4096
Cell: 619-630-9791
ch...@hp.com<mailto:christopher.h...@hp.com>

Visit our SPE Portal<http://teams5.sharepoint.hp.com/teams/SPE/default.aspx>







Re: JAX-WS Hello World Example

2009-11-23 Thread Benson Margulies
CXF incorporates several.

On Mon, Nov 23, 2009 at 2:08 PM, nhcoder wrote:

>
> After searching all over the web to try and find this answer, does anyone
> seem to know about a working JAX-WS example built using Maven?  I have
> found
> a couple that purport to be tutorials but couldn't get a single one to
> build.  Anyway, the best one I have found thus far was:
>
> http://www.omii.ac.uk/wiki/JaxWsTutorial
>
> But it detonates when I try and run mvn install.
>
> If anyone out there could help get this to work or give me some guidance on
> how to create the examples I would package the client and server examples
> and post it for others's benefit as well.
>
> Thanks,
>
> Andy
> --
> View this message in context:
> http://old.nabble.com/JAX-WS-Hello-World-Example-tp26484077p26484077.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


JAX-WS Hello World Example

2009-11-23 Thread nhcoder

After searching all over the web to try and find this answer, does anyone
seem to know about a working JAX-WS example built using Maven?  I have found
a couple that purport to be tutorials but couldn't get a single one to
build.  Anyway, the best one I have found thus far was:

http://www.omii.ac.uk/wiki/JaxWsTutorial

But it detonates when I try and run mvn install. 

If anyone out there could help get this to work or give me some guidance on
how to create the examples I would package the client and server examples
and post it for others's benefit as well.  

Thanks,

Andy
-- 
View this message in context: 
http://old.nabble.com/JAX-WS-Hello-World-Example-tp26484077p26484077.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
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-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



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

2009-05-21 Thread siegfried
I'm using cygwin bash on XP.

 

I'm trying to start a simple project as per the instructions at
http://docs.codehaus.org/display/MAVENUSER/Archetypes+List. Did there used
to be a lot longer list of archetypes?

I have MAVEN_HOME defined correctly (I hope). This was pointing at my maven
1.0 installation and when I found it was not working, I defined it to point
to my 2.1.0 installation. Now I am thinking this is wrong and I should point
it back to the 1.0 installation. Can someone please advise me?

 

I have M2_HOME pointing to c\:/dev/maven/2.1.0
I have %MAVEN_HOME%\bin in my path as well as %M2_HOME\bin in my path.

 

I have M2_REPO set to C:\Documents and Settings\Administrator\.m2\repository

I'm getting the results below. What am I doing wrong? I want to start a
simple "hello world" hibernate project and a simple JPA project. 

Why are there no archetypes for entity bmp/cmp and session
stateful/stateless and message ejbs? Where can I learn how to create simple
"hello world" starter projects for these? 

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. 


Thanks, 
Siegfried



Re: Error compiling hello world maven plugin

2008-12-19 Thread aymen83

hi;

"org.apache.maven" i think this must be declared as plugin not a dependency.
Every thing related to maven as well

Enrico Boldrini wrote:
> 
> Hello,
> 
> I'm not able to compile the following hello world maven plugin (composed 
> by two files):
> 
> pom.xml:
> 
> 
> http://maven.apache.org/POM/4.0.0";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
> http://maven.apache.org/maven-v4_0_0.xsd";>
> 4.0.0
> sample.plugin
> maven-hello-plugin
> maven-plugin
> 1.0-SNAPSHOT
> Sample Parameter-less Maven Plugin
> 
> 
> org.apache.maven
> maven-plugin-tools-api
> 2.0
> 
> 
> 
> 
> src/main/java/sample/plugin/GreetingMojo.java:
> 
> package sample.plugin;
> 
> import org.apache.maven.plugin.AbstractMojo;
> import org.apache.maven.plugin.MojoExecutionException;
> 
> /**
>  * @goal sayhi
>  * @description Says "Hi" to the user
>  */
> public class GreetingMojo extends AbstractMojo {
> public void execute() throws MojoExecutionException {
> getLog().info("Hello, world.");
> }
> }
> 
> The error is:
> 
> boldr...@ade:~/workspace/maven-hello-plugin$ mvn compile
> [INFO] Scanning for projects...
> [INFO] 
> 
> [INFO] Building Sample Parameter-less Maven Plugin
> [INFO]task-segment: [compile]
> [INFO] 
> 
> -
> this realm = 
> app0.child-container[org.apache.maven.plugins:maven-plugin-plugin]
> urls[0] = 
> file:/home/boldrini/.m2/repository/org/apache/maven/plugins/maven-plugin-plugin/2.4.1/maven-plugin-plugin-2.4.1.jar
> urls[1] = 
> file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.0-alpha-10/doxia-site-renderer-1.0-alpha-10.jar
> urls[2] = 
> file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-core/1.0-alpha-10/doxia-core-1.0-alpha-10.jar
> urls[3] = 
> file:/home/boldrini/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.jar
> urls[4] = 
> file:/home/boldrini/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
> urls[5] = 
> file:/home/boldrini/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.jar
> urls[6] = 
> file:/home/boldrini/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar
> urls[7] = 
> file:/home/boldrini/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar
> urls[8] = 
> file:/home/boldrini/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar
> urls[9] = file:/home/boldrini/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
> urls[10] = 
> file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.0-alpha-10/doxia-decoration-model-1.0-alpha-10.jar
> urls[11] = 
> file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-module-apt/1.0-alpha-10/doxia-module-apt-1.0-alpha-10.jar
> urls[12] = 
> file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-module-fml/1.0-alpha-10/doxia-module-fml-1.0-alpha-10.jar
> urls[13] = 
> file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-module-xdoc/1.0-alpha-10/doxia-module-xdoc-1.0-alpha-10.jar
> urls[14] = 
> file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.0-alpha-10/doxia-module-xhtml-1.0-alpha-10.jar
> urls[15] = 
> file:/home/boldrini/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-tools-api/2.4.1/maven-plugin-tools-api-2.4.1.jar
> urls[16] = 
> file:/home/boldrini/.m2/repository/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug2000r7-dev.jar
> urls[17] = 
> file:/home/boldrini/.m2/repository/org/apache/maven/reporting/maven-reporting-impl/2.0.4.1/maven-reporting-impl-2.0.4.1.jar
> urls[18] = 
> file:/home/boldrini/.m2/repository/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar
> urls[19] = 
> file:/home/boldrini/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
> urls[20] = 
> file:/home/boldrini/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
> urls[21] = 
> file:/home/boldrini/.m2/repository/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
> urls[22] = 
> file:/home/boldrini/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
> urls[23] = 
> file:/home/boldrini/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-tools-java/2.4.1

Re: Error compiling hello world maven plugin

2008-12-19 Thread Enrico Boldrini

I just resolved the error cleaning my local repository!

Enrico

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



Error compiling hello world maven plugin

2008-12-19 Thread Enrico Boldrini

Hello,

I'm not able to compile the following hello world maven plugin (composed 
by two files):


pom.xml:


http://maven.apache.org/POM/4.0.0";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>

   4.0.0
   sample.plugin
   maven-hello-plugin
   maven-plugin
   1.0-SNAPSHOT
   Sample Parameter-less Maven Plugin
   
   
   org.apache.maven
   maven-plugin-tools-api
   2.0
   
   


src/main/java/sample/plugin/GreetingMojo.java:

package sample.plugin;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;

/**
* @goal sayhi
* @description Says "Hi" to the user
*/
public class GreetingMojo extends AbstractMojo {
   public void execute() throws MojoExecutionException {
   getLog().info("Hello, world.");
   }
}

The error is:

boldr...@ade:~/workspace/maven-hello-plugin$ mvn compile
[INFO] Scanning for projects...
[INFO] 


[INFO] Building Sample Parameter-less Maven Plugin
[INFO]task-segment: [compile]
[INFO] 


-
this realm = 
app0.child-container[org.apache.maven.plugins:maven-plugin-plugin]
urls[0] = 
file:/home/boldrini/.m2/repository/org/apache/maven/plugins/maven-plugin-plugin/2.4.1/maven-plugin-plugin-2.4.1.jar
urls[1] = 
file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-site-renderer/1.0-alpha-10/doxia-site-renderer-1.0-alpha-10.jar
urls[2] = 
file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-core/1.0-alpha-10/doxia-core-1.0-alpha-10.jar
urls[3] = 
file:/home/boldrini/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.1/plexus-utils-1.5.1.jar
urls[4] = 
file:/home/boldrini/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-7/plexus-i18n-1.0-beta-7.jar
urls[5] = 
file:/home/boldrini/.m2/repository/org/codehaus/plexus/plexus-velocity/1.1.7/plexus-velocity-1.1.7.jar
urls[6] = 
file:/home/boldrini/.m2/repository/org/apache/velocity/velocity/1.5/velocity-1.5.jar
urls[7] = 
file:/home/boldrini/.m2/repository/commons-collections/commons-collections/3.2/commons-collections-3.2.jar
urls[8] = 
file:/home/boldrini/.m2/repository/commons-lang/commons-lang/2.1/commons-lang-2.1.jar

urls[9] = file:/home/boldrini/.m2/repository/oro/oro/2.0.8/oro-2.0.8.jar
urls[10] = 
file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-decoration-model/1.0-alpha-10/doxia-decoration-model-1.0-alpha-10.jar
urls[11] = 
file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-module-apt/1.0-alpha-10/doxia-module-apt-1.0-alpha-10.jar
urls[12] = 
file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-module-fml/1.0-alpha-10/doxia-module-fml-1.0-alpha-10.jar
urls[13] = 
file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-module-xdoc/1.0-alpha-10/doxia-module-xdoc-1.0-alpha-10.jar
urls[14] = 
file:/home/boldrini/.m2/repository/org/apache/maven/doxia/doxia-module-xhtml/1.0-alpha-10/doxia-module-xhtml-1.0-alpha-10.jar
urls[15] = 
file:/home/boldrini/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-tools-api/2.4.1/maven-plugin-tools-api-2.4.1.jar
urls[16] = 
file:/home/boldrini/.m2/repository/jtidy/jtidy/4aug2000r7-dev/jtidy-4aug2000r7-dev.jar
urls[17] = 
file:/home/boldrini/.m2/repository/org/apache/maven/reporting/maven-reporting-impl/2.0.4.1/maven-reporting-impl-2.0.4.1.jar
urls[18] = 
file:/home/boldrini/.m2/repository/commons-validator/commons-validator/1.2.0/commons-validator-1.2.0.jar
urls[19] = 
file:/home/boldrini/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar
urls[20] = 
file:/home/boldrini/.m2/repository/commons-logging/commons-logging/1.0.4/commons-logging-1.0.4.jar
urls[21] = 
file:/home/boldrini/.m2/repository/commons-digester/commons-digester/1.6/commons-digester-1.6.jar
urls[22] = 
file:/home/boldrini/.m2/repository/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
urls[23] = 
file:/home/boldrini/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-tools-java/2.4.1/maven-plugin-tools-java-2.4.1.jar

urls[24] = file:/home/boldrini/.m2/repository/qdox/qdox/1.6.1/qdox-1.6.1.jar
urls[25] = 
file:/home/boldrini/.m2/repository/org/apache/maven/plugin-tools/maven-plugin-tools-beanshell/2.4.1/maven-plugin-tools-beanshell-2.4.1.jar

urls[26] = file:/home/boldrini/.m2/repository/bsh/bsh/1.3.0/bsh-1.3.0.jar
Number of imports: 6
import: org.codehaus.classworlds.en...@4891bb28
import: org.codehaus.classworlds.en...@f8e44ca4
import: org.codehaus.classworlds.en...@c51bc9e7
import: org.codehaus.classworlds.en...@bece5185
import: org.codehaus.classworlds.en...@3fee8e37
import: org.codehaus.classworlds.en...@3fee19d8


this realm = plexus.core
urls[0] = file:/home/boldrini/maven-2.0.9

Re: A "Hello World" in ejb3

2008-01-30 Thread Angelo Chen

Hi Jacek,

Thanks, I checked out that trunk, and 

mvn compile, everything compiles then

mvn package, I got this error:

org.apache.geronimo.kernel.config.LifecycleException: load of
org.apache.geronimo.framework/geronimo-gbean-deployer/2.1-SNAPSHOT/car
failed
at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:299)
...
   at
org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration(SimpleConfigurationManager.java:296)
... 33 more

[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO]
org.apache.geronimo.framework/geronimo-gbean-deployer/2.1-SNAPSHOT/car

however the ear file for calculator is there, so I deployed it in Geronimo
and it works!

now, is there a simple maven project? let's say, just calculator, what in
the trunk now has a lot of sample projects, and many level of pom.xml, this
is too advanced for newbie like me, i need a single project, any one
available? thanks.

A.C.




Jacek Laskowski wrote:
> 
> On Jan 29, 2008 4:14 PM, Angelo Chen <[EMAIL PROTECTED]> wrote:
> 
> 
> I believe you downloaded the samples of Geronimo from
> https://svn.apache.org/repos/asf/geronimo/samples/trunk, didn't you?
> If so, the issue was resolved yesterday so you should check out
> yesterday's changes and give it a whirl again. It should build and
> work fine.
> 
> Jacek
> 
> -- 
> Jacek Laskowski
> http://www.JacekLaskowski.pl
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


-- 
View this message in context: 
http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15193814.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A "Hello World" in ejb3

2008-01-29 Thread Steinar Overbeck Cook

unsubscribe

Den 29. jan. 2008 kl. 17.13 skrev Martin Gainty:


Hi Angelo

i found a copy here..(no guarantees that its the version,groupId or
artifactId you're looking for or even that the pom is valid)

perhaps adding this to the list of repositories?
http://repo1.maven.org/maven2/org/apache/geronimo/plugins/car-maven- 
plugin/2

0.2/

Anyone?
M-
- Original Message -
From: "Angelo Chen" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, January 29, 2008 10:14 AM
Subject: Re: A "Hello World" in ejb3




Hi Jacek,

Thanks, here are the steps:

I checked out the source code
2. mvn install
then i got this error:

[INFO] artifact org.apache.geronimo.buildsupport:car-maven-plugin:

checking

for updates from codehaus
[INFO]
- 
---

[ERROR] BUILD ERROR
[INFO]
- 
---
[INFO] The plugin 'org.apache.geronimo.buildsupport:car-maven- 
plugin' does

not exist or no valid version could be found





Jacek Laskowski wrote:


On Jan 28, 2008 4:12 PM, Angelo Chen <[EMAIL PROTECTED]>  
wrote:




http://svn.apache.org/repos/asf/geronimo/samples/trunk/samples/ 
calculator-st

ateless-pojo/


I checked out the above project too, the layout is a little  
different

from
the zip file, but it does not compile, this is the only maven  
project

for

ejb3 I found in the net so far, two days spent and I can not even

produce

a
'hello world' in maven, managed to make a 'hello world' in command

line,

but
not for real code.


Hi,

Could you describe the steps you took until it hit the state  
'does not
compile'? I'd be glad to help you out with the sample. You could  
take

a look at the article (in Polish) about Geronimo, Maven and JSF -

http://www.jaceklaskowski.pl/wiki/ 
Tworzenie_aplikacji_z_JavaServer_Faces%2C_

Apache_Maven_i_Apache_Geronimo.

There're a couple of samples in Apache OpenEJB project -
http://openejb.apache.org/examples.html.

Jacek
(Geronimo and OpenEJB committer)

--
Jacek Laskowski
http://www.JacekLaskowski.pl

 
-

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
View this message in context:
http://www.nabble.com/A-%22Hello-World%22-in-ejb3- 
tp15127007s177p15160496.ht

ml

Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A "Hello World" in ejb3

2008-01-29 Thread Jacek Laskowski
On Jan 29, 2008 4:14 PM, Angelo Chen <[EMAIL PROTECTED]> wrote:

> I checked out the source code
> 2. mvn install
> then i got this error:
>
> [INFO] artifact org.apache.geronimo.buildsupport:car-maven-plugin: checking
> for updates from codehaus
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] The plugin 'org.apache.geronimo.buildsupport:car-maven-plugin' does
> not exist or no valid version could be found

Hi,

I believe you downloaded the samples of Geronimo from
https://svn.apache.org/repos/asf/geronimo/samples/trunk, didn't you?
If so, the issue was resolved yesterday so you should check out
yesterday's changes and give it a whirl again. It should build and
work fine.

Jacek

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A "Hello World" in ejb3

2008-01-29 Thread Martin Gainty
Hi Angelo

i found a copy here..(no guarantees that its the version,groupId or
artifactId you're looking for or even that the pom is valid)

perhaps adding this to the list of repositories?
http://repo1.maven.org/maven2/org/apache/geronimo/plugins/car-maven-plugin/2
0.2/

Anyone?
M-
- Original Message -
From: "Angelo Chen" <[EMAIL PROTECTED]>
To: 
Sent: Tuesday, January 29, 2008 10:14 AM
Subject: Re: A "Hello World" in ejb3


>
> Hi Jacek,
>
> Thanks, here are the steps:
>
> I checked out the source code
> 2. mvn install
> then i got this error:
>
> [INFO] artifact org.apache.geronimo.buildsupport:car-maven-plugin:
checking
> for updates from codehaus
> [INFO]
> 
> [ERROR] BUILD ERROR
> [INFO]
> 
> [INFO] The plugin 'org.apache.geronimo.buildsupport:car-maven-plugin' does
> not exist or no valid version could be found
>
>
>
>
>
> Jacek Laskowski wrote:
> >
> > On Jan 28, 2008 4:12 PM, Angelo Chen <[EMAIL PROTECTED]> wrote:
> >
> >>
http://svn.apache.org/repos/asf/geronimo/samples/trunk/samples/calculator-st
ateless-pojo/
> >>
> >> I checked out the above project too, the layout is a little different
> >> from
> >> the zip file, but it does not compile, this is the only maven project
for
> >> ejb3 I found in the net so far, two days spent and I can not even
produce
> >> a
> >> 'hello world' in maven, managed to make a 'hello world' in command
line,
> >> but
> >> not for real code.
> >
> > Hi,
> >
> > Could you describe the steps you took until it hit the state 'does not
> > compile'? I'd be glad to help you out with the sample. You could take
> > a look at the article (in Polish) about Geronimo, Maven and JSF -
> >
http://www.jaceklaskowski.pl/wiki/Tworzenie_aplikacji_z_JavaServer_Faces%2C_
Apache_Maven_i_Apache_Geronimo.
> > There're a couple of samples in Apache OpenEJB project -
> > http://openejb.apache.org/examples.html.
> >
> > Jacek
> > (Geronimo and OpenEJB committer)
> >
> > --
> > Jacek Laskowski
> > http://www.JacekLaskowski.pl
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15160496.ht
ml
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A "Hello World" in ejb3

2008-01-29 Thread Angelo Chen

Hi Jacek,

Thanks, here are the steps:

I checked out the source code
2. mvn install
then i got this error:

[INFO] artifact org.apache.geronimo.buildsupport:car-maven-plugin: checking
for updates from codehaus
[INFO]

[ERROR] BUILD ERROR
[INFO]

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





Jacek Laskowski wrote:
> 
> On Jan 28, 2008 4:12 PM, Angelo Chen <[EMAIL PROTECTED]> wrote:
> 
>> http://svn.apache.org/repos/asf/geronimo/samples/trunk/samples/calculator-stateless-pojo/
>>
>> I checked out the above project too, the layout is a little different
>> from
>> the zip file, but it does not compile, this is the only maven project for
>> ejb3 I found in the net so far, two days spent and I can not even produce
>> a
>> 'hello world' in maven, managed to make a 'hello world' in command line,
>> but
>> not for real code.
> 
> Hi,
> 
> Could you describe the steps you took until it hit the state 'does not
> compile'? I'd be glad to help you out with the sample. You could take
> a look at the article (in Polish) about Geronimo, Maven and JSF -
> http://www.jaceklaskowski.pl/wiki/Tworzenie_aplikacji_z_JavaServer_Faces%2C_Apache_Maven_i_Apache_Geronimo.
> There're a couple of samples in Apache OpenEJB project -
> http://openejb.apache.org/examples.html.
> 
> Jacek
> (Geronimo and OpenEJB committer)
> 
> -- 
> Jacek Laskowski
> http://www.JacekLaskowski.pl
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15160496.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A "Hello World" in ejb3

2008-01-29 Thread Jacek Laskowski
On Jan 28, 2008 4:12 PM, Angelo Chen <[EMAIL PROTECTED]> wrote:

> http://svn.apache.org/repos/asf/geronimo/samples/trunk/samples/calculator-stateless-pojo/
>
> I checked out the above project too, the layout is a little different from
> the zip file, but it does not compile, this is the only maven project for
> ejb3 I found in the net so far, two days spent and I can not even produce a
> 'hello world' in maven, managed to make a 'hello world' in command line, but
> not for real code.

Hi,

Could you describe the steps you took until it hit the state 'does not
compile'? I'd be glad to help you out with the sample. You could take
a look at the article (in Polish) about Geronimo, Maven and JSF -
http://www.jaceklaskowski.pl/wiki/Tworzenie_aplikacji_z_JavaServer_Faces%2C_Apache_Maven_i_Apache_Geronimo.
There're a couple of samples in Apache OpenEJB project -
http://openejb.apache.org/examples.html.

Jacek
(Geronimo and OpenEJB committer)

-- 
Jacek Laskowski
http://www.JacekLaskowski.pl

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A "Hello World" in ejb3

2008-01-28 Thread Martin Hoeller
On 28 Jan 2008, Angelo Chen wrote:

> Thanks but maven-archetype-j2ee-simple is not for ejb3, is there archetype
> for ejb3? thanks.

Unfortunately not that I know of and not in the list of archetypes [0].

However, you can use the j2ee archetype and just add this to your
maven-ejb-plugin definition in the  section:

  
3.0
  

Just as described in Maven - The Definitve Guide [1].

hth,
- martin

[0] http://docs.codehaus.org/display/MAVENUSER/Archetypes+List
[1] http://www.sonatype.com/book/j2ee.html
-- 
Martin Höller   | [EMAIL PROTECTED]
*x Software + Systeme   | http://www.xss.co.at/
Karmarschgasse 51/2/20  | Tel: +43-1-6060114-30
A-1100 Vienna, Austria  | Fax: +43-1-6060114-71


signature.asc
Description: PGP signature


Re: A "Hello World" in ejb3

2008-01-28 Thread Angelo Chen

Hi Martin,

Thanks but maven-archetype-j2ee-simple is not for ejb3, is there archetype
for ejb3? thanks.
A.C.


matinh wrote:
> 
> On 27 Jan 2008, Angelo Chen wrote:
> 
>> I'm looking for a simple sample Maven project for ejb3,
> 
> Have a look at this:
> http://maven.apache.org/plugins/maven-archetype-plugin/examples/j2ee-simple.html
> 
> It's not just EJB but a complete EAR, but it's a good starting point.
> 
> Also have a look at
> www.michaelyuan.com/blog/2007/10/09/jboss-seam-project-setup-with-maven-—-part-2-ear-deployment/
> (the page seems down at the moment)
> 
> hth,
> - martin
> -- 
> Martin Höller   | [EMAIL PROTECTED]
> *x Software + Systeme   | http://www.xss.co.at/
> Karmarschgasse 51/2/20  | Tel: +43-1-6060114-30
> A-1100 Vienna, Austria  | Fax: +43-1-6060114-71
> 
>  
> 

-- 
View this message in context: 
http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15148339.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A "Hello World" in ejb3

2008-01-28 Thread Martin Hoeller
On 27 Jan 2008, Angelo Chen wrote:

> I'm looking for a simple sample Maven project for ejb3,

Have a look at this:
http://maven.apache.org/plugins/maven-archetype-plugin/examples/j2ee-simple.html

It's not just EJB but a complete EAR, but it's a good starting point.

Also have a look at
www.michaelyuan.com/blog/2007/10/09/jboss-seam-project-setup-with-maven-—-part-2-ear-deployment/
(the page seems down at the moment)

hth,
- martin
-- 
Martin Höller   | [EMAIL PROTECTED]
*x Software + Systeme   | http://www.xss.co.at/
Karmarschgasse 51/2/20  | Tel: +43-1-6060114-30
A-1100 Vienna, Austria  | Fax: +43-1-6060114-71


signature.asc
Description: PGP signature


Re: A "Hello World" in ejb3

2008-01-28 Thread Wayne Fay
Are you sure this is a Maven problem and not a defect in Geronimo?
Given that the Geronimo team is the creator of this sample, I think
its best to ask them why its broken, and what you should do to fix it.

Wayne

On 1/28/08, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
> Hi Daniele,
>
> there are several pom.xml files, very long, you can browse them from the zip
> file here:
>
> http://www.sonatype.com/book/examples/book-j2ee.zip
>
> the readme in the zip give svn url:
>
> http://svn.apache.org/repos/asf/geronimo/samples/trunk/samples/calculator-stateless-pojo/
>
> I checked out the above project too, the layout is a little different from
> the zip file, but it does not compile, this is the only maven project for
> ejb3 I found in the net so far, two days spent and I can not even produce a
> 'hello world' in maven, managed to make a 'hello world' in command line, but
> not for real code.
>
> Thanks,
>
> A.C.
>
>
>
>
> Daniele De Francesco wrote:
> >
> > Hi,
> >
> > may you supply the pom.xml?
> >
> > cheers
> > Daniele
> >
> > On Jan 28, 2008 2:09 PM, Angelo Chen <[EMAIL PROTECTED]> wrote:
> >
> >>
> >> Hi Wayne,
> >>
> >> Thanks for the reply, actually the calculator sample's maven project
> >> compiles, problem is running:
> >>
> >> I started the Genonimo server, went to the console, choose 'deploy new',
> >> selected the EAR file, and got following error:
> >>
> >> Manifest class path entries must be a valid jar file (JAVAEE 5 Section
> >> 8.2
> >> ):
> >> path=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar, resolved to
> >> targetURI=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar
> >>looking at: calculator-stateless-war-2.0-SNAPSHOT.warcurrent
> >> classpath: [WEB-INF/classes/,
> >> ../lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar]ignoring modules:
> >> [calculator-stateless-ejb-2.0-SNAPSHOT.jar,
> >> calculator-stateless-war-2.0-SNAPSHOT.war]
> >> org.apache.geronimo.common.DeploymentException: Manifest class path
> >> entries
> >> must be a valid jar file (JAVAEE 5 Section 8.2):
> >> path=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar, resolved to
> >> targetURI=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar
> >>looking at: calculator-stateless-war-2.0-SNAPSHOT.warcurrent
> >> classpath: [WEB-INF/classes/,
> >> ../lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar]ignoring modules:
> >> [calculator-stateless-ejb-2.0-SNAPSHOT.jar,
> >> calculator-stateless-war-2.0-SNAPSHOT.war]
> >>at
> >>
> >> org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath
> >> (DeploymentContext.java:367)
> >>at
> >>
> >> org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath
> >> (DeploymentContext.java:286)
> >>
> >> Since I'm not familiar to Genonimo, so don't know how to fix this. I'm
> >> just
> >> looking for a working maven example, from there i can proceed with my
> >> ejb3
> >> project with maven.
> >>
> >> Thanks,
> >>
> >>
> >>
> >>
> >> Wayne Fay wrote:
> >> >
> >> > "It is just not working" -- can you be more specific? Try adding -X to
> >> > the call to Maven (eg mvn -X package) to get debugging information.
> >> >
> >> > If you spot a specific error in the debug log, paste it in a reply to
> >> > this email.
> >> >
> >> > Wayne
> >> >
> >> > On 1/27/08, Angelo Chen <[EMAIL PROTECTED]> wrote:
> >> >>
> >> >> Hi,
> >> >>
> >> >> I'm looking for a simple sample Maven project for ejb3, I have tried
> >> >> this:
> >> >> http://www.sonatype.com/book/examples/book-j2ee.zip, everything
> >> compile,
> >> >> and
> >> >> I follow the exact steps in the maven-user-guide.pdf, but it just not
> >> >> working.
> >> >>
> >> >> Thanks,
> >> >>
> >> >> A.C.
> >> >> --
> >> >> View this message in context:
> >> >>
> >> http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15127007.html
> >> >> Sent from the Maven - Users mailing list archive at Nabble.com.
> >> >>
> >> >

Re: A "Hello World" in ejb3

2008-01-28 Thread Angelo Chen

Hi Daniele,

there are several pom.xml files, very long, you can browse them from the zip
file here:

http://www.sonatype.com/book/examples/book-j2ee.zip

the readme in the zip give svn url:

http://svn.apache.org/repos/asf/geronimo/samples/trunk/samples/calculator-stateless-pojo/

I checked out the above project too, the layout is a little different from
the zip file, but it does not compile, this is the only maven project for
ejb3 I found in the net so far, two days spent and I can not even produce a
'hello world' in maven, managed to make a 'hello world' in command line, but
not for real code.

Thanks,

A.C.




Daniele De Francesco wrote:
> 
> Hi,
> 
> may you supply the pom.xml?
> 
> cheers
> Daniele
> 
> On Jan 28, 2008 2:09 PM, Angelo Chen <[EMAIL PROTECTED]> wrote:
> 
>>
>> Hi Wayne,
>>
>> Thanks for the reply, actually the calculator sample's maven project
>> compiles, problem is running:
>>
>> I started the Genonimo server, went to the console, choose 'deploy new',
>> selected the EAR file, and got following error:
>>
>> Manifest class path entries must be a valid jar file (JAVAEE 5 Section
>> 8.2
>> ):
>> path=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar, resolved to
>> targetURI=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar
>>looking at: calculator-stateless-war-2.0-SNAPSHOT.warcurrent
>> classpath: [WEB-INF/classes/,
>> ../lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar]ignoring modules:
>> [calculator-stateless-ejb-2.0-SNAPSHOT.jar,
>> calculator-stateless-war-2.0-SNAPSHOT.war]
>> org.apache.geronimo.common.DeploymentException: Manifest class path
>> entries
>> must be a valid jar file (JAVAEE 5 Section 8.2):
>> path=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar, resolved to
>> targetURI=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar
>>looking at: calculator-stateless-war-2.0-SNAPSHOT.warcurrent
>> classpath: [WEB-INF/classes/,
>> ../lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar]ignoring modules:
>> [calculator-stateless-ejb-2.0-SNAPSHOT.jar,
>> calculator-stateless-war-2.0-SNAPSHOT.war]
>>at
>>
>> org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath
>> (DeploymentContext.java:367)
>>at
>>
>> org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath
>> (DeploymentContext.java:286)
>>
>> Since I'm not familiar to Genonimo, so don't know how to fix this. I'm
>> just
>> looking for a working maven example, from there i can proceed with my
>> ejb3
>> project with maven.
>>
>> Thanks,
>>
>>
>>
>>
>> Wayne Fay wrote:
>> >
>> > "It is just not working" -- can you be more specific? Try adding -X to
>> > the call to Maven (eg mvn -X package) to get debugging information.
>> >
>> > If you spot a specific error in the debug log, paste it in a reply to
>> > this email.
>> >
>> > Wayne
>> >
>> > On 1/27/08, Angelo Chen <[EMAIL PROTECTED]> wrote:
>> >>
>> >> Hi,
>> >>
>> >> I'm looking for a simple sample Maven project for ejb3, I have tried
>> >> this:
>> >> http://www.sonatype.com/book/examples/book-j2ee.zip, everything
>> compile,
>> >> and
>> >> I follow the exact steps in the maven-user-guide.pdf, but it just not
>> >> working.
>> >>
>> >> Thanks,
>> >>
>> >> A.C.
>> >> --
>> >> View this message in context:
>> >>
>> http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15127007.html
>> >> Sent from the Maven - Users mailing list archive at Nabble.com.
>> >>
>> >>
>> >> -
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15134930.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15136736.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A "Hello World" in ejb3

2008-01-28 Thread Daniele De Francesco
Hi,

may you supply the pom.xml?

cheers
Daniele

On Jan 28, 2008 2:09 PM, Angelo Chen <[EMAIL PROTECTED]> wrote:

>
> Hi Wayne,
>
> Thanks for the reply, actually the calculator sample's maven project
> compiles, problem is running:
>
> I started the Genonimo server, went to the console, choose 'deploy new',
> selected the EAR file, and got following error:
>
> Manifest class path entries must be a valid jar file (JAVAEE 5 Section 8.2
> ):
> path=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar, resolved to
> targetURI=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar
>looking at: calculator-stateless-war-2.0-SNAPSHOT.warcurrent
> classpath: [WEB-INF/classes/,
> ../lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar]ignoring modules:
> [calculator-stateless-ejb-2.0-SNAPSHOT.jar,
> calculator-stateless-war-2.0-SNAPSHOT.war]
> org.apache.geronimo.common.DeploymentException: Manifest class path
> entries
> must be a valid jar file (JAVAEE 5 Section 8.2):
> path=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar, resolved to
> targetURI=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar
>looking at: calculator-stateless-war-2.0-SNAPSHOT.warcurrent
> classpath: [WEB-INF/classes/,
> ../lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar]ignoring modules:
> [calculator-stateless-ejb-2.0-SNAPSHOT.jar,
> calculator-stateless-war-2.0-SNAPSHOT.war]
>at
>
> org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath
> (DeploymentContext.java:367)
>at
>
> org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath
> (DeploymentContext.java:286)
>
> Since I'm not familiar to Genonimo, so don't know how to fix this. I'm
> just
> looking for a working maven example, from there i can proceed with my ejb3
> project with maven.
>
> Thanks,
>
>
>
>
> Wayne Fay wrote:
> >
> > "It is just not working" -- can you be more specific? Try adding -X to
> > the call to Maven (eg mvn -X package) to get debugging information.
> >
> > If you spot a specific error in the debug log, paste it in a reply to
> > this email.
> >
> > Wayne
> >
> > On 1/27/08, Angelo Chen <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi,
> >>
> >> I'm looking for a simple sample Maven project for ejb3, I have tried
> >> this:
> >> http://www.sonatype.com/book/examples/book-j2ee.zip, everything
> compile,
> >> and
> >> I follow the exact steps in the maven-user-guide.pdf, but it just not
> >> working.
> >>
> >> Thanks,
> >>
> >> A.C.
> >> --
> >> View this message in context:
> >>
> http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15127007.html
> >> Sent from the Maven - Users mailing list archive at Nabble.com.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15134930.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


Re: A "Hello World" in ejb3

2008-01-28 Thread Angelo Chen

Hi Wayne,

Thanks for the reply, actually the calculator sample's maven project
compiles, problem is running:

I started the Genonimo server, went to the console, choose 'deploy new',
selected the EAR file, and got following error:

Manifest class path entries must be a valid jar file (JAVAEE 5 Section 8.2):
path=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar, resolved to
targetURI=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar
looking at: calculator-stateless-war-2.0-SNAPSHOT.warcurrent
classpath: [WEB-INF/classes/,
../lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar]ignoring modules:
[calculator-stateless-ejb-2.0-SNAPSHOT.jar,
calculator-stateless-war-2.0-SNAPSHOT.war]
org.apache.geronimo.common.DeploymentException: Manifest class path entries
must be a valid jar file (JAVAEE 5 Section 8.2):
path=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar, resolved to
targetURI=lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar
looking at: calculator-stateless-war-2.0-SNAPSHOT.warcurrent
classpath: [WEB-INF/classes/,
../lib/calculator-stateless-ejb-2.0-SNAPSHOT.jar]ignoring modules:
[calculator-stateless-ejb-2.0-SNAPSHOT.jar,
calculator-stateless-war-2.0-SNAPSHOT.war]
at
org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath(DeploymentContext.java:367)
at
org.apache.geronimo.deployment.DeploymentContext.getCompleteManifestClassPath(DeploymentContext.java:286)

Since I'm not familiar to Genonimo, so don't know how to fix this. I'm just
looking for a working maven example, from there i can proceed with my ejb3
project with maven.

Thanks,


 

Wayne Fay wrote:
> 
> "It is just not working" -- can you be more specific? Try adding -X to
> the call to Maven (eg mvn -X package) to get debugging information.
> 
> If you spot a specific error in the debug log, paste it in a reply to
> this email.
> 
> Wayne
> 
> On 1/27/08, Angelo Chen <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I'm looking for a simple sample Maven project for ejb3, I have tried
>> this:
>> http://www.sonatype.com/book/examples/book-j2ee.zip, everything compile,
>> and
>> I follow the exact steps in the maven-user-guide.pdf, but it just not
>> working.
>>
>> Thanks,
>>
>> A.C.
>> --
>> View this message in context:
>> http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15127007.html
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15134930.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: A "Hello World" in ejb3

2008-01-27 Thread Wayne Fay
"It is just not working" -- can you be more specific? Try adding -X to
the call to Maven (eg mvn -X package) to get debugging information.

If you spot a specific error in the debug log, paste it in a reply to
this email.

Wayne

On 1/27/08, Angelo Chen <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm looking for a simple sample Maven project for ejb3, I have tried this:
> http://www.sonatype.com/book/examples/book-j2ee.zip, everything compile, and
> I follow the exact steps in the maven-user-guide.pdf, but it just not
> working.
>
> Thanks,
>
> A.C.
> --
> View this message in context: 
> http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15127007.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



A "Hello World" in ejb3

2008-01-27 Thread Angelo Chen

Hi,

I'm looking for a simple sample Maven project for ejb3, I have tried this:
http://www.sonatype.com/book/examples/book-j2ee.zip, everything compile, and
I follow the exact steps in the maven-user-guide.pdf, but it just not
working.

Thanks,

A.C.
-- 
View this message in context: 
http://www.nabble.com/A-%22Hello-World%22-in-ejb3-tp15127007s177p15127007.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Can't get hello world plugin to work

2005-10-19 Thread Brett Porter
I was under the impression this had been put to the users list.
Certainly the links to the docs were removed from the site.

The build log you point at was a temporary problem with beanshell
support on trunk (not related to the 2.0 release).

- Brett

On 10/19/05, Kevin McNamee <[EMAIL PROTECTED]> wrote:
> Hi Brett,
>
> I have joined the Developer's mailing list since it contains wealth of
> information about what is going on in Maven2.
>
> For instance, there has been no announcement on the User's list that
> Marmalade would not be supported. In fact I believe the right thing to do is
> to include plugins like Marmalade on the Plugin Matrix and flag them as
> obsolete/unsupported giving a reason why or a hyperlink.
>
> Regarding the stack trace below, I see the same trace appearing in the
> continuum build log file:
> http://maven.zones.apache.org/~maven/logs/m2-build-log-20051019.11.txt
> So, does this merit a bug report since it affects plugins other than
> Marmalade?
>
> Regards,
> Kevin
>
>
> -Original Message-
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: 18 October 2005 21:31
> To: Maven Users List
> Subject: Re: [m2] Can't get hello world plugin to work
>
> Kevin,
>
> Oh, I hadn't read your earlier messages. Marmalade support was removed
> from Maven 2.0. It is now part of the marmalade project and will be
> released when it is mature enough.
>
> - Brett
>
> On 10/18/05, Kevin McNamee <[EMAIL PROTECTED]> wrote:
> > Hi Brett,
> >
> > I assume that the goal is declared in the Marmalade script:
> >
> > 
> >   
> > hello
> > Say Hello to the World.
> >   
> >   
> > Hello, World
> >   
> > 
> >
> > This comes from the example at
> >
> http://maven.apache.org/maven2/developers/developing-plugins-with-marmalade.
> > html
> >
> > In any case I have given up on Marmalade since it will not be officially
> > supported.
> >
> > /Kevin
> >
> >
> > -Original Message-
> > From: Brett Porter [mailto:[EMAIL PROTECTED]
> > Sent: 18 October 2005 04:52
> > To: Maven Users List
> > Subject: Re: [m2] Can't get hello world plugin to work
> >
> > Did you declare a @goal ?
> >
> > - Brett
> >
> > On 10/17/05, Kevin McNamee <[EMAIL PROTECTED]> wrote:
> > > Hi again,
> > >
> > > I updated to Maven 2.0 RC and reran the demo, with the same result (see
> > > below)
> > >
> > > What is the problem? Why can't it find my plugin? Why is it throwing an
> > > exception? Please help.
> > >
> > > Much appreciated,
> > > Kevin
> > >
> > >
> > >
> > > maven-hello-plugin> m2 install -DupdateReleaseInfo=true
> > > [INFO] Scanning for projects...
> > > [INFO]
> > >
> >
> 
> > > [INFO] Building Maven Hello World Plugin
> > > [INFO]task-segment: [install]
> > > [INFO]
> > >
> >
> 
> > > [INFO] [plugin:descriptor]
> > > [INFO] [resources:resources]
> > > [INFO] Using default encoding to copy filtered resources.
> > > [INFO] [compiler:compile]
> > > [INFO] No sources to compile
> > > [INFO] [resources:testResources]
> > > [INFO] Using default encoding to copy filtered resources.
> > > [INFO] [compiler:testCompile]
> > > [INFO] No sources to compile
> > > [INFO] [surefire:test]
> > > [INFO] Setting reports dir:
> > > /home/kevin/m2_test/maven-hello-plugin/target/surefire-reports
> > >
> > > ---
> > >  T E S T S
> > > ---
> > > There are no test to run.
> > >
> > > Results :
> > > [surefire] Tests run: 0, Failures: 0, Errors: 0
> > >
> > > [INFO] [jar:jar]
> > > [INFO] Building jar:
> > >
> >
> /home/kevin/m2_test/maven-hello-plugin/target/maven-hello-plugin-1.0-SNAPSHO
> > > T.jar
> > > [INFO] [plugin:addPluginArtifactMetadata]
> > > [INFO] [install:install]
> > > [INFO] Installing
> > >
> >
> /home/kevin/m2_test/maven-hello-plugin/target/maven-hello-plugin-1.0-SNAPSHO
> > > T.jar to /home/kevin/.m2/rep
> > >
> >
> ository/org/ap

RE: [m2] Can't get hello world plugin to work

2005-10-19 Thread Kevin McNamee
Hi Brett,

I have joined the Developer's mailing list since it contains wealth of
information about what is going on in Maven2. 

For instance, there has been no announcement on the User's list that
Marmalade would not be supported. In fact I believe the right thing to do is
to include plugins like Marmalade on the Plugin Matrix and flag them as
obsolete/unsupported giving a reason why or a hyperlink.

Regarding the stack trace below, I see the same trace appearing in the
continuum build log file:
http://maven.zones.apache.org/~maven/logs/m2-build-log-20051019.11.txt
So, does this merit a bug report since it affects plugins other than
Marmalade?

Regards,
Kevin


-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: 18 October 2005 21:31
To: Maven Users List
Subject: Re: [m2] Can't get hello world plugin to work

Kevin,

Oh, I hadn't read your earlier messages. Marmalade support was removed
from Maven 2.0. It is now part of the marmalade project and will be
released when it is mature enough.

- Brett

On 10/18/05, Kevin McNamee <[EMAIL PROTECTED]> wrote:
> Hi Brett,
>
> I assume that the goal is declared in the Marmalade script:
>
> 
>   
> hello
>     Say Hello to the World.
>   
>   
> Hello, World
>   
> 
>
> This comes from the example at
>
http://maven.apache.org/maven2/developers/developing-plugins-with-marmalade.
> html
>
> In any case I have given up on Marmalade since it will not be officially
> supported.
>
> /Kevin
>
>
> -Original Message-
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: 18 October 2005 04:52
> To: Maven Users List
> Subject: Re: [m2] Can't get hello world plugin to work
>
> Did you declare a @goal ?
>
> - Brett
>
> On 10/17/05, Kevin McNamee <[EMAIL PROTECTED]> wrote:
> > Hi again,
> >
> > I updated to Maven 2.0 RC and reran the demo, with the same result (see
> > below)
> >
> > What is the problem? Why can't it find my plugin? Why is it throwing an
> > exception? Please help.
> >
> > Much appreciated,
> > Kevin
> >
> >
> >
> > maven-hello-plugin> m2 install -DupdateReleaseInfo=true
> > [INFO] Scanning for projects...
> > [INFO]
> >
>

> > [INFO] Building Maven Hello World Plugin
> > [INFO]task-segment: [install]
> > [INFO]
> >
>

> > [INFO] [plugin:descriptor]
> > [INFO] [resources:resources]
> > [INFO] Using default encoding to copy filtered resources.
> > [INFO] [compiler:compile]
> > [INFO] No sources to compile
> > [INFO] [resources:testResources]
> > [INFO] Using default encoding to copy filtered resources.
> > [INFO] [compiler:testCompile]
> > [INFO] No sources to compile
> > [INFO] [surefire:test]
> > [INFO] Setting reports dir:
> > /home/kevin/m2_test/maven-hello-plugin/target/surefire-reports
> >
> > ---
> >  T E S T S
> > ---
> > There are no test to run.
> >
> > Results :
> > [surefire] Tests run: 0, Failures: 0, Errors: 0
> >
> > [INFO] [jar:jar]
> > [INFO] Building jar:
> >
>
/home/kevin/m2_test/maven-hello-plugin/target/maven-hello-plugin-1.0-SNAPSHO
> > T.jar
> > [INFO] [plugin:addPluginArtifactMetadata]
> > [INFO] [install:install]
> > [INFO] Installing
> >
>
/home/kevin/m2_test/maven-hello-plugin/target/maven-hello-plugin-1.0-SNAPSHO
> > T.jar to /home/kevin/.m2/rep
> >
>
ository/org/apache/maven/plugins/maven-hello-plugin/1.0-SNAPSHOT/maven-hello
> > -plugin-1.0-SNAPSHOT.jar
> > [INFO] [plugin:updateRegistry]
> > [INFO]
> >
>

> > [INFO] BUILD SUCCESSFUL
> > [INFO]
> >
>

> > [INFO] Total time: 9 seconds
> > [INFO] Finished at: Mon Oct 17 11:21:47 MEST 2005
> > [INFO] Final Memory: 3M/8M
> > [INFO]
> >
>

> >
> > maven-hello-plugin> m2 hello:hello
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'hello'.
> > [INFO]
> >
>

> > [ERROR] FATAL ERROR
> > [INFO]
> >
>
---

Re: [m2] Can't get hello world plugin to work

2005-10-18 Thread Brett Porter
Kevin,

Oh, I hadn't read your earlier messages. Marmalade support was removed
from Maven 2.0. It is now part of the marmalade project and will be
released when it is mature enough.

- Brett

On 10/18/05, Kevin McNamee <[EMAIL PROTECTED]> wrote:
> Hi Brett,
>
> I assume that the goal is declared in the Marmalade script:
>
> 
>   
> hello
> Say Hello to the World.
>   
>   
> Hello, World
>   
> 
>
> This comes from the example at
> http://maven.apache.org/maven2/developers/developing-plugins-with-marmalade.
> html
>
> In any case I have given up on Marmalade since it will not be officially
> supported.
>
> /Kevin
>
>
> -Original Message-
> From: Brett Porter [mailto:[EMAIL PROTECTED]
> Sent: 18 October 2005 04:52
> To: Maven Users List
> Subject: Re: [m2] Can't get hello world plugin to work
>
> Did you declare a @goal ?
>
> - Brett
>
> On 10/17/05, Kevin McNamee <[EMAIL PROTECTED]> wrote:
> > Hi again,
> >
> > I updated to Maven 2.0 RC and reran the demo, with the same result (see
> > below)
> >
> > What is the problem? Why can't it find my plugin? Why is it throwing an
> > exception? Please help.
> >
> > Much appreciated,
> > Kevin
> >
> >
> >
> > maven-hello-plugin> m2 install -DupdateReleaseInfo=true
> > [INFO] Scanning for projects...
> > [INFO]
> >
> 
> > [INFO] Building Maven Hello World Plugin
> > [INFO]task-segment: [install]
> > [INFO]
> >
> 
> > [INFO] [plugin:descriptor]
> > [INFO] [resources:resources]
> > [INFO] Using default encoding to copy filtered resources.
> > [INFO] [compiler:compile]
> > [INFO] No sources to compile
> > [INFO] [resources:testResources]
> > [INFO] Using default encoding to copy filtered resources.
> > [INFO] [compiler:testCompile]
> > [INFO] No sources to compile
> > [INFO] [surefire:test]
> > [INFO] Setting reports dir:
> > /home/kevin/m2_test/maven-hello-plugin/target/surefire-reports
> >
> > ---
> >  T E S T S
> > ---
> > There are no test to run.
> >
> > Results :
> > [surefire] Tests run: 0, Failures: 0, Errors: 0
> >
> > [INFO] [jar:jar]
> > [INFO] Building jar:
> >
> /home/kevin/m2_test/maven-hello-plugin/target/maven-hello-plugin-1.0-SNAPSHO
> > T.jar
> > [INFO] [plugin:addPluginArtifactMetadata]
> > [INFO] [install:install]
> > [INFO] Installing
> >
> /home/kevin/m2_test/maven-hello-plugin/target/maven-hello-plugin-1.0-SNAPSHO
> > T.jar to /home/kevin/.m2/rep
> >
> ository/org/apache/maven/plugins/maven-hello-plugin/1.0-SNAPSHOT/maven-hello
> > -plugin-1.0-SNAPSHOT.jar
> > [INFO] [plugin:updateRegistry]
> > [INFO]
> >
> 
> > [INFO] BUILD SUCCESSFUL
> > [INFO]
> >
> 
> > [INFO] Total time: 9 seconds
> > [INFO] Finished at: Mon Oct 17 11:21:47 MEST 2005
> > [INFO] Final Memory: 3M/8M
> > [INFO]
> >
> 
> >
> > maven-hello-plugin> m2 hello:hello
> > [INFO] Scanning for projects...
> > [INFO] Searching repository for plugin with prefix: 'hello'.
> > [INFO]
> >
> 
> > [ERROR] FATAL ERROR
> > [INFO]
> >
> 
> > [INFO] null
> > [INFO]
> >
> 
> > [INFO] Trace
> > java.lang.NullPointerException
> > at
> >
> org.apache.maven.plugin.descriptor.PluginDescriptor.getMojo(PluginDescriptor
> > .java:261)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(Defaul
> > tLifecycleExecutor.java:1363)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggrega
> > tionNeeds(DefaultLifecycleExecutor.
> > java:376)
> > at
> >
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
> > Executor.java:132)
> >  

RE: [m2] Can't get hello world plugin to work

2005-10-18 Thread Kevin McNamee
Hi Brett,

I assume that the goal is declared in the Marmalade script:


  
hello
Say Hello to the World.
  
  
Hello, World
  


This comes from the example at 
http://maven.apache.org/maven2/developers/developing-plugins-with-marmalade.
html

In any case I have given up on Marmalade since it will not be officially
supported.

/Kevin


-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED] 
Sent: 18 October 2005 04:52
To: Maven Users List
Subject: Re: [m2] Can't get hello world plugin to work

Did you declare a @goal ?

- Brett

On 10/17/05, Kevin McNamee <[EMAIL PROTECTED]> wrote:
> Hi again,
>
> I updated to Maven 2.0 RC and reran the demo, with the same result (see
> below)
>
> What is the problem? Why can't it find my plugin? Why is it throwing an
> exception? Please help.
>
> Much appreciated,
> Kevin
>
>
>
> maven-hello-plugin> m2 install -DupdateReleaseInfo=true
> [INFO] Scanning for projects...
> [INFO]
>
--------
> [INFO] Building Maven Hello World Plugin
> [INFO]task-segment: [install]
> [INFO]
>

> [INFO] [plugin:descriptor]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] No sources to compile
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] Setting reports dir:
> /home/kevin/m2_test/maven-hello-plugin/target/surefire-reports
>
> ---
>  T E S T S
> ---
> There are no test to run.
>
> Results :
> [surefire] Tests run: 0, Failures: 0, Errors: 0
>
> [INFO] [jar:jar]
> [INFO] Building jar:
>
/home/kevin/m2_test/maven-hello-plugin/target/maven-hello-plugin-1.0-SNAPSHO
> T.jar
> [INFO] [plugin:addPluginArtifactMetadata]
> [INFO] [install:install]
> [INFO] Installing
>
/home/kevin/m2_test/maven-hello-plugin/target/maven-hello-plugin-1.0-SNAPSHO
> T.jar to /home/kevin/.m2/rep
>
ository/org/apache/maven/plugins/maven-hello-plugin/1.0-SNAPSHOT/maven-hello
> -plugin-1.0-SNAPSHOT.jar
> [INFO] [plugin:updateRegistry]
> [INFO]
>

> [INFO] BUILD SUCCESSFUL
> [INFO]
>

> [INFO] Total time: 9 seconds
> [INFO] Finished at: Mon Oct 17 11:21:47 MEST 2005
> [INFO] Final Memory: 3M/8M
> [INFO]
>

>
> maven-hello-plugin> m2 hello:hello
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'hello'.
> [INFO]
>

> [ERROR] FATAL ERROR
> [INFO]
>

> [INFO] null
> [INFO]
>

> [INFO] Trace
> java.lang.NullPointerException
> at
>
org.apache.maven.plugin.descriptor.PluginDescriptor.getMojo(PluginDescriptor
> .java:261)
> at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(Defaul
> tLifecycleExecutor.java:1363)
> at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggrega
> tionNeeds(DefaultLifecycleExecutor.
> java:376)
> at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
> Executor.java:132)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> 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:324)
> 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]
>
---

Re: [m2] Can't get hello world plugin to work

2005-10-17 Thread Brett Porter
Did you declare a @goal ?

- Brett

On 10/17/05, Kevin McNamee <[EMAIL PROTECTED]> wrote:
> Hi again,
>
> I updated to Maven 2.0 RC and reran the demo, with the same result (see
> below)
>
> What is the problem? Why can't it find my plugin? Why is it throwing an
> exception? Please help.
>
> Much appreciated,
> Kevin
>
>
>
> maven-hello-plugin> m2 install -DupdateReleaseInfo=true
> [INFO] Scanning for projects...
> [INFO]
> ----
> [INFO] Building Maven Hello World Plugin
> [INFO]task-segment: [install]
> [INFO]
> 
> [INFO] [plugin:descriptor]
> [INFO] [resources:resources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:compile]
> [INFO] No sources to compile
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] Setting reports dir:
> /home/kevin/m2_test/maven-hello-plugin/target/surefire-reports
>
> ---
>  T E S T S
> ---
> There are no test to run.
>
> Results :
> [surefire] Tests run: 0, Failures: 0, Errors: 0
>
> [INFO] [jar:jar]
> [INFO] Building jar:
> /home/kevin/m2_test/maven-hello-plugin/target/maven-hello-plugin-1.0-SNAPSHO
> T.jar
> [INFO] [plugin:addPluginArtifactMetadata]
> [INFO] [install:install]
> [INFO] Installing
> /home/kevin/m2_test/maven-hello-plugin/target/maven-hello-plugin-1.0-SNAPSHO
> T.jar to /home/kevin/.m2/rep
> ository/org/apache/maven/plugins/maven-hello-plugin/1.0-SNAPSHOT/maven-hello
> -plugin-1.0-SNAPSHOT.jar
> [INFO] [plugin:updateRegistry]
> [INFO]
> 
> [INFO] BUILD SUCCESSFUL
> [INFO]
> 
> [INFO] Total time: 9 seconds
> [INFO] Finished at: Mon Oct 17 11:21:47 MEST 2005
> [INFO] Final Memory: 3M/8M
> [INFO]
> 
>
> maven-hello-plugin> m2 hello:hello
> [INFO] Scanning for projects...
> [INFO] Searching repository for plugin with prefix: 'hello'.
> [INFO]
> 
> [ERROR] FATAL ERROR
> [INFO]
> 
> [INFO] null
> [INFO]
> 
> [INFO] Trace
> java.lang.NullPointerException
> at
> org.apache.maven.plugin.descriptor.PluginDescriptor.getMojo(PluginDescriptor
> .java:261)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(Defaul
> tLifecycleExecutor.java:1363)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggrega
> tionNeeds(DefaultLifecycleExecutor.
> java:376)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
> Executor.java:132)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> 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:324)
> 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: Mon Oct 17 11:26:30 MEST 2005
> [INFO] Final Memory: 1M/4M
> [INFO]
> 
>
>
>
>
>
> -Original Message-
> From: Kevin McNamee [mailto:[EMAIL PROTECTED]
> Sent: 14 October 2005 14:25
> To: 'Maven Users List'
> Subject: RE: [m2] Can't get hello world plugin to work
>
> Hi Yann,
>
>
>
>

RE: [m2] Can't get hello world plugin to work

2005-10-17 Thread Kevin McNamee
Hi again,

I updated to Maven 2.0 RC and reran the demo, with the same result (see
below)

What is the problem? Why can't it find my plugin? Why is it throwing an
exception? Please help.

Much appreciated,
Kevin



maven-hello-plugin> m2 install -DupdateReleaseInfo=true
[INFO] Scanning for projects...
[INFO]

[INFO] Building Maven Hello World Plugin
[INFO]task-segment: [install]
[INFO]

[INFO] [plugin:descriptor]
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] Setting reports dir:
/home/kevin/m2_test/maven-hello-plugin/target/surefire-reports

---
 T E S T S
---
There are no test to run.

Results :
[surefire] Tests run: 0, Failures: 0, Errors: 0

[INFO] [jar:jar]
[INFO] Building jar:
/home/kevin/m2_test/maven-hello-plugin/target/maven-hello-plugin-1.0-SNAPSHO
T.jar
[INFO] [plugin:addPluginArtifactMetadata]
[INFO] [install:install]
[INFO] Installing
/home/kevin/m2_test/maven-hello-plugin/target/maven-hello-plugin-1.0-SNAPSHO
T.jar to /home/kevin/.m2/rep
ository/org/apache/maven/plugins/maven-hello-plugin/1.0-SNAPSHOT/maven-hello
-plugin-1.0-SNAPSHOT.jar
[INFO] [plugin:updateRegistry]
[INFO]

[INFO] BUILD SUCCESSFUL
[INFO]

[INFO] Total time: 9 seconds
[INFO] Finished at: Mon Oct 17 11:21:47 MEST 2005
[INFO] Final Memory: 3M/8M
[INFO]


maven-hello-plugin> m2 hello:hello
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'hello'.
[INFO]

[ERROR] FATAL ERROR
[INFO]

[INFO] null
[INFO]

[INFO] Trace
java.lang.NullPointerException
at
org.apache.maven.plugin.descriptor.PluginDescriptor.getMojo(PluginDescriptor
.java:261)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(Defaul
tLifecycleExecutor.java:1363)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggrega
tionNeeds(DefaultLifecycleExecutor.
java:376)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:132)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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:324)
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: Mon Oct 17 11:26:30 MEST 2005
[INFO] Final Memory: 1M/4M
[INFO]






-Original Message-
From: Kevin McNamee [mailto:[EMAIL PROTECTED] 
Sent: 14 October 2005 14:25
To: 'Maven Users List'
Subject: RE: [m2] Can't get hello world plugin to work

Hi Yann,

 

Ok I ran

 

Now I get

 

my:maven-hello-plugin> m2 hello:hello

[INFO] Searching repository for plugin with prefix: 'hello'.

---

constituent[0]:
file:/proj/local/maven-2.0-beta-3/lib/maven-core-2.0-beta-3.jar

constituent[1]:
file:/proj/local/maven-2.0-beta-3/lib/maven-artifact-manager-2.0-beta-3.jar

constituent[2]:
file:/proj/local/maven-2.0-beta-3/lib/plexus-input-handler-1.0-alpha-2.jar

constituent[3]:
file:/proj/local/maven-2.0-beta-3/lib/maven-plugin-api-2.0-beta-3.jar

constituent[4]:
file:/proj/local/maven-2.0-beta-3/lib/maven-plugin-descriptor-2.0-beta-3.jar

constituent[5]:
file:/proj/local/maven-2.0-beta-3/lib/maven-artifact-2.0-beta-3.jar


RE: [m2] Can't get hello world plugin to work

2005-10-14 Thread Kevin McNamee
Hi Yann,

 

Ok I ran

 

Now I get

 

my:maven-hello-plugin> m2 hello:hello

[INFO] Searching repository for plugin with prefix: 'hello'.

---

constituent[0]:
file:/proj/local/maven-2.0-beta-3/lib/maven-core-2.0-beta-3.jar

constituent[1]:
file:/proj/local/maven-2.0-beta-3/lib/maven-artifact-manager-2.0-beta-3.jar

constituent[2]:
file:/proj/local/maven-2.0-beta-3/lib/plexus-input-handler-1.0-alpha-2.jar

constituent[3]:
file:/proj/local/maven-2.0-beta-3/lib/maven-plugin-api-2.0-beta-3.jar

constituent[4]:
file:/proj/local/maven-2.0-beta-3/lib/maven-plugin-descriptor-2.0-beta-3.jar

constituent[5]:
file:/proj/local/maven-2.0-beta-3/lib/maven-artifact-2.0-beta-3.jar

constituent[6]: file:/proj/local/maven-2.0-beta-3/lib/commons-cli-1.0.jar

constituent[7]:
file:/proj/local/maven-2.0-beta-3/lib/maven-model-2.0-beta-3.jar

constituent[8]:
file:/proj/local/maven-2.0-beta-3/lib/maven-settings-2.0-beta-3.jar

constituent[9]:
file:/proj/local/maven-2.0-beta-3/lib/maven-repository-metadata-2.0-beta-3.j
ar

constituent[10]: file:/proj/local/maven-2.0-beta-3/lib/jsch-0.1.21.jar

constituent[11]:
file:/proj/local/maven-2.0-beta-3/lib/wagon-provider-api-1.0-alpha-4.jar

constituent[12]:
file:/proj/local/maven-2.0-beta-3/lib/maven-monitor-2.0-beta-3.jar

constituent[13]:
file:/proj/local/maven-2.0-beta-3/lib/maven-reporting-api-2.0-beta-3.jar

constituent[14]:
file:/proj/local/maven-2.0-beta-3/lib/maven-profile-2.0-beta-3.jar

constituent[15]:
file:/proj/local/maven-2.0-beta-3/lib/wagon-file-1.0-alpha-4.jar

constituent[16]:
file:/proj/local/maven-2.0-beta-3/lib/maven-project-2.0-beta-3.jar

constituent[17]:
file:/proj/local/maven-2.0-beta-3/lib/maven-plugin-registry-2.0-beta-3.jar

constituent[18]: file:/proj/local/maven-2.0-beta-3/lib/jline-0.9.1.jar

constituent[19]:
file:/proj/local/maven-2.0-beta-3/lib/maven-plugin-parameter-documenter-2.0-
beta-3.jar

constituent[20]:
file:/proj/local/maven-2.0-beta-3/lib/doxia-sink-api-1.0-alpha-4.jar

constituent[21]:
file:/proj/local/maven-2.0-beta-3/lib/wagon-ssh-1.0-alpha-4.jar

constituent[22]:
file:/proj/local/maven-2.0-beta-3/lib/wagon-http-lightweight-1.0-alpha-4.jar

---

java.lang.NullPointerException

at
org.apache.maven.plugin.descriptor.PluginDescriptor.getMojo(PluginDescriptor
.java:258)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor(Defaul
tLifecycleExecutor.java:1294)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.segmentTaskListByAggrega
tionNeeds(DefaultLifecycleExecutor.java:420)

at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycle
Executor.java:132)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:217)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:247)

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:324)

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)

 

/Kevin

 

-Original Message-
From: Yann Le Du [mailto:[EMAIL PROTECTED] 
Sent: 14 October 2005 13:53
To: Maven Users List
Subject: RE: [m2] Can't get hello world plugin to work

 

Hi Kevin,

 

Try install again the plugin with this extra option :

m2 install -DupdateReleaseInfo=true

 

Yann

 

--- Kevin McNamee <[EMAIL PROTECTED]> a écrit :

 

> Of course I meant after installation when I try to test the plugin.

> 

>  

> 

> Also I am using maven 2.0 Beta 3.

> 

>  

> 

> /Kevin

> 

>  

> 

>   _  

> 

> From: Kevin McNamee [mailto:[EMAIL PROTECTED] 

> Sent: 13 October 2005 16:17

> To: 'Maven Users List'

> Subject: [m2] Can't get hello world plugin to work

> 

>  

> 

> Hi,

> 

>  

> 

> I have been trying to get the Hello World plugin to work following the

> instructions at

> 

>
http://maven.apache.org/maven2/developers/developing-plugins-with-marmalade.

> html

> 

>  

> 

> But then when I do the install I get:

> 

>  

> 

> :maven-hello-plugin> m2 hello:hello

> 

> [INFO] Searching repository for plugin with prefix: 'hello'.

> 

> [WARNING]

> 

>   * Using defaults for missing POM

> org.apache.maven.plugins:maven-hello-plugin:pom:RELEASE *

> 

>  

> 

> [INFO] Cannot find mojo descriptor for: 'hello:hello&#

RE: [m2] Can't get hello world plugin to work

2005-10-14 Thread Yann Le Du
Hi Kevin,

Try install again the plugin with this extra option :
m2 install -DupdateReleaseInfo=true

Yann

--- Kevin McNamee <[EMAIL PROTECTED]> a écrit :

> Of course I meant after installation when I try to test the plugin.
> 
>  
> 
> Also I am using maven 2.0 Beta 3.
> 
>  
> 
> /Kevin
> 
>  
> 
>   _  
> 
> From: Kevin McNamee [mailto:[EMAIL PROTECTED] 
> Sent: 13 October 2005 16:17
> To: 'Maven Users List'
> Subject: [m2] Can't get hello world plugin to work
> 
>  
> 
> Hi,
> 
>  
> 
> I have been trying to get the Hello World plugin to work following the
> instructions at
> 
> http://maven.apache.org/maven2/developers/developing-plugins-with-marmalade.
> html
> 
>  
> 
> But then when I do the install I get:
> 
>  
> 
> :maven-hello-plugin> m2 hello:hello
> 
> [INFO] Searching repository for plugin with prefix: 'hello'.
> 
> [WARNING]
> 
>   * Using defaults for missing POM
> org.apache.maven.plugins:maven-hello-plugin:pom:RELEASE *
> 
>  
> 
> [INFO] Cannot find mojo descriptor for: 'hello:hello' - Treating as
> non-aggregator.
> 
> [INFO]
> 
> 
> [INFO] Building Maven Hello World Plugin
> 
> [INFO]task-segment: [hello:hello]
> 
> [INFO]
> 
> 
> [INFO]
> 
> 
> [ERROR] FATAL ERROR
> 
> [INFO]
> 
> 
> [INFO] Diagnosis: Error resolving plugin version
> 
> [INFO]
> 
> 
> [INFO]
> 
> 
> [ERROR] FATAL ERROR
> 
> [INFO]
> 
> 
> FATAL ERROR: Error executing Maven for a project
> 
> For more information, run with the -e flag
> 
>  
> 
> Any ideas?
> 
>  
> 
> Much appreciated,
> 
> Kevin
> 
>  
> 
> 
> 
> 
>  
> 
> 
>  
> 
> 
>  <http://www.symsoft.se> 
> 
> Kevin McNamee
> Design Engineer
> Symsoft AB Kista Science Tower
> 
> TEL 
> FAX 
> GSM 
> 
> +46 8 503 86 637
> +46 8 566 166 01
> +46 702 49 12 92
> 
> 
>  
> 
> Färögatan 33, Box 1219 
> SE-164 28 Kista, Sweden
> 
>  <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
>  <http://www.symsoft.se> www.symsoft.se
> 
>  
> 
> 







___ 
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger 
Téléchargez cette version sur http://fr.messenger.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: [m2] Can't get hello world plugin to work

2005-10-13 Thread Kevin McNamee
Of course I meant after installation when I try to test the plugin.

 

Also I am using maven 2.0 Beta 3.

 

/Kevin

 

  _  

From: Kevin McNamee [mailto:[EMAIL PROTECTED] 
Sent: 13 October 2005 16:17
To: 'Maven Users List'
Subject: [m2] Can't get hello world plugin to work

 

Hi,

 

I have been trying to get the Hello World plugin to work following the
instructions at

http://maven.apache.org/maven2/developers/developing-plugins-with-marmalade.
html

 

But then when I do the install I get:

 

:maven-hello-plugin> m2 hello:hello

[INFO] Searching repository for plugin with prefix: 'hello'.

[WARNING]

  * Using defaults for missing POM
org.apache.maven.plugins:maven-hello-plugin:pom:RELEASE *

 

[INFO] Cannot find mojo descriptor for: 'hello:hello' - Treating as
non-aggregator.

[INFO]
--------

[INFO] Building Maven Hello World Plugin

[INFO]task-segment: [hello:hello]

[INFO]


[INFO]


[ERROR] FATAL ERROR

[INFO]


[INFO] Diagnosis: Error resolving plugin version

[INFO]


[INFO]


[ERROR] FATAL ERROR

[INFO]


FATAL ERROR: Error executing Maven for a project

For more information, run with the -e flag

 

Any ideas?

 

Much appreciated,

Kevin

 




 


 


 <http://www.symsoft.se> 

Kevin McNamee
Design Engineer
Symsoft AB Kista Science Tower

TEL 
FAX 
GSM 

+46 8 503 86 637
+46 8 566 166 01
+46 702 49 12 92


 

Färögatan 33, Box 1219 
SE-164 28 Kista, Sweden

 <mailto:[EMAIL PROTECTED]> [EMAIL PROTECTED]
 <http://www.symsoft.se> www.symsoft.se

 



[m2] Can't get hello world plugin to work

2005-10-13 Thread Kevin McNamee








Hi,

 

I have been trying to get the Hello World plugin to
work following the instructions at

http://maven.apache.org/maven2/developers/developing-plugins-with-marmalade.html

 

But then when I do the install I get:

 

:maven-hello-plugin> m2 hello:hello

[INFO] Searching repository for plugin with prefix:
'hello'.

[WARNING]

  * Using defaults for missing POM
org.apache.maven.plugins:maven-hello-plugin:pom:RELEASE *

 

[INFO] Cannot find mojo descriptor for: 'hello:hello'
- Treating as non-aggregator.

[INFO]


[INFO] Building Maven Hello World Plugin

[INFO]    task-segment: [hello:hello]

[INFO] 

[INFO]


[ERROR] FATAL ERROR

[INFO]


[INFO] Diagnosis: Error resolving plugin version

[INFO]


[INFO]


[ERROR] FATAL ERROR

[INFO] 

FATAL ERROR: Error executing Maven for a project

For more information, run with the -e flag

 

Any ideas?

 

Much appreciated,

Kevin

 


 
  
  
  
 


 


 
  
   
  
 
 
  
  
  
  
  Kevin McNamee
  Design Engineer
Symsoft AB Kista Science Tower
  
  
  TEL 
  FAX 
  GSM 
  
  
  +46 8 503 86 637
  +46 8 566 166 01
  +46 702 49 12 92
  
 
 
  
   
  
  
  Färögatan 33, Box
  1219 
  SE-164 28 Kista, Sweden
  
  
  [EMAIL PROTECTED]
  www.symsoft.se
  
 


 








Re: [M2a3] NPE installing hello world plugin

2005-07-06 Thread Unico Hommes
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

After adjusting some of the dependency versions it now works! Thanks a
lot guys!

- --
Unico

Kenney Westerhof wrote:
> On Wed, 6 Jul 2005, Unico Hommes wrote:
> 
> 
>>Hmm, I am afraid my cheers were a little premature. I now have a problem
>>executing the hello goal. Again I get a stacktrace:
> 
> 
> 
> You have to specify the plugin version to use in the POM:
> 
> ..
>   
> 
>   
> maven-hello-plugin
>   org.apache.maven.plugins
>   
>   1.0-SNAPSHOT
> 
> 
> The reason you're getting this exception is that maven is trying to find
> the version to use. First it tries to use it's own version (1.0-alpha-3)
> and checks the local repo (I think). Then it tries to download a VERSION
> file from the central repo to see which version to use. Since the plugin
> only exists locally you have to specify the version in the pom.
> 
> Guess the docs need updating on this too :)
> 
> 
> The next problem you will run into after this is:
> 
> Caused by:
> org.codehaus.plexus.component.factory.ComponentInstantiationException:
> Unable to create component as factory 'marmalade' could not be found
> 
> This can be solved by adding the following dependencies to
> the pom:
> 
>   
> 
>   org.apache.maven
>   maven-plugin-api
>   2.0-beta-1-SNAPSHOT
> 
> 
>   marmalade
>   marmalade-core
>   1.0-alpha-4
> 
> 
>   marmalade
>   marmalade-el-commons
>   1.0-alpha-3
> 
> 
>   marmalade
>   marmalade-tags-io
>   1.0-alpha-3
> 
> 
>   org.apache.maven
>   maven-script-marmalade
>   2.0-beta-1-SNAPSHOT
> 
>   
> 
> Another thing worth mentioning in the documentation :)
> 
> Then it should finally work!
> 
> -- Kenney Westerhof
> 
> 
>  >
> 
>>C:\code\hippo-fortress\m2plugin>m2 -e hello:hello
>>+ Error stacktraces are turned on.
>>[INFO]
>>-
>>---
>>[INFO] Building Maven Hello World Plugin
>>[INFO]
>>-
>>---
>>[INFO] maven-hello-plugin: checking for updates from central-plugins
>>[INFO] Retrieving release information for maven-hello-plugin
>>FATAL ERROR: Error executing Maven for a project
>>Error stacktrace:
>>org.apache.maven.reactor.ReactorException: Error executing project
>>within the reactor
>>   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:190)
>>   at org.apache.maven.cli.MavenCli.main(MavenCli.java:269)
>>   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:324)
>>   at
>>org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
>>   at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
>>   at
>>org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
>>
>>   at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
>>Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: Error
>>resolvi
>>ng plugin version
>>   at
>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
>>(DefaultLifecycleExecutor.java:537)
>>   at
>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
>>Goal(DefaultLifecycleExecutor.java:149)
>>   at
>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
>>ltLifecycleExecutor.java:133)
>>   at
>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
>>fecycleExecutor.java:103)
>>   at
>>org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261)
>>   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180)
>>   ... 9 more
>>Caused by:
>>org.apache.maven.plugin.version.PluginVersionResolutionException:
>>Error resolving version for
>>'org.apache.maven.plugins:maven-hello-plugin': Cannot resolve RELEASE
>>version of this plugin.
>>   at
>>org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveRe
>>leaseVersion(DefaultPluginVersionManager.java:570)
>>   at
>>org.apache.maven.plugin.version.De

Re: [M2a3] NPE installing hello world plugin

2005-07-06 Thread Kenney Westerhof
On Wed, 6 Jul 2005, Unico Hommes wrote:

> Hmm, I am afraid my cheers were a little premature. I now have a problem
> executing the hello goal. Again I get a stacktrace:


You have to specify the plugin version to use in the POM:

..
  

  
maven-hello-plugin
org.apache.maven.plugins

1.0-SNAPSHOT


The reason you're getting this exception is that maven is trying to find
the version to use. First it tries to use it's own version (1.0-alpha-3)
and checks the local repo (I think). Then it tries to download a VERSION
file from the central repo to see which version to use. Since the plugin
only exists locally you have to specify the version in the pom.

Guess the docs need updating on this too :)


The next problem you will run into after this is:

Caused by:
org.codehaus.plexus.component.factory.ComponentInstantiationException:
Unable to create component as factory 'marmalade' could not be found

This can be solved by adding the following dependencies to
the pom:

  

  org.apache.maven
  maven-plugin-api
  2.0-beta-1-SNAPSHOT


  marmalade
  marmalade-core
  1.0-alpha-4


  marmalade
  marmalade-el-commons
  1.0-alpha-3


  marmalade
  marmalade-tags-io
  1.0-alpha-3


  org.apache.maven
  maven-script-marmalade
  2.0-beta-1-SNAPSHOT

  

Another thing worth mentioning in the documentation :)

Then it should finally work!

-- Kenney Westerhof


 >
> C:\code\hippo-fortress\m2plugin>m2 -e hello:hello
> + Error stacktraces are turned on.
> [INFO]
> -----
> ---
> [INFO] Building Maven Hello World Plugin
> [INFO]
> -
> ---
> [INFO] maven-hello-plugin: checking for updates from central-plugins
> [INFO] Retrieving release information for maven-hello-plugin
> FATAL ERROR: Error executing Maven for a project
> Error stacktrace:
> org.apache.maven.reactor.ReactorException: Error executing project
> within the reactor
>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:190)
>at org.apache.maven.cli.MavenCli.main(MavenCli.java:269)
>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:324)
>at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
>at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
>at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
>
>at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
> Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: Error
> resolvi
> ng plugin version
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
> (DefaultLifecycleExecutor.java:537)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
> Goal(DefaultLifecycleExecutor.java:149)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:133)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:103)
>at
> org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261)
>at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180)
>... 9 more
> Caused by:
> org.apache.maven.plugin.version.PluginVersionResolutionException:
> Error resolving version for
> 'org.apache.maven.plugins:maven-hello-plugin': Cannot resolve RELEASE
> version of this plugin.
>at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveRe
> leaseVersion(DefaultPluginVersionManager.java:570)
>at
> org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
> uginVersion(DefaultPluginVersionManager.java:130)
>at
> org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
> inManager.java:192)
>at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
> (DefaultLifecycleExecutor.java:528)
>... 14 more
> Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException:
> Unable to find release for artifact
> org.apache.maven.plugins:maven-hello-plugin:maven
> -plugin:RELEASE
>  org.apache.maven.plugins:maven-hello-plugin:RELEASE:maven-plugin
>
> from the specified remote repositories:
>  http://repo1.maven.org/maven2/plug

Re: [M2a3] NPE installing hello world plugin

2005-07-06 Thread Unico Hommes
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hmm, I am afraid my cheers were a little premature. I now have a problem
executing the hello goal. Again I get a stacktrace:

C:\code\hippo-fortress\m2plugin>m2 -e hello:hello
+ Error stacktraces are turned on.
[INFO]
- -
- ---
[INFO] Building Maven Hello World Plugin
[INFO]
- -
- ---
[INFO] maven-hello-plugin: checking for updates from central-plugins
[INFO] Retrieving release information for maven-hello-plugin
FATAL ERROR: Error executing Maven for a project
Error stacktrace:
org.apache.maven.reactor.ReactorException: Error executing project
within the reactor
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:190)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:269)
   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:324)
   at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
   at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)

   at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
Caused by: org.apache.maven.lifecycle.LifecycleExecutionException: Error
resolvi
ng plugin version
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:537)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandalone
Goal(DefaultLifecycleExecutor.java:149)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:133)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:103)
   at
org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180)
   ... 9 more
Caused by:
org.apache.maven.plugin.version.PluginVersionResolutionException:
Error resolving version for
'org.apache.maven.plugins:maven-hello-plugin': Cannot resolve RELEASE
version of this plugin.
   at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveRe
leaseVersion(DefaultPluginVersionManager.java:570)
   at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePl
uginVersion(DefaultPluginVersionManager.java:130)
   at
org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPlug
inManager.java:192)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.getMojoDescriptor
(DefaultLifecycleExecutor.java:528)
   ... 14 more
Caused by: org.apache.maven.artifact.resolver.ArtifactResolutionException:
Unable to find release for artifact
org.apache.maven.plugins:maven-hello-plugin:maven
- -plugin:RELEASE
 org.apache.maven.plugins:maven-hello-plugin:RELEASE:maven-plugin

from the specified remote repositories:
 http://repo1.maven.org/maven2/plugins
   at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:88)
   at
org.apache.maven.plugin.version.DefaultPluginVersionManager.resolveRe
leaseVersion(DefaultPluginVersionManager.java:566)
   ... 17 more
Caused by:
org.apache.maven.artifact.metadata.ArtifactMetadataRetrievalException
: Unable to find release for artifact
org.apache.maven.plugins:maven-hello-plugin:maven-plugin:RELEASE
   at
org.apache.maven.artifact.transform.ReleaseArtifactTransformation.ret
rieveFromRemoteRepository(ReleaseArtifactTransformation.java:86)
   at
org.apache.maven.artifact.transform.AbstractVersionTransformation.res
olveVersion(AbstractVersionTransformation.java:104)
   at
org.apache.maven.artifact.transform.ReleaseArtifactTransformation.tra
nsformForResolve(ReleaseArtifactTransformation.java:51)
   at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
faultArtifactResolver.java:84)
   ... 18 more
Caused by: org.apache.maven.wagon.ResourceDoesNotExistException:
Unable to locate resource in repository
   at
org.apache.maven.wagon.providers.http.LightweightHttpWagon.fillInputD
ata(LightweightHttpWagon.java:81)
   at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:70)
   at
org.apache.maven.artifact.manager.DefaultWagonManager.getRemoteFile(D
efaultWagonManager.java:310)
   at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifactMeta
data(DefaultWagonManager.java:242)
   at
org.apache.maven.artifact.metadata.AbstractVersionArtifactMetadata.re
trieveFromRemoteRepository(AbstractVersionArtifactMetadata.java:94)
   at
org.apache.maven.artifact.transform.ReleaseArtifactTrans

Re: [M2a3] NPE installing hello world plugin

2005-07-06 Thread Unico Hommes
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Ha! Your hint about the  element was a winner. Thanks a bunch. I
guess someone better fix this in the documentation.

- --
Unico

David Le Strat wrote:
> Have you looked at this thread?
> 
> http://marc.theaimsgroup.com/?l=turbine-maven-user&m=112013632905808&w=2
> 
> I had the same issue, it was caused by a missing
> element in the pom.xml.  I also saw the error with an
> extra element ( should not be there).
> 
> Regards,
> 
> David Le Strat.
> 
> --- Unico Hommes <[EMAIL PROTECTED]> wrote:
> 
> 
> I am following the "Developing Plugins with
> Marmalade" tutorial on the
> Maven 2 website. Following the instructions to the
> letter of creating
> the pom.xml and the hello world marmalade script
> running 'm2 install'
> gives me the following NPE:
> 
> java.lang.NullPointerException
>at
> 
> 
>> org.codehaus.marmalade.metamodel.AbstractMarmaladeTagLibrary.createTa
> 
> g(AbstractMarmaladeTagLibrary.java:59)
>at
> 
> 
>> org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeT
> 
> agBuilder.java:67)
>at
> 
> 
>> org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeT
> 
> agBuilder.java:83)
>at
> 
> 
>> org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeT
> 
> agBuilder.java:83)
>at
> 
> 
>> org.codehaus.marmalade.metamodel.ScriptBuilder.build(ScriptBuilder.ja
> 
> va:51)
>at
> 
> 
>> org.codehaus.marmalade.launch.MarmaladeLauncher.buildScript(Marmalade
> 
> Launcher.java:264)
>at
> 
> 
>> org.codehaus.marmalade.launch.MarmaladeLauncher.getMarmaladeScript(Ma
> 
> rmaladeLauncher.java:313)
>at
> 
> 
>> org.apache.maven.tools.plugin.extractor.marmalade.MarmaladeMojoDescri
> 
>> ptorExtractor.extractMojoDescriptors(MarmaladeMojoDescriptorExtractor.java:89)
> 
>at
> 
> 
>> org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescripto
> 
>> rExtractor.execute(AbstractScriptedMojoDescriptorExtractor.java:34)
> 
>at
> 
> 
>> org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePlug
> 
> inDescriptor(DefaultMojoScanner.java:69)
>at
> 
> 
>> org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(Abstract
> 
> GeneratorMojo.java:93)
>at
> 
> 
>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> 
> nManager.java:401)
>at
> 
> 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> 
> ultLifecycleExecutor.java:169)
>at
> 
> 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> 
> fecycle(DefaultLifecycleExecutor.java:143)
>at
> 
> 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> 
> ltLifecycleExecutor.java:129)
>at
> 
> 
>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> 
> fecycleExecutor.java:103)
>at
> 
> 
>> org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261)
> 
>at
> 
> 
>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180)
> 
>at
> 
> 
>> org.apache.maven.cli.MavenCli.main(MavenCli.java:269)
> 
>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:324)
>at
> 
> 
>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
> 
>at
> 
> 
>> org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
> 
>at
> 
> 
>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
> 
>at
> 
> 
>> org.codehaus.classworlds.Launcher.main(Launcher.java:363)
> 
> 
> Anybody know what's wrong?
> 
> --
> Unico
> 

> -

To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]





> 
> David Le Strat
> Blogging @ http://dlsthoughts.blogspot.com



> 
> Sell on Yahoo! Auctions ? no fees. Bid on great items.  
> http://auctions.yahoo.com/

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFCy/Avcuec8tVNKAwRAjGjAKC4Hbpzqv1yuvuS7qBWFdUCeoJh5gCggWEz
htp88NjRTyhIaI0kKF5Dafk=
=AifJ
-END PGP SIGNATURE-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [M2a3] NPE installing hello world plugin

2005-07-06 Thread David Le Strat
Have you looked at this thread?

http://marc.theaimsgroup.com/?l=turbine-maven-user&m=112013632905808&w=2

I had the same issue, it was caused by a missing
element in the pom.xml.  I also saw the error with an
extra element ( should not be there).

Regards,

David Le Strat.

--- Unico Hommes <[EMAIL PROTECTED]> wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
> 
> I am following the "Developing Plugins with
> Marmalade" tutorial on the
> Maven 2 website. Following the instructions to the
> letter of creating
> the pom.xml and the hello world marmalade script
> running 'm2 install'
> gives me the following NPE:
> 
> java.lang.NullPointerException
>at
>
org.codehaus.marmalade.metamodel.AbstractMarmaladeTagLibrary.createTa
> g(AbstractMarmaladeTagLibrary.java:59)
>at
>
org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeT
> agBuilder.java:67)
>at
>
org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeT
> agBuilder.java:83)
>at
>
org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeT
> agBuilder.java:83)
>at
>
org.codehaus.marmalade.metamodel.ScriptBuilder.build(ScriptBuilder.ja
> va:51)
>at
>
org.codehaus.marmalade.launch.MarmaladeLauncher.buildScript(Marmalade
> Launcher.java:264)
>at
>
org.codehaus.marmalade.launch.MarmaladeLauncher.getMarmaladeScript(Ma
> rmaladeLauncher.java:313)
>at
>
org.apache.maven.tools.plugin.extractor.marmalade.MarmaladeMojoDescri
>
ptorExtractor.extractMojoDescriptors(MarmaladeMojoDescriptorExtractor.java:89)
>at
>
org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescripto
>
rExtractor.execute(AbstractScriptedMojoDescriptorExtractor.java:34)
>at
>
org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePlug
> inDescriptor(DefaultMojoScanner.java:69)
>at
>
org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(Abstract
> GeneratorMojo.java:93)
>at
>
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
> nManager.java:401)
>at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
> ultLifecycleExecutor.java:169)
>at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
> fecycle(DefaultLifecycleExecutor.java:143)
>at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
> ltLifecycleExecutor.java:129)
>at
>
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
> fecycleExecutor.java:103)
>at
>
org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261)
>at
>
org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180)
>at
>
org.apache.maven.cli.MavenCli.main(MavenCli.java:269)
>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:324)
>at
>
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
>at
>
org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
>at
>
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
> 
>at
>
org.codehaus.classworlds.Launcher.main(Launcher.java:363)
> 
> 
> Anybody know what's wrong?
> 
> - --
> Unico
> 
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.1 (Darwin)
> 
>
iD8DBQFCy9mKcuec8tVNKAwRArXBAKC5uUOInAsT9oDfHIPC2x2FwHjoGQCZAX5G
> bLfa2TSkjDgD32BLTn6572w=
> =YfIt
> -END PGP SIGNATURE-
> 
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



David Le Strat
Blogging @ http://dlsthoughts.blogspot.com




Sell on Yahoo! Auctions – no fees. Bid on great items.  
http://auctions.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[M2a3] NPE installing hello world plugin

2005-07-06 Thread Unico Hommes
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I am following the "Developing Plugins with Marmalade" tutorial on the
Maven 2 website. Following the instructions to the letter of creating
the pom.xml and the hello world marmalade script running 'm2 install'
gives me the following NPE:

java.lang.NullPointerException
   at
org.codehaus.marmalade.metamodel.AbstractMarmaladeTagLibrary.createTa
g(AbstractMarmaladeTagLibrary.java:59)
   at
org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeT
agBuilder.java:67)
   at
org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeT
agBuilder.java:83)
   at
org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeT
agBuilder.java:83)
   at
org.codehaus.marmalade.metamodel.ScriptBuilder.build(ScriptBuilder.ja
va:51)
   at
org.codehaus.marmalade.launch.MarmaladeLauncher.buildScript(Marmalade
Launcher.java:264)
   at
org.codehaus.marmalade.launch.MarmaladeLauncher.getMarmaladeScript(Ma
rmaladeLauncher.java:313)
   at
org.apache.maven.tools.plugin.extractor.marmalade.MarmaladeMojoDescri
ptorExtractor.extractMojoDescriptors(MarmaladeMojoDescriptorExtractor.java:89)
   at
org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescripto
rExtractor.execute(AbstractScriptedMojoDescriptorExtractor.java:34)
   at
org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePlug
inDescriptor(DefaultMojoScanner.java:69)
   at
org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(Abstract
GeneratorMojo.java:93)
   at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:401)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:169)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:143)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:129)
   at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:103)
   at
org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:261)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:180)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:269)
   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:324)
   at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
   at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)

   at org.codehaus.classworlds.Launcher.main(Launcher.java:363)


Anybody know what's wrong?

- --
Unico

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFCy9mKcuec8tVNKAwRArXBAKC5uUOInAsT9oDfHIPC2x2FwHjoGQCZAX5G
bLfa2TSkjDgD32BLTn6572w=
=YfIt
-END PGP SIGNATURE-


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Hello-world-plugin not working

2005-06-22 Thread Allan Ramirez

Hi ,

I have abled to build the hello-world plugin successfully, but when I 
tried to run "m2 hello:hello"

the following printed on the screen.

[INFO] Building Maven Hello World Plugin
[INFO] -
---
[INFO] maven-hello-plugin: checking for updates from central
[INFO] Retrieving release information for maven-hello-plugin
FATAL ERROR: Error executing Maven for a project
For more information, run with the -e flag


my hello.mmld is


 
   hello
   Say Hello to the World.
 
 
   Hello, World
 


and my pom.xml is just like on the maven site.
http://maven.apache.org/maven2/developers/developing-plugins-with-marmalade.html

What could be the problem?
Any replies would be appreciated.

Regards
Allan

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[Fwd: Re: NullPointerException on Hello World plugin]

2005-06-08 Thread Edwin Punzalan
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: NullPointerException on Hello World plugin

2005-06-08 Thread Edwin Punzalan
[INFO] 

[INFO] Building Maven Hello World Plugin
[INFO] 

[INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local repository
[INFO] maven-plugin-plugin: resolved to version 2.0-alpha-2 from local 
repository
[INFO] maven-hello-plugin: resolved to version 1.0-SNAPSHOT from local 
repository
[INFO] maven-hello-plugin: using locally installed snapshot
[INFO] it0015 taglib definition resource from component realm is: null
[INFO] Using classloader that delegates to realm: 
org.apache.maven.plugins:maven-hello-plugin:maven-plugin:1.0-SNAPSHOT
[INFO] Root tag type: [EMAIL PROTECTED]
---
constituent[0]: file:/C:/MAVEN-~1.0-A/bin/../lib/commons-cli-1.0-beta-2.jar
constituent[1]: file:/C:/MAVEN-~1.0-A/bin/../lib/doxia-core-1.0-alpha-2.jar
constituent[2]: file:/C:/MAVEN-~1.0-A/bin/../lib/marmalade-core-1.0-alpha-3.jar
constituent[3]: file:/C:/MAVEN-~1.0-A/bin/../lib/maven-artifact-2.0-alpha-2.jar
constituent[4]: file:/C:/MAVEN-~1.0-A/bin/../lib/maven-core-2.0-alpha-2.jar
constituent[5]: file:/C:/MAVEN-~1.0-A/bin/../lib/maven-model-2.0-alpha-2.jar
constituent[6]: file:/C:/MAVEN-~1.0-A/bin/../lib/maven-monitor-2.0-alpha-2.jar
constituent[7]: 
file:/C:/MAVEN-~1.0-A/bin/../lib/maven-plugin-api-2.0-alpha-2.jar
constituent[8]: 
file:/C:/MAVEN-~1.0-A/bin/../lib/maven-plugin-descriptor-2.0-alpha-2.jar
constituent[9]: file:/C:/MAVEN-~1.0-A/bin/../lib/maven-project-2.0-alpha-2.jar
constituent[10]: 
file:/C:/MAVEN-~1.0-A/bin/../lib/maven-reporting-api-2.0-alpha-2.jar
constituent[11]: 
file:/C:/MAVEN-~1.0-A/bin/../lib/maven-script-marmalade-2.0-alpha-2.jar
constituent[12]: file:/C:/MAVEN-~1.0-A/bin/../lib/maven-settings-2.0-alpha-2.jar
constituent[13]: file:/C:/MAVEN-~1.0-A/bin/../lib/oro-2.0.7.jar
constituent[14]: 
file:/C:/MAVEN-~1.0-A/bin/../lib/plexus-container-artifact-1.0-alpha-3.jar
constituent[15]: file:/C:/MAVEN-~1.0-A/bin/../lib/plexus-i18n-1.0-beta-3.jar
constituent[16]: 
file:/C:/MAVEN-~1.0-A/bin/../lib/plexus-marmalade-factory-1.0-alpha-3.jar
constituent[17]: 
file:/C:/MAVEN-~1.0-A/bin/../lib/wagon-http-lightweight-1.0-alpha-3.jar
constituent[18]: 
file:/C:/MAVEN-~1.0-A/bin/../lib/wagon-provider-api-1.0-alpha-3.jar
---
java.lang.NullPointerException
at 
org.apache.maven.plugin.DefaultPluginManager.getPluginConfigurationFromExpressions(DefaultPluginManager.java:608)
at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:397)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.processGoals(DefaultLifecycleExecutor.java:169)
at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:90)
at org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:253)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:246)
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:324)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: NullPointerException on Hello World plugin

2005-06-08 Thread Brett Porter
This is the  tag that is problematic. You can remove it.

Regards,
Brett

On 6/8/05, Edwin Punzalan <[EMAIL PROTECTED]> wrote:
> I can't seem to get the hello world plugin to work...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



NullPointerException on Hello World plugin

2005-06-08 Thread Edwin Punzalan

I can't seem to get the hello world plugin to work...

attached are pom.xml, and the trace is in m2.log.

hello.mmld is in ./src/main/scripts from pom.xml.

Can anybody please help.
+ Error stacktraces are turned on.
[INFO] 

[INFO] Building Maven Hello World Plugin
[INFO] 

[DEBUG] Resolving: 
org.apache.maven.plugins:maven-jar-plugin:maven-plugin:RELEASE from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[INFO] maven-jar-plugin: resolved to version 2.0-alpha-2 from local repository
[DEBUG] Resolving: junit:junit:pom:3.8.1 from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[DEBUG] Resolving: plexus:plexus-archiver:pom:1.0-alpha-1 from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[DEBUG] Resolving: plexus:plexus-components:pom:1.0 from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[DEBUG] Resolving: plexus:plexus-root:pom:1.0 from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[DEBUG] Resolving: org.apache.maven:maven-archiver:pom:2.0-alpha-2 from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[DEBUG] Resolving: org.apache.maven:maven:pom:2.0-alpha-2 from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[DEBUG] Resolving: plexus:plexus-utils:pom:1.0-alpha-3 from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[DEBUG] Resolving: plexus:plexus-root:pom:1.0 from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[DEBUG] Resolving: org.apache.maven:maven-archiver:jar:2.0-alpha-2 from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[DEBUG] Resolving: plexus:plexus-utils:jar:1.0-alpha-3 from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[DEBUG] Resolving: junit:junit:jar:3.8.1 from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[DEBUG] Resolving: plexus:plexus-archiver:jar:1.0-alpha-1 from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[DEBUG] Resolving: 
org.apache.maven.plugins:maven-plugin-plugin:maven-plugin:RELEASE from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[INFO] maven-plugin-plugin: resolved to version 2.0-alpha-2 from local 
repository
[DEBUG] Resolving: org.apache.maven:maven-plugin-tools-api:pom:2.0-alpha-2 from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[DEBUG] Resolving: org.apache.maven:maven-plugin-tools:pom:2.0-alpha-2 from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[DEBUG] Resolving: org.apache.maven:maven:pom:2.0-alpha-2 from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[DEBUG] Resolving: org.codehaus.modello:modello-core:pom:1.0-alpha-1 from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[DEBUG] Resolving: plexus:plexus-utils:pom:1.0-alpha-2 from:
{localRepository: [local] -> file://C:\Documents and 
Settings\Owner\.m2\repository}
{remoteRepositories: [[central] -> http://repo1.maven.org/maven2]}
[DEBUG] Resolving: 
org.apache.maven:maven-plugin-tools-marmalade:pom:2.0-alpha-2 from:
{localRepository: [local] -> file://C:\Document

Re: Maven 2 Hello World Failure

2005-05-31 Thread Brett Porter
It seems that it is out of date. We will look at correcting it.

A better introduction can be found here:
http://maven.apache.org/maven2/getting-started.html

Cheers,
Brett

On 5/31/05, fenallen <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I haven been using Maven 1.0.x for some time now and have just started
> looking into Maven 2.
> Unfortunately, the Hello World example seems to fail with the following
> error when running the command 'm2 install'.
> 
> java.lang.NullPointerException
> at
> org.codehaus.marmalade.metamodel.AbstractMarmaladeTagLibrary.createTag(AbstractMarmaladeTagLibrary.java:59)
> at
> org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeTagBuilder.java:67)
> at
> org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeTagBuilder.java:83)
> at
> org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeTagBuilder.java:83)
> at
> org.codehaus.marmalade.metamodel.ScriptBuilder.build(ScriptBuilder.java:51)
> at
> org.codehaus.marmalade.launch.MarmaladeLauncher.buildScript(MarmaladeLauncher.java:264)
> at
> org.codehaus.marmalade.launch.MarmaladeLauncher.getMarmaladeScript(MarmaladeLauncher.java:313)
> at
> org.apache.maven.tools.plugin.extractor.marmalade.MarmaladeMojoDescriptorExtractor.extractMojoDescriptors(Mar
> maladeMojoDescriptorExtractor.java:89)
> at
> org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.execute(AbstractScriptedMojoD
> escriptorExtractor.java:30)
> at
> org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:69)
> 
> at
> org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:93)
> at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.processGoals(DefaultLifecycleExecutor.java:169)
> at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:90)
> at
> org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:253)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:246)
> 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:324)
> at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)
> at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
> at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)
> at org.codehaus.classworlds.Launcher.main(Launcher.java:363)
> 
> Any ideas?
> 
> Allen.
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Maven 2 Hello World Failure

2005-05-31 Thread fenallen

Hi,

I haven been using Maven 1.0.x for some time now and have just started 
looking into Maven 2.
Unfortunately, the Hello World example seems to fail with the following 
error when running the command 'm2 install'.


java.lang.NullPointerException
   at 
org.codehaus.marmalade.metamodel.AbstractMarmaladeTagLibrary.createTag(AbstractMarmaladeTagLibrary.java:59)
   at 
org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeTagBuilder.java:67)
   at 
org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeTagBuilder.java:83)
   at 
org.codehaus.marmalade.metamodel.MarmaladeTagBuilder.build(MarmaladeTagBuilder.java:83)
   at 
org.codehaus.marmalade.metamodel.ScriptBuilder.build(ScriptBuilder.java:51)
   at 
org.codehaus.marmalade.launch.MarmaladeLauncher.buildScript(MarmaladeLauncher.java:264)
   at 
org.codehaus.marmalade.launch.MarmaladeLauncher.getMarmaladeScript(MarmaladeLauncher.java:313)
   at 
org.apache.maven.tools.plugin.extractor.marmalade.MarmaladeMojoDescriptorExtractor.extractMojoDescriptors(Mar

maladeMojoDescriptorExtractor.java:89)
   at 
org.apache.maven.tools.plugin.extractor.AbstractScriptedMojoDescriptorExtractor.execute(AbstractScriptedMojoD

escriptorExtractor.java:30)
   at 
org.apache.maven.tools.plugin.scanner.DefaultMojoScanner.populatePluginDescriptor(DefaultMojoScanner.java:69)


   at 
org.apache.maven.plugin.plugin.AbstractGeneratorMojo.execute(AbstractGeneratorMojo.java:93)
   at 
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:415)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.processGoals(DefaultLifecycleExecutor.java:169)
   at 
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:90)
   at 
org.apache.maven.DefaultMaven.processProject(DefaultMaven.java:253)

   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:167)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:246)
   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:324)
   at 
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:303)

   at org.codehaus.classworlds.Launcher.launch(Launcher.java:243)
   at 
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:416)

   at org.codehaus.classworlds.Launcher.main(Launcher.java:363)

Any ideas?

Allen.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Réf. : Cannot make multiproject "hello world" work !

2004-02-17 Thread thomas . carrie


I have finally found the problem : maven has a cache in the user directory

This cache got corrupted somehow



  
  17/02/2004 12:56
 Thomas Carrie
  
  
  
 tel : +33 155775802  
  



Pour : users

cc :


Objet : Cannot make multiproject "hello world" work !


I have a Hello Word project : a single java class, no dependency

My project.xml file is copied from maven getting started.

Here is my maven.xml :




java:compile




C:\tmp\mavmer>maven toto
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT


BUILD FAILED
File.. file:/C:/tmp/mavmer/
Element... attainGoal
Line.. 5
Column 47
No goal [multiproject:goal]
Total time: 4 seconds
Finished at: Tue Feb 17 12:27:20 CET 2004

The same project works perfectly well on another window machine.
I have tried other plugins (javadoc), they work.
I use maven-1.0-rc1 on every box

That means that there must be some ODD load mechanism for the multiproject
plugin.

I have spent 6 hours looking for differences that could affect the behavior
of that plugin that could make so that this the only plugin can't be called
on this box.








This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cannot make multiproject "hello world" work !

2004-02-17 Thread Andreas.Ebbert
Hi,

> -Original Message-
> From: ext [EMAIL PROTECTED]

> multiproject:goal is use with the -Dgoal option :
> maven -Dgoal=goal_to_launch multiproject:goal will execute 
> the goal_to_launch in all the subproject. If you look at the 
> goal multiproject:goal you will see that the -Dgoal option is 
> required.

> 
> 
> java:compile
> 
> 

I think that's what Thomas wanted to do with the j:set. isn't it possible to set also 
system properties with j:set?

 _ __  _  _
//\ndreas.[|-bbert(a)[|\|okia.com
   `-
   Andreas Ebbert
   Software Design Engineer - Nokia Networks OSS 
   phone: +49-177-9413928, fax: +49-211-94123988 
   Heltorfer Straße 1, 40472 Düsseldorf, Germany 

--
This message is confidential. If you have received this message in error,
please delete it from your system. You should not copy it for any purpose,
or disclose its contents to any other person. Internet communications are
not secure and therefore Nokia GmbH does not accept legal responsibility
for the contents of this message as it has been transmitted over a public
network. Thank you.
Nokia GmbH, Nokia Networks is a German Company. Further information
about the Company is available from its principal offices at
Heltorferstrasse 1, D-40472, Düsseldorf, Germany and from the
website at http://www.nokia.com/
--

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cannot make multiproject "hello world" work !

2004-02-17 Thread Nicolas . CHALUMEAU
multiproject:goal is use with the -Dgoal option :
maven -Dgoal=goal_to_launch multiproject:goal will execute the goal_to_launch in all 
the subproject. If you look at the 
goal multiproject:goal you will see that the -Dgoal option is required.

Nicolas,





[EMAIL PROTECTED]
17/02/2004 12:56
Veuillez répondre à "Maven Users List"

 
Pour :  [EMAIL PROTECTED]
cc : 
Objet : Cannot make multiproject "hello world" work !



I have a Hello Word project : a single java class, no dependency

My project.xml file is copied from maven getting started.

Here is my maven.xml :




java:compile




C:\tmp\mavmer>maven toto
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT


BUILD FAILED
File.. file:/C:/tmp/mavmer/
Element... attainGoal
Line.. 5
Column 47
No goal [multiproject:goal]
Total time: 4 seconds
Finished at: Tue Feb 17 12:27:20 CET 2004

The same project works perfectly well on another window machine.
I have tried other plugins (javadoc), they work.
I use maven-1.0-rc1 on every box

That means that there must be some ODD load mechanism for the multiproject
plugin.

I have spent 6 hours looking for differences that could affect the 
behavior
of that plugin that could make so that this the only plugin can't be 
called
on this box.





This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cannot make multiproject "hello world" work !

2004-02-17 Thread thomas . carrie

I have a Hello Word project : a single java class, no dependency

My project.xml file is copied from maven getting started.

Here is my maven.xml :




java:compile




C:\tmp\mavmer>maven toto
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0-rc1-SNAPSHOT


BUILD FAILED
File.. file:/C:/tmp/mavmer/
Element... attainGoal
Line.. 5
Column 47
No goal [multiproject:goal]
Total time: 4 seconds
Finished at: Tue Feb 17 12:27:20 CET 2004

The same project works perfectly well on another window machine.
I have tried other plugins (javadoc), they work.
I use maven-1.0-rc1 on every box

That means that there must be some ODD load mechanism for the multiproject
plugin.

I have spent 6 hours looking for differences that could affect the behavior
of that plugin that could make so that this the only plugin can't be called
on this box.





This message and any attachments (the "message") is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le 
"message") sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]