A module using different compiler cannot find its compiler when compiling thru. the package project

2011-08-08 Thread Rice Yeh
Hi, I have a lot of modules and I have a package project p0 to aggregate them like the following: p1 p2 p1 All the modules except p2 use the default complier. p2 uses eclipse compiler. I find if I just compile p2, it works well. When I try to compile all these modules thru. the package p0, an

Re: When is the best phase to generate javadocs?

2011-08-08 Thread Barrie Treloar
On Tue, Aug 9, 2011 at 2:00 PM, Jeff Jensen wrote: > I prefer to gen JavaDoc in the nightly site gen run, from the parent. > Avoids the problem you mentioned.  You could run a site gen multiple times > per day, if it's not a long duration. And we do this too, since there may be other things besid

Where to hook into to install dependencies prior to build

2011-08-08 Thread Jason Pyeron
I do not know if I posted enough detail, if there are details missing, please le me know and I will post it. I know this is not how it should be done, but I have external requirements at the moment. The question is how could maven be configured to pull in the most recent non-maven managed dependen

Re: When is the best phase to generate javadocs?

2011-08-08 Thread Jeff Jensen
I prefer to gen JavaDoc in the nightly site gen run, from the parent. Avoids the problem you mentioned. You could run a site gen multiple times per day, if it's not a long duration. These days, IDEs such as Eclipse display JavaDoc pulled directly from source, so you could avoid a JavaDoc gen enti

Re: When is the best phase to generate javadocs?

2011-08-08 Thread Eric Kolotyluk
Normally I would agree with that, but this is an early stage of development and the javadocs are changing frequently, and I'm putting more stuff in them that would normally be documented elsewhere. Thanks for the advice though, I'll try to study the release process a little more to see if I'm

Re: Getting error when i am using maven-antrun-plugin for Weblogic Workshop project

2011-08-08 Thread Wayne Fay
>  [wlwBuild] [Build] Build project WPSEjb started. >  [wlwBuild] [Build] This project type does not allow override of the output > directory location. >  [wlwBuild] [Build] Build project WPSEjb complete. Most likely you will need to ask the company/group responsible for this Ant plugin for help.

Re: When is the best phase to generate javadocs?

2011-08-08 Thread Barrie Treloar
On Tue, Aug 9, 2011 at 10:02 AM, Eric Kolotyluk wrote: > I was generating javadocs with the maven-javadoc-plugin in the package > phase, but ran into problems because other modules had not been through the > install phase yet. To get around the problem I changed it to the deploy > phase, but I'm n

When is the best phase to generate javadocs?

2011-08-08 Thread Eric Kolotyluk
I was generating javadocs with the maven-javadoc-plugin in the package phase, but ran into problems because other modules had not been through the install phase yet. To get around the problem I changed it to the deploy phase, but I'm not sure if this is the best place to do it. How do most peo

Re: Getting error when i am using maven-antrun-plugin for Weblogic Workshop project

2011-08-08 Thread Daivish Shah
Now i have only one question so you can ignore other questions. 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/xsd/maven-4.0.0.xsd";> 4.0.0 WPSMavenProj

Re: How to Generate EJB 2.1 classes from MAVEN

2011-08-08 Thread Daivish Shah
Thanks Wayen. I think best way for now is to use ANT command from POM as I want to support legacy application by using MAVEN and we don't need any change in existing project structure or components for legacy applications. Thanks for your prompt reply and explanation. Regards, daivish. On Mon,

Getting error when i am using maven-antrun-plugin for Weblogic Workshop project

2011-08-08 Thread Daivish Shah
Hi, I have some questions for maven-antrun-plugin. I want to use thing plugin to build my Weblogic workshop project and want to create JAR file for my EJB project. We are using Weblogic 8.1 and JDK is 1.4.2 version. I am using MAVEN 2.2.1 version with JDK 1.5 *I have some questions as below :*

Re: How to Generate EJB 2.1 classes from MAVEN

2011-08-08 Thread Wayne Fay
> I am using .EJB extension file from Weblogic Workshop. My project is using > Weblogic workshop and i am converting my project from ANT to MAVEN and i am > trying to find if i can generate Class files from my existing code, Which > has already SampleClient.java file and Sample.ejb file in my proje

Re: How to Generate EJB 2.1 classes from MAVEN

2011-08-08 Thread Daivish Shah
Hi Wayne, Thanks for your prompt reply. I am using .EJB extension file from Weblogic Workshop. My project is using Weblogic workshop and i am converting my project from ANT to MAVEN and i am trying to find if i can generate Class files from my existing code, Which has already SampleClient.java fi

Re: How to Generate EJB 2.1 classes from MAVEN

2011-08-08 Thread Wayne Fay
> It's creating JAR file for me but the thing is, It doesn't create > Home,Remote classes for my Client Class. Uhhh did you read the friendly manual?? I don't think you did. http://maven.apache.org/plugins/maven-ejb-plugin/examples/generating-ejb-client.html > And another thing i am using *.ejb >

How to Generate EJB 2.1 classes from MAVEN

2011-08-08 Thread Daivish Shah
Hi, I am using old project converting in to MAVEN. And i am trying to find how can i compile my EJB 2.1 Files using MAVEN ? I tried using following line of code in my POM.XML org.apache.maven.plugins maven-ejb-plugin 2.3

RE: Trouble setting Boolean property in custom Mojo

2011-08-08 Thread Robert Scholte
http://www.sonatype.com/books/mvnref-book/reference/writing-plugins-sect-mojo-params.html So that would make it: /** * @parameter */ private Boolean appendResults; And you probably don't want to use the setter. This field already works. -Robert > Date: Mon, 8 Aug 2011 12:45:58 -0700

RE: Trouble setting Boolean property in custom Mojo

2011-08-08 Thread laredotornado-3
Hi, I didn't find anything about doclets in the link and am still lost. My plugin config mirrors the example. What's more bizarre is that within my plugin project when I test my config, it works fine. My test config file is … http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/200

Re: Maven 3 and cargo plugin

2011-08-08 Thread Anders Hammar
And to add to that, if you're behind a Maven proxy/manager (like Nexus, Artifactory, or Archiva) forcing a update might still not help as the Maven proxy also needs to refresh its cached metadata. For Nexus that happens after 24 hours by default I believe. So if it still doesn't work, wait a day an

Re: Maven 3 and cargo plugin

2011-08-08 Thread Benjamin Bentmann
bluewhale wrote: Downloaded: http://repo1.maven.org/maven2/org/codehaus/cargo/maven-metadata.xml [...] [ERROR] No plugin found for prefix 'cargo' The proper metadata is now out such that "mvn cargo:help" works as intended. Please note that Maven refetches metadata by default only once a day.

RE: Trouble setting Boolean property in custom Mojo

2011-08-08 Thread Robert Scholte
Please read http://www.sonatype.com/books/mvnref-book/reference/writing-plugins.html first! (little hint: it has to do with doclets...) -Robert > Date: Mon, 8 Aug 2011 07:49:12 -0700 > From: laredotorn...@gmail.com > To: users@maven.apache.org > Subject: Trouble setting Boolean property

Re: How can a plugin become aware of its environment (e.g. properties)?

2011-08-08 Thread Mark H. Wood
On Sat, Aug 06, 2011 at 03:11:05PM +0200, Baptiste MATHUS wrote: > And by the way, documentation is cool. > But even better is look for real-life example. And what's cool with > opensource is that it's easy to find a bunch of examples from simple to very > complex. Just because X worked for someon

Re: How can a plugin become aware of its environment (e.g. properties)?

2011-08-08 Thread Mark H. Wood
On Sat, Aug 06, 2011 at 03:08:34PM +0200, Baptiste MATHUS wrote: > Well, you were in the right place. > http://maven.apache.org/guides/plugin/guide-java-plugin-development.html > What are you missing? Any indication of what one should put into the default-value to get a handle on the mojo's entire

Problem configuring PMD and CPD differently

2011-08-08 Thread Oskar Separovic
Hello, We're using the PMD plugin to run both PMD and CPD on our codebase, however, we've come across a problem that has led us to disable CPD as a workaround. Specifically, we want to run PMD on all our code, but run CPD on only production code. The configuration tag appears to allow us to do

Re: Maven build issue

2011-08-08 Thread Jörg Schaible
javafan2011 wrote: > Another strange problem, If I see the which application has occupied the > lock on abc.xls file then it says eclipse and still ME_ECLIPSE cannot > clean this file during clean install. I still have to close eclipse and do > a clean build from command line, which is time consum

Trouble setting Boolean property in custom Mojo

2011-08-08 Thread laredotornado-3
Hi, I'm using Maven 3.0.3 and trying to develop my own Maven plugin. I'm having trouble getting my configuration set properly. I want to set a member field that is a Boolean. In my Mojo, I have public class SeleniumTestMojo extends AbstractMojo { private String results; p

Reactor:resume goal

2011-08-08 Thread tpatch
I am trying to resume a multimodule project that is nested. I want to resume from a project that is in a project that is one level deep from the top level. I would assume that I would use "from" to say what folder to start from and "fromArtifact" to say what project to start. This doesn't se

Re: Maven build issue

2011-08-08 Thread Wayne Fay
> Another strange problem, If I see the which application has occupied the lock > on abc.xls file then it says eclipse and still ME_ECLIPSE cannot clean this > file during clean install. I still have to close eclipse and do a clean > build from command line, which is time consuming. Probably the E

Re: Maven build issue

2011-08-08 Thread javafan2011
Another strange problem, If I see the which application has occupied the lock on abc.xls file then it says eclipse and still ME_ECLIPSE cannot clean this file during clean install. I still have to close eclipse and do a clean build from command line, which is time consuming. Any idea!!! -- View t

Re: [m2e-users] Maven, Eclipse, Nexus, Perforce, Team City, Oh My!

2011-08-08 Thread Ron Wheeler
On 07/08/2011 10:13 PM, Barrie Treloar wrote: On Mon, Aug 8, 2011 at 8:25 AM, Eric Kolotyluk wrote: You're telling me Maven requires an advanced Maven Admin on the team/organization? No-one told me that before. Don't be fooled. Any build system requires this person. You can't expect clueless

Can I invoke "package" on Eclipse auto-build?

2011-08-08 Thread Hugi Thordarson
Hi all. I'm using Eclipse 3.7 to develop Web Applications (jsp & servlets) using Maven (m2eclipse). Currently, when I make modifications to a class or resource in Eclipse, I have to manually invoke "mvn package" on my project to get the updated resources/jars copied to the target directory (wh

Re: Need help in uploading maven archetypes to nexus repo and in maven release

2011-08-08 Thread Anders Hammar
Don't repost! Someone already responded to your question the other day. /Anders (mobile) Den 8 aug 2011 01.19 skrev "goutham" : > Hi > > I recently developed a maven plugin , which calls a set of archetype's on my > local machine .m2 repository to create a module structure. > > 1) Now i want to up