How can i run Forrest from within Maven 2.*

2008-09-25 Thread Markus Kramer
Hello all, can anybody tell me, how i can run apache Forrest from within Maven 2.* ? or how i can add goals to my projects maven.xml? At the Apache Forrest homepage i can only see, how to run Forrest from within Maven 1.* (

Re: release pluging not workin?

2008-09-25 Thread nodje
Well, there're some times when you need to go backward. And it sometimes does work, check this out: in this exemple, the release plugin is asking again: What is the new development version for company-parent? (com.company:company-parent) 2-SNAPSHOT: : 1-SNAPSHOT And it does work (see trace

Plugin inheritance

2008-09-25 Thread tjunak
Hi, I have a following problem with plugin inheritance. I have put a plugin with lot of configuration in Parent-Pom, there are lot of child-poms in the project. Most of them use the plugin configuration but in some cases I have to re-define some options. Let's say: Parent-Pom: plugin

Re: Plugin inheritance

2008-09-25 Thread Baptiste MATHUS
Hi, You should try pluginManagement node to manage this, see http://maven.apache.org/pom.html#Plugin_Management. Cheers. 2008/9/25 tjunak [EMAIL PROTECTED] Hi, I have a following problem with plugin inheritance. I have put a plugin with lot of configuration in Parent-Pom, there are lot

Re: building two artifacts with shared source code

2008-09-25 Thread Tomasz Pik
On Thu, Sep 25, 2008 at 6:51 AM, Tomek Maciejewski [EMAIL PROTECTED] wrote: P.S I have one more question. Let's assume that I deployed some artifact. Some people have used it so they have copy of it in local repository. Now I change something in artifact and deploy it with the same version

Re: Confused with activeProfile

2008-09-25 Thread Marc Schneider
Hello Brett, The error I have is : [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Cannot invoke Tomcat manager And then java.io.IOException: Server returned HTTP response code: 401 which means unauthorized. In fact this clearly shows that some parameters are missing. So

tycho:sample.project

2008-09-25 Thread simoha
hi all, I have downloaded the latest version of tycho and successfully installed . I would like to compile/install the sample.project , but I get the following error message: D:\test\tycho\sample.projectmvn clean compile [INFO] Scanning for projects... [INFO]

RE: Confused with activeProfile

2008-09-25 Thread Jörg Schaible
Hi Marc, Marc Schneider wrote: Hello Brett, The error I have is : [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Cannot invoke Tomcat manager And then java.io.IOException: Server returned HTTP response code: 401 which means unauthorized. In fact this

deploy multi-module artifacts with derived artifactIds

2008-09-25 Thread Holger Brands
I've a multi-module build that is compiled with target 1.6 and deployed to our company repo with artifactIds artifact1, artifact2 and so on. Now, what I want to achieve is the following: I want the same multi-module build optionally to be compiled with target 1.5 and deployed to our company repo

Re: SourceForge.net shell changes and repository syncing

2008-09-25 Thread Mirko Nasato
Lots of syncing failures reported to the maven-repo-maintainers list today... this answers my question I guess. http://mail-archives.apache.org/mod_mbox/maven-repo-maintainers/200809.mbox/[EMAIL PROTECTED] Mirko Nasato wrote: SourceForge.net made changes to their shell services recently

Re: Confused with activeProfile

2008-09-25 Thread Marc Schneider
Hi Jörg, Thanks for your answer, I understand what you mean. So I tried to add to the *parent's pom* this : activation activeByDefaulttrue/activeByDefault /activation after mvn clean install I get this strange error : [ERROR] FATAL ERROR [INFO]

Redeploy a released artifact [was: building two artifacts with shared source code]

2008-09-25 Thread Baptiste MATHUS
Hi Tomek, Next time, it'd be preferable to ask two questions in two different threads :). For your question, the answer is no and has been answered recently on this list. You should never redeploy released artifact. Btw, in the maven3.0 trunk code, the default has changed (see

Re: local repository grows indefinitely on CI server

2008-09-25 Thread Baptiste MATHUS
Hi Craig, Well, no, I don't think the bug you're referring to is related. Your problem is a quite common one. See this bug http://jira.codehaus.org/browse/MNG-233 and the dependency:purge-local-repository goal of the maven-dependency-plugin. You will also find interesting relating information

Re: local repository grows indefinitely on CI server

2008-09-25 Thread Emmanuel Venisse
Yes, it's a common problem on CI server but on developer workstation too if builds are intensive. About CI server, it is necessary to clean sometimes old snapshots because they are generally not used. Continuum have this features since 1.2, I don't know for other CI servers and if they doesn't

Re: deploy multi-module artifacts with derived artifactIds

2008-09-25 Thread Stephen Connolly
I want to say classifiers but that only works if the dependencies have not changed. Perhaps what you want is a different project that depends on the first one and unpacks it's -source.jar and does a recompile with the different jdk On 25 September 2008 12:00, Holger Brands [EMAIL PROTECTED]

Re: deploy multi-module artifacts with derived artifactIds

2008-09-25 Thread Nick Stolwijk
You could create a profile which configures the build/finalname and the compiler plugin. This should create the desired artifact. ie: profiles profile id1.5build/id build finalName${artifactId}-${version}-jdk1.5/finalName plugins

Re: SourceForge.net shell changes and repository syncing

2008-09-25 Thread Manos Batsis
Mirko Nasato wrote: Lots of syncing failures reported to the maven-repo-maintainers list today... this answers my question I guess. This has happened a number of times in the past during scheduled (or not) outages. I also think they are still in the process of moving datacenters so... hth,

Maven Project

2008-09-25 Thread ashleyvijay
Hello, I tried to create a maven project thro command line and it shows some error. My repository has these plugins. I heard could be cos of my proxy settings but I hve fixed that too. Please help!! From command line C:\mvn archetype:create -DgroupId=com.javaworld.hotels

Re: deploy multi-module artifacts with derived artifactIds

2008-09-25 Thread Holger Brands
Hi Nick, I (already) tried to use a profile in the parent pom, but the adapted finalName is ignored by the jar plugin, e.g. mvn package creates the jar with the default name. (I use Maven 2.0.9 with jar plugin version 2.2) In addition, even if that would work, would the deploy plugin use the

Re: building two artifacts with shared source code

2008-09-25 Thread Wendy Smoak
On Wed, Sep 24, 2008 at 9:51 PM, Tomek Maciejewski [EMAIL PROTECTED] wrote: I have one more question. Let's assume that I deployed some artifact. Some people have used it so they have copy of it in local repository. Now I change something in artifact and deploy it with the same version number.

Re: deploy multi-module artifacts with derived artifactIds

2008-09-25 Thread Holger Brands
Stephen, I don't quite understand your tip. My main problem is not compiling. I don't need different JREs to link against, I just have to specify a different target compiler option. Just in case I wasn't clear about that. The problem is to tweak the artifactIds to have a suffix. The generated

Re: How to know programatically the SNAPSHOT version

2008-09-25 Thread mateamargo
Give us more context -- is this in a plugin, are you using Maven embedded, or what?? Wayne No, I'm using Maven for compiling not embedded. I want to know if there is a way to the get the timestamp of the SNAPSHOT in some of the Maven's phases and put it into a text file to read it after. --

Re: SourceForge.net shell changes and repository syncing

2008-09-25 Thread Mirko Nasato
Thanks, but I don't think this is just an outage. From http://sourceforge.net/community/forum/topic.php?id=3518page The access methods for project web file management have changed. The new accepted methods are: SFTP, SCP, rsync over SSH. The hostname for project web file management has

Site deployment to sourceforge.net broken

2008-09-25 Thread Marat Radchenko
After last changes in sf.net infrastructure there are three ways of uploading stuff to web area: 1) sftp 2) scp 3) rsync over ssh I've tried two first options and they both failed. Maven uploads zip file (wagon.zip) and then tries to unzip it. However unzip commandis not available. As far as

Re: deploy multi-module artifacts with derived artifactIds

2008-09-25 Thread Stephen Connolly
OK, the first idea when Maven 2 was being designed is that you would use different classifiers to differentiate between the different JDKs... thus you could go dependency groupIdcom.foo.foo/groupId artifactIdbar/artifactId classifierjdk15/classifier /dependency in order to use the jdk15

RE: New Archetypes inside Eclipse

2008-09-25 Thread Patel, Ronak (US SSA)
Eugene, Thanks for your reply. How do you reindex the local Maven repository inside of Eclipse? I can't seem to find out how to do that. Ronak -Original Message- From: Eugene Kuleshov [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2008 9:30 PM To: users@maven.apache.org

Re: building two artifacts with shared source code

2008-09-25 Thread Tomek Maciejewski
Thanks guys, now I understand that under the development I should use snapshots, it sounds pretty good. Do some of you know how to deal with the same project for different platforms. That's my first question and I am really intersted how it is done by experts? Tomek 2008/9/25 Wendy Smoak [EMAIL

Re: New Archetypes inside Eclipse

2008-09-25 Thread Thor
You can reindex your local catalog from the preferences page of your Maven Plugin (M2Eclipse or q4E) in the Eclipse IDE You can also update your local archetype catalog using the maven archetype plugin, like this: mvn archetype:crawl It'll check your local repo and generate the

Re: New Archetypes inside Eclipse

2008-09-25 Thread Thor
In the last mail when I wrote If you wish to use it from your console, just hit the next command, i meant use the local archetype catalog... =) On Thu, Sep 25, 2008 at 11:18 AM, Thor [EMAIL PROTECTED] wrote: You can reindex your local catalog from the preferences page of your Maven Plugin

Re: Directory deploy for ear project

2008-09-25 Thread Kem Elbrader
I've tried several other phases with no luck. It appears that the dependencies are copied and any other ear work is done during the package phase where the ear:ear goal is bound. But the packaging of the .ear file is also done by this goal. Is there a way to prevent this plugin of creating the

RE: New Archetypes inside Eclipse

2008-09-25 Thread Patel, Ronak (US SSA)
Yup I found it and got it to workthanks =) -Original Message- From: Thor [mailto:[EMAIL PROTECTED] Sent: Thursday, September 25, 2008 10:20 AM To: Maven Users List Subject: Re: New Archetypes inside Eclipse In the last mail when I wrote If you wish to use it from your console, just

RE: New Archetypes inside Eclipse

2008-09-25 Thread Eugene Kuleshov
Patel, Ronak (US SSA) wrote: It should work after you reindex local Maven repository in the IDE, then default indexer-based Archetype catalog will pick it up. There is jira issue suggesting to incrementally update index after executing Maven install from the IDE, please vote on it if

Re: Directory deploy for ear project

2008-09-25 Thread Wayne Fay
You could probably grab the source, tweak it a bit, and create a new configuration value createEarFile or something (with default value true) to meet your needs. Then the plugin does exactly what you want/need. Wayne On Thu, Sep 25, 2008 at 11:07 AM, Kem Elbrader [EMAIL PROTECTED] wrote: I've

Re: deploy multi-module artifacts with derived artifactIds

2008-09-25 Thread Holger Brands
Nick, forget about the ignored finalName profile configuration. I activated the wrong profile. But the second question remains open. I tried the following solution: I defined a property suffix with an empty string as default value in the parent pom. In the jdk1.5 build profile a defined the

Re: Directory deploy for ear project

2008-09-25 Thread Kem Elbrader
Sounds good, I'll try that. Thanks, Kem On Thu, Sep 25, 2008 at 12:19 PM, Wayne Fay [EMAIL PROTECTED] wrote: You could probably grab the source, tweak it a bit, and create a new configuration value createEarFile or something (with default value true) to meet your needs. Then the plugin does

Re: deploy multi-module artifacts with derived artifactIds

2008-09-25 Thread Holger Brands
Ok, I understand better now. So, ignoring the issue of needing different dependencies for different JDKs, I could use classifiers. In the jdk1.5 profile I would configure the jar plugin to produce jars with a classifier jdk1.5. If there are dependencies between modules, I would have to redefine

Re: Directory deploy for ear project

2008-09-25 Thread Wayne Fay
Assuming you are successful, you should contribute it back via JIRA for future inclusion in an ear plugin release. Then you won't need to worry so much about maintaining you own branch with this relatively minor addition. I seem to recall someone else asking about this on the list, but it was a

Re: Maven Project

2008-09-25 Thread Wayne Fay
Sending your settings.xml file is just a waste of bandwith. Try adding -U -X to the mvn command. If that doesn't solve things, you are probably experiencing more problems related to your proxy which will require a network admin at your site/firm to help you resolve. Wayne On Thu, Sep 25, 2008

Re: deploy multi-module artifacts with derived artifactIds

2008-09-25 Thread Stephen Connolly
Actually you could configure two executions of the compiler and jar plugins to generate both artifacts in the one go! 2008/9/25 Holger Brands [EMAIL PROTECTED] Ok, I understand better now. So, ignoring the issue of needing different dependencies for different JDKs, I could use classifiers.

Re: Directory deploy for ear project

2008-09-25 Thread Kem Elbrader
Thanks, I'll do so. On Thu, Sep 25, 2008 at 1:22 PM, Wayne Fay [EMAIL PROTECTED] wrote: Assuming you are successful, you should contribute it back via JIRA for future inclusion in an ear plugin release. Then you won't need to worry so much about maintaining you own branch with this relatively

Re: SourceForge.net shell changes and repository syncing

2008-09-25 Thread Mirko Nasato
Apparently some more info has been posted by Max Berger to the repo-maintainers list. Reposting it below. (Since BTW that message shows up as an error occured while fetching this message in the Atom feed.) Cheers Mirko -- From: Max Berger [EMAIL PROTECTED] Subject: Sourceforge changes

Re: SourceForge.net shell changes and repository syncing

2008-09-25 Thread Carlos Sanchez
it has been fixed now On Thu, Sep 25, 2008 at 3:00 PM, Mirko Nasato [EMAIL PROTECTED] wrote: Apparently some more info has been posted by Max Berger to the repo-maintainers list. Reposting it below. (Since BTW that message shows up as an error occured while fetching this message in the Atom

Re: Directory deploy for ear project

2008-09-25 Thread Kem Elbrader
I've created an issue in Jira with an attached patch. Hopefully it will be included in the next version of this plugin. See http://jira.codehaus.org/browse/MEAR-92 On Thu, Sep 25, 2008 at 3:01 PM, Kem Elbrader [EMAIL PROTECTED] wrote: Thanks, I'll do so. On Thu, Sep 25, 2008 at 1:22 PM,

Ignoring .harvest.sig files?

2008-09-25 Thread Jon Seymour
Maven understands .svn and CVS directories and most plugins (for example, the assembly plugin) won't copy these into build targets from source directories. Is there any simple way to extend the range of patterns that Maven plugins implicitly exclude to exclude artefacts from other SCM systems

Re: building two artifacts with shared source code

2008-09-25 Thread Wayne Fay
Different platforms are usually addressed by adding a classifier to the artifact, eg Windows, MacOSX, or in your case, J2ME. You may note a strong correlation between the shorter paragraph in your PS and the number of responses. Your first question is simply too long and convoluted, with no

Re: [Fwd: verbosetrue/verbose is ignored for maven-compiler-plugin]

2008-09-25 Thread Wayne Fay
I saw this thread and figured this must be a simple bug. I dug into the sources (of Maven and Plexus) and found what I believe is the root of the problem. In short, while the Maven plugin supports the verbose configuration, the underlying plexus-compiler does not, so it never does anything no

Re: How to know programatically the SNAPSHOT version

2008-09-25 Thread Brett Porter
A plugin that queries the artifact's version (not expressions will not do this) after the deployment has occurred will be able to do this. - Brett 2008/9/26 mateamargo [EMAIL PROTECTED]: Give us more context -- is this in a plugin, are you using Maven embedded, or what?? Wayne No, I'm

The Definitive Guide: online vs. print

2008-09-25 Thread Trevor Harmon
I purchased the printed version of Maven: The Definitive Guide. I'm confused about how it differs from the online version, which is available here: http://www.sonatype.com/community/definitive_guide.html The online version is Beta 0.16, September 1, 2008, which I believe is newer than the

Re: Any idea for us about dependence conflict management.

2008-09-25 Thread Brett Porter
You have a few alternatives here. * The dependency:tree goal shows the final resolution selection that can help track them. * In an IDE, you have apps such as this which can manage the versions: http://code.google.com/p/q4e/wiki/DependencyAnalysis * You can set the versions to be restrictive, eg

Re: pom versions and svn branches

2008-09-25 Thread Brett Porter
You can use release:branch for 'random' points as well. It operates on the currently checked out versions. - Brett 2008/9/25 Andreas Ebbert-Karroum [EMAIL PROTECTED]: Hi, is there a general recommendation if and how to change your versions when you branch? Simple scenario is when you

Re: Accessing child/parent properties

2008-09-25 Thread Brett Porter
2008/9/25 Andre Dantas Rocha [EMAIL PROTECTED]: Hi all, I'd like to access a child pom property from its parent. Is it possible? Something with this syntax: ${parentProject.childProject.property}. No, this isn't possible. The problem is that I have an EAR project and would like to

Re: maven ant tasks and the provided scope

2008-09-25 Thread Brett Porter
I don't believe so, since it assumes it to be provided. If you use compile instead of provided, does it work? It is not expected to be transitive, however. - Brett 2008/9/25 William Vuong [EMAIL PROTECTED]: I have something like this in my ant file and the maven ant tasks 2.0.9 and ant 1.7

Re: How can i run Forrest from within Maven 2.*

2008-09-25 Thread Brett Porter
I don't believe they have a native plugin, so you may need to use the ant tasks (as is done here) from the antrun plugin. - Brett 2008/9/25 Markus Kramer [EMAIL PROTECTED]: Hello all, can anybody tell me, how i can run apache Forrest from within Maven 2.* ? or how i can add goals to my

Re: Ignoring .harvest.sig files?

2008-09-25 Thread Brett Porter
This is generally coded in. If your plugin has a defaultExcludes option that might apply to various sets that will cover it, but at the moment you generally need to use it repeatedly. It would be a good idea to build this into the project model to be able to specify it once. I believe this is