deploy rpm to rpm repository using maven + mojo rpm plugin

2009-11-09 Thread eyal edri
Hi guys, i'm just starting to play around with maven as a candidate for our whole build/deploy system for java applications. we're been programming so far using Perl, packaging with Rpm on Fedora and Deploying it though a local yum repository. We still haven't decided if we could ditch the

[ANN] Maven JAXB 2.1 Plugin 1.3 Released

2009-11-09 Thread Robert Scholte
The Mojo team is pleased to announce the release of the JAXB 2.1 Plugin, version 1.3. This plugin is able to create the object graph from XSDs or DTDs based on the JAXB 2.1 implementation. With this release it's also possible create a schemafile for sources. See the plugin's site for

Re: deploy rpm to rpm repository using maven + mojo rpm plugin

2009-11-09 Thread Dan Tran
I may want to try using wagon-maven-plugin to ship your rpm to a location at your yum server. note wagon plugin knows about scp but not yum infrastructure On Fri, Nov 6, 2009 at 2:36 PM, eyal edri eyal.e...@gmail.com wrote: Hi guys, i'm just starting to play around with maven as a candidate

Re: deploy rpm to rpm repository using maven + mojo rpm plugin

2009-11-09 Thread Stephen Connolly
It is not that difficult to write your own maven plugin to achieve this. You'll probably want to depend on JSch. File transfer via SCP/SFTP is easy with JSch, and then you can execute the make command to re-index the repository... although you probably would prefer to skip the make and instead

Re: deploy rpm to rpm repository using maven + mojo rpm plugin

2009-11-09 Thread Dan Tran
Stephen, i just typed faster then you in 2 seconds :-) On Mon, Nov 9, 2009 at 12:59 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: It is not that difficult to write your own maven plugin to achieve this. You'll probably want to depend on JSch. File transfer via SCP/SFTP is easy

Re: deploy rpm to rpm repository using maven + mojo rpm plugin

2009-11-09 Thread eyal edri
Thanks for the detailed answer! i'll look into it and let you know the progress. Cheers, Eyal. On Mon, Nov 9, 2009 at 10:59 AM, Stephen Connolly stephen.alan.conno...@gmail.com wrote: It is not that difficult to write your own maven plugin to achieve this. You'll probably want to depend

Re: deploy rpm to rpm repository using maven + mojo rpm plugin

2009-11-09 Thread Stephen Connolly
In case you hadn't guessed, I have code for similar ... though it's not deploying rpms to an rpm repository, rather deploying a custom deployable to a propriatory server ;-) 2009/11/9 Dan Tran dant...@gmail.com: Stephen, i just typed faster then you in 2 seconds :-) On Mon, Nov 9, 2009 at

Re: deploy rpm to rpm repository using maven + mojo rpm plugin

2009-11-09 Thread Stephen Connolly
And that snippet is all I can copy and paste under OS license ;-) 2009/11/9 Stephen Connolly stephen.alan.conno...@gmail.com: In case you hadn't guessed, I have code for similar ... though it's not deploying rpms to an rpm repository, rather deploying a custom deployable to a propriatory

Specific goal gonfiguration in maven does not work

2009-11-09 Thread Ludwig Magnusson
Hi! I am using the torque plugin for maven and I am trying to set goal-specific configurations but when I run the goal. Maven can't find the parameters. When I do a global configuration, everything works. Like this: plugin groupIdorg.apache.torque/groupId

Re: problem of dependency jar

2009-11-09 Thread Anders Hammar
On Mon, Nov 9, 2009 at 06:42, maven apache apachemav...@gmail.com wrote: Add a dependency to that and it will end up in the lib folder. Create that extra jar artifact with a classifier in the Sa project. If so I will have to jars under the lib,and this two jars own some same classes,

Re: Specific goal gonfiguration in maven does not work

2009-11-09 Thread Anders Hammar
The id param could be anything. It's just your name/id of the binding. /Anders On Mon, Nov 9, 2009 at 10:41, Ludwig Magnusson lud...@itcatapult.comwrote: Hi! I am using the torque plugin for maven and I am trying to set goal-specific configurations but when I run the goal. Maven can't

Maven Archetype: run script after creation

2009-11-09 Thread Gajo Csaba
Hello, I would like to create an archetype with a default directory structure. After the directories are created, I'd like the archetype to execute a Perl script. How can I do this? Thanks, Csaba - To unsubscribe,

Re: Specific goal gonfiguration in maven does not work

2009-11-09 Thread Stephen Connolly
2009/11/9 Ludwig Magnusson lud...@itcatapult.com: Hi! I am using the torque plugin for maven and  I am trying to set goal-specific configurations but when I run the goal. Maven can't find the parameters. When I do a global configuration, everything works. Like this: plugin  

RE: Specific goal gonfiguration in maven does not work

2009-11-09 Thread Ludwig Magnusson
Thank you very much. -Original Message- From: Stephen Connolly [mailto:stephen.alan.conno...@gmail.com] Sent: den 9 november 2009 11:45 To: Maven Users List Subject: Re: Specific goal gonfiguration in maven does not work 2009/11/9 Ludwig Magnusson lud...@itcatapult.com: Hi! I am

Exception in thread main java.lang.NoClassDefFoundError

2009-11-09 Thread lekkie
Hi, I have Eclipse ganymede installed and I downloaded m2eclipse plugin to enable eclipse manage eclipse projects. The download was successfully but I can install projects. It kept saying this: constituent12:

Re: Exception in thread main java.lang.NoClassDefFoundError

2009-11-09 Thread Anders Hammar
This is a question for the m2eclipse user list. But, you need to run Eclipse with a JDK, not a JRE. You're doing that wrong. What you need to do is explained here: http://www.jguru.com/forums/view.jsp?EID=1367369 /Anders On Mon, Nov 9, 2009 at 12:49, lekkie lekkie.ay...@gmail.com wrote: Hi,

Problem with permissions after archive created

2009-11-09 Thread James Kavanagh
Hi there, Post build, I'm building a zip file using the assembly plugin and for some reason when the archive is unzipped on the target machine all directories have 777 permissions i.e. drwxrwxrwx. This only happens on our production build server, on our dev CI server the archive is produced

RE: Specific goal gonfiguration in maven does not work

2009-11-09 Thread Ludwig Magnusson
A new question on this subject. If I have several goals for the same plugin that I want special configuration for and all are run from the command line, not part of any phase. Is that possible? Maven complains when I define 2 executions with iddefault-cli/id since two executions can't have the

adding jdbc for ms-sql as dependency from maven

2009-11-09 Thread eyal edri
Hi, anyone knows if the jdbc driver is available via maven repository? and what's its groupid? I downloaded the sqljdbc4.jar from Microsoft and set a 'system' dependency, is that the only way to do it? dependency groupIdcom.microsoft.sqlserver.jdbc/groupId

Re: Specific goal gonfiguration in maven does not work

2009-11-09 Thread Stephen Connolly
2009/11/9 Ludwig Magnusson lud...@itcatapult.com: A new question on this subject. If I have several goals for the same plugin that I want special configuration for and all are run from the command line, not part of any phase. Is that possible? only if the configuration requirements of each

Re: m2eclipse

2009-11-09 Thread Fabricio Lemos
I´m having this same problem while subscribing do m2eclipse mailing list. maven apache wrote: 2009/11/7 Brian Fox bri...@infinity.nu On Fri, Nov 6, 2009 at 3:48 AM, maven apache apachemav...@gmail.com wrote: 2009/11/6 Olivier Lamy ol...@apache.org BTW you can use m2e user ml

Re: Exception in thread main java.lang.NoClassDefFoundError

2009-11-09 Thread lekkie
Thanks. That resolved the JDK problem. I'll post my other questions on the m2eclipse forum. Anders Hammar wrote: This is a question for the m2eclipse user list. But, you need to run Eclipse with a JDK, not a JRE. You're doing that wrong. What you need to do is explained here:

Re: adding jdbc for ms-sql as dependency from maven

2009-11-09 Thread Stephen Connolly
mvn install:install-file or mvn deploy:deploy-file (if you have a repository manager, and you should) are the correct ways to do this systemPath is deprecated 2009/11/9 eyal edri eyal.e...@gmail.com: Hi, anyone knows if the jdbc driver is available via maven repository? and what's its

Maven archetypes and Velocity

2009-11-09 Thread Gajo Csaba
Hello, I have a very simple question regarding archetypes. I've created my own basic archetype, and in archetype-resources/src/main/java/App.java I wrote the following: package $xxx Installed the archetype, created a new project with it and also added the -Dxxx=abc parameter... and it

RE: Specific goal gonfiguration in maven does not work

2009-11-09 Thread Ludwig Magnusson
Orthogonal? You mean that the all have different parameters? Well I'm using the torque plugin and sad to say that is not the case. Example: the parameter outputDir exists for several goals even though the output is not the same at all for the different goals. I don't think that maven is like ant.

Re: Maven archetypes and Velocity

2009-11-09 Thread Gajo Csaba
Looks like I'm doing something very wrong, cause I followed that tutorial and it still won't work. In class com.cosylab.App.java I defined this: String name = ${xxx}; note that I've also tried doing it like this: String name = $xxx; So it's just a simple project. I've created an

Re: How do I get multiproject:install to run jar:install in sub-directories?

2009-11-09 Thread laredotornado
Thanks but I have sadly not yet joined the real world of Maven 2. I'm using maven 1.1. Given this, any ideas about my questions? - Dave Dan Tran wrote: by default maven2 runs in reactor mode ( equivalent of maven 1 multi project ) so what you are looking for is mvn deploy

[ANN] JBoss Maven Plugin 1.4 Released

2009-11-09 Thread Paul Gier
The Mojo team is pleased to announce the release of the JBoss Maven Plugin version 1.4. http://mojo.codehaus.org/jboss-maven-plugin/ Some notable features in this release include improvements to the start-and-wait mojo and general improvements to the plugin configuration. The plugin site has

RE: Maven Archetype: run script after creation

2009-11-09 Thread Jamie Whitehouse
You may want to look at the exec-maven-plugin which can execute programs outside of Maven: http://mojo.codehaus.org/exec-maven-plugin/ -Original Message- From: Gajo Csaba [mailto:csaba.g...@cosylab.com] Sent: Monday, November 09, 2009 5:13 AM To: Maven Users List Subject: Maven

Re: Maven Archetype: run script after creation

2009-11-09 Thread Gajo Csaba
I'm familiar with that plugin, but what I'm asking is completely different. I want to create an archetype, and when I create a new project based on that archetype, the archetype should invoke an external script. So the archetype would create the basic directory structure and files, and when

[Maven_2.1.0/maven-resources_2.4.1] filtering tag and property

2009-11-09 Thread Emmanuel Séguin
Hi I'm trying to activate resources filtering by using properties in the pom. I've done several tests but the magic is still not happening ;) To be absolutely sure of what is happening i've created a brand new empty webapp with maven archetype. My webapp tree is : /pom.xml /src/... (usual

Re: How do I get multiproject:install to run jar:install in sub-directories?

2009-11-09 Thread Lukas Theussl
If your sub-projects are of type jar then multiproject:install will run jar:install automatically on all configured sub-projects. See http://maven.apache.org/maven-1.x/plugins/multiproject/goals.html HTH, -Lukas laredotornado wrote: Hi, I'm using Maven 1.1. I have model and service

RE: Location of plexus jars..

2009-11-09 Thread Martin Gainty
i found the plexus source distro at http://plexus.codehaus.org/source-repository.html but when referencing plexus-utils i see a consistent error message of cannot locate plexus-component-metadata i noticed there is a hardcoded reference to .metadata in org.codehaus.plexus.util.AbstractScanner

RE: maven-dependency-plugin:unpack-dependencies doesn't always work

2009-11-09 Thread EJ Ciramella
Nope - there are no markers created. Period. Good thinking though! Any other suggestions what may be wrong with this artifact? It opens just fine in winzip. - To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For

RE: system scoped dependencies are attempted to be downloaded

2009-11-09 Thread EJ Ciramella
Sorry - and thank you! Any suggestions or is this (confirmed as a) a bug? -Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar Sent: Saturday, November 07, 2009 2:07 AM To: Maven Users List Subject: Re: system scoped

RE: m2eclipse

2009-11-09 Thread Damon Silver
I'm having the same problem. I've also received messages saying I've subscribed but have seen no traffic in the past few weeks. Could someone associated with the list (Jason Van Zyl, maybe) prod the administrators there to make sure it's working as expected? Thanks, Damon -Original

Re: system scoped dependencies are attempted to be downloaded

2009-11-09 Thread Anders Hammar
Don't think it's a bug, it's you using it the wrong way. As I understand you, you have a dependency to some archive which you unpack. In the same project you have a system scope dependency which points at some jar that gets unpacked from the dependency above. Don't think that would work and I

Re: How do I get multiproject:install to run jar:install in sub-directories?

2009-11-09 Thread laredotornado
Below are the contents of my service/project.properties file ... maven.multiproject.type=javaapp maven.javaapp.jar.name=${pom.artifactId}-${pom.currentVersion}.jar maven.javaapp.mainclass=myco.dor.dmv.driver.youthful.AddressFileProcessor maven.javaapp.type=jar maven.compile.target=1.5 What is

File system repo

2009-11-09 Thread monkeyden
I have several projects which can't be converted over to maven right now, mostly because of time constraints. The artifacts of these projects will be used in a maven project. I'd prefer not to install them into my repository, so I am trying to create a file system repository which points to a

Re: system scoped dependencies are attempted to be downloaded

2009-11-09 Thread Anders Hammar
Ah, you're using JBoss EAP? I have quite some experience from that I we had to build our own JBoss EAP repo for a customer. What a pain to get all the dependencies right... Never the less, it's the way to go I think. It might be of interest for you that there is a JBoss jira for creating an EAP

Re: File system repo

2009-11-09 Thread Wendy Smoak
On Mon, Nov 9, 2009 at 12:00 PM, monkeyden monk...@monkeyden.com wrote: I have several projects which can't be converted over to maven right now, mostly because of time constraints.  The artifacts of these projects will be used in a maven project.  I'd prefer not to install them into my

Re: Dependency management question

2009-11-09 Thread David Hoffer
I just ran into a problem with the import scope feature. It does not resolve properly. I.e. Project B uses import scope feature on Project A. Project C uses import scope feature on Project B. Project C cannot build because it says that A does not exist. I'm using maven 2.1.0, has this been

RE: system scoped dependencies are attempted to be downloaded

2009-11-09 Thread EJ Ciramella
Well, that's interesting - here's the thing - if you use opensource, community edition version of jboss, then you can depend on the jboss repository. If, however, you depend on the commercial version, patches (to both files and jars) are delivered in a different fashion (from what I can tell).

Re: Dependency management question

2009-11-09 Thread Anders Hammar
I assume that project B builds just fine? Never had import dependency in two levels like you have, so I don't know if it's a known bug being fixed. Try Maven 2.2.1 and see, or search jira! /Anders On Mon, Nov 9, 2009 at 20:15, David Hoffer dhoff...@gmail.com wrote: I just ran into a problem

Re: Dependency management question

2009-11-09 Thread David Hoffer
Yes, building project B is just fine...I thought I had a working solution using import scope. Then other developers in our company tried building C and reported the failure. What I note in the console error is: Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to

Re: How do I get multiproject:install to run jar:install in sub-directories?

2009-11-09 Thread Wayne Fay
Thanks but I have sadly not yet joined the real world of Maven 2.  I'm using maven 1.1.  Given this, any ideas about my questions? You really should/must move to Maven2 asap. There is almost no good reason to remain on M1, and the pain of migrating to M2 is pretty minor vs the immediate

RE: system scoped dependencies are attempted to be downloaded

2009-11-09 Thread EJ Ciramella
Thanks again - yes - spot on. We've also recycled some scripts (so ours call the run script) so we physically need more than just the dependencies. -Original Message- From: anders.g.ham...@gmail.com [mailto:anders.g.ham...@gmail.com] On Behalf Of Anders Hammar Sent: Monday, November

Re: Dependency management question

2009-11-09 Thread Anders Hammar
Sorry, no. I would investigate why it's looking in central first of all though. /Anders On Mon, Nov 9, 2009 at 20:25, David Hoffer dhoff...@gmail.com wrote: Yes, building project B is just fine...I thought I had a working solution using import scope. Then other developers in our company

Re: Dependency management question

2009-11-09 Thread Anders Hammar
Ah, and as always. It might help building a very simple project to reproduce this. Removing all unimportant parts. If it then works, you know it's not a Maven bug. If it still doesn't work, you have an example that reproduces the issue that you can attach to the jira. That increases the likelihood

Re: system scoped dependencies are attempted to be downloaded

2009-11-09 Thread Anders Hammar
Vote on this: https://jira.jboss.org/jira/browse/JBPAPP-1935 /Anders On Mon, Nov 9, 2009 at 20:30, EJ Ciramella ecirame...@upromise.com wrote: Thanks again - yes - spot on. We've also recycled some scripts (so ours call the run script) so we physically need more than just the dependencies.

Re: How do I get multiproject:install to run jar:install in sub-directories?

2009-11-09 Thread laredotornado
Sadly, the decision to move to maven 2 is beyond my control. I know the company has plans for it, but for now this is the hand I was dealt. If you have any insights into the question posed, I am grateful. - Daev Wayne Fay wrote: Thanks but I have sadly not yet joined the real world of

Re: Dependency management question

2009-11-09 Thread David Hoffer
Good idea for sure. I tried maven v2.2.1 and it had the same problem. I'm going to try to use A as my parent for now. A is more than I want/need as my parent but should work. -Dave On Mon, Nov 9, 2009 at 12:39 PM, Anders Hammar and...@hammar.net wrote: Ah, and as always. It might help

Re: File system repo

2009-11-09 Thread Jörg Schaible
monkeyden wrote: I have several projects which can't be converted over to maven right now, mostly because of time constraints. The artifacts of these projects will be used in a maven project. I'd prefer not to install them into my repository, so I am trying to create a file system

Re: JNLP webstart-maven-plugin jar version issue

2009-11-09 Thread chicagopooldude
This was happening cause we never were using jnlp download servlet, the project earlier was just using jnlp files only. This use versions of the jar in the jnlp. Configure project to use jnlp jars which i could not find any where on maven so i added them to my local repo but you should find

RE: Location of plexus jars..

2009-11-09 Thread Martin Gainty
in case anyone is interested plexus-components is a bit of a red-herring the required Plexus classes are now located in plexus-io more importantly plexus is not located in either the repo1.maven.org or people.apache.org repositories so you'll need to reconfigure the Plexus plugins to point to

Re: Location of plexus jars..

2009-11-09 Thread Stephen Connolly
2009/11/9 Martin Gainty mgai...@hotmail.com: in case anyone is interested plexus-components is a bit of a red-herring the required Plexus classes are now located in plexus-io more importantly plexus is not located in either the repo1.maven.org or people.apache.org repositories so you'll

Re: m2eclipse

2009-11-09 Thread Brian Fox
Sorry about that, the new page was wrong and I just fixed it. The correct list is still on codehaus: user-subscr...@m2eclipse.codehaus.org On Mon, Nov 9, 2009 at 9:21 AM, Damon Silver damon.sil...@diio.net wrote: I'm having the same problem.  I've also received messages saying I've subscribed

Re: maven-dependency-plugin:unpack-dependencies doesn't always work

2009-11-09 Thread Brian Fox
I would expect an error, I can only suggest attaching a debugger to the plugin and see what's going on. On Mon, Nov 9, 2009 at 9:06 AM, EJ Ciramella ecirame...@upromise.com wrote: Nope - there are no markers created.  Period. Good thinking though! Any other suggestions what may be wrong with

Re: maven-dependency-plugin:unpack-dependencies doesn't always work

2009-11-09 Thread Sony Antony
yes it doesn't work of used more than once. I came across it yesterday. I had two execution blocks, unpacking two diff jars at two diff phases. only one of them was unpacked and there was no error. I ended working around it by chanding the second goal to copy. I then unjar ed it using antrun.

Re: maven-dependency-plugin:unpack-dependencies doesn't always work

2009-11-09 Thread Brian Fox
Just set overWrite=true On Mon, Nov 9, 2009 at 4:12 PM, Sony Antony sony.ant...@gmail.com wrote: yes it doesn't work of used more than once. I came across it yesterday. I had two execution blocks, unpacking two diff jars at two diff phases. only one of them was unpacked and there was no

Re: Suck, cannot build, repository down??

2009-11-09 Thread Brian Fox
Yes, the dependency report does completely bypass the normal repository mechanism and thus Nexus. This needs to be fixed, but noone has attempted it yet that I know of. On Thu, Nov 5, 2009 at 9:56 PM, Stevo Slavić ssla...@gmail.com wrote: Using Nexus already. Any advices what needs to be

Re: Suck, cannot build, repository down??

2009-11-09 Thread David C. Hicks
For this very reason, I've set up my builds to only build the full dependency report when I specify it - normally for nightly and release builds. It keeps my development and continuous integration builds short and sweet. It's a simple thing to activate a profile for the longer builds to produce

RE: Doubt about how create archetype

2009-11-09 Thread Exposito Aguilera, Francisco
Any help please? -Mensaje original- De: Exposito Aguilera, Francisco Enviado el: viernes, 06 de noviembre de 2009 12:54 Para: 'Maven Users List' Asunto: Doubt about how create archetype I am trying to create an archetype with this structure: ProjectName src/main/java

Re: Doubt about how create archetype

2009-11-09 Thread Raphaël Piéroni
Hi Francisco, Try by creating the project you would like to have and call mvn archetype:create-from-project on it. You will get the archetype project in target/generated-sources/archetype. In that directory you will find the src/main/resources/META-INT/maven/archetype-metadata.xml file that