Re: SNAPSHOTS of code app packages

2008-08-18 Thread Michael McGrady
Thanks. I will check this out tomorrow. Much appreciated. Mike On Aug 17, 2008, at 11:05 AM, Dan Tran wrote: Use this as an example http://svn.apache.org/repos/asf/maven/surefire/trunk -D On Sun, Aug 17, 2008 at 9:55 AM, Michael McGrady [EMAIL PROTECTED] wrote: Thanks for your response,

Re: Building same source with 1.4 and 1.5 jdks

2008-08-18 Thread tobi
Hi Kevin, I am fairly new to using maven. Our project is looking at moving to maven to replace our current ant builds. One thing that we are doing in our build is building the same source with the 1.4 and 1.5 jdks. Basically, we build the modules source with the 1.5 jdk and package it in a

How to get an artifact and its dependencies into a designated location from repository?

2008-08-18 Thread Guang Sheng
Hi, Do anyone know how to get an artifact and its dependencies from maven repository just using the maven command by specifying groupId, artifactId, version (optional)? Thanks! Best Regards, Guang Sheng

Re: Changing default compiler version for maven-compiler-plugin (outside pom.xml)

2008-08-18 Thread Anders Hammar
For an example, please have a look at the parent pom for all Apache projects: http://repo1.maven.org/maven2/org/apache/apache/4/apache-4.pom This example does not specify anything regarding plugin management, but you could do that for your scenario. Also, notice that it is located separated from

Re: can we use classifier here?

2008-08-18 Thread Anders Hammar
Hi, Is there a specific need to put the artifacts in the repository? If not, the plugin could produce the three car files and deploy (copy) them to the Geronimo server. The car files could be named pretty much what ever you like as groupId, artifactId and classifiers only matters in a

Re: Looking for Eclipse Artifact Repo

2008-08-18 Thread Danilo Tuler
Hi, but is seems not up to date. Remember you can always use http://maven.apache.org/plugins/maven-eclipse-plugin/make-artifacts-mojo.html to create a local repo. Danilo - To unsubscribe, e-mail: [EMAIL PROTECTED] For

simple online order form

2008-08-18 Thread sam wun
Hi, I want to build a simple  online order with Struts, eclipse, and tomcat (mysql database). Is there any example/tutorial I can follow to create this simple project? I found many tutorials are based on MyEclipse, but I am using Elcipse 3.4. Thank  you in advance.

Re: can we use classifier here?

2008-08-18 Thread Lin Sun
Hi, My understanding is yes the maven car plugin is just producing the artifacts. We have to put the artifacts in the repository, as the goal is to create a plugin repository that contains many plugins and copy them to a remote repository so that other users can install these plugins from the

Maven online mode

2008-08-18 Thread pfiction
Hi, I am using maven in system in which there is no connection to outside world. So maven can not download any plugins. So the only way to run maven is offline mode. I want to generate changelog report for clearcase snapshot view. I was trying to force changelog report to run in offline mode

Re: can we use classifier here?

2008-08-18 Thread Anders Hammar
Is it attached artifacts we're talking about? http://blogs.sonatype.com/brian/2008/05/19/1211249747887.html /Anders Lin Sun-2 wrote: Hi, My understanding is yes the maven car plugin is just producing the artifacts. We have to put the artifacts in the repository, as the goal is to

SCM report generation failed due to scm provider

2008-08-18 Thread De Smet Ringo
Hello, I have a number of projects correctly building with Maven 2.0.9. I now came to the point that I wanted to tackle the site generation. Everything works, except the SCM report because it seems to insist on using the Java based CVS library. I already had to revert to scm_native for the

Re: Building same source with 1.4 and 1.5 jdks

2008-08-18 Thread Kevin Kingsbury
Thanks for the reply Tobias. I will look at build profiles more and see if that will help. One additional question though. Is there any way to run both profiles using a single maven command. What I was hoping to accomplish is to run the 1.5 compile and then after that the 1.4 compile so both

Re: simple online order form

2008-08-18 Thread Rusty Wright
You could try looking at AppFuse: http://www.ibm.com/developerworks/java/library/j-appfuse/ sam wun wrote: Hi, I want to build a simple online order with Struts, eclipse, and tomcat (mysql database). Is there any example/tutorial I can follow to create this simple project? I found

antrun and phase

2008-08-18 Thread Lam Hayward
Hi there, I am using maven 2 and I am running into an issue with phase. I want a ant goal to scp the war file to a remote server. However, I want the goal to be independent of build cycle. Following is the code. If I uncomment the phase element, mvn install will execute the goal as expected. If I

Launching a Java application from Maven (vs. Ant)

2008-08-18 Thread Trevor Harmon
Hi all, I'm an experienced Ant user but new to Maven, and I'm a little shocked at how verbose Maven is, even compared to Ant, which is notorious for its verbosity. For example, if I want to launch a Java application in Ant, I do this: target name=run java classname=foo.Bar

maven needs jdk (versus jre)

2008-08-18 Thread Rusty Wright
The maven plugin for eclipse doesn't work if eclipse is using the jre. I just spent several hours spinning my wheels trying to get that to work; my Windows shortcut for eclipse had the -vm argument specifying the path to the jdk executable, which got rid of the complaint from maven when I

[PLEASE TEST] Maven 2.0.10-RC9

2008-08-18 Thread John Casey
Hi everyone, As you're probably aware, we've been working for some time to stabilize Maven for the 2.0.10 release. After quite a bit of testing in the development community - and 8 release candidates - it looks like we finally have a candidate that is free of regressions and stable. You can

Re: Launching a Java application from Maven (vs. Ant)

2008-08-18 Thread John Casey
Maven does make the development process simpler in many ways, but it's a mistake to think that every possible activity in that process will be simpler. Obviously, the power Maven brings in terms of dependency handling, standardized lifecycles and lifecycle vocabulary, etc. will be completely

Re: Launching a Java application from Maven (vs. Ant)

2008-08-18 Thread John Casey
BTW, unless I'm misataken, the following invocation should also work: mvn exec:java -j Trevor Harmon wrote: Hi all, I'm an experienced Ant user but new to Maven, and I'm a little shocked at how verbose Maven is, even compared to Ant, which is notorious for its verbosity. For example, if I

Re: [PLEASE TEST] Maven 2.0.10-RC9

2008-08-18 Thread Aaron Metzger
John Casey wrote: Hi everyone, As you're probably aware, we've been working for some time to stabilize Maven for the 2.0.10 release. After quite a bit of testing in the development community - and 8 release candidates - it looks like we finally have a candidate that is free of regressions

Re: maven needs jdk (versus jre)

2008-08-18 Thread Rusty Wright
After fixing the eclipse jvm preference I decided to see what happens when I remove the -vm stuff from my windows shortcut for starting eclipse, and remove it from the eclipse.ini file. Bad move, then maven again complains when I start eclipse. So I got pissed and decided to reinstall java.

Re: [PLEASE TEST] Maven 2.0.10-RC9

2008-08-18 Thread John Casey
DOH! Wrong URL. Here's the right one: http://people.apache.org/~jdcasey/stage/apache-maven/2.0.10-RC9/org/apache/maven/apache-maven/2.0.10-RC9/ That's what I get for trying to type it in cold instead of looking it up in FF and copying... :-( Sorry for the confusion, -john Aaron Metzger

Re: maven needs jdk (versus jre)

2008-08-18 Thread Rusty Wright
Grrr, no cigar; it needs the PATH variable to include java. I much prefer the way java is installed on unix systems with a symbolic link pointing to the default installation, and you can OPTIONALLY use an environment variable to specify a different version. I want to blame Sun (it's too

Re: Launching a Java application from Maven (vs. Ant)

2008-08-18 Thread Trevor Harmon
On Aug 18, 2008, at 2:51 PM, John Casey wrote: Maven does make the development process simpler in many ways, but it's a mistake to think that every possible activity in that process will be simpler. Obviously, the power Maven brings in terms of dependency handling, standardized lifecycles

achivia - what is locked user mean?

2008-08-18 Thread Zemian Deng
What is the meaning of locked user in Archivia? Also, I have unselected Force User to Change Password but it still prompt to change change password every few month. Is there way to disable this? Thanks. -- Sweet - a Scala web framework: http://code.google.com/p/sweetscala

Re: achivia - what is locked user mean?

2008-08-18 Thread Wendy Smoak
On Mon, Aug 18, 2008 at 12:46 PM, Zemian Deng [EMAIL PROTECTED] wrote: What is the meaning of locked user in Archivia? Also, I have unselected Force User to Change Password but it still prompt to change change password every few month. Is there way to disable this? Please ask on the Archiva

need to stop maven from looking for updates

2008-08-18 Thread goutham
Hello Good Evening, I have a small but seriously irritating problem here :) Whenever i run a maven command such as mvn install or mvn site, it begins by looking up the remote repositories for any updates and this is taking a hell lot of time. I now have almost 3 to 4 version of each jar file

Re: need to stop maven from looking for updates

2008-08-18 Thread Tommy Knowlton
try using the -o (offline mode) option for the mvn command. Hope that helps. -- TK On Aug 18, 2008, at 2:52 PM, goutham wrote: Hello Good Evening, I have a small but seriously irritating problem here :) Whenever i run a maven command such as mvn install or mvn site, it begins by looking

Re: Building same source with 1.4 and 1.5 jdks

2008-08-18 Thread Jörg Schaible
Hi Kevin, Kevin Kingsbury wrote: Thanks for the reply Tobias. I will look at build profiles more and see if that will help. One additional question though. Is there any way to run both profiles using a single maven command. What I was hoping to accomplish is to run the 1.5 compile and

Re: need to stop maven from looking for updates

2008-08-18 Thread goutham
Thanks Tommy, Actually i didn't state the complete problem before( sorry my fault).. if i stop maven from updating in between ( CTRL + C and terminate all batch jobs) and now if i try the same commands with the offline option , it says that it cannot find some artifacts ( probably the ones i

Re: need to stop maven from looking for updates

2008-08-18 Thread Tobias Gierke
Hi, Thanks Tommy, Actually i didn't state the complete problem before( sorry my fault).. if i stop maven from updating in between ( CTRL + C and terminate all batch jobs) and now if i try the same commands with the offline option , it says that it cannot find some artifacts ( probably the ones

Re: need to stop maven from looking for updates

2008-08-18 Thread goutham
Hi Tobias, Thanks for the tip. I have a different set of repositories for each of my projects so i have decided to use the below configuration for each of the repositories. snapshots enabledfalse/enabled

Re: antrun and phase

2008-08-18 Thread 胡志强
you could place the configuration node out of executions like this: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-antrun-plugin/artifactId configuration tasks scp.. / /tasks /configuration dependencies

newby problem with using artifacts in repository

2008-08-18 Thread kkmca
i want to retrieve a few of the latest build artifacts from the internal repository and package them in a zip for use locally - two of the artificats are wars one is a jar - I am not sure how to write a pom that would do this - could you point me to an example? -- View this message in context:

RE: newby problem with using artifacts in repository

2008-08-18 Thread Brian E. Fox
Look at the maven-assembly-plugin docs. -Original Message- From: kkmca [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2008 5:51 PM To: users@maven.apache.org Subject: newby problem with using artifacts in repository i want to retrieve a few of the latest build artifacts from the

Re: Maven online mode

2008-08-18 Thread Brett Porter
2008/8/19 pfiction [EMAIL PROTECTED]: Is there a way to force maven to not download maven-default-sking ? That sounds like a bug. If you have a site.xml you can declare the skin and it's version explicitly that should work. Or maybe is there a way to force maven to not connect to outside

Re: SCM report generation failed due to scm provider

2008-08-18 Thread Brett Porter
The project info reports plugin is using the java version explicitly (Since it doesn't actually execute anything it shouldn't have mattered). Seems like this is a bug in the project info reports plugin. - Brett 2008/8/19 De Smet Ringo [EMAIL PROTECTED]: Hello, I have a number of projects

Re: Launching a Java application from Maven (vs. Ant)

2008-08-18 Thread Brett Porter
2008/8/19 Trevor Harmon [EMAIL PROTECTED]: But isn't this a pretty common use case? I mean, launching a Java application happens pretty often in most Java development life cycles. You can only go so far with unit tests; eventually you need to run the thing and see how it looks. Not generally

Re: creating an avalon phoenix sar archive

2008-08-18 Thread Brett Porter
Check out the attach goal here: http://mojo.codehaus.org/build-helper-maven-plugin/usage.html Otherwise, you'll need to make a feature request for the assembly plugin to make the type configurable. Cheers, Brett 2008/8/17 Stefano Bagnara [EMAIL PROTECTED]: Hi all, One of my ant based project

Re: Get Maven internal build statistics

2008-08-18 Thread Brett Porter
Nothing like that right now, but it'd be an interesting feature request. Cheers, Brett 2008/8/15 Julien Graglia [EMAIL PROTECTED]: Hi, I am using maven in a medium projet with many modules... mvn install at the root is quite long mvn deploy too...and mvn release:prepare/perform takes 25

Re: Maven Native and MSVS .NET 2003

2008-08-18 Thread Andrew Hughes
I got the ant wrapped in a maven plugin working.. but there was little point when exec:exec was available. I've since used this to sucessfully invoke the csvs 2003 compiler (as below). However, now that I am building the exe I need to set the packagingexe/packaging so that it can complete all

including jars in a jar

2008-08-18 Thread sairndain
(Please pardon for my weakness on Maven2 terminology) What I want to do is create a java application jar that also includes other jar files that are required in its application's classpath When I use the following plugin combination in my project pom... i.e., - - - plugin

Re: Maven Native and MSVS .NET 2003

2008-08-18 Thread Dan Tran
set your packing at pom and use build-helper-maven-plugin to attached your exe build artifact to maven project. Here you can define any extension you like, in this case exe -D On Mon, Aug 18, 2008 at 7:32 PM, Andrew Hughes [EMAIL PROTECTED] wrote: I got the ant wrapped in a maven plugin

RE: Building a Jar that includes library jars

2008-08-18 Thread sairndain
I'm using maven2 (v2.0.9) Are you referring to the build-helper-maven-plugin? Where do I place the build-helper-maven-plugin within the pom's build tag? Does it come before, or after, the maven-jar-plugin? Or does it replace the maven-jar-plugin? Is there any way to simply include the

Re: including jars in a jar

2008-08-18 Thread Wes Wannemacher
Have you looked at jarjar ? http://code.google.com/p/jarjar/ Most of the docs show ANT usage, but I think you can use it in maven... http://www.mvnrepository.com/artifact/com.tonicsystems/jarjar Of course, I'd love to give you an example, but can't since I haven't used it. Perhaps someone

Error in maven dependencies

2008-08-18 Thread leopupo
I´m trying to add hibernate dependencies in my pom.xml, but it returns the following message: Error message: Missing: -- 1) javax.transaction:jta:jar:1.0.1B So, i downloaded it and included it in my .m2\repository path, but it still returns the same error message and i can´t build my

Re: Error in maven dependencies

2008-08-18 Thread Wayne Fay
What is the exact error message? Are you missing the jar file, or the pom? How did you install it into the repo? (Copy and paste the command line you used.) Wayne On 8/18/08, leopupo [EMAIL PROTECTED] wrote: I´m trying to add hibernate dependencies in my pom.xml, but it returns the following

Re: including jars in a jar

2008-08-18 Thread Wayne Fay
On 8/18/08, sairndain [EMAIL PROTECTED] wrote: What I want to do is create a java application jar that also includes other jar files that are required in its application's classpath You realize that jars inside a jar is not supported by the default Sun JVM classloader, right? This is a

Re: commons-digester version conflicts

2008-08-18 Thread Alfred Chan
Hi Alexandre, I encountered the same problem. But, sorry that I don't understand what is the meaning of The version resolve problems. Would you explain more? Thanks, Alfred Alexandre Nshimiyimana wrote: The version resolve problems Hello, I get this error [ERROR] BUILD ERROR