Re: Stuck on outdated version of maven-scm-provider-gitexe?

2010-05-05 Thread Anders Hammar
...defined through the pluginManagement section as I exemplified in my earlier answer. /Anders On Wed, May 5, 2010 at 19:28, Dennis Lundberg denn...@apache.org wrote: You need maven-release-plugin version 2.0. That version includes an upgrade of Maven SCM to version 1.3. See

Re: Adding jars to the compiler plugin's classpath

2010-05-05 Thread Anders Hammar
To me, your questions suggests that you're trying to use Maven in a way it is not intended. One advice: don't! If your project has many dependencies, declare them! Maven will then be able to manage the dependencies and you will benefit from a better structure in your projects. /Anders On Thu,

Re: Adding jars to the compiler plugin's classpath

2010-05-05 Thread Anders Hammar
Don't use the system scope. It is not good in general as it might not be portable and it will be deprecated in Maven 3. /Anders On Thu, May 6, 2010 at 07:55, Kalpak Gadre kalpa...@gmail.com wrote: I don't think there is any way you can provide a wild-card dependency like somedir/**/*.jar

Re: Maven 3?

2010-05-06 Thread Anders Hammar
When it's ready. There is no announced date. /Anders On Thu, May 6, 2010 at 08:30, Marco Tedone marco.ted...@googlemail.comwrote: Hi, when will Maven 3 be released? Thanks. M. - To unsubscribe, e-mail:

Re: Best/good practice declaring hosted repos with a mirror

2010-05-06 Thread Anders Hammar
I use option 1. /Anders On Thu, May 6, 2010 at 10:33, Osipov, Michael michael.osi...@siemens.comwrote: Hi folks, I have recently struggled with a very annoying issue of mirror config and need so idea on a best practice approach. My setup is fairly simple: I have setup a Nexus instance in

Re: How to do Buld and Deployment Different time

2010-05-06 Thread Anders Hammar
The Maven lifecycle doesn't include deployment to the server(s) where it will be execute, e.g. production. The last phase is called 'deploy' and that confuses some people as it is about publishing the artifact to a repo. That's where Maven ends typically. What you then need to do is to take the

Re: Freaking out: javac works, maven-compiler-plugin does not

2010-05-06 Thread Anders Hammar
Any configuration inherited from the parent? Try removing the parent and see if that changes things. You could also execute mvn help:effective-pom and verify the effective configuration for the compiler plugin. Also, executing mvn compile -X will get you loads of debug info. Could it be that the

Re: Migration to Maven ?!

2010-05-07 Thread Anders Hammar
I suggest using Maven 3.0-beta-1 right now. It is very stable and lots of existing bugs in 2.2.1 have been fixed. However, be aware that there is currently some incompatibilities with the site functionality (maven-site-plugin). regarding b), I could point out that m2eclipse is already using Maven

Re: Migration to Maven ?!

2010-05-07 Thread Anders Hammar
something about maven3-beta-1 and Hudson ? This would be more important for us. In Hudson I can currently only set up a Maven2 project - is this also working with Maven 3 oder do we have to wait till the maven plugin in hudson is updated ? Thanks Anders Hammar wrote: I suggest using

Re: eXist native XML database

2010-05-09 Thread Anders Hammar
You should add these libs to a remote repository of your company's repo manager. Then it will just work for all your developers. /Anders 2010/5/9 Tomáš K. tomas@gmail.com Hi, I'm working on maven project and I need to use embedded eXist database. Unfortunatelly, there is only 5 years

Re: How to replace environment related files with maven.

2010-05-11 Thread Anders Hammar
Yes, this has been discussed several times before on this list. Searching Nabble or similar would give you hits on how we suggest you do this with Maven. /Anders On Tue, May 11, 2010 at 11:51, Jörg Schaible joerg.schai...@gmx.de wrote: Hi Donny, =?utf-8?B?6LCiIOWGrOm4ow==?= wrote: Hi,

Re: unit test not finding dependent class

2010-05-16 Thread Anders Hammar
Is OtaUploadRecordReader a class you've written and that's in the same Maven project? If so, check that it is being compiled by checking that the .class file exists under target/classes/ If it's not being compiled there's some error you need to fix in your project. /Anders On Fri, May 14, 2010

Re: unit test not finding dependent class

2010-05-16 Thread Anders Hammar
target/classes/com/ciq/m2m/platform/tester/MergePkgsTester.class On Sun, May 16, 2010 at 7:16 AM, Anders Hammar and...@hammar.net wrote: Is OtaUploadRecordReader a class you've written and that's in the same Maven project? If so, check that it is being compiled by checking that the .class

Re: Using Maven without internet access

2010-05-17 Thread Anders Hammar
This is described in the Nexus book: http://www.sonatype.com/books/nexus-book/reference/maven.html It should be the same with Artifactory, maybe just some other urls. /Anders On Mon, May 17, 2010 at 13:07, Kenneth Petersen k...@lpk.dk wrote: I think my first mail was lost, so here I go again...

Re: Using Maven without internet access

2010-05-17 Thread Anders Hammar
Not sure if you intended to write some reply? Your mail was blank. /Anders On Mon, May 17, 2010 at 11:56, Kenneth Petersen k...@lpk.dk wrote: I am new to Maven, so if the answer is simple, I apologies. I am trying to use Maven on a network with firewall restrictions disallowing Maven

Re: unit test not finding dependent class

2010-05-17 Thread Anders Hammar
I ran into something similar yesterday (however, in that case it didn't work with m2e either). The scm used was clearcase (dynamic view) which was likely causing the problem (it had happened before apparently). I don't know why, but after several mvn clean install and removing the local repo at

Re: Is there a way to disable transitive dependencies?

2010-05-18 Thread Anders Hammar
I just want to point out that there is not need to first call mvn compile and then mvn package. mvn package is sufficient as it includes all phases up to, and including, package. /Anders On Tue, May 18, 2010 at 14:42, AVSUNIL sunil...@infosys.com wrote: Hi, I have project A which produces

Re: Exclude all transitive dependencies by version?

2010-05-18 Thread Anders Hammar
http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html Look under Dependency Exclusions. /Anders On Tue, May 18, 2010 at 19:21, Ron Wheeler rwhee...@artifact-software.comwrote: We have the same situation. Include the Spring that you need directly

Re: Exclude all transitive dependencies by version?

2010-05-19 Thread Anders Hammar
The dependency plugin has nothing to do with Maven's dependency management, which is what you want to controll. Your original config would affect that. /Anders On Wed, May 19, 2010 at 15:07, C. Benson Manica cbman...@gmail.com wrote: Thanks, that did solve the problem, although I'm still

Re: Exclude all transitive dependencies by version?

2010-05-19 Thread Anders Hammar
Sorry, should be Your original config would NOT affect that. /Anders On Wed, May 19, 2010 at 15:32, Anders Hammar and...@hammar.net wrote: The dependency plugin has nothing to do with Maven's dependency management, which is what you want to controll. Your original config would affect

Re: Broken mvn site

2010-05-19 Thread Anders Hammar
I'm pretty sure you're close to pissing some people off. why hasn't this been fixed yet and When is it going to be fixed is not the right wording for open source projects where you're not shipping in anything yourself. Creating jiras and providing patches (with test cases) is the way to go.

Re: Which Jira to use for items concerning the Apache Common Parent POM?

2010-05-19 Thread Anders Hammar
If you don't get an answer here, try the dev list. /Anders On Wed, May 19, 2010 at 23:08, Marshall Schor m...@schor.com wrote: Hi, I've posted earlier about a couple of possible improvements to the Apache Common Parent POM - used by Apache projects [1]. I'd like to add some Jira issues

Re: Maven EAR + EJB ... jars with prefixed lib/ except for EJB

2010-05-20 Thread Anders Hammar
Does it work (when deploying in the app server) if you just skip the manifest config part of the war plugin? I was under the impression that the manifest file doesn't really matter for war files, but I could be wrong. (You'd be accessing the classes from the classpath and that's handled by the

Re: Maven EAR + EJB ... jars with prefixed lib/ except for EJB

2010-05-20 Thread Anders Hammar
/manifest /archive You should still keep this: warSourceExcludesWEB-INF/lib/*.jar/warSourceExcludes /Anders On Thu, May 20, 2010 at 17:41, zm _m...@hotmail.com wrote: Anders Hammar wrote: Does it work (when

Re: unable to run jetty

2010-05-21 Thread Anders Hammar
Try mvn jetty:run instead (not ketty:run)? :-) Seriously, I assume you have the xml snippet within pluginManagement? (I believe so as the specified version of the plugin is being used) For the commons-dbcp dependency you've specified system scope, but no path. That's wrong. It exists at central

Re: unable to run jetty

2010-05-21 Thread Anders Hammar
/jetty-maven-plugin-7.0.0.RC6.jar at java.net.URI$Parser.fail(URI.java:2809) please help me . Anders Hammar wrote: Try mvn jetty:run instead (not ketty:run)? :-) Seriously, I assume you have the xml snippet within pluginManagement? (I believe so as the specified version

Re: Maven2 Compile With source inclussion

2010-05-22 Thread Anders Hammar
The profile is called release-profile and still exists in 3.0-beta-1. However, the comment says it is going to be removed in the future. You normally trigger that profile with -DperformRelease=true (but -P release-profile would work as well). The release plugin triggers this as well by default.

Re: Why is maven trying to download installed jars?

2010-05-24 Thread Anders Hammar
Please remember that this generated minimal pom just holds the required GAV info. There is no info about dependencies, which makes it...well, minimal. Maven will then not be able to help you with transitive deps and dependency management. So, you should always create a correct pom (including

Re: Why is maven trying to download installed jars?

2010-05-25 Thread Anders Hammar
: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar Sent: den 25 maj 2010 06:48 To: Maven Users List Subject: Re: Why is maven trying to download installed jars? Please remember that this generated minimal pom just holds the required GAV info. There is no info

Re: how can i build a jar file without doing junit test?

2010-05-26 Thread Anders Hammar
Good. I'm sure we were about to confuse the poor guy with all these different suggestions. Maven proclaims standardization, but yet there are sometimes so many ways you can do things...:-) /Anders On Wed, May 26, 2010 at 10:16, Stephen Connolly stephen.alan.conno...@gmail.com wrote: mvn

Re: Maven:test with Junit4

2010-05-26 Thread Anders Hammar
Also, when using JUnit 4, your test class should NOT extend from any JUnit class as was the case in JUnit 3. I remember a very tricky issue on this mailing list a year or so ago, where someone used JUnit 4 style annotations but the tests weren't run. The reason was that the test class extended

Re: Maven 2.0.9 to 2.2.1 and war plugin 2.1-alpha-1

2010-05-26 Thread Anders Hammar
I very simple way of finding out is reading the release notes. http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11150version=12616 /Anders On Thu, May 27, 2010 at 01:03, Patrick Shea patr...@ps1.net wrote: No, but after checking I think it could be alpha-2. Is beta-1 a fix? Patrick

Re: m2eclipse mailing list?

2010-05-28 Thread Anders Hammar
See info here: http://m2eclipse.sonatype.org/project-information.html /Anders On Fri, May 28, 2010 at 15:56, Meeusen, Christopher W. meeusen.christop...@mayo.edu wrote: Is there a separate list for m2eclipse questions? Got m2eclipse properly building my aar services, but I get an annoying

Re: [INFO] Error building POM (may not be this project's POM). - Project ID: unknown:maven-resources-plugin

2010-05-31 Thread Anders Hammar
I'm guessing that you're getting some html/xml response from the firewall which is stored and interpreted as the pom by Maven. Have you configured your mirror (the artifactory instance) in settings.xml correctly? /Anders On Mon, May 31, 2010 at 10:05, Kenneth Petersen k...@lpk.dk wrote: I am

Re: Maven 3.0-beta-1: maven-surefire-plugin's version not defined in the root-pom anymore?

2010-05-31 Thread Anders Hammar
A change between alpha-7 and beta-1 is that almost no plugin versions are locked down in the super-POM any more. This change was triggered by this jira: http://jira.codehaus.org/browse/MNG-4453 /Anders On Mon, May 31, 2010 at 13:50, Heix, Andreas andreas.h...@sap.com wrote: Hi, I am building

Re: Module dependency with unit test

2010-05-31 Thread Anders Hammar
If you're working on the projects A and B independently, you need to have artifact A in a repo first. The easiest way is to do a mvn install on project A first. That will install that into the local repo so it can be found/used by other projects (on your computer). So, now you can build project B.

Ang.: Re: Internal Repository Advice

2010-06-01 Thread Anders Hammar
Today, I think the ones to choose from are nexus and artifactory. They are easy to use, still they have the most features. I believe that the development on archiva is slow (although it does what it is supposed to). /Anders Den 1 jun 2010 16.23, Shan Syed shan...@gmail.com skrev: Artifactory,

Re: SCM Plugin Default Directory

2010-06-01 Thread Anders Hammar
What are you trying to do? Are you checking out your project with the maven-scm-plugin? /Anders On Tue, Jun 1, 2010 at 17:32, D D dawi...@gmail.com wrote: Hello Everyone, I am using CVS as my scm. As I'm project converting from M1 to M2 I noticed that my default checkout is

Re: SCM Plugin Default Directory

2010-06-01 Thread Anders Hammar
repository. Since I'm converting my projects from M1 to M2 I would like to know what is the best practice. Thanks, Dave On Tue, Jun 1, 2010 at 1:18 PM, Anders Hammar and...@hammar.net wrote: What are you trying to do? Are you checking out your project with the maven-scm-plugin? /Anders

Re: [internal-repository] How to use relative path in the declaration of repository

2010-06-02 Thread Anders Hammar
I don't understand. You say you have a problem with an internal repo and that you have deploy the library 'B', but the module structure and the repositories element you're outlining talkes about your local file system structure. This is what you should do: 1. Get yourself an internal remote repo.

Re: scm:checkout ignores tag element

2010-06-04 Thread Anders Hammar
Creating a jira ticket at http://jira.codehaus.org/browse/SCM for this doc enhancement is the best approach. /Anders On Fri, Jun 4, 2010 at 17:14, D D dawi...@gmail.com wrote: To answer my own question: scmVersionbranch_name/scmVersion scmVersionTypebranch/scmVersionType Could we add that

Re: Copying jar in multi module project with assembly

2010-06-04 Thread Anders Hammar
m-assembly-p attaches it by default ( http://maven.apache.org/plugins/maven-assembly-plugin/single-mojo.html#attach), for the single goal. At least if you bind it to the package phase. /Anders On Fri, Jun 4, 2010 at 18:24, Wayne Fay wayne...@gmail.com wrote: But the abc.jar I want to refer to

Re: maven test cannot load cross-module resources/properties ?

2010-06-06 Thread Anders Hammar
Could it be that it is looking for Data.xml at path foo/secondModule/Data.xml. I'm guessing that this is a plain Java thing and not related to Maven. /Anders On Mon, Jun 7, 2010 at 04:30, smallufo small...@gmail.com wrote: I have a maven mantained project with some modules . One module

Re: maven test cannot load cross-module resources/properties ?

2010-06-07 Thread Anders Hammar
I'm still thinking that the xml file should be in foo/secondModule, because that's the package of the second module class (that extends the one in firstModule). /Anders On Mon, Jun 7, 2010 at 10:52, smallufo small...@gmail.com wrote: 2010/6/7 Anders Hammar and...@hammar.net Could

Re: Dependency fails, but only in reactor build

2010-06-07 Thread Anders Hammar
http://jira.codehaus.org/browse/MNG-1949 You need Maven 3 to get this to work. /Anders On Mon, Jun 7, 2010 at 18:12, Lewis, Eric eric.le...@ipi.ch wrote: Well... to answer part of my own question: I noticed that this happens in the case that I have two different modules which each use the

Re: placing third party installation under maven

2010-06-08 Thread Anders Hammar
The correct Maven way to solve this is to set up an internal remote repo, in which you deploy these libs (artifacts). The easiest way to do this is to use a repo manager such as Nexus or Artifactory. You will have this up and running in less than a day. The benefit of doing this is that you solve

Re: pom.xml ERROR

2010-06-08 Thread Anders Hammar
http://docs.codehaus.org/display/MAVENUSER/MavenPropertiesGuide I believe setting env property JAVA_HOME should be enough. /Anderfs On Tue, Jun 8, 2010 at 19:04, noemi rc noerodco...@hotmail.com wrote: Thanks, i will I googled this error but, I didn't find any solution. I also put the

Re: Error reading archetype catalog http://repo1.maven.org/maven2

2010-06-09 Thread Anders Hammar
Are you behind a corp web proxy and haven't configured Maven for this? /Anders On Wed, Jun 9, 2010 at 01:02, Shyamsunder R Mutcha sjh...@yahoo.com wrote: When I try to execute the following command mvn -e archetype:generate -B -DarchetypeGroupId=org.appfuse.arch etypes

Re: Dependency isn't included in my assembly, although it's scope is defined as compile

2010-06-09 Thread Anders Hammar
Should work I believe. What scope is reported if you execute mvn dependency:list ? /Anders On Wed, Jun 9, 2010 at 11:34, Vollnhofer Bernhard bernhard.vollnho...@itsv.at wrote: Hello, I've got a little problem with the dependencies in my project. In my project's POM there's the following

Re: Error reading archetype catalog http://repo1.maven.org/maven2

2010-06-09 Thread Anders Hammar
From: Anders Hammar and...@hammar.net To: Maven Users List users@maven.apache.org Sent: Wed, June 9, 2010 2:59:52 AM Subject:Re: Error reading archetype catalog http://repo1.maven.org/maven2 Are you behind a corp web proxy and haven't configured Maven for this? /Anders

Re: maven resources

2010-06-10 Thread Anders Hammar
First of all, xml files should go under resources/ not java/. Regardless if you have it in the server jar or the webapp war. Then, this is how you should think: Think Java! How is the server jar supposed to be used. Is the user supposed to add the xml files themselves (then the xml fiels should

Re: maven resources

2010-06-10 Thread Anders Hammar
module. This is what you would od if the xml files are not to be shipped with the jar, but you still need a way to test it. /Anders On Thu, Jun 10, 2010 at 08:42, maven apache apachemav...@gmail.com wrote: 2010/6/10 Anders Hammar and...@hammar.net First of all, xml files should go under resources

Re: maven resources

2010-06-10 Thread Anders Hammar
I just noticed some weird spelling. It should be ...already be shipped with the jar OR provide it himself/herself? On Thu, Jun 10, 2010 at 09:48, maven apache apachemav...@gmail.com wrote: 2010/6/10 Anders Hammar and...@hammar.net Ok, I think you don't understand what I'm saying. Of course

Re: optional jars and surefire

2010-06-10 Thread Anders Hammar
You mean like moving that feature to a separate module? :-) That's the cleanest way you could do this. The 'optional' option is just a workaround for a bad design, IMO. /Anders On Thu, Jun 10, 2010 at 09:18, uwe schaefer u...@uwe-schaefer.org wrote: hi i have a project with optional jars.

Re: tools.jar and upload to central

2010-06-10 Thread Anders Hammar
No, it cannot be added to central. But you can add it to a repo in your own repository and it will then be possible to use internally in your corp. If you've set up a group which all users use, just add the repo that contains the tools artifact to that group and the users don't have to reconfigure

Re: basic maven lifecycle - howto always last?

2010-06-10 Thread Anders Hammar
Nope, not possible. You can only bind to a specific phase and if you don't execute that phase you will not get the output. The only solution I can think of is some kind of script that executes maven twice, like this: mvn %1 mvn help:active-profiles /Anders On Thu, Jun 10, 2010 at 12:17, Adam

Re: high-level maven multimodule/inheritance question

2010-06-11 Thread Anders Hammar
Well, one way would be to use m2eclipse and have it resolve workspace projects (default setting when importing a maven project). With automatic build turned on, the developer doesn't have to do anything for changes in A/B/C to take effect. /Anders On Fri, Jun 11, 2010 at 22:40, Shan Syed

Re: high-level maven multimodule/inheritance question

2010-06-11 Thread Anders Hammar
...@artifact-software.comwrote: On 11/06/2010 5:00 PM, Anders Hammar wrote: Well, one way would be to use m2eclipse and have it resolve workspace projects (default setting when importing a maven project). With automatic build turned on, the developer doesn't have to do anything for changes

Re: How to resolve properties defined in another (external) artifact?

2010-06-14 Thread Anders Hammar
Nope, not possible the way you describe it. However, you can control the version of all dependencies (incl. transitive) through the use of dependencyManagement in the B hierarchy. http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html /Anders On Mon, Jun 14, 2010

Re: problems with jar in central?

2010-06-14 Thread Anders Hammar
http://jira.codehaus.org/browse/MEV /Anders On Mon, Jun 14, 2010 at 23:58, Zac Thompson zac.thomp...@gmail.com wrote: Is there a place to report issues with the contents of maven central? Or does it need to be reported to each project's maintainers?

Re: Advice on version control

2010-06-15 Thread Anders Hammar
Start using Nexus? The default setting in Nexus for a hosted repo is to not allow re-deployments. You'll have Nexus up and running in less than a day and it will give you a lot more benefits than this one. /Anders On Tue, Jun 15, 2010 at 13:21, Eric Rotick pc.gree...@gmail.com wrote: This

Re: Artifact in repo without an artifactId?

2010-06-16 Thread Anders Hammar
Oh no... It seems to be a new artifact as well. I thought there were rules in place that would prevent this from happening. Could you please file a jira about this at http://jira.codehaus.org/browse/MEV /Anders On Wed, Jun 16, 2010 at 21:54, Stopp, Bryan bryan.st...@argushealth.comwrote: I'm

Re: releasing a hierarchy of parent poms with the Release plugin

2010-06-17 Thread Anders Hammar
Have you tried specifying the parent.relativePath element? /Anders On Thu, Jun 17, 2010 at 17:43, Marshall Schor m...@schor.com wrote: For a collection of parent poms, arranged in a hierarchy, e.g., A (is parent of) B (is parent of) C, all at version e.g. 1-SNAPSHOT when I put all of these

Re: how to use space as pathSeparator in dependency:generate-resources?

2010-06-21 Thread Anders Hammar
Have your tried the unicode char? \u0020 /Anders On Mon, Jun 21, 2010 at 12:36, Christophe Bliard cbli...@besancon.parkeon.com wrote: Hi, I am trying to export the classpath in a file as a space-separated list of jar by using the dependency:generate-resources plugin. Here is the pluging

Re: maven-javadoc-plugin

2010-06-21 Thread Anders Hammar
It's not correct to define a plugin twice as you've done. You can declare one or more executions within one plugin declaration, however. That being said, I don't think that's the solution to your problem. I just wanted to point out the incorrect Maven POM config, to prevent future issues. /Anders

Re: Do Maven repositories block User-Agents?

2010-06-22 Thread Anders Hammar
Yes, wget does work against central. It is blocked (by central). /Anders On Tue, Jun 22, 2010 at 08:00, Akshay Dev Wankhede akshay.sys...@gmail.comwrote: Maven failed to resolve repo1.maven.org. I tried manually it resolves. To further dig into the matter I tried to hit the URL manually

Re: Do Maven repositories block User-Agents?

2010-06-22 Thread Anders Hammar
Sorry, it should read wget does NOT work. /Anders On Tue, Jun 22, 2010 at 09:09, Anders Hammar and...@hammar.net wrote: Yes, wget does work against central. It is blocked (by central). /Anders On Tue, Jun 22, 2010 at 08:00, Akshay Dev Wankhede akshay.sys...@gmail.com wrote: Maven

Re: [maven-release-plugin] problem with a multi-module project, perform phase

2010-06-22 Thread Anders Hammar
You can disable the use of the release profile. See the link Nick sent. /Anders On Tue, Jun 22, 2010 at 11:53, Daniele Dellafiore ilde...@gmail.com wrote: Ok, the problem here is that if this conflict with existent source and javadocs generation configuration, it causes the release to fail.

Re: how to configure build processes with mavn

2010-06-22 Thread Anders Hammar
Having different flavors of your artifacts, depending on which environment you build for is not recommended. In Maven, a specific artifact defined by GAV (i.e. a specific version of your artifact) cannot (should not) change. We've had numerous discussions regarding this on the list. It simply

Re: dependency resolution

2010-06-22 Thread Anders Hammar
The version closest to your project wins. In your case that would be module3.v1. http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html This is managed by Maven and you don't get any warnings. However, you can always use some mojo like dependency:resolve to view the

Re: How to deploy artifact without version in name?

2010-06-22 Thread Anders Hammar
That will not affect the artifact's file name in the repo, just in the target folder. /Anders Den 22 jun 2010 16.58, Shan Syed shan...@gmail.com skrev: do you need the artifact's file name to retain the groupId/version info? if not, specify finalNamemoduleA/finalName in the build section of

Re: How does cargo check if a deployment is done ?

2010-06-23 Thread Anders Hammar
There's a cargo mailing list that would be very appropriate for this question. It is not a Maven question. /Anders On Wed, Jun 23, 2010 at 12:29, daniel.d.san...@externe.bnpparibas.comwrote: Hello, I am using the cargo maven plugin to deploy on tomcat 5.5. When I run the integration-test

Re: Activating profiles declared in parent pom

2010-06-24 Thread Anders Hammar
This type of solution is very bad! Please remember that the poms serve as metadata for other Maven projects and any alteration of dependencies depending on environment will break that. You're going about this the wrong way, IMO. Your Maven projects should declare its dependencies with GAVs. So if

Re: Activating profiles declared in parent pom

2010-06-24 Thread Anders Hammar
The import solution that Stephen suggests is the way to go. Kind of a pre-mixin support... I use that a lot for defining different sets of depMgmt. Very useful when you work with app servers of different versions to make it possible to work and test against the exact same version of dependencies

Re: POMs Location within Directory Structure

2010-06-24 Thread Anders Hammar
Please answer this: Are you allowed to change the structure of the projects (i.e. refactor) or not? If not, you will most likely be fighting Maven and you will run into issues sooner or later. To be harsh, you would be on your own (this would be that hack job you're talking about). If you can

Re: Can we define a plugin with different configuration in multi module pom project

2010-06-27 Thread Anders Hammar
You've run into a limitation/bug of Maven 2.x, where all executions of a plugin in a multi-module project has the same classpath. It has been fixed in Maven 3 (since one of the alphas). /Anders On Sun, Jun 27, 2010 at 12:31, Sachin Jain sac...@yahoo.co.in wrote: There is a top level pom.xml

Re: Can we define a plugin with different configuration in multi module pom project

2010-06-27 Thread Anders Hammar
clarification. Any workaround if I wanted to stick to 2.x? ...Sachin From: Anders Hammar and...@hammar.net To: Maven Users List users@maven.apache.org Sent: Sun, 27 June, 2010 5:02:15 PM Subject: Re: Can we define a plugin with different configuration in multi

Re: Multi project release without SCM

2010-06-30 Thread Anders Hammar
Yes. The Versions Maven Plugin ( http://mojo.codehaus.org/versions-maven-plugin/) could help you. /Anders On Tue, Jun 29, 2010 at 20:13, tbee t...@tbee.org wrote: I have a good working multiproject release but no SCM setup yet (I'm waiting for BRZ to be installed to replace CVS).

Re: dependencies classifier problem

2010-06-30 Thread Anders Hammar
Maven Golden Rule is that one project only has one primary artifact. For a project, there is only one pom so all artifacts will share it. So having more than one artifact from one project makes you experience these kind of issues you're describing. It's as designed. /Anders On Wed, Jun 30, 2010

Re: Site docs in Maven 3

2010-07-01 Thread Anders Hammar
It should be alpha-7. /Anders On Thu, Jul 1, 2010 at 09:20, Kathryn Huxtable kath...@kathrynhuxtable.orgwrote: Where is beta-7? As a side note, the developers had better not release version 3 until the site plugins and other major elements are actually ready. They did this with Maven 2 and

Re: Maven-assembly-plugin: How to make the assembly the primary artifact

2010-07-01 Thread Anders Hammar
I'm with Tamás here. Having something that works, is not always the correct solution... /Anders 2010/7/1 Tamás Cservenák ta...@cservenak.net While Kalle's solution will do the work, I can't emphasize how this approach is wrong, at least I think it is. For situations like this, a custom

Re: how does Maven determine which version to download for a plugin when no version specified

2010-07-01 Thread Anders Hammar
When you don't specify the version of a plugin, Maven should download the latest version. However, very often the version is defined through a pluginManagement section. This could be either in your pom hierarchy or in Maven's super-POM. In your case, the version of the antrun-plugin is defined in

Re: how does Maven determine which version to download for a plugin when no version specified

2010-07-01 Thread Anders Hammar
This svn path should help you figure that out: http://svn.apache.org/viewvc/maven/maven-3/trunk/maven-model-builder/src/main/resources/org/apache/maven/model/pom-4.0.0.xml?view=markup /Anders On Fri, Jul 2, 2010 at 07:33, asookazian asookaz...@gmail.com wrote: Thanks! I was able to locate

Re: maven-antrun-plugin not working

2010-07-02 Thread Anders Hammar
Your xml snippet binds the antrun-plugin to the build lifecycle. Executing mvn antrun:run does not call teh lifecycle, but the plugin directly. Try mvn install /Anders On Fri, Jul 2, 2010 at 08:01, asookazian asookaz...@gmail.com wrote: I have the following XML snippet in my parent POM:

Re: maven-antrun-plugin not working

2010-07-02 Thread Anders Hammar
If you think it's a bug and you have a project that reproduces it, please file a jira and someone could have a look. However, the feature you're talking about is very common and a bug is very unlikely IMHO. /Anders On Fri, Jul 2, 2010 at 18:53, asookazian asookaz...@gmail.com wrote: that's

Re: altDeploymentRepository - deploy plugin

2010-07-02 Thread Anders Hammar
The username/password goes in the settings.xml. You use the id to reference that. http://maven.apache.org/settings.html#Servers /Anders On Fri, Jul 2, 2010 at 22:29, Shan Syed shan...@gmail.com wrote: how can I specify security info (username/password) for the target repo, using this

Re: when does the plugin goal get executed during the lifecycle

2010-07-06 Thread Anders Hammar
No, it is executed during the install phase. However, it might be executed after the install:install goal which is also bound to that phase. /Anders On Tue, Jul 6, 2010 at 23:09, asookazian asookaz...@gmail.com wrote: [INFO] [clean:clean] [INFO] [ear:generate-application-xml] [INFO]

Re: when does the plugin goal get executed during the lifecycle

2010-07-07 Thread Anders Hammar
AFAIK it's the order they are defined in in the pom. This would depend on the version of Maven though, as it has not always been like that. /Anders On Wed, Jul 7, 2010 at 08:08, Stephen Connolly stephen.alan.conno...@gmail.com wrote: The rule for Maven is that the order of plugin execution

Re: when does the plugin goal get executed during the lifecycle

2010-07-07 Thread Anders Hammar
a profile, and the ordering is just a side effect. The recommendation is not to rely on the order within a phase, if something should run prior to something else, bind it to an earlier phase -Stephen On 7 July 2010 07:18, Anders Hammar and...@hammar.net wrote: AFAIK it's the order

Re: how does Maven determine which version to download for a plugin when no version specified

2010-07-07 Thread Anders Hammar
I don't know. If i recall correctly, the help:describe mojo by default works on the latest version of the plugin being described, when I use it with Maven-3.0-beta1. I could be wrong, but that's how I recall tings. So, I always specify the version [1] when I use help:describe. That way I have

Re: which version of a plugin will Maven use?

2010-07-07 Thread Anders Hammar
I already explained this. If the version is not defined/locked through pluginManagement, Maven selects the latest version (by looking in the maven-metadata.xml file in the repos, so if the metadat is incorrect, it might not get the actual latest version). The pluginManagement section could either

Re: Maven 3 explode goal?

2010-07-07 Thread Anders Hammar
If you want something that's app-server generic, take a look at the cargo project. http://cargo.codehaus.org/ /Anders On Wed, Jul 7, 2010 at 00:37, asookazian asookaz...@gmail.com wrote: what about weblogic, websphere, glassfish, etc.? i don't agree... -- View this message in context:

Re: which version of a plugin will Maven use?

2010-07-07 Thread Anders Hammar
:57, asookazian asookaz...@gmail.com wrote: Anders Hammar wrote: I already explained this. If the version is not defined/locked through pluginManagement, Maven selects the latest version (by looking in the maven-metadata.xml file in the repos, so if the metadat is incorrect, it might

Re: JBoss ESB in public Maven repo?

2010-07-08 Thread Anders Hammar
Thomas, Check out JBoss new maven 2 repos hosted by Nexus: https://repository.jboss.org/nexus/ I did find some jbossesb* artifacts, but if you have a specific class you could search for that. There are also some blog posts and wiki pages on the net describing JBoss's new repos. /Anders On Thu,

Re: Maven Plugins

2010-07-08 Thread Anders Hammar
Why are you using Maven? I'm asking as it seems as you're trying to do everything NOT to use Maven's features... /Anders On Thu, Jul 8, 2010 at 21:17, Paulwintech paulwint...@gmail.com wrote: Hi, Im a new user in maven. I have few doubts. 1. I have some BAT files that has to executed

Re: Maven APIs

2010-07-09 Thread Anders Hammar
I think I would look into how a Maven Repository Manager does this. Personally, I would investigate Nexus, which is OSS. http://nexus.sonatype.org There's a nexus-dev mailing list which you could use. /Anders On Thu, Jul 8, 2010 at 23:50, Robert Dare robert.d...@gmail.com wrote: Hi, Is it

Re: Processing Changes found in SCM

2010-07-09 Thread Anders Hammar
Maybe the update goal of the maven-scm-plugin? http://maven.apache.org/scm/plugins/update-mojo.html /Anders On Fri, Jul 9, 2010 at 07:58, D D dawi...@gmail.com wrote: Hello, I'm running into an issue where a project that carries a very large number of static website files takes too long to

Re: pom vs. project

2010-07-09 Thread Anders Hammar
Yes, pom is deprecated but stills works in 3.0-beta-1 I believe. /Anders On Fri, Jul 9, 2010 at 09:40, Robin Wenglewski ro...@wenglewski.de wrote: Hi guys, I am experiencing problems when using the maven-assembly-plugin. In the main pom.xml i got plugins plugin

Re: Repository migration

2010-07-09 Thread Anders Hammar
This question would have been more appropriate for the Nexus user list, but I'll answer here as well. For Nexus there are three alternatives: 1. Deploy via the maven-deploy-plugin (deploy-file goal) 2. Deploy through the UI 3. Use Nexus REST API to deploy There is also a possible forth option.

Re: Repository migration

2010-07-09 Thread Anders Hammar
I forgot. If you go with option number four, you will need to rebuild metadata (possibly this is called repo attributes) as well. /Anders On Fri, Jul 9, 2010 at 16:10, Anders Hammar and...@hammar.net wrote: This question would have been more appropriate for the Nexus user list, but I'll

<    1   2   3   4   5   6   7   8   9   10   >