Re: Hi,guys! I am a new one in Maven. I try to run maven .but get the error message .

2009-07-14 Thread 白鹏
C:\DOCUME~1\ADMINI~1set java JAVA_HOME=C:\Program Files\Java\jdk1.6.0_05 2009/7/14 Mick Knutson mickknut...@gmail.com Where is your JAVA_HOME installed to? --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866)

Re: Hi,guys! I am a new one in Maven. I try to run maven .but get the error message .

2009-07-14 Thread Sam Wun
:D 2009/7/14 白鹏 bill.peng@gmail.com: C:\DOCUME~1\ADMINI~1set java JAVA_HOME=C:\Program Files\Java\jdk1.6.0_05 2009/7/14 Mick Knutson mickknut...@gmail.com Where is your JAVA_HOME installed to? --- Thank You... Mick Knutson, President BASE Logic, Inc. Enterprise Architecture,

maven reactor plugin and build order

2009-07-14 Thread Sahoo
While trying to use reactor:resume to resume a build, I see the order of build changing. See the output below. The order as reported initially is not same as the order reactor plugin is following. Why? glassf...@~/WS/gf/v3.trunk.new$ mvn reactor:resume -DprintOnly=true

Re: error with maven-metadata-Agile Java.xml

2009-07-14 Thread Jan Koen Annot
Yesterday, I observed the same error in the maven-metadata-agilejava.xml file of the maven-checkstyle-plugin and maven-surefire-report-plugin. My work around was to edit the file and change the two lines meta http-equiv=content-type content=text/html; charset=iso-8859-1 meta name=generator

Webapp classpath issues in multi-module project

2009-07-14 Thread Ian Petzer
Hi, We have a Maven project that is laid out as ./domainModule ./serviceModule ./baseModule (with parent pom) ./webAppModule ./module4 We can successfully generate eclipse projects for the module using mvn eclipse:eclipse from the baseModule which sets up the classpath correctly in eclipse

Re: tools.jar

2009-07-14 Thread sariram
Hello I m getting Error:in JAVA HOME ...NOT Found in:Java SDK=c:\progarm files\java\jre6\lib\tools.jar. i want to know abt why tis error..and how i ll rectify tat error McElroy Sean wrote: Hello, I'm getting this error: java.lang.ClassNotFoundException:

RE: tools.jar

2009-07-14 Thread Ilya Kazakevich
Hello, Afaik, JAVA HOME should be set to path to JDK, not JRE. There is no tools.jar in JRE, only in JDK. Download and install JDK -Original Message- From: sariram [mailto:seetharaman...@gmail.com] Sent: Tuesday, July 14, 2009 2:29 PM To: users@maven.apache.org Subject: Re: tools.jar

Problem installing simple multi module project

2009-07-14 Thread spsarolkar
I have a parent pom like this #simple-parent/pom.xml project xmlns=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/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion

Re: Problem installing simple multi module project

2009-07-14 Thread Mick Knutson
1st, take out the pluginManagement tags and just have plugins --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN:

Re: Problem installing simple multi module project [RESOLVED]

2009-07-14 Thread spsarolkar
(parent)group id for simple-weather was incorrect -- View this message in context: http://www.nabble.com/Problem-installing-simple-multi-module-project-tp24477379p24477802.html Sent from the Maven - Users mailing list archive at Nabble.com.

AW: General purpose source generation plugin?

2009-07-14 Thread Lewis, Eric
Anyone? :-) -Ursprüngliche Nachricht- Von: Lewis, Eric [mailto:eric.le...@ipi.ch] Gesendet: Donnerstag, 9. Juli 2009 10:51 An: Maven Users List Betreff: General purpose source generation plugin? Hi Am I missing something or is there no general purpose source generation

Re: General purpose source generation plugin?

2009-07-14 Thread JC
Have you tried APT-Jelly plugin? http://mojo.codehaus.org/apt-maven-plugin/ I miss a Freemarker plugin. In Codehaus sandbox repo there is a Freemarker plugin. I don't know if that plugin works fine or not, but you can try (or write your own). As you did with Velocity you will need to write some

Exception while testing with maven

2009-07-14 Thread balu001
Hello, I am using maven to build a multimodule webapplication project. For that i am moduling the totla project as four part. First the core classes,compiling them and building it as a jar file. LIKE In the pom file by saying like this

Run ANT script first

2009-07-14 Thread REMIJAN, MICHAEL J [AG/1000]
I have an ANT script which I want to make sure runs first before any maven goal is run. How would I go about configuring this? - This e-mail message may contain privileged and/or confidential

Re: error with maven-metadata-Agile Java.xml

2009-07-14 Thread Jan Koen Annot
I found that the agilejava plugin repository web site http://agilejava.com/maven/ is down. The html error message returned by web hosting company lunarpages is stored into the xml file maven-metadata-agilejava.xml and appears to be incorrect xml. I disabled this plugin repository by adding the

Re: Run ANT script first

2009-07-14 Thread Mick Knutson
create an antrun plugin and attach it to the phase you want it to run. --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN:

Re: Using UmlGraphDoc with Maven

2009-07-14 Thread Jeff Mutonho
Most def. Everyone should read it :) On Thu, Jul 9, 2009 at 4:18 PM, Roman Kournjaev kournj...@gmail.com wrote: I googeled for it right now. Is it worth reading ? On Thu, Jul 9, 2009 at 5:10 PM, Jeff Mutonho ejbeng...@gmail.com wrote: On Thu, Jul 9, 2009 at 2:41 PM, Roman Kournjaev

[ANN] Maven Checkstyle Plugin 2.3 Released

2009-07-14 Thread Dennis Lundberg
The Maven team is pleased to announce the release of the Maven Checkstyle Plugin, version 2.3 The Checkstyle plugin generates report regarding the code style used by the developers. Important note: This version of the plugin uses Checkstyle 4.4. Version 2.3 will be the last version of Maven

[ANN] Maven Site Plugin 2.0.1 Released

2009-07-14 Thread Dennis Lundberg
The Maven team is pleased to announce the release of the Maven Site Plugin, version 2.0.1 The Site Plugin is used to generate a site for the project. http://maven.apache.org/plugins/maven-site-plugin/ You should specify the version in your project's plugin configuration: plugin

[ANN] Maven EJB Plugin 2.2 Released

2009-07-14 Thread Dennis Lundberg
The Maven team is pleased to announce the release of the Maven EJB Plugin, version 2.2 This plugin generates J2EE Enterprise Javabean (EJB) file as well as the associated client jar. http://maven.apache.org/plugins/maven-ejb-plugin/ You should specify the version in your project's plugin

[ANN] Maven Stage Plugin 1.0-alpha-2 Released

2009-07-14 Thread Dennis Lundberg
The Maven team is pleased to announce the release of the Maven Stage Plugin, version 1.0-alpha-2 The Maven Stage Plugin copies artifacts from one repository to another. Its main use is for copying artifacts from a staging repository to the real repository.

Re: [ANN] Maven Site Plugin 2.0.1 Released

2009-07-14 Thread Benson Margulies
*disapointment in the lack of a corresponding release for MPIR-160 and the various multi-module issues* On Tue, Jul 14, 2009 at 9:54 AM, Dennis Lundbergdenn...@apache.org wrote: The Maven team is pleased to announce the release of the Maven Site Plugin, version 2.0.1 The Site Plugin is used

Re: Run ANT script first

2009-07-14 Thread Tim O'Brien
When you run Maven, you usually specify a lifecycle phase such as install or package or deploy. Maven will then execute every lifecycle phase sequentially until it reaches the specified phase. If you want a full list of lifecycle phases take a look at the Maven docs here: http://tr.im/shS4

Multiple proxies problem

2009-07-14 Thread Koerner, Ron
Hi list, I use several repositories which are both http and https. So I added this to settings.xml: proxies proxy activetrue/active protocolhttps/protocol hostproxy/host port81/port /proxy proxy

Re: Unexpected copying of classes from dependencies

2009-07-14 Thread Max Bowsher
Yang Zhang wrote: For some reason, Maven is pulling in classes from the jar of a dependency and putting them into my target/test-classes/ directory, causing mvn test to fail (since extra Test* classes from that package are getting picked up). Why are these classes being copied? Thanks in

Re: Unexpected copying of classes from dependencies

2009-07-14 Thread Wayne Fay
This is some as yet unexplained misfeature with the compiler plugin and/or underlying javac, wherein it compiles .java source found in dependency jars - sometimes. This is a bug in javac -- not the compiler plugin. This has popped up on the list previously once or twice before. File a bug

Re: [ANN] Maven Site Plugin 2.0.1 Released

2009-07-14 Thread Dennis Lundberg
Hi Benson, I'll get started on the release process for Maven Project Info Reports Plugin 2.1.2, which includes a fix for MPIR-160. The multi-module issues in the Site Plugin are difficult to fix. I had a look at several of the issues in JIRA, but was unable to solve them, sorry. Benson

Re: [ANN] Maven Site Plugin 2.0.1 Released

2009-07-14 Thread Benson Margulies
Dennis, Sorry about the leet-asterixes. It was a *moment of weakness*. One of the MSITE JIRAs has a near-patch in it. I'd be willing to turn that into an actual patch and test it if that might advance the process. --benson On Tue, Jul 14, 2009 at 12:25 PM, Dennis Lundbergdenn...@apache.org

Re: [ANN] Maven Site Plugin 2.0.1 Released

2009-07-14 Thread Dennis Lundberg
Benson Margulies wrote: Dennis, Sorry about the leet-asterixes. It was a *moment of weakness*. One of the MSITE JIRAs has a near-patch in it. I'd be willing to turn that into an actual patch and test it if that might advance the process. Yes please, which one is that? I'll take care of

Parallelization and skip compilation

2009-07-14 Thread Subramanian, N.Venkata
Hi Good morning! I have couple of question which is quite critical in our current project scenario 0) Our product is supporting around 14 platforms and our prodct code is divided into many components and subcomponents. We have big issue that for most of the platforms the build

Re: Unexpected copying of classes from dependencies

2009-07-14 Thread Yang Zhang
Max Bowsher wrote: Yang Zhang wrote: For some reason, Maven is pulling in classes from the jar of a dependency and putting them into my target/test-classes/ directory, causing mvn test to fail (since extra Test* classes from that package are getting picked up). Why are these classes being

Re: Parallelization and skip compilation

2009-07-14 Thread Tim O'Brien
On Tue, Jul 14, 2009 at 1:40 PM, Subramanian, N.Venkatansubraman...@informatica.com wrote: Hi          Good morning! I have couple of question which is quite critical in our current project scenario 0) Our product is supporting around 14 platforms and our prodct code is divided into

Re: [ANN] Maven Site Plugin 2.0.1 Released

2009-07-14 Thread Benson Margulies
I tried it myself (MSITE-409) and it didn't fix the whole problem. I have attached my test project, stolen from the existing project, to the JIRA. If I can find a better fix I will. How would one set up a unit test that actually, well, ran maven on a test project? On Tue, Jul 14, 2009 at 1:16

Re: [ANN] Maven Site Plugin 2.0.1 Released

2009-07-14 Thread Dennis Lundberg
Benson Margulies wrote: I tried it myself (MSITE-409) and it didn't fix the whole problem. I have attached my test project, stolen from the existing project, to the JIRA. If I can find a better fix I will. How would one set up a unit test that actually, well, ran maven on a test project?

Re: [ANN] Maven Site Plugin 2.0.1 Released

2009-07-14 Thread Benson Margulies
K On Tue, Jul 14, 2009 at 4:08 PM, Dennis Lundbergdenn...@apache.org wrote: Benson Margulies wrote: I tried it myself (MSITE-409) and it didn't fix the whole problem. I have attached my test project, stolen from the existing project, to the JIRA. If I can find a better fix I will. How would

Passing Variables at JBoss Startup

2009-07-14 Thread daniel.green
I would like to configure my build scripts to deploy an ear file to a remote jboss server. However, as a requirement, I also need the ability to start the server, from the script, with parameters. Our current Perl and Bash scripts start the server with the following arguments: code

Re: Failed to validate an ostensibly valid pom

2009-07-14 Thread daniel.green
Thank you for the tip! I discovered there was an issue with the parent pom. Someone had created a profile that had a system scope dependency with an associated systemPath on it. John Casey-5 wrote: If you run with -X, it may give you more information about why it's invalid. John Casey-5

Re: Passing Variables at JBoss Startup

2009-07-14 Thread Tim O'Brien
You should take a look at Cargo: http://cargo.codehaus.org/ Cargo has a Maven 2 plugin which will allow you complete control over your JBoss server. Tim On Tue, Jul 14, 2009 at 5:20 PM, daniel.greenoctober...@gmail.com wrote: I would like to configure my build scripts to deploy an ear file to

Re: Passing Variables at JBoss Startup

2009-07-14 Thread daniel.green
Tim O'Brien wrote: You should take a look at Cargo: http://cargo.codehaus.org/ Thank you for the info! Is http://cargo.codehaus.org/Passing+system+properties what I'm looking for? That would have the effect of -D, right? Tim O'Brien wrote: You should take a look at Cargo:

Re: Passing Variables at JBoss Startup

2009-07-14 Thread Tim O'Brien
On Tue, Jul 14, 2009 at 5:34 PM, daniel.greenoctober...@gmail.com wrote: Tim O'Brien wrote: You should take a look at Cargo: http://cargo.codehaus.org/ Thank you for the info! Is http://cargo.codehaus.org/Passing+system+properties what I'm looking for? That would have the effect of -D,

site.xml for parent/child site which are siblings

2009-07-14 Thread jaybytez
I have the following structure for my app: avitek -avitekApp (EAR) - pom.xml -avitekParent - src/site/site.xml - pom.xml -avitekWeb (WAR) - pom.xml My parent pom.xml in avitekParent says the following: [code] modelVersion4.0.0/modelVersion groupIdavitek-sample/groupId

Re: site.xml for parent/child site which are siblings

2009-07-14 Thread jaybytez
Looks like it works if use the following at the command line: $ mvn site:stage -DstagingDirectory=c:/beaportal/user_projects/workspaces/default/avitek/published-site/site Is it best to build a site to a staging area and then push that staging area to a remote server? It appears to correctly

when is relativePath used?

2009-07-14 Thread Rusty Wright
My pom starts with parent artifactIdwaitlist-parent/artifactId groupIdedu.berkeley.ist.waitlist/groupId version1.1/version relativePath../../waitlist-parent/pom.xml/relativePath /parent When I run maven and the version inside the parent tags doesn't match

Re: site.xml for parent/child site which are siblings

2009-07-14 Thread David C. Hicks
I would really like to know if you're using the menu ref=parent/ and if it works?? I've been playing with it for the better part of two days, and I cannot get the parent link to show up at all. I've also been playing with breadcrumbs, but they appear to be severely broken - or, I just don't

Re: when is relativePath used?

2009-07-14 Thread Tim O'Brien
On Tue, Jul 14, 2009 at 6:56 PM, Rusty Wrightrusty.wri...@gmail.com wrote: My pom starts with   parent       artifactIdwaitlist-parent/artifactId       groupIdedu.berkeley.ist.waitlist/groupId       version1.1/version       relativePath../../waitlist-parent/pom.xml/relativePath   /parent

exec:java problem

2009-07-14 Thread ykyuen
Hi all, i am new to maven2. i got some problem when i tried to follow the sample program of the book Maven: The Definitive Guide http://www.sonatype.com/books/maven-book/reference/customizing-sect-custom-exec.html i can sucessfully build the the program by the mvn install command

maven-eclipse-plugin: how to specify custom compiler settings?

2009-07-14 Thread Dirk Olmes
Hi, I'm trying to nail down some compiler settings for a project. Those are stored in .settings/org.eclipse.jdt.core.prefs, e.g. org.eclipse.jdt.core.compiler.problem.autoboxing=warning A quick look in the m-e-p's source makes me think that there is currently no easy way to augment the

Re: exec:java problem

2009-07-14 Thread ykyuen
Hi all, i just did the same thing in Linux environemt. the program can be executed without any problem. same warning appear at mvn install but this time the encoding is UTF-8. what makes the execution failure in windows env? Thanks. Regards, Kit -- View this message in context:

Re: exec:java problem

2009-07-14 Thread David C. Hicks
The warning you get is fairly standard. It happens when you don't declare the character set encoding that you want to use for the copying of resources. This probably has nothing to do with your error. The error is indicating that the class org.sonatype.mavenbook.weather.Main does not exist.

Re: when is relativePath used?

2009-07-14 Thread Rusty Wright
Ok, thanks. After I posted that query I found something in the unofficial faq that alluded to that being the normal behavior. Tim O'Brien wrote: On Tue, Jul 14, 2009 at 6:56 PM, Rusty Wrightrusty.wri...@gmail.com wrote: My pom starts with parent

Re: exec:java problem

2009-07-14 Thread David C. Hicks
Did you check to make sure that the class was in the target/classes directory? The UTF-8 encoding is normal on Linux. That's the default encoding when one is not specified. ykyuen wrote: Hi all, i just did the same thing in Linux environemt. the program can be executed without any