Re: starting with maven

2008-08-22 Thread Wayne Fay
I believe you're looking for: java -jar target/my-app-1.0-SNAPSHOT.jar Wayne On 8/21/08, Ben Jakbot [EMAIL PROTECTED] wrote: hi I try to start with maven and I'm sinking in tons of documentation. Docs are a good thing, but I somehow miss the very obvious. Right now I'm going through a the

Re: where should I create this class file?

2008-08-22 Thread Tobias Gierke
Hi, I suggest you post your java-related questions at http://www.javaranch.com , this is way off-topic. Regards, Tobias P.S. The answer is src | + command | | | + CreateCustomer.java | | | + + domain | +

Re: newby: disk space consumption

2008-08-22 Thread wessie
Hi Alex-450, Thanks for the quick response! I've tried changing the maven goals to clean package. The problem is that after each build it still archives the built ear and war files into the 'PROJECTX'/modules/ directory every single time the project is built. Is it possible to get around this

Re: starting with maven

2008-08-22 Thread Ben Aurel
Sorry to bother you with this, but I get a 'Failed to load error' $ java -jar target/my-app-1.0-SNAPSHOT.jar Failed to load Main-Class manifest attribute from target/my-app-1.0-SNAPSHOT.jar On Thu, Aug 21, 2008 at 11:11 PM, Wayne Fay [EMAIL PROTECTED] wrote: I believe you're looking

Re: starting with maven

2008-08-22 Thread Ben Aurel
Alex, thank you. This is exactly what I was looking for. I got it running with $ mvn exec:java -Dexec.mainClass=com.mycompany.app.App On Thu, Aug 21, 2008 at 8:22 PM, Alex [EMAIL PROTECTED] wrote: See http://mojo.codehaus.org/exec-maven-plugin/java-mojo.html Ben Jakbot wrote: hi I try to

Making the case for Maven to managment

2008-08-22 Thread Josh Long
Hi everyone, I'm trying to make a case for Maven and I'm going to need to provide a better reason than it's better than a kick in the face! to managment. I'm at a bank, so everything is subject to heavy scrutiny. Essentially, our project hardly compiles and is so untestable that upon check out no

Problem of resolving eclipse swt linux library

2008-08-22 Thread Carfield Yim
I try to add eclipse swt linux library to my project. Thus, I add following library to the pom.xml dependency groupIdorg.eclipse.swt/groupId artifactIdorg.eclipse.swt.gtk.linux.x86_64/artifactId version3.3.0-v3346/version scopeprovided/scope /dependency dependency

A few issues for which it's not worth inundating the list multiple times. Help appreciated

2008-08-22 Thread Josh Long
Hi all, I am working to convert a project and need to provide: - ClearCase Issue Management integration / reporting - Eclipse project descriptor generation for Workshop (this is the latest version of Oracle Workshop, but it's still Eclipse 3.1 under the hood (I think)! - It's not likely I'll

Problem when using transitive dependencies

2008-08-22 Thread Christian_S
HI all I have problems with usage of transitive dependencies. As i know Maven should manage the buildorder on its own. My Situation: Using Maven2.0.9 L depends on C C Depends on E E depends on G L and C are situated below folder A E and G are situated below folder B If i call a maven command

Problem when using transitive dependencies

2008-08-22 Thread Christian_S
HI all I have problems with usage of transitive dependencies. As i know Maven should manage the buildorder on its own. My Situation: Using Maven2.0.9 L depends on C C Depends on E E depends on G L and C are situated below folder A E and G are situated below folder B If i call a maven command

creating xdocs from javadocs comments

2008-08-22 Thread Stefano Bagnara
Hi all, at Apache JAMES we have a product named Mailets. It includes a lot of classes implementing the same interface that the user can configure in his deployment. We currently document mailets using javadocs, but I would like to have a more fancy web page listing all of them and providing

Re: creating xdocs from javadocs comments

2008-08-22 Thread Stefano Bagnara
Stefano Bagnara ha scritto: Hi all, at Apache JAMES we have a product named Mailets. It includes a lot of classes implementing the same interface that the user can configure in his deployment. We currently document mailets using javadocs, but I would like to have a more fancy web page

Re: Making the case for Maven to managment

2008-08-22 Thread Paulo Pinto
Hi, having survived an Ant-Maven migration process, I would advise you to really be sure that Maven supports out of the box all the things you are already doing with Ant. Otherwise you might get some nasty surprises, that would fragile your position. Maven is a nice tool, but if it does not

Re: Making the case for Maven to managment

2008-08-22 Thread Piotr Oktaba
Hi, There is maven-ant-plugin which allows you to do everything which you can do in ant. However, you shouldn't use it too much because it is inconsistent with maven ideology :). Cheers, Piotr Oktaba On Fri, 2008-08-22 at 14:25 +0200, Paulo Pinto wrote: Hi, having survived an Ant-Maven

c++ maven project

2008-08-22 Thread Laura Lozano
Hello, I would like to know if is possible to use maven for create and build a C++ project. In this case, is there any available tutorial or documentation explaining how to proceed? Thank you.

RE: c++ maven project

2008-08-22 Thread Martin Gainty
why not convert to java? Martin __ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official business of Sender. This transmission is of a confidential nature and Sender does not endorse distribution

RE: c++ maven project

2008-08-22 Thread Andreas Heinecke
Hi Laura, I haven't done a Maven build within a C++ project. But I know there is plugin which allows the integration of gcc. Take a look here: http://mojo.codehaus.org/maven-native/native-maven-plugin/index.html Maybe this helps. -Andreas. -Original Message- From: Laura Lozano

RE: c++ maven project

2008-08-22 Thread Dhruva Reddy
My first response to the original question is...why? Which of maven's functionality would you like to take advantage of on your project? I've never tried this, nor have I even thought about it. Maven is intended for Java projects. I would think its theoretically possible to do this, but that

Re: c++ maven project

2008-08-22 Thread Rodrigo Ruiz
Hi Laura, Take a look at the FREEHEP NAR plugin: http://java.freehep.org/freehep-nar-plugin/philosophy.html It may be what you are looking for :-) Best regards, Rodrigo Laura Lozano wrote: Hello, I would like to know if is possible to use maven for create and build a C++ project. In this

Re: Problem of resolving eclipse swt linux library

2008-08-22 Thread lukewpatterson
These are in the repo groupIdorg.eclipse.swt.gtk.linux/groupId artifactIdx86_64/artifactId [1] groupIdorg.eclipse.swt.gtk.linux/groupId artifactIdx86/artifactId [2] The (groupId/artifactId)s are different than what you had listed. [1] -

Re: Making the case for Maven to managment

2008-08-22 Thread Geoffrey Wiseman
On Fri, Aug 22, 2008 at 4:07 AM, Josh Long [EMAIL PROTECTED] wrote: How do I make this case in the face of so hostile a mentality? Have you ever had to make the case? Any insight on how to move forward would be appreciated. Well: you believe it'll solve some problems for you. Look at those

RE: Maven and Eclipse Project

2008-08-22 Thread Lam Hayward
Thanks for the suggestion. It does not work. No error reported. The build path still does not show any project dependency. -Original Message- From: Wayne Fay [mailto:[EMAIL PROTECTED] Sent: August 21, 2008 3:40 PM To: Maven Users List Subject: Re: Maven and Eclipse Project You need to

RE: Maven and Eclipse Project

2008-08-22 Thread Lam Hayward
I installed the eclipse plugin from http://mvnlink.googlecode.com/svn/mvnlink-update-site/ and restarted eclipse. According to the project page, some top level menu should have MvnLink, there is no none. Is there some configuration I am missing? -Original Message- From: Andrew Close

Re: Making the case for Maven to managment

2008-08-22 Thread Mark H. Wood
Nah, we can drop ideology in the bitbucket. It's a matter of using the tool that best does the job. Maven is really good at representing the structure of large, complex projects simply, and pretty good at organizing the large-scale flow of operations involved in realizing them. Ant is rather

jdk version range is not checking with dashes?

2008-08-22 Thread Zemian Deng
Hi, If I have the following config, which I think it should restrict JDK1.5 or higher: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-enforcer-plugin/artifactId version1.0-alpha-2/version

Re: [PLEASE TEST] Maven 2.0.10-RC9

2008-08-22 Thread John Casey
Just to follow up on the list, this was a small bug in the way maven was being built. It's fixed, but in RC9 this will affect plugins that use jackrabbit, commons-codec, or slf4j. The fix will be included in the next RC. -john nicolas de loof wrote: http://jira.codehaus.org/browse/MNG-3722

Re: Maven and Eclipse Project

2008-08-22 Thread Eugene Kuleshov
Michael McCallum-3 wrote: maybe you want to look into this: http://code.google.com/p/mvnlink/ it sounds like it does what you're looking for. use the m2eclipse.codehaus.org plugin and then run mvn eclipse:m2eclipse If you are using m2eclipse, I wouldn't recommend using

RE: Maven and Eclipse Project

2008-08-22 Thread Eugene Kuleshov
Out of curiosity, why don't you give a try to m2eclipse? http://m2eclipse.codehaus.org/ among lot of other things, it would automatically handle project import for you and will configure imported projects for other Eclipse tools. regards, Eugene Lam Hayward wrote: Thanks for the

Re: starting with maven

2008-08-22 Thread Wim Deblauwe
An alternative is to turn your jar file into an executable jar file where you put your main class in the manifest file. project build plugins plugin artifactIdmaven-jar-plugin/artifactId configuration archive

Re: Problem of resolving eclipse swt linux library

2008-08-22 Thread Andrew Robinson
BTW, if you plan on using JFace, do not use the libraries from maven, use your own from eclipse. The maven pom files for the uploaded SWT and JFace jars are incompatible. I found it much easier to install my own jars into my local repo than trying to fight the versions that are in the central

Having trouble with Maven release plugin using SubVersion

2008-08-22 Thread Ken Tanaka
Hi, I had an error using mvn release:prepare after I had created a src/main/conf directory under SubVersion, then renamed it src/main/config to match the Maven 2 convention. I'm not sure if I'm not following a Maven or SubVersion convention, or if this is a bug. The workaround, noted in the

RE: jdk version range is not checking with dashes?

2008-08-22 Thread Beyer,Nathan
If you want Java 5 minimum, then try this value [1.5,). If you want Java 1.4.2 minimum, then try this value [1.4.2,). If you want Java 1.4.2 minimum, but less than Java 5, then try this value [1.4.2,1.5). -Original Message- From: Zemian Deng [mailto:[EMAIL PROTECTED] Sent: Friday,

Re: newby: disk space consumption

2008-08-22 Thread Wayne Fay
There is no particular reason why these files should land in this directory using standard Maven configuration, so you must have something custom in your build that is causing it to occur. Try scanning the pom.xml files for modules. Obviously you can ignore the projectmodules node.

Problems with SCM:UPDATE on linux with Subversion.

2008-08-22 Thread Dave Rathnow
I'm having a problem with SCM plugin on Linux. I've checked out a project from Subversion using my personal account and then tried to do an scm:update. Rather than using the account I am logged in as, the plugin is using root and so the command failes. Below is a snipped from the log:

installing snapshots to an internal repository

2008-08-22 Thread EJ Ciramella
So I've just noticed that while we're installing snapshots, if you don't explicitly tell maven to NOT use a unique snapshot number AND you have say 4 generated artifacts you're installing, the metadata reflects the last one installed. For example, if you have a project that generates: 1 -

manipulating an existing archive during assembly

2008-08-22 Thread Beyer,Nathan
I'm using the assembly plugin to generate a few archives for distribution. I'd like to be able to download an existing archive (zip, tar.gz) and extract some of its contents and then include it in an assembly. Does anyone have suggestions on how to go about this? For example, download a tomcat

Error message

2008-08-22 Thread Rodrigo Villagran
Dear Members After reviewing manuals and consult on various websites Even I can not establishes what is the origin of the following error message in Maven 2.0.8. [EMAIL PROTECTED] # mvn [WARNING] Failed to initialize environment variable resolver. Skipping environment substitution in settings.

Re: creating xdocs from javadocs comments

2008-08-22 Thread Stefano Bagnara
Stefano Bagnara ha scritto: Stefano Bagnara ha scritto: Hi all, at Apache JAMES we have a product named Mailets. It includes a lot of classes implementing the same interface that the user can configure in his deployment. We currently document mailets using javadocs, but I would like to have

Re: creating xdocs from javadocs comments

2008-08-22 Thread Wendy Smoak
On Fri, Aug 22, 2008 at 1:14 PM, Stefano Bagnara [EMAIL PROTECTED] wrote: After a few searches I've been able to do what I wanted to do. I created a simple reporting maven plugin that do exactly what I need. Thanks so much for replying back with the info you found and your results. :) --

Reworking Build Reactor Order

2008-08-22 Thread Arthur Gawronski
Currently, I have Core Project 1 +SubProject 1-1 +SubProject 1-2 +SubProject 1-3 +CoreProject 1pom - pom.xml Core Project 2 +SubProject 2-1 +SubProject 2-2 +SubProject 2-3 +CoreProject2pom - pom.xml I have no flexibility as to the locations of the folders. The pom in

Re: Having trouble with Maven release plugin using SubVersion

2008-08-22 Thread Dennis Lundberg
Did you use the 'svn move ...' command to rename the directory or did you do it directly on the file system for your working copy? If you did the second your working copy will not have correct subversion metadata. Ken Tanaka wrote: Hi, I had an error using mvn release:prepare after I had

Re: A few issues for which it's not worth inundating the list multiple times. Help appreciated

2008-08-22 Thread Dennis Lundberg
Josh Long wrote: Hi all, I am working to convert a project and need to provide: - ClearCase Issue Management integration / reporting Nothing more than showing a link to the project in ClearCase. - Eclipse project descriptor generation for Workshop (this is the latest version of Oracle

Using optional packages with EARs

2008-08-22 Thread Vogel,Chris
I'm relatively new to Maven and am trying to build an EAR file, while using the optional packages capability of our application server. So, in my project, I have an EJB module that has a dependency on commons-lang, with no scope definition (so, compile). In the EAR module, I specify the EJB

install/deploy plugin renaming assemblies?

2008-08-22 Thread Beyer,Nathan
I have an assembly that I'm creating with a custom final name. When I run 'mvn clean package' the target folder contains the JAR with the correct name and the Zip assembly with a name the custom name. When I run 'mvn clean install' or 'mvn clean deploy', the Zip file is installed/deployed using

Re: Having trouble with Maven release plugin using SubVersion

2008-08-22 Thread Ken Tanaka
I did use 'svn move src/main/conf src/main/config' for the rename. (Although I have been caught by using the regular mv before.) -Ken Dennis Lundberg wrote: Did you use the 'svn move ...' command to rename the directory or did you do it directly on the file system for your working copy? If

[PLEASE TEST] Maven 2.0.10-RC10

2008-08-22 Thread John Casey
Hi again everyone, I wanted to announce the availability of the latest release candidate, 2.0.10-RC10. You can grab it here: http://people.apache.org/~jdcasey/stage/apache-maven/2.0.10-RC10/org/apache/maven/apache-maven/2.0.10-RC10 I've closed the few issues that came out of RC9, and

Re: [PLEASE TEST] Maven 2.0.10-RC10

2008-08-22 Thread Daniel Kulp
John, Performance is looking very good.My testcase that runs in 32secs on 2.0.9 runs in 26sec with this RC. Very nice job. However, there seems to be a problem with it and the eclipse plugin in a reactor build. With the CXF build, run: mvn test-compile eclipse:eclipse -Pnochecks -o

Re: starting with maven

2008-08-22 Thread Wayne Fay
I assumed the mainClass had already been set in the manifest file. Thanks for providing this config, Wim. Ben, if you apply this configuration in your pom.xml, the -jar option I provided will work. Then you can run your jar on any system that has a JVM, and you will not need Maven installed

RE: Reworking Build Reactor Order

2008-08-22 Thread Brian E. Fox
You can influence it by moving it to the bottom of the modules list in the reactor. If that doesn't do it, then insert a dependency on the others so that it builds last. -Original Message- From: Arthur Gawronski [mailto:[EMAIL PROTECTED] Sent: Friday, August 22, 2008 2:50 PM To: