That's why I'm using the runtime argument.

However, the workspace must be indicated, otherwise it won't generate correct 
eclipse files. If you have a bit more time, the you should have a closer look 
to the eclipse plugin source code. The plugin does consider the target 
application server and generates the files according to the needs of the 
specified environement. That's why the workspace argument is required. It looks 
up your applications server configuration in your workspace that matches with 
configuration given in <wtpdefaultserver>.
The recognising of an EJB project is a matter the maven packaging option.
Good look!

Kuno

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Donnerstag, 15. Mai 2008 08:29
An: Maven Users List
Betreff: Re: AW: AW: maven-eclipse-plugin: Facet Issues


Thank you very much for your help.

It wasn't even recognised as an EJB project, but I didn't play with it 
entensively.

If I get a sec, I'll give it another go.

It also appears that you can put the workspace location into the settings 
section, which to me defeats the entire purpose of portable builds.

-Chris

"Baeriswyl Kuno - Extern (IT-BA-MV)" <[EMAIL PROTECTED]> wrote on 15/05/2008 
16:14:55:

> Hi Chris,
>
> in my case it's working fine. I've got RAD7 and WAS 6.1.
>
> What exactly doesn't work?
>
> Here a better example how to call the mojo
>
> mvn -Declipse.workspace=D:/myworkspace eclipse:eclipse
>
> Kuno
>
> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 15. Mai 2008 02:04
> An: Maven Users List
> Betreff: Re: AW: maven-eclipse-plugin: Facet Issues
>
>
> Hi Kuno,
>
>         Thanks for that, however it does not work for me.
>
>         However, I'll see if I can incorporate the server settings
> etc.
>
> -Chris
>
> "Baeriswyl Kuno - Extern (IT-BA-MV)" <[EMAIL PROTECTED]> wrote on
> 14/05/2008 19:32:24:
>
> > Hello Chris,
> >
> > for me, following works:
> >
> >                         <plugin>
> > <groupId>org.apache.maven.plugins</groupId>
> > <artifactId>maven-eclipse-plugin</artifactId>
> >                                 <configuration>
> >                                         <wtpdefaultserver>WebSphere
> > Application Server v6.1</wtpdefaultserver>
> >
> > <wtpmanifest>true</wtpmanifest>
<wtpapplicationxml>true</wtpapplicationxml>
> >                                         <wtpversion>1.5</wtpversion>
> >                                         <additionalBuildcommands>
> >                                                 <buildcommand>org.
> > eclipse.jdt.core.javabuilder</buildcommand>
> >                                                 <buildcommand>org.
> > eclipse.wst.common.project.facet.core.builder</buildcommand>
> >                                                 <buildcommand>org.
> > eclipse.wst.validation.validationbuilder</buildcommand>
> >                                         </additionalBuildcommands>
> >                                         <additionalProjectnatures>
> >                                                 <projectnature>org.
> > eclipse.jdt.core.javanature</projectnature>
> >                                                 <projectnature>org.
> > eclipse.wst.common.project.facet.core.nature</projectnature>
> >                                                 <projectnature>org.
> > eclipse.wst.common.modulecore.ModuleCoreNature</projectnature>
> >                                         </additionalProjectnatures>
> >                                         <classpathContainers>
> >
> > <classpathContainer>org.
eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>
> >
> > <classpathContainer>org. eclipse.jst.j2ee.internal.module.
> container</classpathContainer>
> >                                         </classpathContainers>
> >                                 </configuration>
> >                         </plugin>
> >
> > Important: wtpdefaultserver and version must be defined.
> >
> > And the you must ensure to pass the runtime argument
> > -Declipse.workspace
>
> > to the eclipse:eclipse mojo.
> >
> >
> > Kuno
> >
> > -----Ursprüngliche Nachricht-----
> > Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> > Gesendet: Mittwoch, 14. Mai 2008 08:43
> > An: users@maven.apache.org
> > Cc: [EMAIL PROTECTED]
> > Betreff: maven-eclipse-plugin: Facet Issues
> >
> >
> > Hi All.
> >
> >         Using V2.5.1 of the maven-eclipse-plugin, I have some issues
> > in getting the generated artifacts being correct.
> >
> > Take this section of the POM:
> >
> > <additionalProjectFacets>
> >     <jst.java>5.0</jst.java>
> >     <jst.ejb>2.1</jst.ejb>
> >
> > <com.ibm.websphere.extended.ejb>6.1</com.ibm.websphere.extended.ejb>
> > </additionalProjectFacets>
> >
> > Generates this:
> >
> > <faceted-project>
> >   <fixed facet="jst.java"/>
> >   <fixed facet="jst.utility"/>
> >   <installed facet="jst.utility" version="1.0"/>
> >   <installed facet="jst.java" version="5.0"/>
> >   <installed facet="com.ibm.websphere.extended.ejb" version="6.1"/>
> >   <installed facet="jst.ejb" version="2.1"/>
> >   <installed facet="jst.java" version="5.0"/> </faceted-project>
> >
> > You'll see that the jst.java facet is in there twice.
> >
> > Removing the facet from the list:
> >
> > <additionalProjectFacets>
> >     <jst.ejb>2.1</jst.ejb>
> >
> > <com.ibm.websphere.extended.ejb>6.1</com.ibm.websphere.extended.ejb>
> > </additionalProjectFacets>
> >
> > Generates this:
> >
> > <faceted-project>
> >   <fixed facet="jst.java"/>
> >   <fixed facet="jst.utility"/>
> >   <installed facet="jst.utility" version="1.0"/>
> >   <installed facet="jst.java" version="5.0"/>
> >   <installed facet="com.ibm.websphere.extended.ejb" version="6.1"/>
> >   <installed facet="jst.ejb" version="2.1"/> </faceted-project>
> >
> > Which is a little more correct.
> >
> > I consider this a bug, as the facets (by their very definition) are
> > unique and should not be repeated.
> >
> > Additionally, when compared to a RSA (V7) generated one, it is
> > missing the standard XML header:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> >
> > Also, where does the jst.utility facet come from?
> >
> > It's inclusion is getting in the way of RSA recognising it as a true
> J2EE
> > component project (the EJB Deployment descriptor tree element does
> > not display in the Project Explorer view in the J2EE Perspective).
> >
> > This is the complete RSA generated one, for reference:
> >
> > <?xml version="1.0" encoding="UTF-8"?>
> > <faceted-project>
> >   <runtime name="WebSphere Application Server v6.1"/>
> >   <fixed facet="jst.ejb"/>
> >   <fixed facet="jst.java"/>
> >   <installed facet="jst.ejb" version="2.1"/>
> >   <installed facet="jst.java" version="5.0"/>
> >   <installed facet="com.ibm.websphere.extended.ejb" version="6.1"/>
> > </faceted-project>
> >
> > (Which raises another question, how do we specify the runtime items
> > and if something is fixed or not?)
> >
> > However, to get it to be correctly recognised, all we need is this:
> >
> > <faceted-project>
> >   <fixed facet="jst.java"/>
> >   <installed facet="jst.java" version="5.0"/>
> >   <installed facet="jst.ejb" version="2.1"/>
> >   <installed facet="com.ibm.websphere.extended.ejb" version="6.1"/>
> > </faceted-project>
> >
> > I hope that you can help.
> >
> > -Chris
> >
> >
> > ********************************************************************
> > **
> > CAUTION - This message is intended for the addressee named above. It
> > may
>
> > contain privileged or confidential information.
> >
> > If you are not the intended recipient of this message you must:
> > - Not use, copy, distribute or disclose it to anyone other than the
> addressee;
> > - Notify the sender via return email; and
> > - Delete the message (and any related attachments) from your
> > computer
> immediately.
> >
> > Internet emails are not necessarily secure. Australian Associated
> > Motors
>
> > Insurers Limited ABN 92 004 791 744 (AAMI), and its related
> > entities, do
>
> > not accept responsibility for changes made to this message after it
> > was
> sent.
> >
> > Unless otherwise stated, views expressed within this email are the
> > author's own and do not represent those of AAMI.
> > ********************************************************************
> > **
> >
> > --------------------------------------------------------------------
> > -
> > 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]
> >
> >
> > The following message has been automatically added by the Internet
> > mail gateway to comply with the Group's Information Security
> > requirements.
> >
> > "This e-mail has arrived via the Internet, and therefore you should
> > be cautious about its origin and content. Replies which contain
> > sensitive information and / or legal/contractual obligations are
> > particularly
> vulnerable.
> >
> > In these cases you should not reply unless you are authorised to do
> > so, and adequate encryption is employed."
> >
> > If you have any questions, please contact the IS Service Desk.
>
>
> **********************************************************************
> CAUTION - This message is intended for the addressee named above. It
> may

> contain privileged or confidential information.
>
> If you are not the intended recipient of this message you must:
> - Not use, copy, distribute or disclose it to anyone other than the
addressee;
> - Notify the sender via return email; and
> - Delete the message (and any related attachments) from your computer
immediately.
>
> Internet emails are not necessarily secure. Australian Associated
> Motors

> Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities,
> do

> not accept responsibility for changes made to this message after it
> was
sent.
>
> Unless otherwise stated, views expressed within this email are the
> author's own and do not represent those of AAMI.
> **********************************************************************
>
> ---------------------------------------------------------------------
> 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]
>
>
> The following message has been automatically added by the Internet
> mail gateway to comply with the Group's Information Security
> requirements.
>
> "This e-mail has arrived via the Internet, and therefore you should be
> cautious about its origin and content. Replies which contain sensitive
> information and / or legal/contractual obligations are particularly
vulnerable.
>
> In these cases you should not reply unless you are authorised to do
> so, and adequate encryption is employed."
>
> If you have any questions, please contact the IS Service Desk.


**********************************************************************
CAUTION - This message is intended for the addressee named above. It may 
contain privileged or confidential information.

If you are not the intended recipient of this message you must:
- Not use, copy, distribute or disclose it to anyone other than the addressee;
- Notify the sender via return email; and
- Delete the message (and any related attachments) from your computer 
immediately.

Internet emails are not necessarily secure. Australian Associated Motors 
Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not 
accept responsibility for changes made to this message after it was sent.

Unless otherwise stated, views expressed within this email are the author's own 
and do not represent those of AAMI.
**********************************************************************

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