RE: Doubt about how create archetype

2009-11-10 Thread Exposito Aguilera, Francisco
I've created a web dynamic Project with eclipse. Then I've gone to MSDOS window and inside the project folder I've executed mvn archetype:create-from-project But I receive the error: [INFO] Searching repository for plugin with prefix: 'archetype'. [INFO]

Re: File system repo

2009-11-10 Thread monkeyden
Hi Wendy, thanks for the response. This is the error I get for each of the 2 jars: Error message: Missing: -- 1) com.mycompany:ProjectNextQuattro:jar:1.0 Try downloading the file manually from the project website. Then, install it using the command: mvn install:install-file

How to generate hash digests with Maven Assembly

2009-11-10 Thread Steve Brannstrom
Hi friends , We use Maven Assembly plug-in to create the binary and source archives in .zip, .tar.gz formats . We also want to generate hash digests such as md5, sha1 for those archives . Is there any way to achieve this using Maven Assembly plug-in ? If not please provide a pointer to

Re: File system repo

2009-11-10 Thread Anders Hammar
If it's a file repo, you just need to copy the jar and the pom to the right directory. /Anders On Tue, Nov 10, 2009 at 09:47, monkeyden monk...@monkeyden.com wrote: Hi Wendy, thanks for the response. This is the error I get for each of the 2 jars: Error message: Missing: -- 1)

Re: How to generate hash digests with Maven Assembly

2009-11-10 Thread Anders Hammar
One way is if you use a repository manager (Nexus for instance), it will be generated for you when deploying. /Anders On Tue, Nov 10, 2009 at 09:52, Steve Brannstrom steveb...@gmail.com wrote: Hi friends , We use Maven Assembly plug-in to create the binary and source archives in .zip,

Re: How to generate hash digests with Maven Assembly

2009-11-10 Thread Steve Brannstrom
Thanks for the reply. But we have .zip and .tar.gz archives and AFAIK not possible to deploy them to a repository, hence I don't think this approach will wok for us. It is great if we can generate those digests with Assembly plug-in or with any other way using maven. Thanks, On 11/10/09,

eclipse: can't create new maven project under workspace

2009-11-10 Thread eyal edri
Anyone know why eclipse can't resolve the M2_REPO build path if the project dir is created under the workspace? if i move the project dir to another dir, it works. -- Eyal Edri

Re: How to generate hash digests with Maven Assembly

2009-11-10 Thread Anders Hammar
http://maven.apache.org/plugins/maven-install-plugin/examples/installing-checksums.html Don't think you can do that with the assembly plugin. I guess you can write your own plugin that does this for you, but the thing is that you're not doing it the Maven way so you somewhat on your own. (Maven

Excluding \*\.class from dependencySets in the assembly plug-in

2009-11-10 Thread zakmck
Hi all, I am building a binary for a project to which an empty file literally named '*.class' is added. This causes the execution to fail (Hibernate tries to analyse all the .class files and says it's not a class on that one). So, I'd like to remove this file from the final jar. I've tried

Re: multi-project templates

2009-11-10 Thread kristoffer
Hi Anders, Yes i have looked at archtypes. But it seems that this is only a one-shoot generation of the projects? Can it maintain/enforce changes in archetype when it is updated centrally in a dynamic way? Cheers, -Kristoffer Anders Hammar wrote: That's called archetypes in the Maven

[ANN] Maven Reporting Impl 2.0.4.3 Released

2009-11-10 Thread Vincent Siveton
The Maven team is pleased to announce the release of the Maven Reporting Impl, version 2.0.4.3. This shared component contains abstract classes to manage report generation.. http://maven.apache.org/shared/maven-reporting-impl/ Release Notes - Maven Shared Components - Version

Re: multi-project templates

2009-11-10 Thread Anders Hammar
No, not that I know of. /Anders On Tue, Nov 10, 2009 at 13:54, kristoffer kristoffer.sjog...@ericsson.comwrote: Hi Anders, Yes i have looked at archtypes. But it seems that this is only a one-shoot generation of the projects? Can it maintain/enforce changes in archetype when it is updated

Re: JAR Project type of some sort

2009-11-10 Thread Manos Batsis
Quintin Beukes wrote: Is there any way to create a new project, but effectively have it's sources be a group of JAR files, and when doing mvn install on that project, install those JAR files as if they were built with maven? I think there is a plugin for that nowdays, but in the past i just

JAR Project type of some sort

2009-11-10 Thread Quintin Beukes
Hey, I have to wrap BIRT 2.5 in a Maven project. There is unfortunately no public repository that has this dependency. Further the whole project must be built with mvn install from the root, on a clean machine (only having internet connection). So these 2 together pose a problem. Is there any

Re: File system repo

2009-11-10 Thread Wayne Fay
Is there an install command for file system repos, like there is for installation to the default local repo (~/.m2/..)? Did you read the error message?? Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=com.mycompany

maven-war-plugin overlay ordering

2009-11-10 Thread Conan Cook
Dear Maven Folk, This is a query that's been asked before relating to the maven-war-plugin, but I've done some digging and I can't find an answer, so I'd be very grateful if anyone can point me in the right direction. I've got a project A which depends on a war B and so I'm using an overlay.

Plugin to detect if called from the shell

2009-11-10 Thread Gajo Csaba
Hello, Is there a way for a Maven plugin (Mojo) to detect if it has been called from the console, and not from pom.xml as part of the lifecycle? I have a Mojo which has @requiresProject false, and I execute it like mvn pluginname:dostuff But it also can be called from pom.xml, as part of a

Help to get Android artifacts to be published to Maven central repository

2009-11-10 Thread Manfred Moser
As a Maven and Android user and committer with the Maven Android plugin I have created a feature request on google code to get the android jar into the maven central repository. More technical details are with the bugreport: http://bit.ly/1HoyoZ If you are a Android or Maven user I would

maven eclipse is not generating entire classpath

2009-11-10 Thread laredotornado
Hi, I have a project in Maven 1.1 (can't upgrade due to company restrictions at the moment). I am using Eclipse Galileo on Mac 10.5.6. Within my project level directory, I have service, model, and serviceWebApp directories. However, when I run maven eclipse from the top level directory, my

RE: How to generate hash digests with Maven Assembly

2009-11-10 Thread Jamie Whitehouse
You can use the build helper plugin to attach additional artifacts to be installed and deployed. This will mean that hashes will be created for you. See http://mojo.codehaus.org/build-helper-maven-plugin/attach-artifact-mojo. html -Original Message- From: Steve Brannstrom

How do I get started on Maven?

2009-11-10 Thread Takapa
Hello all, I'm a complete beginner to Maven but I have a project that requires it I think, but I have a few questions (as I cannot figure it out from the website): I have a quite complex codebase where I have a series of projects (in Eclipse), each of which represents a seperate OSGi service

Trouble finding dependency

2009-11-10 Thread Kb2120
I am having troubles getting this dependency to be found that is in a 'non-default' location inside the jar. The jar is build with the classfiles being located in WEB-INF/classes. The MANIFEST of that jar reflects this: Bundle-ClassPath: WEB-INF/classes/ I can't get maven to find these

Re: How can I execute plugin X, then plugin Y, then plugin X again ?

2009-11-10 Thread Paul Benedict
This is probably a bug since the order of plugins should be respected. Have you checked the ticket list of 2.2.2 or 3.0-alpha-3 to see if it is already fixed? And are you running 2.2.1? Paul On Tue, Nov 10, 2009 at 11:48 AM, boraldo bora...@hotbox.ru wrote: Suppose I have to execute some

development methodology

2009-11-10 Thread slanted
Our development team recently mavenized a couple of our web applications. We are struggling a bit with the new development methodology. A brief description of our artifacts and our setup: We have 2 web applications: shop signup. These 2 web applications are both dependant on 2 jars:

Re: How can I execute plugin X, then plugin Y, then plugin X again ?

2009-11-10 Thread Nick Stolwijk
I don't think this is a bug, if you execute mvn help:effective-pom you will see the two plugin configurations merged. I think your best bet is to set the second execution to a phase later in the chain. Often, this also means you are trying to do to much in one module. Hth, Nick Stolwijk ~Java

RE: How do I get started on Maven?

2009-11-10 Thread EJ Ciramella
1) How many .pom files do I need and at what level should they be at, can someone copy and paste my directory structure and detail where the .pom files should be? -- From the hip, at least 5 (one for each module and one aggregator pom at the top level) - but depending on what else your company

RE: development methodology

2009-11-10 Thread Todd Thiessen
How would this be different in your old ant builds? I presume that when you shipped to a customer you used a concrete version. Thus you must of worried about concrete versions at some point. I would say worry about versions at the same point in your maven builds as you did in your old ant builds.

How can I execute plugin X, then plugin Y, then plugin X again ?

2009-11-10 Thread boraldo
Suppose I have to execute some actions after some phase. These actions are made plugins X and Y. 1st action - executed by plugin X 2nd action - executed by plugin Y 3rd action - executed by plugin X I wrote the following pom: build plugins plugin

Re: How can I execute plugin X, then plugin Y, then plugin X again ?

2009-11-10 Thread Paul Benedict
Good call. Nick is correct. On Tue, Nov 10, 2009 at 11:59 AM, Nick Stolwijk nick.stolw...@gmail.com wrote: I don't think this is a bug, if you execute mvn help:effective-pom you will see the two plugin configurations merged. I think your best bet is to set the second execution to a phase later

RE: How can I execute plugin X, then plugin Y, then plugin X again ?

2009-11-10 Thread Lacoste, Dana (TSG Software San Diego)
I can confirm this: If you specify one phase for two different actions, you do NOT have ANY control over when they will execute. If you want to manipulate the order of operations, set the phase values to successive entries from the lifecycle.

RE: How do I get started on Maven?

2009-11-10 Thread EJ Ciramella
P.S. - the further away from the SOP maven way you find yourself, the more painful your existence will be. You may wanna listen to this particular podcast (javaposse): Roundup 09 - Maven Without Pain? http://javaposse.com/index.php?post_id=503964 -Original Message- From: EJ Ciramella

Disable Updating of Snapshots

2009-11-10 Thread Quintin Beukes
Hey, I am working with a large project's dependencies, which is in it's development phase. So all it's modules have -SNAPSHOT versions. This means every day my first build for every project wants to do some SNAPSHOT checks. Doing a complete build (which I usually do after a subversion update)

development methodology

2009-11-10 Thread Eric Moore
Our development team recently mavenized a couple of our web applications. We are struggling a bit with the new development methodology. A brief description of our artifacts and our setup: We have 2 web applications: shop signup. These 2 web applications are both dependant on 2 jars:

Re: development methodology

2009-11-10 Thread slanted
To Todd Thiessen I would say worry about versions at the same point in your maven builds as you did in your old ant builds. You don't need to be constantly cutting a new Maven release during your development cycle. Stay with SNAPSHOTs until you get closer to release. Thanks for the reply Todd.

RE: maven-war-plugin overlay ordering

2009-11-10 Thread Damon Silver
Inside your configuration for maven-war-plugin, I would do something like this (this is untested but approximate): ... overlays overlay idsomeOverlay/id groupIdfoo.bar/groupId artifactIdbaz.bax/artifactId typewar/type

Re: File system repo

2009-11-10 Thread monkeyden
Right, it only refers to the default local maven repo, not this local one. After having added the following paths to my project: com/mycompany/ProjectNextQuattro/1.0 com/mycompany/ProjectNextPojos/1.0 with the following dependencies: dependency

Re: How can I execute plugin X, then plugin Y, then plugin X again ?

2009-11-10 Thread Stephen Connolly
not the bug you think it is you need to put the executions in different phases if they need a defined order the bug is allowing you to list the same plugin twice in the one plugins section Sent from my [rhymes with tryPod] ;-) On 10 Nov 2009, at 17:51, Paul Benedict

RE: development methodology

2009-11-10 Thread Todd Thiessen
For a larger audience, like a QA group, yes for sure I would recommend going with releases. Of course this is typically done as you get close to release. If you are talking about very early testing of a release, then I think SNAPSHOTs are appropriate. But I don't see this as very different than

Re: development methodology

2009-11-10 Thread Kalle Korhonen
That's the right process, and no, the process itself is not overkill but you need to decide what is the right level between better traceability and release overhead for you. Obviously your process was a lot simpler with Ant because you never/rarely tagged and released your code. If you found an

Re: Plugin to detect if called from the shell

2009-11-10 Thread Martin Höller
Hi! Am Dienstag, 10. November 2009 16:58:48 schrieb Gajo Csaba: Is there a way for a Maven plugin (Mojo) to detect if it has been called from the console, and not from pom.xml as part of the lifecycle? I have a Mojo which has @requiresProject false, and I execute it like mvn

Re: Disable Updating of Snapshots

2009-11-10 Thread Wayne Fay
every build the checks are almost instantaneous. Though the first build every day still takes time as it does the initial update requests. Could you trigger a daily build out of your CI server every morning a couple hours before you show up for work, so the pause/delay checking for new

Re: File system repo

2009-11-10 Thread Anders Hammar
Hmm, I think there is major confusion here regarding Maven terminology here. In Maven, you have ONE local repo. It could be in the default %USER_HOME%/-m2/repository/ or you can change that through settings.xml. However, when you say file system repo I thought you meant a file system based remote

Maven password ecryption problem

2009-11-10 Thread Ludwig Magnusson
Hello! I have a problem getting my encrypted passwords to work with a remote server that I'm deploying to. I can never connect to that server using maven, although all other standard programs work. I use the scp protocol and I get this error message: Authentication failed: Cannot connect.

Re: How can I execute plugin X, then plugin Y, then plugin X again ?

2009-11-10 Thread Paul Benedict
I am willing to bet Maven 3 prevents the duplication of a plugin within the same phase. On Tue, Nov 10, 2009 at 1:03 PM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: not the bug you think it is  you need to put the executions in different phases if they need a defined order the

Re: How to generate hash digests with Maven Assembly

2009-11-10 Thread Sagara Gunathunga
Another approach to archive this is invoke Ant checksum task [1] through the Maven AntRun plug-in. This is much flexible way, because you can run it anywhere using antrun:run goal . Thanks, [1] - http://ant.apache.org/manual/CoreTasks/checksum.html [2] -

How do I write this preGoal?

2009-11-10 Thread laredotornado
Hi, Using Maven 1.1. Within my PROJECT_ROOT/service directory, I'm trying to create a maven.xml file that will automatically create a directory whenever someone runs the javaapp:install command. I tried this, but the command isn't being executed ... project xmlns:j=jelly:core

Re: Maven password ecryption problem

2009-11-10 Thread Anders Hammar
How are the credentials stored in your settings.xml? You say you have the same for another server, do both servers have the same id and you only have on set of credentials in your settings.xml? Does it work without encrypting the passwords? /Anders On Tue, Nov 10, 2009 at 21:33, Ludwig

Re: Snow Leopard maven

2009-11-10 Thread bulbous
I also had the problem where i could only execute mvn using sudo -- then I executed the following and got it working: cd /usr/local sudo ln -s apache-maven-2.2.0/ maven then it worked Carr, Brian M wrote: Do you have a m2_home environment variable set? This was causing issues for me

Re: How can I execute plugin X, then plugin Y, then plugin X again ?

2009-11-10 Thread Stephen Connolly
it's not two executions of a plugin in the same phase, that is allowed. what is not allowed is build plugins plugin groupid foo artifactid bar ... /plugin plugin groupid foo artifact bar ... /plugin ie you cannot gave two plugin sections for the same plugin in the one plugins

Multi Module Project Assembly plugin

2009-11-10 Thread Stephanie Johnson
All, I am using Maven 2.0.9 to build a multi module project. I have defined the assembly plugin in my parent pom. I can get my assemblies built using mvn install assembly:assemly This command runs the tests twice, once during install phase and another during assembly. I tried assembly:single

Re: File system repo

2009-11-10 Thread Wendy Smoak
On Tue, Nov 10, 2009 at 12:01 PM, monkeyden monk...@monkeyden.com wrote: Right, it only refers to the default local maven repo, not this local one. As Anders pointed out, you have exactly one local repository, usually in ~/.m2/repository (though it can be moved.) This repo you're trying to

RE: Maven password ecryption problem

2009-11-10 Thread Ludwig Magnusson
Here are my credentials from settings.xml. server idno-good/id usernamemaven/username password{AH6qBn1T1Y0H3zI3fl9V9T+LZ6bDAS/K7aF5gwBpWHk=}/password /server server idgood/id usernameludwig/username

Re: File system repo

2009-11-10 Thread monkeyden
As I said, for a couple different reasons, we can't convert these projects to maven just yet. These are simply directories in my maven project. They are created manually and they each contain a jar file and a pom file. If this isn't possible then what is a file system repository, if anything?

RE: File system repo

2009-11-10 Thread Martin Gainty
yep its a wagon a wagon is a transport protocol used to pull or push information to/from your pom your repository http://maven.apache.org/wagon/ Martin Gainty __ Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité Diese

Re: File system repo

2009-11-10 Thread Wendy Smoak
On Tue, Nov 10, 2009 at 3:34 PM, monkeyden monk...@monkeyden.com wrote: These are simply directories in my maven project.  They are created manually and they each contain a jar file and a pom file.  If this isn't possible then what is a file system repository, if anything?  Is it just the

RE: How do I get started on Maven?

2009-11-10 Thread Takapa
Thanks for your detailed and well thought out reply. I have a small follow up questions, if you have time to answer: In your answer to question 1, you said and one aggregator pom at the top level. I take it you mean that the top level pom should be in the root workspace folder? If so, how does

RE: How do I get started on Maven?

2009-11-10 Thread EJ Ciramella
1 - not entirely sure how well eclipse plays with aggregator poms. 4 - we didn't build anything, it already exists. Much like any system overhaul, if I were in your shoes, I'd work on a proof of concept example in a branch off of your mainline (maybe based on a known good release label). From

Multi-Module Project and Release Plugin

2009-11-10 Thread Jesse Foster
I'm trying to branch our code from trunk using the Maven Release Plugin . When I try to do a dry run with the release plugin it complains about missing scm information when all parent poms have scm sections. I'm guessing the plugin is expecting a scm section in the root pom.xml, but I didn't

RE: Multi-Module Project and Release Plugin

2009-11-10 Thread EJ Ciramella
I personally never use the release plugin (another case of the maven way not fitting with our way), but I wonder, if you ran mvn site, wouldn't each step along the way not only generate site output, but also have links to the scm details for that particular tier? If that's the case, why not

Re: Maven password ecryption problem

2009-11-10 Thread Anders Hammar
If you only change the url (keep the same id), it should work I guess. If the password is in fact the same on both servers (urls). I would start by removing the encryption and get things to work with plain passwords. Then add the encryption. What's the protocol for the two urls? /Anders On Tue,

Re: File system repo

2009-11-10 Thread Anders Hammar
I would also argue that you should read up on Maven and how it uses repos. It's much easier if you actually understand the core Maven stuff, than us telling you what to do. Less misunderstandings for one thing. http://www.sonatype.com/documentation/books/maven-defguide /Anders On Wed, Nov 11,

Re: Multi Module Project Assembly plugin

2009-11-10 Thread Anders Hammar
You should bind the assembly plugin to an appropriate phase (such as 'package'). The, you only need to run mvn install /Anders On Tue, Nov 10, 2009 at 22:33, Stephanie Johnson jstephani...@gmail.comwrote: All, I am using Maven 2.0.9 to build a multi module project. I have defined the

Re: How do I get started on Maven?

2009-11-10 Thread Anders Hammar
1) M2Eclipse handles this reasonably well. However, you need to insert a new folder level in your workspace hierarchy,where you put the aggregator pom. Then the modules go below that folder. /Anders On Wed, Nov 11, 2009 at 03:41, EJ Ciramella ecirame...@upromise.com wrote: 1 - not entirely

RE: Maven password ecryption problem

2009-11-10 Thread Ludwig Magnusson
I use scp for secure connections. If I use ftp it works on the no-good server as well, but I don't have ftp access from home. If you encrypt a password twice. Is the encrypted password supposed to be different every time? This happens at my computer. /Ludwig -Original Message- From:

Re: Maven password ecryption problem

2009-11-10 Thread Anders Hammar
I'm confused. First you say you just change the url, and now you say the server id is different. Have you tried without encryption? Get that to works first, then go on to encrypting the passwords. Do try to do everything at the same time when you're having problems. Regarding two runs of