RE: Multiple project dependencies

2008-11-10 Thread John.Baker
Hello, Thanks for your feedback. I really don't think I'm trying to make a simple problem into a difficult one, so perhaps I can outline my thoughts again? Consider two separate projects: common and plugin. In Eclipse, you'd create two projects and add common to the build path of plugin. If

RE: Multiple project dependencies

2008-11-10 Thread John.Baker
Hi, Perhaps I am simply thinking about one developer making life easier for themselves! I hadn't considered the multiple developer aspect, although it may still be handy to have such functionality. However someone suggested something about a parent pom and multiple modules, which seems a

A question about System scope in dependency.

2008-11-10 Thread youhaodeyi
My maven project has a dependency on local disk so I use system scope dependency in order to use absolute directory to refer to this dependency. but I also want this dependency to be only used in test phase. How can I combine two dependencies together? -- View this message in context:

Re: Activate a profile when project.version is not SNAPSHOT

2008-11-10 Thread Stephen Connolly
2008/11/10 Mark Hobson [EMAIL PROTECTED] 2008/11/8 Dan Tran [EMAIL PROTECTED]: http://jira.codehaus.org/browse/MNG-3826 Actually, could we extend the requirements for this so that the profile activator took a regex expression that is matched against the project's version? This would allow

Re: Experimental Grails archetype

2008-11-10 Thread Peter Ledbrook
Hi Pablo, PabloS wrote: I had a problem when I tried to package the application, it gave me this error: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode Seems to be caused because there's no webapp/WEB-INF/web.xml file.

Different checkstyle config for main and test?

2008-11-10 Thread Wim Deblauwe
Hi, is it possible to define a different checkstyle configuration in maven for the main and the tests? I want to allow underscores in method names, but only in my test source directory. regards, Wim

Re: Re: problem installing the oracle library ojdbc14.jar

2008-11-10 Thread Martin Höller
On 10 Nov 2008, M Gomez wrote: I`m trying to install DSpace 1.5.1 on Linux (Red Hat 5), with a database Oracle at a university. I 'm on step six of the installation documentation, with mvn -Ddb.name=oracle package, but it fails . Which installation instructions? Please provide a link if

Help with the package command

2008-11-10 Thread Winona Whitener
Maven newbie here, I have put in the upgrade to the pom.xml to get it to point to 1.5, but I'm still getting numerous errors when I try to package up my schema for use by Apache DS. Here is an example of the errors that I'm getting:

Re: Multiple project dependencies

2008-11-10 Thread Rafael Trestini
John, In this case, consider Jorg's solution (Builder POM). In my point of view, this solution reflects your reality better then hierachical approach, which means that projects A and B are part-of parent project, and ocasionally, A depends B (even implementation of Builder POM uses multi-module

Re: Help with the package command

2008-11-10 Thread Simone Gianni
Hi Winona, seems like it is not a package problem, but a java compiler problem. Maven needs to compile your source code before actually packaging it. Also, the code it is compiling and throws those errors is a generated source of some kind, which tool is generating it? Simone Winona Whitener

RE: Help with the package command

2008-11-10 Thread Winona Whitener
Believe it or not, this is from the example stuff generated by the Apache DS tutorial--with the archetype and so on and the car.schema. Thanks, Winona -Original Message- From: Simone Gianni [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2008 10:13 AM To: Maven Users List Subject:

Re: Different checkstyle config for main and test?

2008-11-10 Thread bruno . borges
I think you can use profiles for that. bruno On Nov 10, 2008 11:43am, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, is it possible to define a different checkstyle configuration in maven for the main and the tests? I want to allow underscores in method names, but only in my test source

Re: problem installing the oracle library ojdbc14.jar

2008-11-10 Thread M Gomez
Hello ! I`m trying to install DSpace 1.5.1 on Linux (Red Hat 5), with a database Oracle at a university. I 'm on step six of the installation documentation, with mvn -Ddb.name=oracle package, but it fails . I enclosed the files of the output , also with -e option (files step6 and step6_e).

Re: Experimental Grails archetype

2008-11-10 Thread Pablo Saavedra
Hi Peter, I had a problem when I tried to package the application, it gave me this error: Error assembling WAR: webxml attribute is required (or pre-existing WEB-INF/web.xml if executing in update mode Seems to be caused because there's no webapp/WEB-INF/web.xml file. BTW, I haven't used

Re: Activate a profile when project.version is not SNAPSHOT

2008-11-10 Thread Mark Hobson
2008/11/8 Dan Tran [EMAIL PROTECTED]: http://jira.codehaus.org/browse/MNG-3826 Actually, could we extend the requirements for this so that the profile activator took a regex expression that is matched against the project's version? This would allow profiles to be activated for different stages

Assembly deployment?

2008-11-10 Thread David C. Hicks
Hi folks, I have an assembly (a zip file containing my artifact and a few other files) that I generate on the packaging phase as part of a 'release' profile. I'd like to be able to deploy that zip file to my company repository. I'm sure this has to be easier than I'm making it, but I can't

Re: Maven methodology

2008-11-10 Thread Mick Knutson
Do a search for Better Builds with Maven. It is a great PDF and should give you the info you seek. On Mon, Nov 10, 2008 at 7:48 AM, javax [EMAIL PROTECTED] wrote: Hi! Is there any document about the general maven methodology? I mean 1. Building a hierarchy of maven projects 2. Versions

Re: Re: problem installing the oracle library ojdbc14.jar

2008-11-10 Thread Baptiste MATHUS
Well, I have difficulties to understand what your problem is. From your subject, I seem to understand you can't install oracle jdbc driver jar, but what you describe doesn't match imo. What is your problem? Maybe you also try to attach files? If so, then it might have been deleted by the ML

Re: Assembly deployment?

2008-11-10 Thread Wendy Smoak
On Mon, Nov 10, 2008 at 9:16 AM, David C. Hicks [EMAIL PROTECTED] wrote: I have an assembly (a zip file containing my artifact and a few other files) that I generate on the packaging phase as part of a 'release' profile. I'd like to be able to deploy that zip file to my company repository.

Re: Different checkstyle config for main and test?

2008-11-10 Thread Wim Deblauwe
I have used profiles before, I don't think you can use that. How would you do this? 2008/11/10 [EMAIL PROTECTED] I think you can use profiles for that. bruno On Nov 10, 2008 11:43am, Wim Deblauwe [EMAIL PROTECTED] wrote: Hi, is it possible to define a different checkstyle

Re: Assembly deployment?

2008-11-10 Thread David C. Hicks
Cool! Thanks, Wendy. Wendy Smoak wrote: On Mon, Nov 10, 2008 at 9:16 AM, David C. Hicks [EMAIL PROTECTED] wrote: I have an assembly (a zip file containing my artifact and a few other files) that I generate on the packaging phase as part of a 'release' profile. I'd like to be able to

Re: Different checkstyle config for main and test?

2008-11-10 Thread Stephen Connolly
Two executions, one for the test sources and the other for the main sources.. each execution can override the configuration 2008/11/10 Wim Deblauwe [EMAIL PROTECTED] I have used profiles before, I don't think you can use that. How would you do this? 2008/11/10 [EMAIL PROTECTED] I think

Re: Experimental Grails archetype

2008-11-10 Thread Pablo Saavedra
Thanks. Where shall I subscribe to report bugs in the maven-grails-plugin? I can't generate a domain class :) Regards. 2008/11/10 Peter Ledbrook [EMAIL PROTECTED] Hi Pablo, PabloS wrote: I had a problem when I tried to package the application, it gave me this error: Error

Re: Re: Different checkstyle config for main and test?

2008-11-10 Thread bruno . borges
One can define a specific profile to be activated when one wants to test. For example: $ mvn -Denv-test test On Nov 10, 2008 2:29pm, Wim Deblauwe [EMAIL PROTECTED] wrote: I have used profiles before, I don't think you can use that. How would you do this? 2008/11/10 I think you can

SSH Slaves plugin can't connect

2008-11-10 Thread Chris Lieb
I am trying to set up a Linux slave using the SSH Slaves plugin connecting from a Linux host. I have entered the connection information for the slave into Hudson and made sure that you can remotely log in to the slave using the slave user. However, it always shows up as offline and when I look

Re: Help with the package command

2008-11-10 Thread Simone Gianni
Hi Winona, I can believe it, it simply can happen. I would suggest you to repost the problem to the Apache DS mailing lists, maybe they know what those sources are and where the problem lies, cause this seems to be much more an Apache DS related problem than an Apache Maven problem. Simone

Re: Re: problem installing the oracle library ojdbc14.jar

2008-11-10 Thread Wayne Fay
I`m trying to install DSpace 1.5.1 on Linux (Red Hat 5), with a database Oracle at a university. I 'm on step six of the installation documentation, with mvn -Ddb.name=oracle package, but it fails . I would strongly encourage you to work with the DSpace users list or dev team to resolve your

Use eclipse to compile

2008-11-10 Thread Rice Yeh
Hi, I am following the instructions on maven-compiler-plugin to use eclipse's compiler to compile my java files. maven-compiler-plugin depends on plexus-compiler-eclipse which has 1.5.1 as the most updated version. 1.5.1 use eclipse org.eclipse.jdt.core 3.1.0 which is too old for me. Any way can

Maven methodology

2008-11-10 Thread javax
Hi! Is there any document about the general maven methodology? I mean 1. Building a hierarchy of maven projects 2. Versions management 3. Relation between maven artifact version and source control labels 4. something else? Thank you! -- View this message in context:

RE: Use eclipse to compile

2008-11-10 Thread Hoover, William
http://article.gmane.org/gmane.comp.jakarta.turbine.maven.user/91072 -Original Message- From: Rice Yeh [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2008 12:30 PM To: users@maven.apache.org Subject: Use eclipse to compile Hi, I am following the instructions on

Re: SSH Slaves plugin can't connect

2008-11-10 Thread Chris Lieb
Sorry, posted to the wrong list. This was supposed to go to [EMAIL PROTECTED] Chris Chris Lieb wrote: I am trying to set up a Linux slave using the SSH Slaves plugin connecting from a Linux host. I have entered the connection information for the slave into Hudson and made sure that you can

Re: Use eclipse to compile

2008-11-10 Thread Rice Yeh
Thanks, it works. On Tue, Nov 11, 2008 at 1:38 AM, Hoover, William [EMAIL PROTECTED]wrote: http://article.gmane.org/gmane.comp.jakarta.turbine.maven.user/91072 -Original Message- From: Rice Yeh [mailto:[EMAIL PROTECTED] Sent: Monday, November 10, 2008 12:30 PM To:

using the maven-source-plugin

2008-11-10 Thread tim tim
hello all, i have problems using the maven-source-plugin. the problem is that when i call mvn install the project is build and deployed into my local repository, but the sources are not. i am following the instructions Installing the sources along with your artifact on

Rre: Need for a test-runtime scope?

2008-11-10 Thread Rune Flobakk
I have observed this also, and as you, I also was thinking about a potential test-runtime scope :) At my project I have included the dependency analyze in our CI build like this: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-dependency-plugin/artifactId version2.0/version

Re: using the maven-source-plugin

2008-11-10 Thread Baptiste MATHUS
Here's what I have in my pom.xml. Works fine : plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-source-plugin/artifactId executions execution phasepackage/phase goals

Re: using the maven-source-plugin

2008-11-10 Thread Wayne Fay
and hence the build section of my pom looks like this: build pluginManagement plugins plugin groupIdorg.apache.maven.plugins/groupId

Re: Maven methodology

2008-11-10 Thread javax
Thank you! Mick Knutson-3 wrote: Do a search for Better Builds with Maven. It is a great PDF and should give you the info you seek. On Mon, Nov 10, 2008 at 7:48 AM, javax [EMAIL PROTECTED] wrote: Hi! Is there any document about the general maven methodology? I mean 1. Building a

Re: How to add a jar in project package.

2008-11-10 Thread kunduruswaroop
Wayne, http://www.nabble.com/file/p20427304/my-app.zip my-app.zip I am including all my files in zip format. I did exactly what you said. project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;

Re: How to add a jar in project package.

2008-11-10 Thread Wayne Fay
I wanted log4j as a library of original project and I am expecting it to be inside original project jar file. What classloader/JVM are you using which supports a Jar inside a Jar? Or did you want the jar unzipped, and the files therein bundled up with your project's jar? Wayne

2 machines: Same svn repository, same pom.xml, same assembly.xml, same mvn. Different results!?

2008-11-10 Thread David Brown
Hello Mavenites all, I have a project checked out new and a fresh: mvn -P dev.dir clean install. One developer gets the results of the command-line argument: -P dev.dir while I get only the individual application targets (jar files). What I should get is a jar with a /lib directory of all the

Re: How to add a jar in project package.

2008-11-10 Thread kunduruswaroop
Wayne I am using Sun JVM from JDK1.5. I wanted a structure in the project jar file it should include log4j jar file so that I can port this entire jar to different machine where there is no Maven and and run the class. Regards, Swaroop Kunduru. -- View this message in context:

RepositoryRuntime path

2008-11-10 Thread hockey_dave
Fairly new to maven. Developed code using Eclipse and maven on windows. Trying to deploy to Linux. How do I get the maven repository into my java application runtime path. This is a straight java application with a main() not running under an app server. -- View this message in context:

Re: How to add a jar in project package.

2008-11-10 Thread Wayne Fay
I am using Sun JVM from JDK1.5. I wanted a structure in the project jar file it should include log4j jar file so that I can port this entire jar to different machine where there is no Maven and and run the class. You have two options: 1. Create an uberjar using the minijar plugin which

Re: How to add a jar in project package.

2008-11-10 Thread Tomasz Pik
On Mon, Nov 10, 2008 at 9:51 PM, kunduruswaroop [EMAIL PROTECTED] wrote: Wayne I am using Sun JVM from JDK1.5. I wanted a structure in the project jar file it should include log4j jar file so that I can port this entire jar to different machine where there is no Maven and and run the

Re: RepositoryRuntime path

2008-11-10 Thread Wayne Fay
Fairly new to maven. Developed code using Eclipse and maven on windows. Trying to deploy to Linux. How do I get the maven repository into my java application runtime path. This is a straight java application with a main() not running under an app server. Can you be a little bit more

How to specify a specialized Juni TestRunner in surefire?

2008-11-10 Thread Pinaki Poddar
Hi, Is there a way in surefire to specify a specialized JUnit TestRunner class? If yes, how? Regards -- Pinaki Poddar Application Integration Middleware

Re: RepositoryRuntime path

2008-11-10 Thread hockey_dave
yes exactly.  I have like 70 open source jar files that I'm using and I don't want to specify each of them.  Maven gives a very elegeant way to reduce compile time complexities in eclipse.  I assume that there must be some way to replicate that in runtime.

avoid dependency scope upgrade

2008-11-10 Thread Edelson, Justin
In a project I'm working on, I have two dependencies, one of which is provided and one of which is compile scope. They have a number of dependencies in common and I'm seeing that the transitive provided dependencies are changed to compile. This seems counter-intuitive to me. Is there any way to

Location of changelog, installer files?

2008-11-10 Thread Chris
Where in the standard maven directory layout should I put the changelog for my app (changelog.txt)? Where should I put files that are used only by the installer? These are files that are needed at build time, but shouldn't be distributed. They include the XML file that tells the install tool

RE: avoid dependency scope upgrade

2008-11-10 Thread Edelson, Justin
Right, I understand the difference between the scopes. Here's the scenario I don't understand: Project-A has two dependencies: * Project-B (provided) * Project-C (compile) To me, when I say that Project-B is provided, I'm implicitly stating that all of Project-B's transitive dependencies are

Re: Release Management Questions

2008-11-10 Thread Rusty Wright
Ok, thanks. I still don't see what the problem is with having all of the configuration in the war file. In theory it sounds like a good idea, and that's what I did before I started using maven, but with maven and its profiles it's too easy to simply make 3 wars for each dev, qa, and prod

How to copy dependencies of a pom packaged dependency ?

2008-11-10 Thread Frederic Conrotte
Hello Maven fans, I'm new Maven user, just 1 month experience. I red docs and the very good Sonatype Maven book: http://www.sonatype.com/book/reference/public-book.html but i'm still missing a feature or couldn't find the Maven way to do it. Basically I have grouped for convenience all my

Re: How to copy dependencies of a pom packaged dependency ?

2008-11-10 Thread Frederic Conrotte
Ok I think I posted too fast and just found it... dependency:copy-dependencies:excludeTransitive parameter was set to true. Setting it to false and excluding pom types does the job. plugin groupIdorg.apache.maven.plugins/groupId

Re: RepositoryRuntime path

2008-11-10 Thread hockey_dave
The mojo plugin is a big help. I think that it's almost working except that my project depends upon the com.microsoft.jdbc.sqljdbc.jar file which doesn't seem to be in the maven repository. Probably due to license restrictions although MS seems to be saying that it is okay.

RE: Release Management Questions

2008-11-10 Thread Martin Gainty
i agree with randy murphy's law applies.. if dev/qa/prod properties was packaged with the war then you would'nt have to worry about finding it... its always in the war Martin __ Disclaimer and confidentiality note Everything in this e-mail and any

Re: RepositoryRuntime path

2008-11-10 Thread Wayne Fay
/10/08 6:56:22 PM EST: Missing artifact com.microsoft.jdbcdriver:sqljdbc:jar:1.1:compile You just need to find the jar and use mvn install:install-file to install it into your local repo cache. Of course, this file will also need to be distributed with the other files as it seems you cannot

Re: RepositoryRuntime path

2008-11-10 Thread hockey_dave
For others not quite as familiar, here is the command (it is case sensitive, so get the Id's right) to get it to install assuming that you have already downloaded to the directory that you are in. Thanks. $ mvn install:install-file -Dfile=sqljdbc.jar -DgroupId=com.microsoft.jdbcdriver

Re: How to add a jar in project package.

2008-11-10 Thread kunduruswaroop
Thanks Tomek This is what I am expecting. But I have a trouble in this. I open another thread for it as I got this problem solved. Regards, Swaroop Kunduru, Tomasz Pik wrote: On Mon, Nov 10, 2008 at 9:51 PM, kunduruswaroop [EMAIL PROTECTED] wrote: Wayne I am using Sun JVM from

Two jars and also cannot read the resource file

2008-11-10 Thread kunduruswaroop
Hi, I am running a java application built with Maven2. 1) I used a assembly goal and run it using mvn assembly:assembly. I got 2 jar files instead of one they are as follows. java_app-1.0-SNAPSHOT-jar-with-dependencies.jar java_app-1.0-SNAPSHOT.jar I wanted to eliminate

Re: RepositoryRuntime path

2008-11-10 Thread hockey_dave
Drat, even after doing the install (I think correctly), it cannot find the driver. [tweb.file.FolderWatcher.main()] riverManagerConnectionProvider FATAL JDBC Drive r class not found: com.microsoft.sqlserver.jdbc.SQLServerDriver java.lang.ClassNotFoundException:

Re: Release Management Questions

2008-11-10 Thread Geoffrey Wiseman
On Mon, Nov 10, 2008 at 7:29 PM, Martin Gainty [EMAIL PROTECTED] wrote: i agree with randy murphy's law applies.. if dev/qa/prod properties was packaged with the war then you would'nt have to worry about finding it... its always in the war Honestly, if that works for you, so be it. I

How to install a source jar with classifier?

2008-11-10 Thread Rice Yeh
Hi, I have a artifact with classifer. I want to install source jar with classifier also. Although I can generate the source jar with classifier. But I find the source jar installed in local repository is still without classifier as shown in the following: !-- configure plugin to generate

Re: Use eclipse to compile

2008-11-10 Thread Rice Yeh
Hi, I find there is a problem with this method. Actually, nothing get compiled. This is because all java files are included in classpath without ; as seperator as shown in the following: [DEBUG] -d C:\projects\xsf\jdk15\as-measurement\target\classes -classpath C:\pro

Re: Two jars and also cannot read the resource file

2008-11-10 Thread Wendy Smoak
On Mon, Nov 10, 2008 at 6:13 PM, kunduruswaroop [EMAIL PROTECTED] wrote: 1) I used a assembly goal and run it using mvn assembly:assembly. I got 2 jar files instead of one they are as follows. java_app-1.0-SNAPSHOT-jar-with-dependencies.jar java_app-1.0-SNAPSHOT.jar I wanted to eliminate

Re: How to install a source jar with classifier?

2008-11-10 Thread Barrie Treloar
On Tue, Nov 11, 2008 at 1:38 PM, Rice Yeh [EMAIL PROTECTED] wrote: Hi, I have a artifact with classifer. I want to install source jar with classifier also. Although I can generate the source jar with classifier. But I find the source jar installed in local repository is still without

Re: Site deployment to sourceforge.net broken

2008-11-10 Thread Marat Radchenko
Barrie, thanks for excellent documentation! 2008/11/8 Barrie Treloar [EMAIL PROTECTED] On Tue, Sep 30, 2008 at 2:05 PM, Jiaqi Guo [EMAIL PROTECTED] wrote: Is there an official answer for Marat's question? Can site plugin be configured to deploy file by file instead of zip/unzip? Thanks.

Parents version isn't check for new updates on the remote repository

2008-11-10 Thread nodje
Hi, I'm confronted to this problem. There's a post with the same subject but it stayed unanswered by Maven folks. When someone update and 'mvn deploy' the parent-pom, it's not automatically updated on other instances of child projects. Each every developer has to do a 'mvn install' to get the

Re: How to install a source jar with classifier?

2008-11-10 Thread Wayne Fay
I have a artifact with classifer. I want to install source jar with classifier also. Although I can generate the source jar with classifier. But I find the source jar installed in local repository is still without classifier as shown in the following: I'm not sure that it makes sense to

Re: Parents version isn't check for new updates on the remote repository

2008-11-10 Thread Wayne Fay
In other words, it seems there is no update checks on the remote repo for the parent version in a child project. Is that an expected behavior? If not, is there a bug filled alreay for that? Is there any workaround ? Its hard to understand what you are really asking here. Can you make it a