Well, there's a pregoal which will create the directory target\classes just before 
compiling (it's called java:prepare-filesystem). If you clean the target directory 
just before launching the compilation, the java:compile goal will obiously fail.

I suggest the following as a replacement

<goal name="build" prereqs="clean">
   <echo>Calling ejb:install</echo>
   <attainGoal name="ejb:install" />
</goal>

Regards,

St�phane



-----Original Message-----
From: Oren Berenson [mailto:[EMAIL PROTECTED] 
Sent: lundi 11 octobre 2004 12:04
To: Maven Users List; Brett Porter
Subject: [SPAM] - RE: <attainGoal> No goal [ejb:install] - Found word(s) list error in 
the Text body.


This is my maven.xml:

<project default="build" xmlns:m="jelly:maven">
        <preGoal name="java:compile">
                <echo>!!!!!! Clean</echo>
                <attainGoal name="clean" />
        </preGoal>

  <goal name="build">
        <echo>Calling ejb:install</echo>
     <attainGoal name="ejb:install" />
  </goal>
</project>

I get the following error:

"D:\TestEJB\target\classes" does not exist or is not a directory

It looks like the folder\classes have to exists for it to work.

Is it correct to use clean like i did?

Oren 

-----Original Message-----
From: Oren Berenson [mailto:[EMAIL PROTECTED]
Sent: 11 October 2004 08:54
To: Brett Porter; Maven Users List
Subject: RE: <attainGoal> No goal [ejb:install]


Maven reported it installed. 

I installed it manually and then got different error regarding classes that don't 
exists in the target folder. It worked only after running jar:install (or any command 
that compile). I expected ejb:install to compile classes before building jar. Is it 
not the case?  

Oren 


-----Original Message-----
From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: 09 October 2004 00:18
To: Maven Users List
Subject: Re: <attainGoal> No goal [ejb:install]


does maven --info report it installed?
if so, what does maven -P ejb say?

Thanks,
Brett

On Fri, 08 Oct 2004 16:28:57 +0100, Oren Berenson <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I installed Maven EJB Plugin 1.5 as follow:
> maven plugin:download  -DgroupId=maven  -DartifactId=maven-ejb-plugin 
> -Dversion=1.5
> 
> Installation finished successfully.
> 
> I have maven.xml :
> 
> <project default="build" xmlns:m="jelly:maven">
>   <goal name="build">
>      <attainGoal name="ejb:install" />
>   </goal>
> </project>
> 
> When running it i get the message: <attainGoal> No goal [ejb:install]
> 
> any idea where i gone wrong?
> 
> Oren
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





************************************************************************
****

This email and any files transmitted with it contain information that may be 
confidential or privileged, and are intended solely for the use of the individual or 
entity to whom they are addressed. If you are not the intended recipient any 
disclosure, copying, distribution or use of the information is prohibited. If you have 
received this email in error, please notify me by return email immediately. Any 
opinions expressed are those of the author, not of Morpheus Limited.


This message has been checked for all known viruses by UUNET delivered 
through the MessageLabs Virus Control Centre.

************************************************************************
****

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





****************************************************************************

This email and any files transmitted with it contain information that may be 
confidential or privileged, and are intended solely for the use of the individual or 
entity to whom they are addressed. If you are not the intended recipient any 
disclosure, copying, distribution or use of the information is prohibited. If you have 
received this email in error, please notify me by return email immediately. Any 
opinions expressed are those of the author, not of Morpheus Limited.


This message has been checked for all known viruses by UUNET delivered 
through the MessageLabs Virus Control Centre.

****************************************************************************

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

Reply via email to