Re: Newbie archetype question

2006-06-10 Thread ben short
Mike, I have used maven for a couple of webapps, usally I use the webapp archetype to generate the pom and initial structure then I create the java directory manually. Once you have created them maven will compile the jva source as normal, and the class files get moved to the correct place in

Re: Maven Standard Directory Layout

2006-06-10 Thread jerome lacoste
On 6/10/06, Max Cooper [EMAIL PROTECTED] wrote: wolverine my wrote: The src/main/resources directory contains only the configurations which will be loaded by the classloader? So we really need to study the 3rd party library configurations to see if they are loaded via the classloader... Do

I'm looking for a simple aspectJ example with mvn

2006-06-10 Thread Marc Weber
Hi. I've used eclipse and the aspecJ plugin successfully to create some simple aspects. Did work except that the ide source code verifier didn't recognize all aspects but it compiled fine. In the end I think packaging is more important than eclipse and now I want to know how to do things with mvn

RE: Error looking up lifecycle mapping to retrieve optional mojos

2006-06-10 Thread andreas.ebbert-karroum
Has somebody else also had this error? What can I do about it? Thanks, _ ___ _ //\ndreas.[|-bbert-[]/arroum(a)[|\|okia.com `-` Andreas Ebbert-Karroum    Senior Software Design Engineer Nokia Networks Services / Middleware   

Re: Newbie archetype question

2006-06-10 Thread Mike Lundin
Ben, That's the kind of feedback I was looking for, yes. For some reason, I had it in my head that you shouldn't touch the directory structure once the archetype did it's work, but as I think about it, the pom that both archetypes create is almost the same. Thinking along those lines, adding

mvn eclipse:eclipse on linux M2_REPO/path not found by eclipse

2006-06-10 Thread Marc Weber
Hi. After running mvn eclipse:eclipse -Dproject=projectname I get my .classpath file. Fine. BUILD SUCCESFUL. But eclipse still can't resolve it. Even mvn eclipse:add-maven-repo -Declipse.workspace=/home/marc/workspace the classpath entries look like this classpathentry kind=var

Re: Error looking up lifecycle mapping to retrieve optional mojos

2006-06-10 Thread Eric Redmond
Component descriptor cannot be found in the component repository: org.apache.maven.lifecycle.mapping.LifecycleMappingtigerstripe-application Component role-hints in Plexus are tacked onto the end of the role name, and loaded like a role (someone correct me if I'm wrong about this... good Plexus

Re: I'm looking for a simple aspectJ example with mvn

2006-06-10 Thread Jimisola Laursen
Hi! Add a dependency on the aspect runtime dependency artifactIdaspectjrt/artifactId groupIdaspectj/groupId version1.5.0/version /dependency and then a build configuration build plugins plugin groupIdorg.codehaus.mojo/groupId

How to setup log4j with different settings for main, test and developmen

2006-06-10 Thread Jimisola Laursen
Hi! I've seen various posts on log4j and Maven, but I haven't seen any answer to what I want to do. I want to be able to use different settings for log4j for: 1. main (releases using mvn assembly) 2. tests (unit tests) 3. development (when running/debugging the program within Eclipse or

Re: Spotlight: Maven Repository at Java.Net with GlassFish components

2006-06-10 Thread Eduardo Pelegri-Llopart
Hi Serge. We just pushed fresh copies of the JavaPersistence API and TopLink Essentials JARs. Check: http://blogs.sun.com/roller/page/theaquarium?entry=java_persistence_and_ejb_jars The plan is to update these components as part of our regular builds, but this may take a few more weeks.

Re: mvn eclipse:eclipse on linux M2_REPO/path not found by eclipse

2006-06-10 Thread Alexandre Poitras
Just do it manually : http://maven.apache.org/plugins/maven-eclipse-plugin/overview.html On 6/10/06, Marc Weber [EMAIL PROTECTED] wrote: Hi. After running mvn eclipse:eclipse -Dproject=projectname I get my .classpath file. Fine. BUILD SUCCESFUL. But eclipse still can't resolve it. Even mvn

Re: How to setup log4j with different settings for main, test and developmen

2006-06-10 Thread Doug Douglass
Jimisola, FWIW, our team developed a small set of abstract test support classes that extend Junit TestCase. The base class of this set of classes is LoggingTestCase which configures log4j from a non-default test-log4j.properties file in the same package as the test case. Such a setup handles #2

Re: Error looking up lifecycle mapping to retrieve optional mojos

2006-06-10 Thread dan tran
native-maven-plugin experience the same thing, sound like a bug Please file a JIRA Eric, where do have the work around? your plugin's pom? or the the project that use it? -D On 6/10/06, Eric Redmond [EMAIL PROTECTED] wrote: Component descriptor cannot be found in the component

Re: Spotlight: Maven Repository at Java.Net with GlassFish components

2006-06-10 Thread Eduardo Pelegri-Llopart
Hi Srgjan... We are not yet using Maven to build GlassFish, but we are refining the whole project building framework as part of the startup for GlassFish v2 (see http://blogs.sun.com/theaquarium) and that topic continues to come up. I expect substantially improved modularization as part of

Re: mvn eclipse:eclipse on linux M2_REPO/path not found by eclipse

2006-06-10 Thread Marc Weber
On Sat, Jun 10, 2006 at 12:19:03PM -0400, Alexandre Poitras wrote: Just do it manually : http://maven.apache.org/plugins/maven-eclipse-plugin/overview.html Works fine. Thanks. I should have restarted eclipse and not just updating using F5.. Marc

[m2] Add timestamp to properties file using filtering

2006-06-10 Thread Bruno Aranda
Hi, Is there a way to put a timestamp in a properties file? I am thinking in filtering, but is there a pom variable that returns the timestamp or current date? Thanks! Bruno - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [ANN] Maven Archetype Plugin 1.0-alpha-4 Released

2006-06-10 Thread Milos Kleint
will it pick up the groupId from the parent? is the groupId a required parameter in such a case? Milos On 6/6/06, Brett Porter [EMAIL PROTECTED] wrote: Sort of. If you have a multi-module project, and you run archetype from the parent pom location, the subproject is created, added to the

Combined site for multiple modules?

2006-06-10 Thread Dennis Kempin
Hello, I split up my project into multiple modules, with one parent module. At the moment each module generate its own reports and its own site. Site documentation is placed in the parent module's site, so it would be nice if it would be possible to combine the reports (javadoc, cobutera,

Re: How to setup log4j with different settings for main, test and develo

2006-06-10 Thread Jimisola Laursen
Hi Doug, Thank you for the setup information, but I don't find it to be a good enough solution. Basically because we test cases that implement/extend classes other than JUnit TestCase as well. Still hoping that someone has had the same issue and have a solution. Regards, Jimisola Jimisola,

NoClassDefFoundErrorfor a few classes that seems to be in the classpath

2006-06-10 Thread Jimisola Laursen
Hi! Recently just migrated from Ant to Maven. It's a quite big project with a main (parent) pom.xml and six-seven modules. Everything compiles nicely for all modules, both main and test. However, I have two modules, server and agent, were I keep getting NoClassDefFoundError during executing of

RE: NoClassDefFoundErrorfor a few classes that seems to be in the classpath

2006-06-10 Thread Jeff Jensen
I think the basic idea you need first is that Maven's classpath is derived from the project's dependency list. So if you need a jar on the classpath, specify it as a dependency. That understanding will jump you over the next hurdles you face :-). This should help too:

RE: NoClassDefFoundErrorfor a few classes that seems to be in the classp

2006-06-10 Thread Jimisola Laursen
Hi! I guess I didn't express myself good enough. I have everything setup with dependencies of course. The main pom have all dependency versions setup in the main pom and the modules' pom have the dependcies that each of them need. The libraries seem to be included correctly based on

RE: NoClassDefFoundErrorfor a few classes that seems to be in the classp

2006-06-10 Thread Jeff Jensen
Let's see the dependency def's you have for the problem ones. -Original Message- From: Jimisola Laursen [mailto:[EMAIL PROTECTED] Sent: Saturday, June 10, 2006 2:53 PM To: users@maven.apache.org Subject: RE: NoClassDefFoundErrorfor a few classes that seems to be in the classp Hi! I

Trouble with profile activation

2006-06-10 Thread Wendy Smoak
I need help understanding this: If a profile that's embedded in POM is activated by a means other than activeByDefault/, then all activeByDefault/ triggers are suppressed. -- http://jira.codehaus.org/browse/MNG-2136 I have a profile that gets activated when JDK 1.5 is in use. I need another

RE: NoClassDefFoundErrorfor a few classes that seems to be in the classp

2006-06-10 Thread Jimisola Laursen
I have added a few libraries to our internal repository, e.g. mocquer. All added libraries our found in my local repository as well as in our internal one. root POM: dependencyManagement [...] dependencies dependency artifactIdc3p0/artifactId groupIdc3p0/groupId

Re: Maven 2 sources/javadocs installation question

2006-06-10 Thread Max Cooper
My experience is that the Eclipse plugin does setup intra-project dependencies properly. so long as you run 'mvn eclipse:eclipse' from the root of the project (as opposed to running it for each module individually). If I have a project with moduleA and moduleB, and moduleB depends on moduleA,

Re: NoClassDefFoundErrorfor a few classes that seems to be in the classp

2006-06-10 Thread Max Cooper
Make sure that the specific class(es) you get the exceptions for really are in the jars that exist in your local repo (i.e. rule out the possibility that you got a bad jar file, failed download, or the wrong version, etc.). Maven has some options to verify checksums (-C and -c), though I am

Re: NoClassDefFoundErrorfor a few classes that seems to be in the classp

2006-06-10 Thread Jimisola Laursen
Thanks for the tip. The problem is that all four (4) developers have this issue on their computer. But, I'll will follow your instructions tomorrow and check checksums etc. Regards, Jimisola -- View this message in context:

How to Specify 'Links' In the Javadoc Plugin

2006-06-10 Thread Lyndon Washington
Hi, I am migrating an Ant build to Maven. One portion is generating javadocs. In the Ant one there are 3 link tags . . . link href=http://logging.apache.org/log4j/docs/api// link href=http://java.sun.com/j2se/1.5.0/docs/api// link href=http://www.dom4j.org/apidocs// I saw from the javadoc-mojo

Re: How to Specify 'Links' In the Javadoc Plugin

2006-06-10 Thread Dirk Olmes
Lyndon Washington wrote: Hi, I am migrating an Ant build to Maven. One portion is generating javadocs. In the Ant one there are 3 link tags . . . link href=http://logging.apache.org/log4j/docs/api// link href=http://java.sun.com/j2se/1.5.0/docs/api// link

Re: How to Specify 'Links' In the Javadoc Plugin

2006-06-10 Thread Wendy Smoak
On 6/10/06, Lyndon Washington [EMAIL PROTECTED] wrote: I saw from the javadoc-mojo page, http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html, that there is a links tag which takes an ArrayList. It also says that the Strings are comma separate. I added an example to the