Re: missing

2010-04-26 Thread pankjajain15
Thanks wayne; following is settings.xml file from conf folder of maven please have a look at it and tell me the error as i am very much new to the maven http://maven.apache.org/SETTINGS/1.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="h

Timestamped SNAPSHOTS

2010-04-26 Thread Kumar Ampani
I have a web(war) project and I see a SNAPSHOT (ex: mylib-2.0-SNAPSHOT) dependency copied to WEB-INF/lib sometimes with Timestamp (mylib-2.0-20100426-27282.jar) and sometimes just SNAPSHOT ( mylib-2.0-SNAPSHOT). Why is that and any work arounds ? As one would expect, I always like to see 2.0

Re: Help with Ant task

2010-04-26 Thread Eduardo M KALINOWSKI
On 04/26/2010 06:41 PM, Lorenzo Thurman wrote: I'm just learning both Maven and Ant. I have a couple of weeks of working with Maven, but not I need to get it execute and Ant task. I know nothing about Ant, but using the antrun plugin for Maven, I've got things to the point where the task attem

Help with Ant task

2010-04-26 Thread Lorenzo Thurman
I'm just learning both Maven and Ant. I have a couple of weeks of working with Maven, but not I need to get it execute and Ant task. I know nothing about Ant, but using the antrun plugin for Maven, I've got things to the point where the task attempts to execute, but fails because it can't find a

Re: Release plugin & git repo with multiple projects

2010-04-26 Thread Kathryn Huxtable
Although you can create a new git repo, add a remote, and then pull a single branch. Not the same as checking out a directory from svn, but you don't *have* to get the entire repo. I use this in my wagon-gitsite app to push docs to the gh-pages branch of github projects. -K On Apr 26, 2010, a

Re: Release plugin & git repo with multiple projects

2010-04-26 Thread Jean-Laurent de Morlhon
Thanks ! Migration would be a bit stiffer than I thought, but it make sense. Jean-Laurent On Mon, Apr 26, 2010 at 10:18 PM, Justin Edelson wrote: > Jean-Laurent de Morlhon wrote: > >> You say the git way of doing things is 1 project -> 1 git repository, I >> understand, and it's not very far o

Re: Release plugin & git repo with multiple projects

2010-04-26 Thread Justin Edelson
Jean-Laurent de Morlhon wrote: You say the git way of doing things is 1 project -> 1 git repository, I understand, and it's not very far of having a svn repo for every project in svn altough the release plugin do not enforce this. Subversion doesn't enforce this. In fact, Subversion is designed

Re: Release plugin & git repo with multiple projects

2010-04-26 Thread Jean-Laurent de Morlhon
You say the git way of doing things is 1 project -> 1 git repository, I understand, and it's not very far of having a svn repo for every project in svn altough the release plugin do not enforce this. The current state of the release plugin force you to have the pom.xml at the root of your git rep

Re: provided depedencies and Maven best practices ...

2010-04-26 Thread Justin Edelson
provided-scoped dependencies aren't transitive. As a result, there's no reason to put them in the "our-dependencies" pom. Kedar Mhaswade wrote: The Maven books at sonatype.org suggest that while employing Maven to do multi module builds, it is better to carefully segregate your dependencies in

provided depedencies and Maven best practices ...

2010-04-26 Thread Kedar Mhaswade
The Maven books at sonatype.org suggest that while employing Maven to do multi module builds, it is better to carefully segregate your dependencies in a separate module whose packaging type is pom and then depend on this module with pom. I followed that advice and now I have the following:

Re: Force Maven to use my newer version of Jaxb instead of the one from Java 6?

2010-04-26 Thread Wayne Fay
> How can force Maven to use my newer version of Jaxb instead of the one from > Java 6? This is not a Maven problem per-se. You can find ways to deal with this here: https://jaxb.dev.java.net/guide/Migrating_JAXB_2_0_applications_to_JavaSE_6.html The easiest approach is using the endorsed directo

RES: maven-dependency-plugin: Question about copy-dependencies goal

2010-04-26 Thread Luciano Mantuaneli
Hi, Karl. Thanks for answering! >Have you thought about linking the plugin to the package phase for >example > >and did you tried that on command line ? I wish I could, but it's not possible due to restrictions on the specification of this job. It's imperative that the "magic" happens while

Re: Why the error with settings.xml when building using m2eclipse?

2010-04-26 Thread Wayne Fay
> Is it a bug in m2Eclipse, or did I miss a step in m2eclipse setup? > I can successfully build from the command line even without this file M2eclipse questions belong on the m2eclipse user list: http://m2eclipse.sonatype.org/project-information.html Wayne ---

Re: Unclear about maven web app directory structure

2010-04-26 Thread Wayne Fay
> However, I do have one follow-up question. It seems that in the > case of webapps/web services it make sense to use maven (sub)modules, > to that end how many (sub)modules should one use? Is there a > recommended/best practice? For example does the following set of > (sub)modules make sense? If

Re: Dependency Management +

2010-04-26 Thread Nick Stolwijk
To enforce that all plugins are versioned use the enforcer plugin [1] with the rule requirePluginVersions [2]. For the dependencymanagement enforcement take a look at the Maven Dependency Plugin [3] with the goals analyze-only [4] and anaylyze-dep-mgt [5]. [1] http://maven.apache.org/plugins/mave

Dependency Management +

2010-04-26 Thread solo1970
Hello, For my project, I need to identify plugins/dependencies that don't have explicit versions specified (i.e. that would use the latest version) Also, I would need a plugin to fail my build if the aggregated modules don't use the same version of inter-project dependencies. (would check for pr

Re: Unclear about maven web app directory structure

2010-04-26 Thread Dan King
>> The java folder is for your java source code, while the webapp folder is for >> your web application source files such as jsp files. Create a jar project >> through the quickstart archetype to get an example of the former and the >> webapp archetype shows the latter. > >> /Anders >Exactly, you

Re: Defining ejb-jar.xml for ejb 3.0 via pom

2010-04-26 Thread Wayne Fay
> Can anyone help me and tell me what parameter to use in my pom file in > order to specify the location of the ejb-jar.xml file so that it will be > packed in my ejb file? Google "maven ejb xml" gives me: http://stackoverflow.com/questions/1716567/how-do-i-change-the-location-of-ejb-jar-xml-in-my

Re: Release plugin & git repo with multiple projects

2010-04-26 Thread Justin Edelson
OK. Then we're on the same page... On 4/26/10 11:32 AM, Kathryn Huxtable wrote: > Perhaps I wasn't clear. I don't support multiple projects in one repository. > Definitely not. I was trying to criticize the svn-centric thinking, not > support it. > > I think there should be a JIRA issue to make

Re: Release plugin & git repo with multiple projects

2010-04-26 Thread Kathryn Huxtable
Perhaps I wasn't clear. I don't support multiple projects in one repository. Definitely not. I was trying to criticize the svn-centric thinking, not support it. I think there should be a JIRA issue to make modules work, given that they'll be in separate repositories. I'm not going to file this

Defining ejb-jar.xml for ejb 3.0 via pom

2010-04-26 Thread Weichselbaumer Michael (MWE 4170)
Hello! I am using the maven-ejb-plugin (2.2.1) and I want to create an version 3.0 ejb without client. I want to provide an ejb-jar.xml (weblogic-ejb-jar.xml to be more precise) along with my ejb file. When trying to create a version 2.x ejb, I am forced to provide an ejb-jar.xml -> when doing

Re: maven-dependency-plugin: Question about copy-dependencies goal

2010-04-26 Thread Karl Heinz Marbaise
Hi, > > > process-resources Have you thought about linking the plugin to the package phase for example and did you tried that on command line ? Kind regards Karl Heinz Marbaise -- MfG Karl Heinz Marbaise -- SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893 Dipl.Ing.(

Re: missing

2010-04-26 Thread Wayne Fay
> javax.faces:jsf-api:jar:1.2_12:compile > javax.faces:jsf-impl:jar:1.2_12:compile > 4/23/10 4:55:53 PM IST: Missing artifact el-impl:el-impl:jar:1.0:provided > org.richfaces.framework:richfaces-api:jar:3.3.3-SNAPSHOT:compile > org.richfaces.framework:richfaces-impl:jar:3.3.3-SNAPSHOT:compile > org

Re: missing

2010-04-26 Thread Wayne Fay
> javax.faces:jsf-api:jar:1.2_12:compile > javax.faces:jsf-impl:jar:1.2_12:compile > 4/23/10 4:55:53 PM IST: Missing artifact el-impl:el-impl:jar:1.0:provided > org.richfaces.framework:richfaces-api:jar:3.3.3-SNAPSHOT:compile > org.richfaces.framework:richfaces-impl:jar:3.3.3-SNAPSHOT:compile > org

maven-dependency-plugin: Question about copy-dependencies goal

2010-04-26 Thread Luciano Mantuaneli
Greetings. I have a very specific need in a java project in Eclipse: The jars which the project depends on must be copied to an external folder. The maven-dependency-plugin and its copy-dependencies goal come to mind immediately. As a test, I wrote the following pom.xml: -

Re: Release plugin & git repo with multiple projects

2010-04-26 Thread Justin Edelson
Kathryn- Maybe I'm misunderstanding what you mean, but I think you have this exactly backwards. The "svn-centric thinking" is what's inspired someone to put multiple projects in the same repository. AFAIK, this is simply not supported by git, i.e. there's no way to clone, branch or tag _part_ of a

Re: maven inheritance for multiple build executions

2010-04-26 Thread Tim O'Brien
On Mon, Apr 26, 2010 at 8:39 AM, Marshall Schor wrote: > My use case: > > I'm running the maven docbkx plugin to produce both pdf and html outputs > from multiple docbook sources. > > The docbkx plugin says to use two executions (with ids, for instance, of > "html" and "pdf", one for each of the o

maven inheritance for multiple build executions

2010-04-26 Thread Marshall Schor
My use case: I'm running the maven docbkx plugin to produce both pdf and html outputs from multiple docbook sources. The docbkx plugin says to use two executions (with ids, for instance, of "html" and "pdf", one for each of the outputs). I would like to reuse this setup 4 times in my builds, bec

Re: About Maven 3.0 beta plugin

2010-04-26 Thread Baptiste MATHUS
Hi, See this presentation: http://www.sonatype.com/people/2009/04/jason-van-zyl-on-the-future-of-maven-maven-3/ Cheers 2010/4/26 > Hi, > > We are using Maven 2.1 in our project. Recently Maven 3.0 beta plugi

Re: About Maven 3.0 beta plugin

2010-04-26 Thread nicolas de loof
Maven 3 is expected to replace Maven 2.1 with no changes. You can use maven 2.x and we will still support it. Until your build uses fixed plugin versions you will not get "polluted" by new Maven artifacts. Anyway, you're encouraged to TEST your build with Maven 3 (beta) to detect potential issues

Re: Release plugin & git repo with multiple projects

2010-04-26 Thread Kathryn Huxtable
Having recently switched from svn to git for most of my projects, I have an opinion. I think you should create a JIRA ticket and consider this a bug. What we're dealing with here is a bit of svn-centric thinking during design. It needs to be fixed. -K On Apr 26, 2010, at 8:08 AM, Jean-Laurent

About Maven 3.0 beta plugin

2010-04-26 Thread leelaram.tenneti
Hi, We are using Maven 2.1 in our project. Recently Maven 3.0 beta plugin has been released. How long Maven 2.1 is supported and if Maven 3.0 is released how much does it impact the existing maven project structures and other things ? Regards, LeelaRam Please do not print this email unless it is

Release plugin & git repo with multiple projects

2010-04-26 Thread Jean-Laurent de Morlhon
We're considering migrating from svn to git, we stumble on the maven-release-plugin usage with git. We think we prefer to use a single repository for many independently built projects like : foobar-repo.git |-> project-foo/ ||-> pom.xml ||–> module A/ ||-> module B/ |

Why the error with settings.xml when building using m2eclipse?

2010-04-26 Thread Binod Pant
I tried m2eclipse for the first time. I got Eclipse running fine with the plugin, but when I tried to build a project using Maven, I got the error "The specified user settings file does not exist: myuserfolder/.m2/settings.xml" I manually created a settings.xml file, and got rid of the probl

Re: Maven project organization

2010-04-26 Thread Francis Lalonde
Stephan, I'm not sure I understand what you want to do... How many war files do you want to build? How many jar files? What are the dependencies between the projects? When you speak of source files, is that java? Maybe one or two ascii graphs would help. Some rules of thumb (for me) are : 1-y

Re: passing parameters to plugin Archetype

2010-04-26 Thread slew77
Thanks Martin. I've looked through all 3 parts, but can't find any details on passing custom paramters to the archetype. E.g. in my generated code if I want to be able to substitute ${myProperty}, I can't figure out how to supply this to Maven via the command line, e.g: mvn archetype:generate -

Re: passing parameters to plugin Archetype

2010-04-26 Thread Martin Höller
Did you have a look at http://blogs.mikeci.com/2010/01/14/working-with-custom-maven-archetypes-part-1/ and http://blogs.mikeci.com/2010/01/26/working-with-custom-maven-archetypes-part-2/ and its references! hth, - martin Am Montag, 26. April 2010 10:44:29 schrieb slew77: > Anyone have any idea o

missing

2010-04-26 Thread pankjajain15
while creating a maven project in eclipse, it creates project successfully but showing following errors after building a project 4/23/10 4:55:53 PM IST: Missing artifact javax.faces:jsf-api:jar:1.2_12:compile 4/23/10 4:55:53 PM IST: Missing artifact javax.faces:jsf-impl:jar:1.2_12:compile 4/23/10

Re: Could we configure mapper in maven-resources-plugin?

2010-04-26 Thread Arnaud bourree
2010/4/23 Arnaud bourree: > Hello > > Could we configure mapper in maven-resources-plugin? > > I try without success the following: > >   maven-resources-plugin >   2.4.2 >   >       >         copy-with-mapper >         pre-integration-test >         >            ${project.build.directory} >    

Re: Scrolling blindness with maven-javadoc-plugin

2010-04-26 Thread Ognjen Blagojevic
It works, thanks. -Ognjen Nick Stolwijk wrote: Try the quiet option. [1] [1] http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html#quiet With regards, Nick Stolwijk ~Java Developer~ IPROFS BV. Claus Sluterweg 125 2012 WS Haarlem http://www.iprofs.nl 2010/4/20 Ognjen Bla

Re: passing parameters to plugin Archetype

2010-04-26 Thread slew77
Anyone have any idea on this? It's really frustrating me :confused: Thanks, Steve. slew77 wrote: > > I'm trying to do the same thing - can someone post instructions, I've > searched everywhere. I can see it's possible as when I use m2eclipse it > allows me to specify custom properties that a

Re: Unclear about maven web app directory structure

2010-04-26 Thread Werner Punz
Am 25.04.10 22:33, schrieb Dan King: From: Anders Hammar To: Maven Users List Sent: Sun, April 25, 2010 4:11:57 PM Subject: Re: Unclear about maven web app directory structure The java folder is for your java source code, while the webapp folder is for your web application source files such

Force Maven to use my newer version of Jaxb instead of the one from Java 6?

2010-04-26 Thread VanIngen, Erik (FIPS)
Hi there, I have this problem during mvn install of my application: Caused by: javax.xml.bind.JAXBException: "org.fao.fi.fisheryresources.domain" doesnt contain ObjectFactory.class or jaxb.index which is probably a classpath problem. Java 6 has an older version of Jaxb than I need. The new

Re: How to add jar file into a Maven 2 environment?

2010-04-26 Thread Yoav Landman
2010/4/23 Vernon > > Thanks Yoav. > > Based on my reading (a quick scanning), JFrog does the same thing as > Nexus. I will use Nexus for now. > Same thing just a lot better :) Anyway, good luck! > > > > > This article is pretty old. You may can follow the new Artifactory > install > > instruc