Disabling phases

2011-04-06 Thread Charles Williams
hey all, am currently working on a new archetype for wordpress projects in phpmaven. but am not in need of the PHPUnit tests and would like to disable them. How would I best go about it? thanks, Chuck - To unsubscribe,

Re: Compile failure, package not found

2011-04-06 Thread Erwin Mueller
Yes, so true. I realized that but I already send the email. I think I was just too tired, I hacked the project together in one day. But I was confused, because maven could not find the package com.google.common.base from commons-lang either. So I thought, was is going on that

Re: Disabling phases

2011-04-06 Thread Anders Hammar
Just remove the unit tests? And to clarify a maven topic wrt your subject, you cannot disable a phase. However, you can disable a plugin bound to a phase, which could also be the solution to your questions (although simply remove the tests would be better I think as it would then allow for the

Re: Disabling phases

2011-04-06 Thread Charles Williams
that's the problem. I have found a few examples but none of them work. even skiptrue/skip in the configuration block for the plugin has no effect. On 04/06/2011 10:37 AM, Anders Hammar wrote: Just remove the unit tests? And to clarify a maven topic wrt your subject, you cannot disable a

Re: Can no longer deploy project artifacts using maven3

2011-04-06 Thread Marc Rohlfs
Tim, I hope You don't mind the question, but did You add the the wagon jar to the MAVEN_HOME/lib directory on Your Hudson server, too? Anyway, I'd rather not add any libraries to the MAVEN_HOME/lib directory, because this needs to be done on each and every server and workstation where the

Re: Disabling phases

2011-04-06 Thread Anders Hammar
WHat plugin is that? /Anders On Wed, Apr 6, 2011 at 10:43, Charles Williams ch...@itadmins.net wrote: that's the problem. I have found a few examples but none of them work. even skiptrue/skip in the configuration block for the plugin has no effect. On 04/06/2011 10:37 AM, Anders Hammar

Re: Disabling phases

2011-04-06 Thread Charles Williams
Anders, Here is the info I posted to the phpmaven google group: am currently working on a new archetype for wordpress projects and am wanting to disable phpunit tests. adding skiptrue/skip in the configuration of the test phase doesn't seem to do the trick. I still get the following error.

Re: Disabling phases

2011-04-06 Thread Anders Hammar
So it whould be the phpunit maven plugin then. If it has a skip param and it doesn't work - file a bug ticket. If it doesn't have a skip param - file an enhancement ticket. In both cases a patch would increase the likelihood of this getting fixed quickly. However, why aren't you just removing the

Re: packing maven-plugin not creating MANIFEST file

2011-04-06 Thread Yegor Bugayenko
The problem is here: [WARNING] Ignoring project type maven-plugin - supportedProjectTypes = [jar] I don't know how to solve it, but recommend a workaround: add your maven build to Hudson as a shell task (not as Maven task). — Yegor Bugayenko, PMP®, SCEA On Tue, Apr 5, 2011 at 3:09 PM, Prashu

Re: Disabling phases

2011-04-06 Thread Charles Williams
am still learning atm. just started with maven 2 days ago. have not reached the book section that covers the test/compile phase. ;) will try and see if I can figure out the test phase and just get rid of all tests. thanks. On 04/06/2011 12:19 PM, Anders Hammar wrote: So it whould be the

Re: Can no longer deploy project artifacts using maven3

2011-04-06 Thread Tim Pizey
Hi Marc, On 6 April 2011 09:52, Marc Rohlfs wrote: Tim, I hope You don't mind the question, but did You add the the wagon jar to the MAVEN_HOME/lib directory on Your Hudson server, too? Thanks, no, I had not. I have now, and it still does not work:

Installing third party artifact

2011-04-06 Thread gadi_sr
Hi, im newbie in mavne-nexus, and I have a question regarding install thirdparty artifacts from nexus by maven. I have pom that has dependency of python to be installed in order to run test phase. I have python in specified version as third party in my nexus thirdparty repository. How can I

Re: Disabling phases

2011-04-06 Thread Charles Williams
OK. by deleting apptest.php I got the project to generate the packages as well as the new archetype. now I just have to figure out why the generation of archetype.xml didn't work. thanks Anders. chuck On 04/06/2011 12:23 PM, Charles Williams wrote: am still learning atm. just started with

archetype from local repository

2011-04-06 Thread Charles Williams
so. I finally got my archetype created and it's in my local repository (mvn install). but if I try mvn archetype:generate -DarchetypeCatalog=local I can't see my archetype as an option. any ideas? chuck - To unsubscribe,

Re: [Solved] archetype from local repository

2011-04-06 Thread Charles Williams
I wasn't in the tart/generated-sources/archetype directory when I called mvn install. all working great now. On 04/06/2011 01:12 PM, Charles Williams wrote: so. I finally got my archetype created and it's in my local repository (mvn install). but if I try mvn archetype:generate

Re: Disabling phases

2011-04-06 Thread Anders Hammar
Btw, if you're on your first week of Maven you should probably not be trying to create an archetype. Start by use Maven for some builds first. If you don't know Maven, how would you be able to create a good template (a.k.a archetype) for someone else to use? /Anders On Wed, Apr 6, 2011 at 13:00,

Executing a single method of a test

2011-04-06 Thread Marc SCHNEIDER
Hi, I'm using maven-surefire-plugin 2.7.1 along with JUnit 4.8.2. I'm trying to run : mvn -Dtest=IndexRecordDAOTest#testGetAndList clean test. It fails telling me that there are no tests to run. This command runs wihout any errors : mvn -Dtest=IndexRecordDAOTest clean test What am I missing?

Re: Can no longer deploy project artifacts using maven3

2011-04-06 Thread Tim Pizey
Hi, I now have my project deploying using scp. I added an explicit configuration for the deploy plugin to the pom: plugin artifactIdmaven-deploy-plugin/artifactId version2.5/version dependencies dependency groupIdorg.apache.maven.wagon/groupId

Re: Can no longer deploy project artifacts using maven3

2011-04-06 Thread Marc Rohlfs
Hi Tim, On 06/04/11 12:34, Tim Pizey wrote: I cannot see in what sense ssh is an extension ... In the sense that it is not incuded in the Maven core anymore ... ;) ... But if You really need different configurations for M2 and M3, You could use different profiles that are automatically

Re: Can no longer deploy project artifacts using maven3

2011-04-06 Thread Jason van Zyl
If this is for a Sourceforge (I saw Webmacro in there) project then the route that many have gone is to drop SCP, and use Nexus OSS. There are 1300 projects using Nexus OSS now, it's easier to get your project into Maven Central and you don't have to worry about the Maven repository

Re: Executing a single method of a test

2011-04-06 Thread Olivier Lamy
Hello, This feature -Dtest=IndexRecordDAOTest#testGetAndList is available for surefire 2.8. Update the plugin version and try again :-). HTH, -- Olivier Lamy http://twitter.com/olamy http://www.linkedin.com/in/olamy 2011/4/6 Marc SCHNEIDER marc.schneide...@gmail.com: Hi, I'm using

Re: Can no longer deploy project artifacts using maven3

2011-04-06 Thread Tim Pizey
Hi Jason, Marc, Thankyou for your help. I am now back to working for M2 and M3, but it looks like I need to get with the plot and use Nexus. I have never understood why the maven generated site does not link to the default distribution repo., nor why the decision was taken not to persue per

Re: mark files for deletion with perforce

2011-04-06 Thread Paul Mackinlay
Olivier, Thanks for this. I have written a mojo and found a defect while testing it. I'll move this conversation to scm-...@maven.apache.org to discuss this further. Paul -- Paul Mackinlay http://www.webotech.co.uk/

Re: Can no longer deploy project artifacts using maven3

2011-04-06 Thread Jason van Zyl
On Apr 6, 2011, at 8:33 AM, Tim Pizey wrote: Hi Jason, Marc, Thankyou for your help. I am now back to working for M2 and M3, but it looks like I need to get with the plot and use Nexus. I have never understood why the maven generated site does not link to the default distribution

Sources jar uploaded twice

2011-04-06 Thread Novak Dalibor
Hello, I am experiencing a problem since I have my project configured to use maven-source-plugin. When I try to execute a mvn clean install deploy command the deploy plugin tries to uploadsources jar to repository twice. Since this is a nexus release repository it doesn't allow redeployment and I

Re: Sources jar uploaded twice

2011-04-06 Thread Manuel Doninger
install and deploy are redundant. If you look at the Maven lifecycle (http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html), then all targets before the one you selected will be executed. So a deploy calls also call install before. If you choose deploy, then you don't

Re: Sources jar uploaded twice

2011-04-06 Thread Stephen Connolly
mvn clean install deploy means the following Mr Maven, please look up the clean phase in the standard lifecycles and execute all phases in the lifecycle it belongs to up to and including the clean phase then please look up the install phase in the standard lifecycles and execute all

The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Adam Gibbons
Hello all, I'm working on a large aggregate project that I'm trying to build 4 WAR files for. What I would like is a top level pom which upon doing mvn package it will produce my 4 WAR files by compiling all child modules AND jars. Each WAR file is comprised of a number of modules and some of

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Karl Heinz Marbaise
Hi Adam, What I would like is a top level pom which upon doing mvn package it will produce my 4 WAR files by compiling all child modules AND jars. Each WAR file is comprised of a number of modules and some of the multiple modules have a dependency on in-house compiled jars. Ideally when

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Adam Gibbons
Hi Karl, That is effectively what I have so far. Except there are also some jar projects in the structure too which more than 1 module will reference. (This is to avoid sub-child modules being added to the reactor list more than once.) At the moment I don't think the jar modules get

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Adam Gibbons
Also I refer you to: http://maven.apache.org/plugins/maven-assembly-plugin/which states that it can create distributions in the war format. On 6 April 2011 15:27, Karl Heinz Marbaise khmarba...@gmx.de wrote: Hi Adam, What I would like is a top level pom which upon doing mvn package it will

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Wendy Smoak
On Wed, Apr 6, 2011 at 10:37 AM, Adam Gibbons adam.s.gibb...@gmail.com wrote: At the moment I don't think the jar modules get compiled/deployed when i build the war. What makes you say that? What exactly are you doing and what happens vs. what you expected to happen? Guessing, I'd say you

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Wendy Smoak
On Wed, Apr 6, 2011 at 10:44 AM, Adam Gibbons adam.s.gibb...@gmail.com wrote: Also I refer you to: http://maven.apache.org/plugins/maven-assembly-plugin/which states that it can create distributions in the war format. It *can* but you generally only need it if the war plugin is not doing what

Re: Can no longer deploy project artifacts using maven3

2011-04-06 Thread Tim Pizey
Hi Jason, thank you for your detailed reply. On 6 April 2011 13:59, Jason van Zyl wrote: On Apr 6, 2011, at 8:33 AM, Tim Pizey wrote: Hi Jason, Marc, Thankyou for your help. I am now back to working for M2 and M3, but it looks like I need to get with the plot and use Nexus. I have

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Karl Heinz Marbaise
Hi Adam, Adam Gibbons wrote: That is effectively what I have so far. Except there are also some jar projects in the structure too which more than 1 module will reference. (This is to avoid sub-child modules being added to the reactor list more than once.) So what's the problem this will

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Adam Gibbons
Hi Wendy, Thank you for the helpful reply! I've never used Maven on this scale before and it's a steep learning curve! I've been trying to convert a massive multi module project from ant to maven these past two weeks, it all compiles and runs unit tests now, but i've had no end of problems

Re: Sources jar uploaded twice

2011-04-06 Thread Anders Hammar
This doesn't explain why he runs into errors though. The build would only take a while longer. /Anders (mobile) Den 6 apr 2011 15.59 skrev Stephen Connolly stephen.alan.conno...@gmail.com: mvn clean install deploy means the following Mr Maven, please look up the clean phase in the standard

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Adam Gibbons
Yes, +-- pom.xml +-- m1 (j1, j2) +-- m2 (j3) +-- m3 (j1, j3) +-- m4 +-- m5 +-- j1 +-- j2 +-- j3 +-- war1 (m1,m2,m3) +-- war2 (m4) +-- war3 (m5) This setup is effectively what I have so far. However I am unable to use parent on a number of modules (as some have more than 1). On

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Wendy Smoak
On Wed, Apr 6, 2011 at 10:56 AM, Adam Gibbons adam.s.gibb...@gmail.com wrote: for example let's say i build my pdf-creation.war file. this depends on a tree-like structure of sub modules and some in-house jar files. It seems that when I build the war the sub module tree is pulled in and the

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Wendy Smoak
On Wed, Apr 6, 2011 at 11:06 AM, Adam Gibbons adam.s.gibb...@gmail.com wrote: Yes,  +-- pom.xml  +-- m1 (j1, j2)  +-- m2 (j3)  +-- m3 (j1, j3)  +-- m4  +-- m5  +-- j1  +-- j2  +-- j3  +-- war1 (m1,m2,m3)  +-- war2 (m4)  +-- war3 (m5) This setup is effectively what I have so far.

Re: The maven-assembly-plugin and a large complex project.

2011-04-06 Thread Wendy Smoak
On Wed, Apr 6, 2011 at 11:07 AM, Wendy Smoak wsm...@gmail.com wrote: That's out of scope for Maven command line if you are *just* building the war from its subdirectory.  As I mentioned, it's something your IDE might handle for you. Hmm, well... maybe not. The output of mvn --help includes:

surefire-junit47 provider does not see my tests (while older one does but fails)

2011-04-06 Thread Igor Petruk
Hi. I forced surefire provider in the following way plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.8/version configuration

Re: Installing third party artifact

2011-04-06 Thread Wayne Fay
I have pom that has dependency of python to be installed in order to run test phase. I have python in specified version as third party in my nexus thirdparty repository. How can I specify what to do with the dependency (for this example, install python on machine if not exists) Maven has no

Re: Compile failure, package not found

2011-04-06 Thread Wayne Fay
       So why maven couldn't find commons-lang? The two packages were not used in the same class (the com.globalscalingsoftware.rsscon.internal package and the com.google.common.base package). Perhaps something related to transitive dependencies. Wayne

Re: Compile failure, package not found

2011-04-06 Thread Justin Edelson
On Wed, Apr 6, 2011 at 3:25 AM, Erwin Mueller erwin.muel...@deventm.org wrote:        Yes, so true. I realized that but I already send the email. I think I was just too tired, I hacked the project together in one day.        But I was confused, because maven could not find the package

Re: Sources jar uploaded twice

2011-04-06 Thread Stephen Connolly
the sources get attached to the reactor twice - Stephen --- Sent from my Android phone, so random spelling mistakes, random nonsense words and other nonsense are a direct result of using swype to type on the screen On 6 Apr 2011 15:45, Novak Dalibor dalibo...@gmail.com wrote: Hi Stephen, I

Re: Sources jar uploaded twice

2011-04-06 Thread Anders Hammar
Hmm, wouldn't this be a bug then in either maven core or the sources plugin? I'm quite sure executing mvn install deploy would work for a multi-module build without sources attached. The main artifact wouldn't be uploaded twice. (Haven't verified though.) Possibly Maven 3.0.x doesn't have this

Re: Sources jar uploaded twice

2011-04-06 Thread Stephen Connolly
because there can only be one main artifact so it gets replaced but you add to the collection of secondary artifacts... perhaps if core implemented a set rather than a list and the set entries were equals based on classifier and type On 6 April 2011 19:01, Anders Hammar and...@hammar.net wrote:

surefire-junit47 provider does not see my tests (while older one does but fails)

2011-04-06 Thread Igor Petruk
Hi. I forced surefire provider in the following way plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-surefire-plugin/artifactId version2.8/version configuration

Re: Surefire Test Sequence..

2011-04-06 Thread sushil_rajmane
Perhaps you need to set order of execution of tests, by giving following optional parameter. runOrder: Defines the order the tests will be run in. Supported values are alphabetical, reversealphabetical, random, hourly (alphabetical on even hours, reverse alphabetical on odd hours) and

[ANN] Maven ANT Tasks 2.1.2 Released

2011-04-06 Thread Stephen Connolly
The Maven team is pleased to announce the release of Maven ANT Tasks, version 2.1.2. The Mavent Ant Tasks allow several of Maven's artifact handling features to be used from within an Ant build. These include: Dependency management - including transitive dependencies, scope recognition and

Re: Surefire Test Sequence..

2011-04-06 Thread Wayne Fay
On Wed, Apr 6, 2011 at 3:25 PM, sushil_rajmane sushil_rajm...@yahoo.com wrote: Perhaps you need to set order of execution of tests, by giving following optional parameter. I am pleased to announce that the raising the dead award for 2011 goes to Sushil Rajmane for replying to a post that was

Maven-ant-task get confused between snapshot and release repositories

2011-04-06 Thread richard schmidt
I am using ant to deploy artifacts to our Nexus repostory. Yes, I would love to be using Maven but not with this horrible project! The ant magic looks like