A little investigation into the wiki has shown me the light...  I was able
to upload a sample project in a ZIP format.

-----Original Message-----
From: Sonnek, Ryan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 15, 2004 11:38 AM
To: 'Maven Users List'
Subject: RE: single artifact mantra and ejb projects

You have to make sure all the properties files contain no extra space after
the value.  Clear those out and you won't have a problem (ie: change
maven.multiproject.type=jar_ to maven.multiproject.type=jar).  

The jboss plugin is version 1.2b4 because the final 1.2 module is not on
ibiblio.  I've put in a JIRA request for it to be uploaded, but it hasn't
been done yet.  I don't know if there was a reason it was not put on
ibiblio, or if it was just accidentally overlooked.

If I knew how to attach a zip file of the sample to the wiki I certainly
would!  I have never done that before, so if there's a way, let me know and
I'll put it up there.

The eclipse dependency is used to "map" the EJB classes to their interfaces.
In my example, I package the EJB interfaces and Data Objects (or value
objects), into the ejb-client.  IMO, this is the easiest way for 3rd party
apps to gain access to your application.  They only need this one jar file
and they're good to go.  Because the data objects are in the ejb-client
subproject, and the data objects are used within the signatures of the ejb
java code, there is a dependency between the two.  You'll notice that in the
ejb's maven.xml, I intentionally delete the interfaces and data objects
after they are generated to avoid duplicate classes existing.  

Feel free to ask any other questions, or if you think there is a better way,
I'd love to hear it!

Ryan

-----Original Message-----
From: Rob Moore [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 15, 2004 11:02 AM
To: Maven Users List
Subject: Re: single artifact mantra and ejb projects

Ryan,

First off all, many thanks for your continued work on the wiki entry.

Here are some questions/points:

1. Might I suggest that you add a jar/zip file containing the example code?

2. What is the eclipse.dependency declaration do in the ejb project.xml? 
It seems odd to see it in the ejb project.xml. I guess I'd assume it 
would be in the ejb-client  project.xml if it depends on the ejb project.

3. I noticed that you are referencing version 1.2b4 of the 
xdoclet-jboss-module. Is there a reason you are using that version and 
not 1.2 (as you do everywhere else)?

<dependency>
   <groupId>xdoclet</groupId>
   <artifactId>xdoclet-jboss-module</artifactId>
   <version>1.2b4</version>
   <url>http://xdoclet.sourceforge.net</url>
</dependency>

4. I just created the project using the changes you posted and I get the 
following error:

BUILD FAILED
File...... file:/C:/Documents and 
Settings/Rob/.maven/plugins/maven-multiproject-plugin-1.1/
Element... maven:reactor
Line...... 174
Column.... 9
Unable to obtain goal [multiproject:install-callback] -- 
file:/C:/Documents and 
Settings/Rob/.maven/plugins/maven-multiproject-plugin-1.1/:210:61: 
<attainGoal> No goal [jar :install]
Total time: 12 seconds
Finished at: Thu Jan 15 10:54:45 CST 2004

Notice the space between 'jar' and ':install' on the attainGoal line. 
Also, I have a project of my own built using the guidelines you put 
forward and I see something similar when I try to run maven 
multiproject:install in my root project, except the line is 'No goal 
[ejb: install]'.

Rob

Sonnek, Ryan wrote:
> Thanks for the response Rob.  I went through the documentation I had
posted
> and updated a couple things (eclipse explanation, changing "common" to
> "ejb-client", some of the maven script).  I had the same problem as you,
and
> I fixed it by making sure that all of my property files didn't have an
extra
> space at the end of each line.  That will throw off pretty much
everything.
> 
> If you could try again (maybe grab the updated files off the wiki), and
let
> me know if you have any other problems.
> 
> Thanks!
> Ryan


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

Reply via email to