Re: Adding org.apache.log4j.logger to a Java project

2009-04-27 Thread Milos Kleint
Not sure I completely nderstand, buyt the hint that appears in Netbeans editor is searching the nexus repository index of the central repository and any other repository defined in the IDE. Milos On Wed, Apr 22, 2009 at 12:20 PM, JaimeCarmonaLoeches jaimecarmonaloec...@gmail.com wrote: Good

Re: Using buildnumber-maven-plugin together with jetty plugin

2009-04-27 Thread nodje
Hi Olivier, I got an error following the update of builnumber-maven-plugin 1.0-beta-3-SNAPSHOT: [INFO] Error building POM (may not be this project's POM). Project ID: org.codehaus.mojo:buildnumber-maven-plugin Reason: Failed to build model from file

Re: failed to resolve artifact for maven-install-plugin

2009-04-27 Thread pjotr
I don't have any proxies configured. The strange thing is that when I built the WAR project - maven was able to download some of the artifacts (from central repo), and some of them did not (this is why I tried to install manually - for example javax-persistence) - here is my settings.xml file

Re: Using buildnumber-maven-plugin together with jetty plugin

2009-04-27 Thread Olivier Lamy
Hi, I have deployed a new snapshot (1.0-beta-3-20090427.074600-10) but I didn't have any issues here. I will work on a release. -- Olivier 2009/4/27 nodje nodje...@gmail.com: Hi Olivier, I got an error following the update of builnumber-maven-plugin 1.0-beta-3-SNAPSHOT: [INFO] Error

Re: [Archetype] Adding a package to an existing project

2009-04-27 Thread Yopy
Anyone?* Not being able to merge files isn't a big problem per sé, but it'll involve more work to do for the people that are going to use my archetypes in the (near?) future. (*: Note that I don't know the policy on 'bumping' a thread, nor am I familiar with the proper term to use when it

Will Central Repository accepts thirdparty repositories in pom.xml JUST FOR SNAPSHOTS?

2009-04-27 Thread Chen SIL
Guide to uploading artifacts to the Central Repository ( http://maven.apache.org/guides/mini/guide-central-repository-upload.html) said repositories pluginRepositories in pom.xml are not allowed because the central repository must self contained, but in the other hand, the Central Repository only

Best practices for avoiding duplicate configuration files

2009-04-27 Thread Olivier Cailloux
Hello list, I am new to maven and couldn't find a simple and elegant solution to this (probably) common problem. I have three projects : A and B are independent projects and C depends on A and B. I use the same logging framework for the three projects (slf4j with logback). In A and B, I

dependency to run jetty on a dependent project

2009-04-27 Thread Jozsef Zsido
Hi, I have the following setup: A super pom project which enumerates 2 modules: a web service war project and a web service client project. The web service client calls the wsimport goal in order to generate the client artifacts but that fails if I don’t run the other project with mvn

failed to resolve artifact for maven-install-plugin

2009-04-27 Thread pjotr
Hi, I am not able to get maven-install-plugin (when executing 'mvn install' command)- getting the following error: [INFO]task-segment: [install] [INFO] Downloading:

Re: Will Central Repository accepts thirdparty repositories in pom.xml JUST FOR SNAPSHOTS?

2009-04-27 Thread mkleint
Chen SIL wrote: Guide to uploading artifacts to the Central Repository ( http://maven.apache.org/guides/mini/guide-central-repository-upload.html) said repositories pluginRepositories in pom.xml are not allowed because the central repository must self contained, but in the other hand, the

Re: Best practices for avoiding duplicate configuration files

2009-04-27 Thread Stephen Connolly
Create a new module(s) which just has the log configuration... then A B can both depend on this(ese) new module(s)... C can exclude the module(s) from it's dependencies on A B 2009/4/26 Olivier Cailloux olivier.caill...@ulb.ac.be Hello list, I am new to maven and couldn't find a simple

Re: Best practices for avoiding duplicate configuration files

2009-04-27 Thread Ketil Aasarød
If A and B are only utility modules (not runnable), and you only use the log configuration files for unit testing, I would have moved them to src/test/resources in A and B. That way they are not made available to C. C will have the log configuration file in src/main/resources, at least if it is a

Can 'mvn site' include resources?

2009-04-27 Thread REMIJAN, MICHAEL J [AG/1000]
What is the best way for a site to inherit not only the site.xml from its parent but also the /src/site/resources from the parent too? I'd like to be able to share images across projects but when I run mvn site on my child projects I do not get the /src/site/resources from the parent. Is this

Re: Best practices for avoiding duplicate configuration files

2009-04-27 Thread Brian Fox
See the 9th bullet point here: http://www.sonatype.com/people/2009/04/summary-of-maven-how-tos/ On 4/26/2009 3:17 PM, Olivier Cailloux wrote: Hello list, I am new to maven and couldn't find a simple and elegant solution to this (probably) common problem. I have three projects : A and B are

Reference on ejb module from web module in .component

2009-04-27 Thread Florian MULLER
Hi all, I 've got a problem with the deployement of an ejb module. In my case, i've a multi-projects with WTP 3.0.5. I reference the ejb module as dependency in the POM of my web project. But, when i want deploy it on Tomcat 6.0, my ejb module isn't exported. However if i update manually the

Re: failed to resolve artifact for maven-install-plugin

2009-04-27 Thread Wayne Fay
I don't have any proxies configured. The strange thing is that when I built the WAR project - maven was able to download some of the artifacts (from central repo), and some of them did not (this is why I tried to install manually - for example javax-persistence) - here is my settings.xml file

RE: pom-transformed.xml issue

2009-04-27 Thread Surendra . Naidu
Thanks Oliver. Greatly appreciate your help. -Original Message- From: oliver.l...@gmail.com [mailto:oliver.l...@gmail.com] On Behalf Of Olivier Lamy Sent: Saturday, April 25, 2009 5:01 AM To: Maven Users List Subject: Re: pom-transformed.xml issue Hi, Perso, what I do is changing

Maven Changes Report Plugin problem

2009-04-27 Thread Alexander Vaysberg
Hi, I have a Problem with Maven Changes Report Plugin. I have the changes.xml file, but if I generate pages with site, i have not the data from changes.xml. I use the changes:changes-validate and it say, that all data valide in changes.xml. Can you halp me. Alexander Vaysberg.

Re: Can 'mvn site' include resources?

2009-04-27 Thread Ryan Connolly
I handled this by creating a site skin... See the following reference for more info: http://maven.apache.org/plugins/maven-site-plugin/examples/creatingskins.html Good luck! On Mon, Apr 27, 2009 at 9:19 AM, REMIJAN, MICHAEL J [AG/1000] michael.j.remi...@monsanto.com wrote: What is the best

Re: systemPath for directories not jars

2009-04-27 Thread Lee Mighdoll
Thanks, I hadn't tried that. I found a patchhttp://jira.codehaus.org/browse/MASPECTJ-9for the aspectj plugin that allows the use of .class directories. Lee On Sun, Apr 26, 2009 at 2:58 PM, Martin Gainty mgai...@hotmail.com wrote: Lee did you try to put the root folder of .classes in

Re: systemPath for directories not jars

2009-04-27 Thread Lee Mighdoll
Thanks, that's helpful to know and gives me an excuse to learn a bit about reactor. Lee On Sun, Apr 26, 2009 at 2:42 PM, Brian Fox bri...@infinity.nu wrote: Not really, however Maven will do this automatically for projects in the same reactor if at least the compile phase is executed. On

Re: Best practices for avoiding duplicate configuration files

2009-04-27 Thread Olivier Cailloux
Thanks to everybody who answered. I answer to everyone together: - Projects A and B are to be runnable independently and deployable without C. So putting the log config in test resources would not work. - Putting the log files in a dependent module is possible. But: - it would render the pom

Re: Best practices for avoiding duplicate configuration files

2009-04-27 Thread Brian Fox
Olivier Cailloux wrote: Thanks to everybody who answered. I answer to everyone together: - Projects A and B are to be runnable independently and deployable without C. So putting the log config in test resources would not work. - Putting the log files in a dependent module is possible. But:

Re: dependency to run jetty on a dependent project

2009-04-27 Thread Grant Rettke
How could I do this automatically? Would attaching the jetty:run goal to the pre-test phase solve your problem? - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail:

POM build a JAR file

2009-04-27 Thread David Nemer
Hey Everyone, I'm already able to run the pom.xml file, and maven builds up my classes into the target folder. Now, how do I make a JAR file containing all those classes that maven built? (writing it on my POM file). Cheers, -- David Nemer Sent from Kaiserslautern, RP, Germany

Re: POM build a JAR file

2009-04-27 Thread Ryan Connolly
simply run: mvn package On Mon, Apr 27, 2009 at 2:40 PM, David Nemer davidne...@gmail.com wrote: Hey Everyone, I'm already able to run the pom.xml file, and maven builds up my classes into the target folder. Now, how do I make a JAR file containing all those classes that maven built?

Re: dependency to run jetty on a dependent project

2009-04-27 Thread ZsJoska
Hi, Thanks for your answer but is that possible to attach to the code-generation (i think is more suitable) phase the jetty:run goal from/for another pom.xml? Grant Rettke wrote: How could I do this automatically? Would attaching the jetty:run goal to the pre-test phase solve your

Re: Best practices for avoiding duplicate configuration files

2009-04-27 Thread Frédéric Camblor
Hi Olivier, This is only a point of view but... Isn't the problem coming from the slf4f framework ? I don't really know this logging framework, but it astonishes me that it complains about multiple configuration in the classpath. Generally, framework takes (like commons-logging or log4j) the

Re: dependency to run jetty on a dependent project

2009-04-27 Thread Grant Rettke
On Mon, Apr 27, 2009 at 1:48 PM, ZsJoska zsjo...@gmail.com wrote: Thanks for your answer but is that possible to attach to the code-generation (i think is more suitable) phase the jetty:run goal from/for another pom.xml? You can attach that goal to any phase you wish.

Re: Is it possible to add files to an archetype from other directories?

2009-04-27 Thread mraible
I was able to code a workaround using Ant to create the project then archetype:create-from-project to create it. The nice thing about using Ant to do this was I was also able to modify errors in the create process to make working archetypes. After doing this, I've discovered that the code I was

Re: Strange profiles problem

2009-04-27 Thread Mark Derricutt
No responses :( But it turns out this is regression in 2.1.0 - http://jira.codehaus.org/browse/MNG-3732 On Fri, Apr 24, 2009 at 2:29 PM, Mark Derricutt m...@talios.com wrote: And getting stranger... The trunk profile only gives properties: profilesXml profiles profile

RE: Is it possible to add files to an archetype from other directories?

2009-04-27 Thread Martin Gainty
Encountered: EOF after : means you have a null value followed by EOF when reading the xml Here are the examples I have seen for getTestFile File f1 = getTestFile( src/test/resources/projects/grandchild-check/child/pom.xml); getProject( f1 ); //The key is to acquire the pom.xml

RE: Is it possible to add files to an archetype from other directories?

2009-04-27 Thread mraible
I was able to solve this by changing from maven-archetype-core to archetype-common and using the new API. Full changelog on moving from old to new is at: http://source.appfuse.org/changelog/appfuse/?cs=3228 mgainty wrote: Encountered: EOF after : means you have a null value followed by

Re: [maven-eclipse-plugin] We need your help to test the future 2.7

2009-04-27 Thread Arnaud HERITIER
thx for this feedbackI deployed a new snapshot : 2.7-20090427.230850-4 It includes the fixe for MECLIPSE-455http://jira.codehaus.org/browse/MECLIPSE-455 : Invalid dependent module archive name for EJB artifact * * Cheers Arnaud On Tue, Apr 21, 2009 at 2:15 PM, Martijn Dashorst

Including Javadocs (API) with project website

2009-04-27 Thread REMIJAN, MICHAEL J [AG/1000]
Two part question, 1) is it possible for 'mvn site' to automatically generate javadocs or do I always have to do javadoc:javadoc before running 'mvn site' 2) Is there standard menu in site.xml to generate the hyperlink to the javadocs? Thanks! Mike

using archetype version in archetype

2009-04-27 Thread Niels van Kampenhout
Hi, Is there any way to use the version of an archetype in the templates for that archetype (e.g. use the -DarchetypeVersion command line parameter as ${archetypeVersion})? My use case is a multi module project, where one module is the archetype, which generates a project that has dependencies

Re: Including Javadocs (API) with project website

2009-04-27 Thread Wendy Smoak
On Mon, Apr 27, 2009 at 4:35 PM, REMIJAN, MICHAEL J [AG/1000] michael.j.remi...@monsanto.com wrote: Two part question, 1) is it possible for 'mvn site' to automatically generate javadocs or do I always have to do javadoc:javadoc before running 'mvn site' Put it in the reporting section, as