Re: Need Help From Maven Integration

2009-02-12 Thread David C. Hicks
This is your best starting point for learning about Maven... http://www.sonatype.com/books/maven-book/reference/ SRINIVASA RAO wrote: Hi All, I am new to Maven and have been asked to set up new development environment in my office.Till now we are using CVS on one of the remote servers and web se

Re: Need Help From Maven Integration

2009-02-12 Thread N D
google out.. you will find everything you need.. On Fri, Feb 13, 2009 at 10:02 AM, SRINIVASA RAO wrote: > Hi All, > I am new to Maven and have been asked to set up new development environment > in my office.Till now we are using CVS on one of the remote servers and web > server(TOMCAT 5.x) runnin

Re: How finding jar when knowing class from Maven ??

2009-02-12 Thread Oleg Gusakov
Use m2eclipse - Maven integration for Eclipse; it provides a repository index search: - type the class name - xxx - move cursor to it and type Ctrl-1 or Apple-1 on Mac - select "Search dependencies for xxx", for me it shows close to the bottom of the list This will open the m2eclipse index se

Re: How finding jar when knowing class from Maven ??

2009-02-12 Thread Rusty Wright
http://www.mvnrepository.com/ and/or http://www.jarvana.com/ Pommier, Stephane wrote: Hi Users ! I'm wondering how I can getting a jar when I know which class I want. For example, I want to use MavenUtils class but I don't where to find it... I'm just getting crazy when searching

Re: slightly [ot] Help setting up a MAC for Maven

2009-02-12 Thread Arnaud HERITIER
You can download java 1.4, 1.5 & 1.6 updates here : http://support.apple.com/kb/HT2733 You can switch between them using Java Preferences in Applications > Utilities > Java For maven you just have to extract it somewhere (in a local Application directory of your user's home for example) and you pu

Re: slightly [ot] Help setting up a MAC for Maven

2009-02-12 Thread Mick Knutson
Thanks everyone. That helped. and this transition is a bit strange. But thanks! --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http:

Re: slightly [ot] Help setting up a MAC for Maven

2009-02-12 Thread David C. Hicks
The Mac isn't much different than your Linux systems. The trickiest part is that they don't use the /home directory. Users are located in /Users, instead. (I can't imagine why they did that, but it doesn't matter.) You still have .bashrc and .bash_profile available to you in your user's home d

Re: slightly [ot] Help setting up a MAC for Maven

2009-02-12 Thread Kalle Korhonen
If it's Mac OS X, then it's exactly as in Linux. One thing that might trip you over is OS X comes with built-in version of Maven 2.0.6. Rename /usr/bin/mvn to mvn.bak or something, then proceed as normally when setting up your bash environment (modify .bashrc etc.). I just helped one guy to set it

slightly [ot] Help setting up a MAC for Maven

2009-02-12 Thread Mick Knutson
I am used to configuring Windows and Linux as a developer machine. But want to setup a mac now. And I am finding it tough to add maven 2.0.9 along with MAVEN_HOME, as well as a newer JDK 6 and JAVA_HOME so I can run command line builds on a Mac. Can anyone point me to a tutorial or something? ---

Re: Maven using old snapshot poms?

2009-02-12 Thread Tim
Mm maybe this is a teamcity issue.I've noticed that not all the agents (all on the same box) will fail but, when one does, it is stuck until I clear it's .m2 cache. On Thu, Feb 12, 2009 at 8:33 AM, Tim wrote: > I have a Teamcity setup w/ multiple build agents.One of my projects > depends on a SN

Re: How finding jar when knowing class from Maven ??

2009-02-12 Thread Yves Dessertine
If you use Eclipse, you can press Ctrl + Shit + T, and type the class name. Of course, Eclipse must be aware of your jars. 2009/2/12 Mick Knutson : > http://javacio.us/subscribers/classes/org.apache.maven.MavenUtils&tag=maven > > --- > Thank You… > > Mick Knutson, President > > BASE Logic, Inc.

Prototype file name in archtype

2009-02-12 Thread rina_
Hello, I'm trying to create a template for my projects and using archtypes for this. The problem is that prototype file names must contain the artifactId + ".java". This means that prototype file names must somehow be defined as variables. Is this possible? Any suggestions on how I can do this?

mvn eclipse:eclipse not adding source directories

2009-02-12 Thread Josh Suereth
Hey guys, I'm trying to better integrate the maven-eclipse-plugin with the maven-scala-plugin. Is there anyway I can notify the eclipse:eclipse goal to add extra source directories when creating the eclipse project files? Thanks! -Josh

Re: maven release plugin with git-svn?

2009-02-12 Thread Olivier Lamy
Hi, It works with last version (at least scm 1.1). You have a sample here [1] of two projects I have tested with it. You have to take care of this : http://jira.codehaus.org/browse/SCM-428 . HTH, -- Olivier [1] http://github.com/olamy/ 2009/2/12 Mark Derricutt : > Hi all, > > Does anyone know if t

Re: FW: Maven antrun plugin

2009-02-12 Thread Wayne Fay
> Sorry for the repost, but I'm not sure if this went through as I was not on > the subscription list. It did. > > > > org.apache.maven.plugins > maven-antrun-plugin Node pluginManagement is used strictly for configuring plugins. The plugins

executing maven-exec-plugin twice doesn't seem to work

2009-02-12 Thread klimane
I am trying to get a maven-exec-plugin to run two different main programs in a particular order within the same build. Here's what I've got in my pom: org.codehaus.mojo exec-maven-plugin 1.1 exec-1 java test-compile java ca.

maven release plugin with git-svn?

2009-02-12 Thread Mark Derricutt
Hi all, Does anyone know if the maven release plugin will (or can be made to work with) git-svn based checkouts when using subversion? I'm suspecting not. Mark ...and then Buffy staked Edward. The End.

FW: Maven antrun plugin

2009-02-12 Thread Kevin Witten
Sorry for the repost, but I'm not sure if this went through as I was not on the subscription list. -Original Message- From: Kevin Witten Sent: Thursday, February 12, 2009 11:53 AM To: 'Maven Users List' Subject: Maven antrun plugin Any help appreciated: I'm trying to run an ant task on

Maven antrun plugin

2009-02-12 Thread Kevin Witten
Any help appreciated: I'm trying to run an ant task on clean using maven 2.0.9. So I'm basically following examples from The book "Maven - The Definitive Guide". I created a simple pom.xml shown below, which uses the antrun plugin configured to run echo tasks. This is set up to run on phase "pr

Re: Maven, offline use and source control

2009-02-12 Thread John Willemin
Get Nexus for your Maven repository. It's free, and is a true Maven repository. Originally, I was using my own repository using SCP, but a true Maven repository has features that Maven clients can't emulate alone. So this is something that we would use in place of j

RESOLVED: Using a repository manager for certain dependencies.

2009-02-12 Thread David C. Hicks
Blondeness apparently set in when I added my dependency to the project. It's a plugin. I could add repositories all day long and not get it solved. I had to add a . Duh! David C. Hicks wrote: I've got a few artifacts that I need to make available to my team and company. So, I set up Nexus

RE: New Maven Respository Search Application

2009-02-12 Thread Deron Eriksson
Justin Edelson wrote: > > Does this only index Central? > Hi Justin, Yes, currently only central gets indexed, but in the future I'd like to add support for multiple repositories. Brian E Fox wrote: > > Hopefully they are using the indexes and not scraping the entire > contents of the repo

Re: How finding jar when knowing class from Maven ??

2009-02-12 Thread Mick Knutson
http://javacio.us/subscribers/classes/org.apache.maven.MavenUtils&tag=maven --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f. (415) 685-4233 Website: http://baselogic.com Linked IN: http://li

Re: How finding jar when knowing class from Maven ??

2009-02-12 Thread Mick Knutson
http://letmegooglethatforyou.com/?q=http%3A%2F%2Fjavacio.us%2Fsearch%3Fcx%3D014543831828880571631%253Alhbnm247enc%26cof%3DFORID%253A9%26channel%3D2700477483%26ie%3Diso-8859-1%26q%3DMavenUtils%2B%26sa%3DSearch%231310 I could not resist. ;-) --- Thank You… Mick Knutson, President BASE Logic, Inc.

How finding jar when knowing class from Maven ??

2009-02-12 Thread Pommier, Stephane
Hi Users ! I'm wondering how I can getting a jar when I know which class I want. For example, I want to use MavenUtils class but I don't where to find it... I'm just getting crazy when searching on the web ! Thanks in advance. Sté

Using a repository manager for certain dependencies.

2009-02-12 Thread David C. Hicks
I've got a few artifacts that I need to make available to my team and company. So, I set up Nexus and added my artifacts to the "releases" repository. Next, I added that repository to the list in my project's parent POM: ags-releases AGS Releases http://bluedev.en

Re: POM Best Practice? Tomcat, svn wc, and dists

2009-02-12 Thread Dominic Mitchell
On 12 Feb 2009, at 15:39, Lee Goddard wrote: As Gérald said, you should keep your source and compiled artifacts separate. Oh yes, sounds like a very good idea. No argument from me! The maven standard (which seems reasonable to me) is that java source code lives under src/main/java. Addition

Running Groovy scripts with project's compile classpath

2009-02-12 Thread Torben S. Giesselmann
Hi there, I'm trying to post-process some classes of my project using a Groovy script. During the process-classes phase, I'm executing a Groovy script using gmaven-plugin (1.0-rc-4). However, loading any class from the project's classes (regular Java classes) fails. This code fails with a Cl

Re: Excluding Manifest.MF when generating jar-files

2009-02-12 Thread Heinrich Nirschl
On Thu, Feb 12, 2009 at 8:29 AM, Weichselbaumer Michael (MWE 4170) wrote: > Manifest.MF files are created dynamically, but I need to compare newly > built jar-artifacts to older ones in order to find out if they have > changed. This is done by simply checking md5 hashes. Those hashes are > modifie

Re: Maven, offline use and source control

2009-02-12 Thread David Weintraub
Get Nexus for your Maven repository. It's free, and is a true Maven repository. Originally, I was using my own repository using SCP, but a true Maven repository has features that Maven clients can't emulate alone. The big difference between Ant and Maven is that Ant d

Re: Can maven-antrun-plugin run before code compiled?

2009-02-12 Thread Mike Wallace
That's what I tried. I dropped the jars files (created from the ant task in the process-resources phase) into target and also tried target/classes. Either way, when the pom tried compiling the code, it still doesn't recognize them. Is there a classpath that needs updating to include that targ

Maven, offline use and source control

2009-02-12 Thread John Willemin
Alright - I am pretty new to Maven and have some newbie questions. It's a little wierd for me coming from seven years of Ant. I have read through the definitive guide (mostly skimming) and set up a simple web application using archetype:create. I like that it tries to enforce directory structur

RE: New Maven Respository Search Application

2009-02-12 Thread Brian E. Fox
Hopefully they are using the indexes and not scraping the entire contents of the repos. -Original Message- From: Edelson, Justin [mailto:justin.edel...@mtvstaff.com] Sent: Thursday, February 12, 2009 9:57 AM To: Maven Users List Subject: RE: New Maven Respository Search Application Does

RE: POM Best Practice? Tomcat, svn wc, and dists

2009-02-12 Thread Lee Goddard
Thanks, Dominic and Gérald, > I hesitate to draw comparisons between maven and > ExtUtils::MakeMaker. :-) I hear even a bed of nails can be comfortable if you get used to it... :) > As Gérald said, you should keep your source and compiled > artifacts separate. Oh yes, sounds like a very g

Re: POM Best Practice? Tomcat, svn wc, and dists

2009-02-12 Thread Dominic Mitchell
Hi, Lee! On 12 Feb 2009, at 15:08, Lee Goddard wrote: I am a new user of Maven, but have some experience of building Perl and C distributions. I hesitate to draw comparisons between maven and ExtUtils::MakeMaker. :-) I have a simple Tomcat Servlet project checked into SVN just as it

Re: POM Best Practice? Tomcat, svn wc, and dists

2009-02-12 Thread Gérald Quintana
Mixing source files (.java) and compiled (.class) is not a good idea. Java source files should go into src/main/java folder Gerald 2009/2/12 Lee Goddard : > Is it possible to set my POM to use build/sourceDirectory to point to > My_pojrect/WEB-INF/classes? > > Would that be a bad idea? Is it freq

POM Best Practice? Tomcat, svn wc, and dists

2009-02-12 Thread Lee Goddard
I am a new user of Maven, but have some experience of building Perl and C distributions. I have a simple Tomcat Servlet project checked into SVN just as it sits in Tomcats default webapp/ dir: My_project / WEB-INF / classes / my_company/ my_libr

RE: New Maven Respository Search Application

2009-02-12 Thread Edelson, Justin
Does this only index Central? -Original Message- From: Deron Eriksson [mailto:jonde...@codestrategies.com] Sent: Thursday, February 12, 2009 6:07 AM To: users@maven.apache.org Subject: New Maven Respository Search Application I'd like to announce our new Maven repository search applica

Maven using old snapshot poms?

2009-02-12 Thread Tim
I have a Teamcity setup w/ multiple build agents.One of my projects depends on a SNAPSHOT release. This snapshot release is now on version 24-20090211.152817-12.pom version -4.pom had an error in the dependencies. I've noticed that every now and then an agent will not pick use the correct pom

Re: clean scm:update|deploy on a parent POM, modules?

2009-02-12 Thread Michael Hüttermann
or with other words: how can I update a checked out folder completely before calling a "mvn deploy" on a single module inside the whole structure? Alternatively: how can I checkout a complete folder before? Doing an update or a checkout is not a difference here. What is the recommended way? As expl

checkstyle 5 plugin for maven?

2009-02-12 Thread Mick Knutson
I am wondering if anyone can help me understand how to upgrade to Checkstyle 5 for the maven plugin as it looks like the current one uses 4.4 --- Thank You… Mick Knutson, President BASE Logic, Inc. Enterprise Architecture, Design, Mentoring & Agile Consulting p. (866) BLiNC-411: (254-6241-1) f.

local repository woes

2009-02-12 Thread wessie
Hi all, I've been struggling with abit of a strange problem for the last few days. The situation is this: I have a box with 2 maven installations - versions 2.0.4 and 2.0.9. I also have 2 local repositories - the original repository located at /app/maven/.m2/ and a new repository located at /app

New Maven Respository Search Application

2009-02-12 Thread Deron Eriksson
I'd like to announce our new Maven repository search application called Jarvana that features searching for classes, artifacts, and content. In addition to project dependency information, class search results include links to relevant source code and javadocs when available. Class and artifact sea

Uneditable parameter: filters upgrading to 2.1-SNAPSHOT

2009-02-12 Thread Madeye
I have a Maven project (pom.xml below) that builds fine from the command line using Maven 2.0.9. However, when I try to build it with Maven 2.1-SNAPSHOT from Netbeans 6.1 using I get an error. The problem seems to centre around the way I have configured filtering, which is http://maven.apache.o

clean scm:update|deploy on a parent POM, modules?

2009-02-12 Thread Michael Hüttermann
Hello, I have the following structure /root/moduleA/ /root/moduleB/ /root/moduleC/ and the following CruiseControl snippet (I skipped the "time" and "mvnhome"-attributes here):

APT newlines

2009-02-12 Thread Czollli
Hello, I'd like to insert empty lines between e.g. two tables. I thought, I can do it with \ character (of course, with leading two spaces). But I couldn't. I unfortunately see the \ characters. BUT I also tried to make viewable empty rows in a table. I also applied \ there, and it works! Whic