Re: [M2] maven-ear-plugin

2005-09-12 Thread Edward Yakop
This is what I have in my pom.xml:


  4.0.0
  com.tokuii.serverside.baseapp
  bsp-ear
  1.0-SNAPSHOT
  Baseapp - EAR
  http://www.tokuii.com
  ear
  
com.tokuii.serverside
baseapp
1.0-SNAPSHOT
  
  

  
org.apache.maven.plugins
maven-ear-plugin

  

  true

  
  true

  

  
  

  com.tokuii.serverside.baseapp.presentation.flash
  bsp-pl-fls-ejb
  1.0-SNAPSHOT
  ejb


  com.tokuii.serverside.baseapp.presentation.flash
  bsp-pl-fls-web
  1.0-SNAPSHOT
  war

  


and maven 2 produce the ear accordingly.

Regards,
Edward Yakop

On 9/12/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> It seems I didn't send my reply, so if it arrives twice, my apologies.
> 
> garg-ejb is declared as ejb packaging.
> 
> No modules declarations at all appear in the application xml. This is
> what it has:
> 
> 
> http://java.sun.com/xml/ns/j2ee";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"; version="1.4">
>garg-ear
>Garg Application EAR Package with EJBs and
> Jars
> 
> 
> Edward Yakop on 12/09/05 08:06, wrote:
> > what is garg-ejb packaging? an ejb packaging?
> >
> > regards,
> > Edward Yakop
> >
> > Note: By default, all dependency will not be generated inside
> > application.xml unless if it is either ejb-client, ejb or war.
> >
> > On 9/11/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> >
> >>I'm bootstrapping m2 from svn source and I cannot work out how to get
> >>maven-ear-plugin to enter the module list into the application.xml.
> >>
> >>My application.xml contains only the project description and that's it.
> >>
> >>I've looked in the source code and it seems that the
> >>GenerateApplicationXmlMojo is not getting any modules in its modules
> >>collection - but if you look at my pom below, you'll see that the
> >>modules are all set up there (and the .ear file looks good apart from
> >>this application.xml).
> >>
> >>Any help would be gladly received!
> >>
> >>Here's my 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
> >>   org.garg
> >>   garg-ear
> >>   ear
> >>   1.0-SNAPSHOT
> >>   Garg EAR
> >>   Garg Application EAR Package with EJBs and
> >>Jars
> >>   http://www.garg.com
> >>   
> >> 
> >>   org.garg
> >>   garg-delegate
> >>   1.0-SNAPSHOT
> >>   compile
> >> 
> >> 
> >>   org.garg
> >>   garg-ejb
> >>   1.0-SNAPSHOT
> >>   compile
> >> 
> >>   
> >>   
> >> 
> >>   
> >> maven-ear-plugin
> >> 2.0-beta-1-SNAPSHOT
> >> 
> >>   1.4
> >>   
> >> 
> >>   true
> >> 
> >>   
> >> 
> >> 
> >>   
> >> 
> >>   generate-application-xml
> >>   ear
> >> 
> >>   
> >> 
> >>   
> >> 
> >>   
> >>   
> >> ../garg-dto
> >> ../garg-subdto
> >> ../garg-remote
> >> ../garg-delegate
> >> ../garg-ejb
> >>   
> >>
> >>
> 
> -
> 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: [M2] maven-ear-plugin

2005-09-12 Thread Edward Yakop
what is garg-ejb packaging? an ejb packaging?

regards,
Edward Yakop

Note: By default, all dependency will not be generated inside
application.xml unless if it is either ejb-client, ejb or war.

On 9/11/05, Adam Hardy <[EMAIL PROTECTED]> wrote:
> I'm bootstrapping m2 from svn source and I cannot work out how to get
> maven-ear-plugin to enter the module list into the application.xml.
> 
> My application.xml contains only the project description and that's it.
> 
> I've looked in the source code and it seems that the
> GenerateApplicationXmlMojo is not getting any modules in its modules
> collection - but if you look at my pom below, you'll see that the
> modules are all set up there (and the .ear file looks good apart from
> this application.xml).
> 
> Any help would be gladly received!
> 
> Here's my 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
>org.garg
>garg-ear
>ear
>1.0-SNAPSHOT
>Garg EAR
>Garg Application EAR Package with EJBs and
> Jars
>http://www.garg.com
>
>  
>org.garg
>garg-delegate
>1.0-SNAPSHOT
>compile
>  
>  
>org.garg
>garg-ejb
>1.0-SNAPSHOT
>compile
>  
>
>
>  
>
>  maven-ear-plugin
>  2.0-beta-1-SNAPSHOT
>  
>1.4
>
>  
>true
>  
>
>  
>  
>
>  
>generate-application-xml
>ear
>  
>
>  
>
>  
>
>
>  ../garg-dto
>  ../garg-subdto
>  ../garg-remote
>  ../garg-delegate
>  ../garg-ejb
>
> 
> 
> -
> 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: [m2] how do I invoke a plugin

2005-09-05 Thread Edward Yakop
1. Check your plugin.xml.
2. Right at the bottom you will find something like
Note: this is taken from maven-jar-plugin
  
${project.build.outputDirectory}
${project}
${project.build.directory}
${project.build.finalName}
  

Anything in between  can be passed via  inside pom.xml
  
...


  

  maven-eclipseproject-plugin
  
bla 
  

  



  

Regards,
Edward Yakop

On 9/5/05, Ashley Williams <[EMAIL PROTECTED]> wrote:
> Great that does work (when I tag :version on the end as well).
> 
> However I can't get it to recognize my @parameter values when I
> specify them as -D command line variables. Is there some other way to
> smuggle them in??
> 
> 
> 
> On 10 Sep 2005, at 10:03, Johnny R. Ruiz wrote:
> 
> > Ashley Williams wrote:
> >
> >
> >> I've written a simple plugin that I wish to call from the command
> >> line rather than as part of the project, just like m2 clean:clean,
> >> so  as such I've used the 'execute' goal annotation.
> >>
> >> However no matter what I try maven seems to look for a RELEASE
> >> plugin  somewhere in the org.apache package structure. For example
> >> specifying  -Dpackage -Dversion settings didn't work. Additionally
> >> there will be additional configuration settings I'd need to
> >> specify depending on  the project.
> >>
> >> Any ideas?
> >>
> >> -
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> > have you tried  "m2 groupId:artifactId:goal"?
> >
> > -
> > 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: Demo application based on JBoss DVD trailblaizer

2005-09-05 Thread Edward Yakop
Whoops.
I just realised even if we can create the .par extension,
maven-install-plugin will not take the generate .par file because the
jar, nor maven-ear-plugin can handle .par file

 java.lang.IllegalStateException: Could not handle artifact type[par]
at 
org.apache.maven.plugin.ear.EarModuleFactory.newEarModule(EarModuleFactory.java:61)

I guessed, if approved, in order to tackle this problem properly
maven-install-plugin + maven-ear-plugin needs to be tweaked.

Regards,
Edward Yakop

Note: I just realised that you submit MNG-699 in jira. I apologise to
take initiative to create the JarMojo patch.

On 9/5/05, Edward Yakop <[EMAIL PROTECTED]> wrote:
> Have you look at  node?
> Look at
> http://jira.codehaus.org/browse/MNG-743 and download the
> sample-m2-project.jar from the attachement.
> 
> I.E.
>
>   
>  
>  net.bzdyl.demo
> demo-par
> 1.0
>  
>
> 
> Note: by default maven-jar-plugins hardcoded the .jar file name
> extension. I don't think it's hard to patch the
> maven-components/maven-plugins/maven-jar-plugin/src/main/java/org/apache/maven/plugin/jar/JarMojo.java
> file to suport this feature.
> 
> Regards,
> Edward Yakop
> 
> Note:
> The attached file is a sample implementation of JarMojo.
> 
> To use:
> 0. Check out maven-source tree
> svn co https://svn.apache.org/repos/asf/maven/components/trunk
> maven-components
> or follow
> http://maven.apache.org/maven2/developers/building.html
> 
> 1. Update JarMojo.java
> 
> Replace the JarMojo.java inside
>
> maven-components/maven-plugins/maven-jar-plugin/src/main/java/org/apache/maven/plugin/jar
>and
>cd maven-components/maven-plugins/maven-jar-plugin ; m2 install
> 
> 2. Replace pom.xml of demo-par dir.
> 
> 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
>   
> net.bzdyl.demo
> demo
> 1.0-SNAPSHOT
>   
>   net.bzdyl.demo
>   demo-par
>   1.0-SNAPSHOT
>   jar
>   
> 
>   
> org.apache.maven.plugins
> maven-jar-plugin
> 
>   par 
> 
>   
> 
>   
>   
> 
>   javax.persistence
>   ejb
>   3.0-public_review
>   compile
> 
>   
> 
> 
> On 9/5/05, Piotr Bzdyl <[EMAIL PROTECTED]> wrote:
> >
> > >>Additional info: Maven 2 revision I used is: 278636.
> > >>
> > >>And one additional question:
> > >>
> > >>Can I specify version in the parent pom and use inherited value in
> > >>subprojects or I have to specify version separately in every pom.xml?
> > >>
> > >>
> > >
> > >You do not have to specify the version in the pom, it will use the one
> > >stated in the  element.
> > >
> > >
> > What about dependencies in the dependent projects, for example:
> > I specify in the parent pom.xml version 2.1. Then what I should write in
> > the demo-ejb pom.xml in the version attribute:
> > 
> >   net.bzdyl.demo
> >   demo-par
> >   
> >   par
> >   compile
> > 
> >
> > I would like to use the same version as the demo-ejb version (without
> > specifing it literally).
> >
> > Best regards,
> > Piotrek
> >
> > -
> > 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: Demo application based on JBoss DVD trailblaizer

2005-09-05 Thread Edward Yakop
Have you look at  node?
Look at 
http://jira.codehaus.org/browse/MNG-743 and download the
sample-m2-project.jar from the attachement.

I.E.
   
  
 
 net.bzdyl.demo
demo-par
1.0
 
   

Note: by default maven-jar-plugins hardcoded the .jar file name
extension. I don't think it's hard to patch the
maven-components/maven-plugins/maven-jar-plugin/src/main/java/org/apache/maven/plugin/jar/JarMojo.java
file to suport this feature.

Regards,
Edward Yakop

Note: 
The attached file is a sample implementation of JarMojo.

To use:
0. Check out maven-source tree
svn co https://svn.apache.org/repos/asf/maven/components/trunk
maven-components
or follow
http://maven.apache.org/maven2/developers/building.html

1. Update JarMojo.java

Replace the JarMojo.java inside 
   
maven-components/maven-plugins/maven-jar-plugin/src/main/java/org/apache/maven/plugin/jar
   and
   cd maven-components/maven-plugins/maven-jar-plugin ; m2 install

2. Replace pom.xml of demo-par dir.

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
  
net.bzdyl.demo
demo
1.0-SNAPSHOT
  
  net.bzdyl.demo
  demo-par
  1.0-SNAPSHOT
  jar
  

  
org.apache.maven.plugins
maven-jar-plugin

  par 

  

  
  

  javax.persistence
  ejb
  3.0-public_review
  compile

  


On 9/5/05, Piotr Bzdyl <[EMAIL PROTECTED]> wrote:
> 
> >>Additional info: Maven 2 revision I used is: 278636.
> >>
> >>And one additional question:
> >>
> >>Can I specify version in the parent pom and use inherited value in
> >>subprojects or I have to specify version separately in every pom.xml?
> >>
> >>
> >
> >You do not have to specify the version in the pom, it will use the one
> >stated in the  element.
> >
> >
> What about dependencies in the dependent projects, for example:
> I specify in the parent pom.xml version 2.1. Then what I should write in
> the demo-ejb pom.xml in the version attribute:
> 
>   net.bzdyl.demo
>   demo-par
>   
>   par
>   compile
> 
> 
> I would like to use the same version as the demo-ejb version (without
> specifing it literally).
> 
> Best regards,
> Piotrek
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
>
package org.apache.maven.plugin.jar;

/*
 * Copyright 2001-2005 The Apache Software Foundation.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *  http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

import org.apache.maven.archiver.MavenArchiveConfiguration;
import org.apache.maven.archiver.MavenArchiver;
import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
import org.apache.maven.project.MavenProject;

import java.io.File;

/**
 * @author Emmanuel Venisse
 * @version $Id: JarMojo.java 225731 2005-07-28 09:32:32Z brett $
 * @goal jar
 * @phase package
 * @description build a jar
 */
public class JarMojo
extends AbstractMojo
{

private static final String[] DEFAULT_EXCLUDES = new 
String[]{"**/package.html"};

private static final String[] DEFAULT_INCLUDES = new String[]{"**/**"};

/**
 * @todo Change type to File
 * 
 * @parameter expression="${project.build.directory}"
 * @required
 * @readonly
 */
private String basedir;

/**
 * @parameter alias="jarName" expression="${project.build.finalName}"
 * @required
 */
private String finalName;

/**
 * @parameter alias="jarNameExt" expression="${project.build.finalNameExt}"
 * default-value="jar"
 * @required
 */
private String finalNameExt = "jar";

/**
 * @parameter expression="${project.build.outputDirectory}"
 * @required
 * @readonly
 */
private String outputDirectory;

/**
 * @parameter expression="${project}"
 * @required
 * @readonly
 */
private MavenP

Re: downloading Maven source code from SVN

2005-09-01 Thread Edward Yakop

Hi,

To be honest,  I have no idea. I only suggest that because my company 
svn+apache server often has exactly the same issue.


Regards,
Edward

Michael McCrann wrote:


Edward,

Fantastic, that worked.

Out of curiosity, do you know why HTTPS works but HTTP doesn't?

Michael

-Original Message-
From: Edward Yakop [mailto:[EMAIL PROTECTED]
Sent: Friday, 2 September 2005 10:11 AM
To: Maven Users List
Subject: Re: downloading Maven source code from SVN


Hi,

How about using https protocol (svn co https://svn.apache.org ...).

Regards,
Edward

Trygve Laugstøl wrote:


On Fri, Sep 02, 2005 at 08:03:50AM +1000, Michael McCrann wrote:

I am trying to download the Maven source code from SVN. To do this, 
I am using the commands on the Maven website:


svn co http://svn.apache.org/repos/asf/maven/maven-1/core/trunk 
maven-1/core/trunk
svn co http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk 
maven-1/plugins/trunk


But I get errors (below); am I doing something wrong?


svn co http://svn.apache.org/repos/asf/maven/maven-1/core/trunk 
maven-1/core/trunk



svn: PROPFIND request failed on '/repos/asf/maven/maven-1/core/trunk'
svn: PROPFIND of '/repos/asf/maven/maven-1/core/trunk': 500 Server 
Error (http://svn.apache.org)


svn co http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk 
maven-1/plugins/trunk



svn: PROPFIND request failed on '/repos/asf/maven/maven-1/plugins/trunk'
svn: PROPFIND of '/repos/asf/maven/maven-1/plugins/trunk': 500 
Server Error (http://svn.apache.org)



Seems like the repository has some internal errors, it's been known to
happen from time to time. Please try again later.

--
Trygve



NOTICE
This e-mail and any attachments are confidential and may contain 
copyright material of Macquarie Bank or third parties. If you are 
not the intended recipient of this email you should not read, print, 
re-transmit, store or act in reliance on this e-mail or any 
attachments, and should destroy all copies of them. Macquarie Bank 
does not guarantee the integrity of any emails or any attached 
files. The views or opinions expressed are the author's own and may 
not reflect the views or opinions of Macquarie Bank.



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



NOTICE
This e-mail and any attachments are confidential and may contain 
copyright material of Macquarie Bank or third parties. If you are not 
the intended recipient of this email you should not read, print, 
re-transmit, store or act in reliance on this e-mail or any 
attachments, and should destroy all copies of them. Macquarie Bank 
does not guarantee the integrity of any emails or any attached files. 
The views or opinions expressed are the author's own and may not 
reflect the views or opinions of Macquarie Bank.







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



Re: downloading Maven source code from SVN

2005-09-01 Thread Edward Yakop

Hi,

How about using https protocol (svn co https://svn.apache.org ...).

Regards,
Edward

Trygve Laugstøl wrote:


On Fri, Sep 02, 2005 at 08:03:50AM +1000, Michael McCrann wrote:


I am trying to download the Maven source code from SVN. To do this, I am using 
the commands on the Maven website:

svn co http://svn.apache.org/repos/asf/maven/maven-1/core/trunk 
maven-1/core/trunk
svn co http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk 
maven-1/plugins/trunk

But I get errors (below); am I doing something wrong?



svn co http://svn.apache.org/repos/asf/maven/maven-1/core/trunk 
maven-1/core/trunk


svn: PROPFIND request failed on '/repos/asf/maven/maven-1/core/trunk'
svn: PROPFIND of '/repos/asf/maven/maven-1/core/trunk': 500 Server Error 
(http://svn.apache.org)


svn co http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk 
maven-1/plugins/trunk


svn: PROPFIND request failed on '/repos/asf/maven/maven-1/plugins/trunk'
svn: PROPFIND of '/repos/asf/maven/maven-1/plugins/trunk': 500 Server Error 
(http://svn.apache.org)



Seems like the repository has some internal errors, it's been known to
happen from time to time. Please try again later.

--
Trygve




NOTICE
This e-mail and any attachments are confidential and may contain copyright 
material of Macquarie Bank or third parties. If you are not the intended 
recipient of this email you should not read, print, re-transmit, store or act 
in reliance on this e-mail or any attachments, and should destroy all copies of 
them. Macquarie Bank does not guarantee the integrity of any emails or any 
attached files. The views or opinions expressed are the author's own and may 
not reflect the views or opinions of Macquarie Bank.


-
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: [m2] Ear Plugin problem... Generating EAR from two WARs(subprojects)

2005-09-01 Thread Edward Yakop

Hi eric,

The way I solved this is by creating a pom porject that includes all 
three modules and make ear to contain only the dependency. I.e.


 [apps]
|-module-->[earBuilderProj]
|  |  |
|   depend  depend
|  |  |
| \|/ |
|-module-->[proj1]|
|\|/
|-module-->[proj2]


apps.pom


  4.0.0
  com.myco
  apps
  pom 
  1.0
  sub projects
  
earbuilderproj
proj1
proj2
  


And for each of child project (earbuilderproj, proj1 and proj2) will 
have an additional  xml node:



  4.0.0
  ...
  
com.myco
apps
1.0
  


Regards,
Edward


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



[m2] ear task problem/bug?

2005-09-01 Thread Edward Yakop

Maven version: 2.0-beta-1-SNAPSHOT  svn revision: 265679

Hi,


I am attempting to migrate an ear project from ant style to m2 project 
style.


In the high level project dependencies:

[ear] -depends-> [war]
 |
 |depends-> [ejb] -depends-> [persistence]
 |
 |depends-> [spring lib], 
[hibernate lib], etcs



--
pom.xml of ear
--

 4.0.0
 com.tokuii.serverside.baseapp.ear
 ear
 1.0-SNAPSHOT
 Baseapp - EAR
 ear
 
   
 com.tokuii.serverside.baseapp.flash
 war
 1.0-SNAPSHOT
 war
   
   
 com.tokuii.serverside.baseapp.flash
 ejb
 1.0-SNAPSHOT
 ejb
   
 

--

--
pom.xml of war
--

 4.0.0
 com.tokuii.serverside.baseapp.flash
 war
 1.0-SNAPSHOT
 Baseapp - WAR
 war
 
   
 servletapi
 servletapi
 2.3
 provided
   
 

--

--
pom.xml of ejb
--

 4.0.0
 com.tokuii.serverside.baseapp.flash
 ejb
 1.0-SNAPSHOT
 Baseapp - ejb
 ejb
 
   
 com.tokuii.serverside.baseapp
 persistence
 1.0-SNAPSHOT
   
   
 jboss
 jboss-j2ee
 3.2.3
 provided
   
 


--
pom.xml of persistence
--

 4.0.0
 com.tokuii.serverside.baseapp
 persistence
 1.0-SNAPSHOT
 Baseapp - persistence
 jar
 
   
 springframework
 spring
 1.2.4
   
   
 hibernate
 hibernate
 2.1.8
   
 


Questions:

1 How do I execute m2 to embed all the dependent artifacts into the ear 
and update the MANIFEST.MF of ejb project class path that the libraries 
are inside .ear file?


2 Is this a bug?

- 
The generated application.xml

-

http://java.sun.com/dtd/application_1_3.dtd";>

 ear
 
   ejb-1.0-SNAPSHOT.jar
 
 
   
 war-1.0-SNAPSHOT.war
 /war
   
 
 
   hibernate-2.1.8.jar
 
 
   spring-1.2.4.jar
 
 
   persistence-1.0-SNAPSHOT.jar
 

--
 Q: 2.1 Why would the dependency all the dependency of persistence is 
included as "ejb-client" of ejb? None of hibernate, spring, persistence 
should be included inside application.xml?


2.2 How do I make the /war to be any 
other name without modifying the artifactId?


and The ear file contains:
--
ejb-1.0-SNAPSHOT.jar
war-1.0-SNAPSHOT.war
hibernate-2.1.8.jar
spring-1.2.4.jar
...
--

2.3 Shouldn't all dependent libraries of hibernate and spring to be 
included inside ear? If no, how do I configure ear/ejb task to do so?


2.4 According to 
http://java.sun.com/j2ee/verified/packaging.html#checking end of 
paragraph. I should be able to configure the classpath inside 
ejb.jar/META-INF/MANIFEST.MF file. For example:


-
META-INF/MANIFEST.MF:
-
  Manifest-Version: 1.0
  Class-Path: spring-1.2.4.jar hibernate-2.1.8.jar ...
  Created-By: 1.4.2_05-b04 (Sun Microsystems Inc.)
---

3 How do I setup the existing ejb pom.xml in order for maven to 
generate "Class-Path" for all transitive dependency libraries?


Note: hibernate-2.1.6.pom, hibernate-2.1.7c.pom, hibernate-3.0.1.pom, 
hibernate-3.0.3.pom, hibernate-3.0.pom, and hibernate-2.1.8.pom is 
definitely broken:


This is 2.1.4:


4.0.0
hibernate
hibernate
2.1.4


commons-lang
commons-lang
1.0.1


dom4j
dom4j
1.4


commons-logging
commons-logging
1.0.3


commons-beanutils
commons-beanutils
1.6


commons-collections
commons-collections
3.0


cglib-full
cglib
2.0.1


bcel
bcel
5.0


log4j
log4j
1.2.8


geronimo-spec
geronimo-spec-jta
DEV


odmg
odmg
3.0





and this is 2.1.8:
--

4.0.0
hibernate
hibernate
2.1.8

--

Regards,
Edward


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



[m2] Problem with ear project.

2005-07-10 Thread Edward Yakop
Hi all,

I'm having difficulties setting up 'ear' project.
The following are the conditions:

The pom file:


  4.0.0
  ...
  ear
  ...



Directory structure:

.
|-- pom.xml
`-- src
`-- application
`-- META-INF
`-- application.xml

Note: Why application.xml needs to be put under src/application, instead of 
src/main/application?

The problem comes when "m2 install" is called.

[INFO] 

[INFO] Building Sample Project - EAR
[INFO] 

[ERROR] Nonexistent component: 
org.apache.maven.lifecycle.mapping.LifecycleMappingear
[ERROR] No lifecycle mapping for type 'ear': using defaults
[INFO] maven-resources-plugin: resolved to version 2.0-alpha-3 from local 
repository
[INFO] maven-compiler-plugin: resolved to version 2.0-alpha-3 from local 
repository
[INFO] maven-surefire-plugin: resolved to version 2.0-alpha-3 from local 
repository
[INFO] maven-jar-plugin: resolved to version 2.0-alpha-3 from local repository
[INFO] maven-source-plugin: resolved to version 2.0-alpha-2 from local 
repository
[INFO] maven-install-plugin: resolved to version 2.0-alpha-3 from local 
repository
[INFO] [resources:resources]
[INFO] sample-ejb: using locally installed snapshot
[INFO] sample-core: using locally installed snapshot
[INFO] sample-remoting: using locally installed snapshot
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] Setting reports dir: /home/efy/work/sample/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]
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /home/efy/work/sample/target/sample-ear-1.0-SNAPSHOT.jar
[INFO] [source:jar]
[INFO] Not producing source bundle for a SNAPSHOT build
[INFO] [install:install]
[INFO] Installing /home/efy/work/sample/target/sample-ear-1.0-SNAPSHOT.ear to 
/home/efy/.m2/repository/com/test/sample/1.0-SNAPSHOT/sample-ear-1.0-SNAPSHOT.ear
[INFO] 

[ERROR] BUILD ERROR
[INFO] 

[INFO] Diagnosis: Error installing artifact
[INFO] 



Notice at the start of m2 output:

[ERROR] Nonexistent component: 
org.apache.maven.lifecycle.mapping.LifecycleMappingear
[ERROR] No lifecycle mapping for type 'ear': using defaults


And at the bottom of m2 output:

[INFO] [jar:jar]
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /home/efy/work/sample/target/sample-ear-1.0-SNAPSHOT.jar
[INFO] [source:jar]
[INFO] Not producing source bundle for a SNAPSHOT build
[INFO] [install:install]
[INFO] Installing /home/efy/work/sample/target/sample-ear-1.0-SNAPSHOT.ear to 
/home/efy/.m2/repository/com/test/sample/1.0-SNAPSHOT/sample-ear-1.0-SNAPSHOT.ear


Is the reason m2 produced jar is because "ear" is not part lifecycle mapping? 
And if that's the case, how do I patch the source code to make ear as one of 
the 
lifecycle mapping?

Regards,
Edward


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