Re: Issues with plugin dependencies

2009-12-07 Thread Anders Hammar
We are all mortals...:-) However, it looks like it has been fixed in 3.0-alpha-1. Mike, try 3.0-alpha-5! When you've tried it, there is no going back...:-) http://www.sonatype.com/people/2009/11/maven-30-new-and-improved-formula/ /Anders On Tue, Dec 8, 2009 at 06:55, Wayne Fay wrote: > > Child

Re: Issues with plugin dependencies

2009-12-07 Thread Wayne Fay
> Child project 2 has the exact same setup "however" it changes the dependency > defined in the plugin to be dependent on a different project. > > configurations. It always seems that the first time a plugin is loaded that > is the classpath used for that plugin whenever it is executed. This is a

Re: Issues with plugin dependencies

2009-12-07 Thread Anders Hammar
I haven't run into this use case, but I would think it should work. Have you tried other Maven versions like 2.0.x? Also, I would strongly suggest you try out 3.0-alpha-5. My experience is that errors that I've run into with the 2.x code is fixed in 3.0. /Anders On Mon, Dec 7, 2009 at 23:29, Mike

Issues with plugin dependencies

2009-12-07 Thread Mike Olson
Hello, This is with Maven 2.2.1. I have an aggregate POM file that contains 2 child projects, say project A and project B. Each of these child projects uses a custom build plugin. Project A calls it like myGrupId myArtifactId

Re: maven-assembly-plugin et dependencySet

2009-12-07 Thread Dirk Olmes
Rémy wrote: > Hi, > > I've got a problem with the maven-assembly-plugin:2.2-beta-4 plugin. In the > POM, I set a reference to a descriptor.xml's file and some dependencies. > In the descriptor.xml file I defined to spread dependencies > in folders. I noticed that by using the element transitive

[ANN] Maven Doxia and Doxia Site Tools 1.1.2 Released

2009-12-07 Thread Vincent Siveton
The Maven team is pleased to announce the release of the Maven Doxia and Doxia Site Tools version 1.1.2 Doxia is a content generation framework which aims to provide its users with powerful techniques for generating static and dynamic content: Doxia can be used in web-based publishing context to g

Re: How to include unattached HTML pages to maven site?

2009-12-07 Thread Siegfried Goeschl
Hi folks, to clarify the question +) the execution of the maven-webtest-plugin is not bound to a life cycle phase +) binding the webtest execution needs to be done by the user (could be 'test' or 'integration test' phase) +) the webtest report is added only if the webtests have be executed before

maven-assembly-plugin et dependencySet

2009-12-07 Thread Rémy
Hi, I've got a problem with the maven-assembly-plugin:2.2-beta-4 plugin. In the POM, I set a reference to a descriptor.xml's file and some dependencies. In the descriptor.xml file I defined to spread dependencies in folders. I noticed that by using the element transitive dependencies are not in

Re: multi-module 'site-deploy' gets inter-module links wrong

2009-12-07 Thread Mark H. Wood
On Mon, Dec 07, 2009 at 08:53:02PM +0100, Dennis Lundberg wrote: > The Site Plugin uses the element of the POM do determine relative > links between parent/child sites. In your example both the parent and > the child point to the same , making the Site Plugins think that > they are in the same pla

Re: Hanging on release:prepare

2009-12-07 Thread Jeff French
Thanks, Paul. I found that http://jira.codehaus.org/browse/MRELEASE-238 MRELEASE-238 already existed, so I added my mvn -X output there. The issue's comments note that 2.0-beta-5 works. I verified that as true on my system. Paul Benedict-2 wrote: > > Jeff, I would create a JIRA issue for pro

Re: creating eclipse project from ejb maven project

2009-12-07 Thread David Siefert
Solved it with the help of a coworker. Need to add the following nature: com.genuitec.eclipse.j2eedt.core.ejbnature to the maven-eclipse-plugin configuration. Thanks, David From: David Siefert To: users@maven.apache.org Sent: Mon, December 7, 2009 1:53:09

Re: [nexus-user] Re: obtain latest snapshot with single http call?

2009-12-07 Thread Beat Strasser
Hi Brian > Use curl. There's a fix in 1.4.1 to make the auth work better with wget > but curl should work fine. Thanks, curl works perfectly. And under certain circumstances, wget seems to work also. -- Beat Strasser - To unsu

Re: multi-module 'site-deploy' gets inter-module links wrong

2009-12-07 Thread Dennis Lundberg
The Site Plugin uses the element of the POM do determine relative links between parent/child sites. In your example both the parent and the child point to the same , making the Site Plugins think that they are in the same place. Hence no links. Mark H. Wood wrote: > I'm trying to work out how to

creating eclipse project from ejb maven project

2009-12-07 Thread David Siefert
Hi All- I have a Maven2 POM and need to generate an Eclipse (specifically MyEclipse) IDE project. The POM specifies an EJB project (project.packaging: "ejb") but it seems that MyEclipse is loading it as a Java Project (not recognized as a JAR that can be deployed to an application server). An

Re: How to include unattached HTML pages to maven site?

2009-12-07 Thread Dennis Lundberg
You can always add links to your own pages in the menu, by creating a site.xml file. Those links will not be under the heading "Project reports" though. jimmi4664 wrote: > I know it should, but there's some problem with it and the report is not > added to project reports. > > So is there a way to

Re: obtain latest snapshot with single http call?

2009-12-07 Thread James Russo
I use this call wget --http-user=XXX --http-password=XXX http:///service/local/artifact/maven/redirect?r=snapshots&g=com.uappoint&a=MODULE-A&v=3.0.1-SNAPSHOT&p=exe"; but I am not running 4.0 yet. --http-user and --user should be equiv according to man page. I connect, get a 301 and then g

Re: obtain latest snapshot with single http call?

2009-12-07 Thread Beat Strasser
On Dec 7, 2009, at 2:13 PM, Beat Strasser wrote: However, how do you handle authentication? For the above url to work, you need a valid session cookie. I'd would be ideal to have a single http call (using wget for example) with HTTP Basic Authentication (with SSL). Is there already a solution ava

Re: obtain latest snapshot with single http call?

2009-12-07 Thread James Russo
On Dec 7, 2009, at 2:13 PM, Beat Strasser wrote: > > However, how do you handle authentication? For the above url to work, > you need a valid session cookie. I'd would be ideal to have a single > http call (using wget for example) with HTTP Basic Authentication (with > SSL). Is there already a s

Re: obtain latest snapshot with single http call?

2009-12-07 Thread Beat Strasser
Hello Can I just do a 'wget' against nexus to grab the latest snapshot and copy this to webserver? Is there a special "latest snapshot" link available in nexus or must I download the process the metadata to determine the latest one? I had the same problem with getting the latest snapshot ve

multi-module 'site-deploy' gets inter-module links wrong

2009-12-07 Thread Mark H. Wood
I'm trying to work out how to use the site plugin with a multimodule product. I've worked my way through how site:site creates the modules' sites individually. Both site:stage and site-deploy still seem to have a problem, or I have a problem with them. When using site-deploy, the modules' files

Re: dumb quetsion . . .

2009-12-07 Thread Kalle Korhonen
There cannot be a single answer to this since applications, application packages and use cases are different. If you are building webapplications and updating your own site, Maven cargo plugin is very effective (google this list for examples, lots of them). If you are developing a client-side appli

Re: Profile-Based Naming

2009-12-07 Thread Wayne Fay
> be named differently based on the profile run. For example, I would like > the "dev" profile to produce myapp-dev.war and the "prod" profile to > produce myapp-prod.war. You can use for this. Note that can also work but it only affects the file name in /target -- the artifact installed to you

Re: dumb quetsion . . .

2009-12-07 Thread Alexander
I do copy all dependencies in lib folder and then add them to jar classpath. 2009/12/8 ChadDavis > I'm been starting to use Maven for some of my projects. One thing > that I've not been able to clear up is how the dependencies get > deployed to my deployment environment. For development, I som

dumb quetsion . . .

2009-12-07 Thread ChadDavis
I'm been starting to use Maven for some of my projects. One thing that I've not been able to clear up is how the dependencies get deployed to my deployment environment. For development, I sometimes use the assembly plugin's ability to generate a single Jar with all dependencies included, or I use

Profile-Based Naming

2009-12-07 Thread Neil Chaudhuri
I am using Maven profiles to generate my primary build artifact--a war file-for two different environments. I would like to have this war file be named differently based on the profile run. For example, I would like the "dev" profile to produce myapp-dev.war and the "prod" profile to produce myapp-

Re: What is the 'Maven way' to handle multi-artifact code generation from a single model source?

2009-12-07 Thread K J
Thanks for the input everyone. On Thu, Dec 3, 2009 at 10:41 AM, Kalle Korhonen wrote: > I wouldn't worry *too much* about the true and righteous way. While I > agree that the more modular approach is more proper and allows for > more flexibility, as with anything else, you need to strike a balan

Re: cannot build project because of metadata file

2009-12-07 Thread Wayne Fay
>> Delete this file and try your build again. It is a corrupt XML file >> (looks to be HTML) that was sent from dev.java.net repo at some point. > > I tried, but the file is generated again with the same error Change the file name to .html and open it with your web browser. I assume there is a pro

Re: WAR manifest customization - not again!

2009-12-07 Thread amit patel
Well, I paid a little more attention and optional does work, but not like I expected. Tuscany comes with 200 jars. optional removed that particular jar, but not its dependencies! so i was still stuck with 199 jars in my web-inf lib, until I used packagingExcludes In case where you want 15 jars on

Re: cannot build project because of metadata file

2009-12-07 Thread lmk
Wayne Fay wrote: > >> Cannot read metadata from >> 'C:\maven\repository\com\xx.parent\1.0-SNAPSHOT\maven-metadata-dev.jav.xml': >> end tag name must match start tag name from line 7 >> (position: > > Delete this file and try your build again. It is a corrupt XML file > (looks to be HTML) tha

Re: cannot build project because of metadata file

2009-12-07 Thread Wayne Fay
> Cannot read metadata from > 'C:\maven\repository\com\xx.parent\1.0-SNAPSHOT\maven-metadata-dev.jav.xml': > end tag name must match start tag name from line 7 (position: Delete this file and try your build again. It is a corrupt XML file (looks to be HTML) that was sent from dev.java.net repo a

Re: Building using different files based on a build flag?

2009-12-07 Thread Wayne Fay
> ps - What made me think there was a 1.0 version was the page you sent to me > -- http://maven.apache.org/enforcer/enforcer-rules/requireProperty.html, > specifically the "1.0".  I didn't realize I shouldn't > take the example literally. Probably the documentation should be fixed/updated to inclu

Re: Building using different files based on a build flag?

2009-12-07 Thread laredotornado
Thanks. Everything works perfectly now. Really appreciate the help, - Dave ps - What made me think there was a 1.0 version was the page you sent to me -- http://maven.apache.org/enforcer/enforcer-rules/requireProperty.html, specifically the "1.0". I didn't realize I shouldn't take the example

Maven - The definitive guide in French

2009-12-07 Thread Emmanuel Hugonnet
Hi, Maven - The Definitive Guide has been translated in French and we are looking for readers to find typos and small corrections. So if you are a French speaking person,  you are not alone ;o) The book is available freely from here : http://www.maven-definitive-guide.fr/ Your remarks are welcome a

cannot build project because of metadata file

2009-12-07 Thread lmk
Hi, a strange problem occurs on webapps project, I can't install a webapp project, the metadata file for the parent artifact is not well formed. I get the exception below: [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Cannot find parent: xxx.parent for project: xx:webapp:war:1.0

Re: [mojo-user] [extrends AbstractMojo]

2009-12-07 Thread david
On Mon, 7 Dec 2009, NGUYEN Cong Kinh wrote: Hello everybody, I'm creating a plugin maven (extends AbstractMojo). In fact, in the code of the plugin, I want to load a file in the resources directory of the plugin maven. How I can do that? Because normally the current directory is directory of

[extrends AbstractMojo]

2009-12-07 Thread NGUYEN Cong Kinh
Hello everybody, I'm creating a plugin maven (extends AbstractMojo). In fact, in the code of the plugin, I want to load a file in the resources directory of the plugin maven. How I can do that? Because normally the current directory is directory of the module that uses the plugin maven. Than

Re: How to include unattached HTML pages to maven site?

2009-12-07 Thread jimmi4664
I know it should, but there's some problem with it and the report is not added to project reports. So is there a way to include "detached" external HTML pages to the creates site? Dennis Lundberg-2 wrote: > > jimmi4664 wrote: >> My build generates some HTML documentation, but as part of norma

Re: Conditional archetype generation

2009-12-07 Thread stephanos
I found a JIRA feature request for what I described. Although it's flagged "fixed" I think there wasn't really any change there, at least I can't find any documentation about it. link: http://jira.codehaus.org/browse/ARCHETYPE-58 Cheers, stephanos stephanos wrote: > > Hi, > > I need to know

[ANN] Hosted CI For Open Source Maven-based projects

2009-12-07 Thread Adam Leggett
Dear Maven Users, Mike (http://mikeci.com) is pleased to be able to offer *free* hosted continuous integration for open source Maven projects. Please see here for further details: http://bit.ly/6gurGG. Many Thanks Adam Leggett Chief Architect Mike http://www.mikeci.com

Re: Difference between repo1.maven.org/maven2 and repo2.maven.org/maven2?

2009-12-07 Thread Glen Mazza
Hmmm...I seem to be getting a delta[1] between the two repos when I download Apache Axis artifacts. I'll see what the Axis team has to say. Thanks, Glen [1] https://issues.apache.org/jira/browse/AXIS2-4571 BRIAN FOX-5 wrote: > > They are the same. Internally the nginx config for central is r

Is Aggregation indeed absolutely broken?

2009-12-07 Thread Andrew Gaydenko
Hi! Say, aggregating pom declares modules A (without dependencies) and B (depends on A). Say, I have changed source code in A and installing aggregating pom. What we shell see? Ok, at first module A is recompiled, then module B is checked if it's source code was or was not changed, and, as fa

Re: Plugin version in SUPER POM simply ignored, with trivial pom.xml

2009-12-07 Thread kdwinkler
Right, it looks like "help:describe -Dplugin=resources" will download and show the latest version of a plugin, regarless of what version the project/pom actually specifies. In which case this FAQ entry is VERY wrong, and should be update ASAP to save people trouble: http://maven.apache.org/gener