Re: tests throw java.lang.NoClassDefFoundError for MVN, JUnit 4 but not eclipse

2008-02-06 Thread Mark Eramo

Hi Steven,
My guess is there is a required jar in the eclipse classpath that is not 
in the Maven dependency section. You will just need to determine which 
jar this class is in. I'll bet that if you add this as a dependency 
inside the pom itself, these tests will work. You might need to compare 
the eclipse classpath to what you have in maven, there may be other jars 
missing as well.


Regards,
Mark


JavaGeek wrote:

Hello All,
I have a maven project with JUnit 4.0 unit tests.  Most of our unit tests
are failing in Surefire with the message pasted below.  However, all of the
unit tests work when launched from eclipse.  Does anyone have any ideas on
how to troubleshoot?

Thanks in Advance,
Steven


java.lang.NoClassDefFoundError
 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:585)
 at
org.junit.internal.runners.BeforeAndAfterRunner.invokeMethod(BeforeAndAfterRunner.java:74)
 at
org.junit.internal.runners.BeforeAndAfterRunner.runBefores(BeforeAndAfterRunner.java:50)
 at
org.junit.internal.runners.BeforeAndAfterRunner.runProtected(BeforeAndAfterRunner.java:33)
 at org.junit.internal.runners.TestClassRunner.run(TestClassRunner.java:52)
 at
org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:62)
 at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:138)
 at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:125)
 at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
 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:585)
 at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
 at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)

  


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



Re: EJB 2.0 Help

2008-01-24 Thread Mark Eramo

Hi Wayne,
 Yes, sorry, I meant the xdoclet plugin for the ejb-jar.xml I will take 
a look at the Hibernate plugin. I also have the option of doing it with 
Ant using the antrun plugin.


Thanks,
Mark


Wayne Fay wrote:

I believe this is simply a case of incorrect expectations on your part.

As far as I know, the maven-ejb-plugin has no ability to create the
ejb-jar.xml file for you. If you want this kind of functionality, then
you will need to look at using XDoclet or perhaps Hibernate plugins.

Wayne

On 1/23/08, Mark Eramo [EMAIL PROTECTED] wrote:
  

Hello,
   I have migrated our build process from Ant to Maven for all of our
projects except a few that generate EJB's. The current system we are
running in Production means that I have to build EJB's based on the 2.0
format thus they require an ejb-jar.xml and since we use JBOSS as our
application server, a jboss.xml as well.

I have not had any luck generating these with Maven. If you run the ejb
plugin and specify 3.0 format, it does not generate the ejb-jar.xml. If
you run it in 2.0 format, it says that the ejb-jar.xml does not exist.

Does anyone have experience generating the ejb-jar.xml with Maven or can
anyone point me to any online documentation that might help?

Regards,
Mark



-
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: EJB 2.0 Help

2008-01-24 Thread Mark Eramo

Hi Jeff,
  Thanks for the info. I have done some work on this with ant inside 
maven and will look at it further as well as looking at the Hibernate 
plugin.


Regards,
Mark



Jeff Mutonho wrote:

On Jan 23, 2008 5:12 PM, Mark Eramo [EMAIL PROTECTED] wrote:

  

Hello,
  I have migrated our build process from Ant to Maven for all of our
projects except a few that generate EJB's. T




Assuming you had an Ant task to generate the ejb-jar.xml file ,surely you
could reuse it with the maven-antrun-plugin ?
  


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



EJB 2.0 Help

2008-01-23 Thread Mark Eramo

Hello,
  I have migrated our build process from Ant to Maven for all of our 
projects except a few that generate EJB's. The current system we are 
running in Production means that I have to build EJB's based on the 2.0 
format thus they require an ejb-jar.xml and since we use JBOSS as our 
application server, a jboss.xml as well.


I have not had any luck generating these with Maven. If you run the ejb 
plugin and specify 3.0 format, it does not generate the ejb-jar.xml. If 
you run it in 2.0 format, it says that the ejb-jar.xml does not exist.


Does anyone have experience generating the ejb-jar.xml with Maven or can 
anyone point me to any online documentation that might help?


Regards,
Mark



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



Re: how can I to use build time in pom files

2008-01-18 Thread Mark Eramo

Rex,
  Have a look at the Maven build number plugin. It may be able to do 
what you need.


*http://commons.ucalgary.ca/projects/maven-buildnumber-plugin/howto.html*

Regards,
Mark


Rex Huang wrote:

Does maven has build time property, which I can use in pom files
my-property${build time}my-property

BR//Rex

  


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



Re: Error by running mvn package

2008-01-16 Thread Mark Eramo

Hi Thomas,
   Do you have the compiler plugin defined in your pom? At a minimum, 
you need to have this defined.


* plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-compiler-plugin/artifactId
  configuration
compilerArgument-verbose /compilerArgument
source1.5/source
target1.5/target
  /configuration
/plugin*

If you have a parent and child pom, you should have this in BOTH places.

Regards,
Mark


Thomas Chang wrote:

Hi all,
   
  I use Eclipse Europa and I set both the JRE and compiler to JDK 1.5. But as I run mvn oackage I got error as follow:
   
  E:\Projekte\TestSpringToplinkFaceletsTomahawk\src\main\java\wei\spring\jsf\test\

DeleteDataFromTable.java:[18,20] generics are not supported in -source 1.3
(try -source 1.5 to enable generics)
ListUser userList = userDao.findAll();
   
  Someone knows how can I fix it?
   
  Regrads
   
  Thomas



   
-
Jetzt Mails schnell in einem Vorschaufenster überfliegen. Dies und viel mehr bietet das  neue Yahoo! Mail. 
  


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



Re: Bootstrapping problem with parent POM

2007-12-07 Thread Mark Eramo

Dirk,
  I define the repositories in the *settings.xml *file, which lives in 
the */.m2 *folder and it seems to work fine.


I also have a parent pom that lives in the repository and is referenced 
in all my child poms. When I build a single child project, it finds the 
parent pom in the repository no problem. Are you having a problem when 
your trying to build against the parent pom?


Regards,
Mark

Dirk Olmes wrote:

Siegmann Daniel, NY schrieb:

I unhappily stumbled across a bootstrapping problem. My project's parent
POM defines the internal repository - the same repository where the
parent POM is located. So there is no way for Maven to get the parent
POM.

Is there any way to specify a repository URL on the command line so
Maven can download the parent POM? I searched the mailing list archives
and the Maven website, as well as the general Internet, but turned up
nothing.


Seems like you got bitten by http://jira.codehaus.org/browse/MNG-3099

-dirk

-
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: Maven2 Xdoclet Plugin - Project Source Dir

2007-12-03 Thread Mark Eramo
Hi Brian,
   I do this for one of my projects, although I am just using the jar-plugin 
but this should work for any plugin.
In your pom.xml you sould have a build tag. At the start of the build tag, 
add the following:
 
sourceDirectoryyour src path/sourceDirectory
 
Regards,
Mark



From: Brian Ashburn [mailto:[EMAIL PROTECTED]
Sent: Mon 12/3/2007 10:47 AM
To: users@maven.apache.org
Subject: Maven2 Xdoclet Plugin - Project Source Dir



Has anyone been able to work through or dealt with using a different project
source directory than src/main/java?  I'm trying to get Maven2 building a
legacy system.  I don't have the luxury of changing the source directory.  I
set it in the project.build.sourceDirectory, but the xdoclet plugin doesn't
pick it up.  Any help would be greatly appreciated.

-BA




RE: file exclude in the pom

2007-12-03 Thread Mark Eramo
There was a bug in the jar-plugin that prevented this from working. In order to 
get it working for the jar, I had to downlaod a 2.2-SNAPSHOT version of the jar 
that contained the fix. My guess is that it is also broken in the war-plugin 
and may need to be fixed there, I have the same problem when I use the 
EJBplugin.
 
Check out the nabble forums (www.nabble.com) and search in the maven-users 
section. You might find more info there.
 
Regards,
Mark



From: Alexandre Nshimiyimana [mailto:[EMAIL PROTECTED]
Sent: Mon 12/3/2007 8:32 AM
To: users@maven.apache.org
Subject: file exclude in the pom



This  don't work when I try to exclude some files from my war like this:


/configuration
excludes
 * exclude**/pdf/*.pdf/exclude
  exclude**/travail/*.xml/exclude
* /excludes
 /configuration


Cheers,



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

Re: Changing the working rirectory sub folder names

2007-10-05 Thread Mark Eramo
I wanted to use something else so that if I have to go to the actual 
build directory itself to get artifacts, I do not have to search through 
different folders. For example, with a typical build, I may have to 
deploy some xml files. I suppose I can just use Continuum to get all the 
files I need.


Multiple branches of will be maintained by version. For example, 1.1, 
1.2, 1.3, etc so I wanted to simply name the directory foo versus foo-1.1


Thanks for the info.

Regards,
Mark

Emmanuel Venisse wrote:



Mark Eramo a écrit :

Hello,
 I was wondering, does anyone know if there is a way to set the names 
of the folders that hold the build output?


no, the folder name is the project id and can't be modified actually.

Why do you want to use something else?



For example, in the Configuration section, I set the Working 
Directory to: */home/build/builds*


If I build project *foo*, the output of this directory goes into: 
*/home/build/builds/1


*I would like it to go into: */home/build/builds/foo

*Is there a setting somewhere that will allow me to for example, use 
the Maven2 articaftId as the folder name or to somehow set it per 
project?


no. In the development process, the artifactId can be changed so I 
think it's better to be independant of it.

How will you resolve multiple branches of the same project if you use it?
artifactId is a maven thing but Continuum support ant and shell script 
projectsthat don't have an artifactId.


Emmanuel



Changing the working rirectory sub folder names

2007-10-04 Thread Mark Eramo

Hello,
 I was wondering, does anyone know if there is a way to set the names 
of the folders that hold the build output?


For example, in the Configuration section, I set the Working Directory 
to: */home/build/builds*


If I build project *foo*, the output of this directory goes into: 
*/home/build/builds/1


*I would like it to go into: */home/build/builds/foo

*Is there a setting somewhere that will allow me to for example, use the 
Maven2 articaftId as the folder name or to somehow set it per project?


Regards,
Mark



Excluding files from a jar

2007-09-21 Thread Mark Eramo
I have been trying to exclude certain files from the jar however it does 
not seem to be working. I am trying to do this with the include and 
exclude switches. I searched the mailing list and some posts say this 
should work, others say no so I am trying to find out if anyone has 
accomplished this with Maven 2.0.


For example, I have this in my pom.xml:

resources
 resource
directory${basedir}/target/directory
excludes
  exclude**/web/handlers/**/*.*/exclude
/excludes
 /resource
 resource
directory${basedir}/directory
includes
  includeReleaseNotes.txt/include
/includes
 /resource
  /resources

Now the include works, it adds the release notes to the jar but the 
exclude does not work. Very strange. Any ideas or comments on how to 
accomplish this would be much appreciated.
I know I could do it with the ant plugin after the compile phase (move 
the code I do not want out of the target folder) but I was hoping I 
could simply accomplish this with the excludes switch.


Regards,
Mark


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



Re: Excluding files from a jar

2007-09-21 Thread Mark Eramo
Thanks for the links Robert. Based on the 2nd link, it looks like there 
is some sort of patch for the plugin.
Is this something that I can install locally and if so, can you 
recommend the best way to do this?


Regards,
Mark

[EMAIL PROTECTED] wrote:

Known issue. check out these links.

http://www.nabble.com/forum/Search.jtp?forum=178local=yquery=MJAR-30 
(previous discussion)

http://jira.codehaus.org/browse/MJAR-30 (patch)


Mark Eramo [EMAIL PROTECTED] wrote on 09/21/2007 01:44:57 PM:

  
I have been trying to exclude certain files from the jar however it does 



  
not seem to be working. I am trying to do this with the include and 
exclude switches. I searched the mailing list and some posts say this 
should work, others say no so I am trying to find out if anyone has 
accomplished this with Maven 2.0.


For example, I have this in my pom.xml:

 resources
  resource
 directory${basedir}/target/directory
 excludes
   exclude**/web/handlers/**/*.*/exclude
 /excludes
  /resource
  resource
 directory${basedir}/directory
 includes
   includeReleaseNotes.txt/include
 /includes
  /resource
   /resources

Now the include works, it adds the release notes to the jar but the 
exclude does not work. Very strange. Any ideas or comments on how to 
accomplish this would be much appreciated.
I know I could do it with the ant plugin after the compile phase (move 
the code I do not want out of the target folder) but I was hoping I 
could simply accomplish this with the excludes switch.


Regards,
Mark




This email message and any attachments may contain confidential, 
proprietary or non-public information.  The information is intended solely 
for the designated recipient(s).  If an addressing or transmission error 
has misdirected this email, please notify the sender immediately and 
destroy this email.  Any review, dissemination, use or reliance upon this 
information by unintended recipients is prohibited.  Any opinions 
expressed in this email are those of the author personally.


  


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



Subcommander 1.2.2.1

2007-09-10 Thread Mark Eramo

Hello,
  Anyone using Subcommander 1.2.2.1 that experiences intermittent 
locking issues (Windows Version). I have a user running subcommander in 
Windows that runs into locks on the repository that I do not have 
running subcommander under Linux.


I figured I would post here as I am not sure if this is a subcommander 
issue or a subversion issue or just normal. If the user removes the 
files/folders under the working copy folder and checks out the code 
again to the working folder, the lock goes away. 


I am running Subversion 1.4.3

Regards,
Mark


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



Re: Subcommander 1.2.2.1

2007-09-10 Thread Mark Eramo

Sorry everyone, I meant to post this to the Subversion Users List!

Regards,
Mark


Thorsten Heit wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Mark,

  

I figured I would post here as I am not sure if this is a subcommander
issue or a subversion issue or just normal.



I guess you'd better ask the Subcommander guys or post your question to
the Subversion user list instead of this Maven user mailing list...


Regards

Thorsten
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkblj/4ACgkQQvObkgCcDe2xwgCfVsLOYwPSLuOe8IaxQvYsmPqP
+/IAoJZgXHDSsHu2oEqWUCtGfUjV/sCv
=YDuB
-END PGP SIGNATURE-

-
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: Maven 2 and Subversion

2007-09-07 Thread Mark Eramo

Eric/Nick,
  Thanks for the information. I am fairly new to Maven so I am still 
trying to feel my way around. I will look at cruise control but I am 
also thinking about using the Ant plugin to just fetch the code from 
Subversion before I compile. I don't want to use Ant to much as I am 
trying to migrate from Ant to Maven but given some of the limitations, 
Ant is a nice compliment to Maven.
I don't care about checking jars into Subversion because we store out 
binaries on a different server that is backed up. I figure why bloat the 
subversion repository with binaries so for me, I am just interested in 
fetching the code.


Thanks,
Mark


Nick Stolwijk wrote:

Maybe try something like:

build
[...]
   plugins
  plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-scm-plugin/artifactId
 version1.0-SNAPSHOT/version
  executions
   execution 
http://maven.apache.org/ref/2.0.4/maven-model/maven.html#class_execution 


 idUpdate scm/id
 phasevalidate/phase
 goalsupdate/goals
   /execution
 /executions
  /plugin
  [...]
   /plugins
[...]
/build
But I don't think it is recommended to do it this way, maybe activate 
it with a profile or indeed looking into a real continuous build server.


Hth,

Nick Stolwijk

Eric Miles wrote:

I'd recommend automating that via a system like Continuum or Cruise
Control.  I'm not sure there's any other way to do that directly with
the POM or not...


On Fri, 2007-09-07 at 10:06 -0400, Mark Eramo wrote:

 

Hello,
   Can anyone point me to detailed information and maybe some 
examples on how to integrate maven and subversion. Ideally I would 
like to be able to have the build fetch the latest code from 
subversion before I do the build. I have looked at the documentation 
on the Maven site but I am looking for more information then that on 
how to actually use the commands.


Regards,
Mark


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



Maven 2 and Subversion

2007-09-07 Thread Mark Eramo

Hello,
  Can anyone point me to detailed information and maybe some examples 
on how to integrate maven and subversion. Ideally I would like to be 
able to have the build fetch the latest code from subversion before I do 
the build. I have looked at the documentation on the Maven site but I am 
looking for more information then that on how to actually use the commands.


Regards,
Mark


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



Re: Maven 2 and Subversion

2007-09-07 Thread Mark Eramo
I am trying to do automated and semi automated builds so I will look at 
Continum as it seems to add a lot of value with Maven/Subversion 
integration.


Regards,
Mark


Graham Leggett wrote:

On Fri, 2007-09-07 at 10:06 -0400, Mark Eramo wrote:

  

   Can anyone point me to detailed information and maybe some examples
on how to integrate maven and subversion. Ideally I would like to be
able to have the build fetch the latest code from subversion before I do
the build. I have looked at the documentation on the Maven site but I am
looking for more information then that on how to actually use the
commands.
  


What are you trying to achieve by doing this?

Usually a developer would not want to do an update before they do a build,
just in case that update conflicts with their code at that point, which
would then have to be dealt with immediately and not at a time convenient
to a developer.

If you are trying to do automated builds, then a continuous integration
tool like Continuum (amongst others) should do the trick. Continuum will
update the code, and if the code has changed, build the code, and if the
build broke, notify people of this.

What you should do all depends on the problem you are trying to solve.

Regards,
Graham
--



-
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: Setting the Timezone correctly

2007-09-06 Thread Mark Eramo

Hi Tim,
  Thanks for the information. It must be something else then that is 
setting the time in Maven.
The build completed time shows the build finishes 1 hour earlier then 
the actual system time.


Regards,
Mark


Tim Kettler wrote:

Hi,

see [1], [2] for references of the valid tags in 'pom.xml' and 
'settings.xml'. As you see timezone/ is only used in the 
developers/ and contributors/ sections of the 'pom.xml' to denote 
the timzone a project team member is located. This has nothing to do 
with when your project is built or what creation time the jars have.


-Tim

[1] http://maven.apache.org/ref/current/maven-model/maven.html
[2] http://maven.apache.org/ref/current/maven-settings/settings.html

Mark Eramo schrieb:

Hello,
 I am currently using Maven 2 and today I noticed that all the jars 
are built 1 hour earlier then the current time.I see that in the 
Maven documentation that there is a timezone tag that you can use 
to set your timezone. I want to set this in my settings.xml so that 
when we switch to DST, I can change it. Well, I added the tag and 
Maven complains that it is an unrecognized tag.


Any ideas on why this happens? Does Maven 2 not support this?

Thanks,
Mark



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



Setting the Timezone correctly

2007-09-05 Thread Mark Eramo

Hello,
 I am currently using Maven 2 and today I noticed that all the jars are 
built 1 hour earlier then the current time.I see that in the Maven 
documentation that there is a timezone tag that you can use to set 
your timezone. I want to set this in my settings.xml so that when we 
switch to DST, I can change it. Well, I added the tag and Maven 
complains that it is an unrecognized tag.


Any ideas on why this happens? Does Maven 2 not support this?

Thanks,
Mark



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



Building MDB's with Maven

2007-08-16 Thread Mark Eramo

Hello,
 I have a question. A few of the jars I currently build with Any also 
produce mdb's (message driven beans). I did not see a plugin for this 
but was wondering

if anyone has accomplished this with Maven.

If not, I might just end up calling an Ant script from the Maven build 
to do it.


Thanks,
Mark



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



Re: Building MDB's with Maven

2007-08-16 Thread Mark Eramo
Great! This is what I needed to know and it helps me out. Thanks for 
this info.


Regards,
Mark


Alan D. Salewski wrote:

On Thu, Aug 16, 2007 at 03:05:56PM -0400, Mark Eramo spake thus:
  

Hello,
 I have a question. A few of the jars I currently build with Any also 
produce mdb's (message driven beans). I did not see a plugin for this 
but was wondering

if anyone has accomplished this with Maven.[...]



We use the maven-ejb-plugin for this. Here's an example snippet for an
MDB subproject's pom.xml:
...
build
  ...
  plugins
...
plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-ejb-plugin/artifactId
  configuration
ejbVersion2.1/ejbVersion
generateClientfalse/generateClient
archive
  manifest
addClasspathtrue/addClasspath
classpathPrefixlib//classpathPrefix
  /manifest
/archive
  /configuration
/plugin
...
  /plugins
/build
...

For more info, check out the site for the maven-ejb-plugin:

http://maven.apache.org/plugins/maven-ejb-plugin/

HTH,
-Al

  


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



Problem accessing local repository from Parent POM

2007-08-06 Thread Mark Eramo

Hello,
  I have setup a Parent POM / Child POM relationship and now I am 
having a problem accessing my local repository.


I have defined in my Parent POM, the local repository only. In my Child 
POM, I reference the parent POM but no repository. I assume it will use 
the repository setting in the Parent POM. When I run a mvn compile using 
the Child POM, the build tries to download the jars from 
*http://repo1.maven.org and NOT from my local repository, where the jars 
I need are.


*I tried setting up a settings.xml and defining the local repository in 
there but still it tries to look at the remote repository only.


Can anyone tell me what I am doing wrong? Does the Parent POM need to 
sit in a specific location such that the Child POM can see it? Currently 
it is in the folder structure, 2 folders above the Child POM.


Regards,
Mark


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



Question on Parent Pom

2007-08-03 Thread Mark Eramo

Hello,
 I am new to Maven and trying to setup some projects. What I want to do 
is create a parent POM that has all the different project dependencies 
included. Then for each project, I will have a project POM that will 
contain the individual dependencies needed to build the project.


However, I will reference the parent POM to get the version for each 
dependency. The reason I want to do this is if a version changes, I only 
have to update it in one place versus having to update each project POM.


Where I am stuck is trying to figure out how to reference the dependency 
back in the parent POM. I am not clear on the syntax on how to do this.


Can anyone point me to specific docs or examples that help explain this. 
I have looked at the Maven docs but it is still not clear to me.


Regards,
Mark


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