Why maven-compiler-plugin, source and target

2008-01-16 Thread Sahoo
When the philosophy of Maven is convention over configuration, why does maven-compiler-plugin require me to specify a target version every time I specify a source version. Can't it default the target version to be same as source version? Isn't it what most people do any way? Thanks, Sahoo ---

Re: IBM custom project

2008-01-16 Thread Jeff Mutonho
On Jan 16, 2008 2:48 PM, Jeff Mutonho <[EMAIL PROTECTED]> wrote: > Hi > > I have a custom IBM project with ejbs ( for the 2.1 spec).I've followed > steps outlined at Peter Pilgrim's blog > (http://www.jroller.com/peter_pilgrim/entry/battling_with_maven_2_integrating > ) and everything seems in or

unable to find mojo with hudson CI

2008-01-16 Thread globulon
Houdy, We are setting a CI environment using hudson as automata. We have created a task to execute our Mavan 2 project. Maven2 is launched using the parameters -Xmx1024 -Xms1024 goals are "clean install site-deploy" the maven-project-info-reports plugin canno't be found . We systematically get

Sending email notification to Owners

2008-01-16 Thread amit kumar
Hi, I am using Maven 2, I want to send email notifications to the respective owners of the sub modules, if possible with error trace. How do I do that? Could someone help on that? Regards, Amit

Re: IBM custom project

2008-01-16 Thread Stuart McCulloch
On 17/01/2008, Jörg Schaible <[EMAIL PROTECTED]> wrote: > > Wendy Smoak wrote: > > > On Jan 16, 2008 6:19 AM, Jörg Schaible > > <[EMAIL PROTECTED]> wrote: > > > >> For whatever reason, Maven 2 does not run on an IBM JDK. > > > > I don't see anything in JIRA about this. > > I always intended to, but

Re: Disable profiles within sub-projects

2008-01-16 Thread sumyoungguy
Thank you that's exactly what I was after :clap: -- View this message in context: http://www.nabble.com/Disable-profiles-within-sub-projects-tp14906082s177p14908682.html Sent from the Maven - Users mailing list archive at Nabble.com. ---

Re: Disable profiles within sub-projects

2008-01-16 Thread Wayne Fay
You can affect which modules build by putting the module declarations inside your profiles. This does require that you remove the modules tag from your parent pom. So you'll need to make a profile for prod that declares all modules, and one for prod_alt_config that only declares the public (or wha

Disable profiles within sub-projects

2008-01-16 Thread sumyoungguy
Hi, I did a quick search but didn't come up with a result, forgive me if this has already been answered on the forum. I've got a project in the following format base project folder (pom) - Admin Project (pom) - Core Project (pom) - Public Project (pom) If I want to build a release

Re: Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-jar-plugin:2.1:jar'

2008-01-16 Thread Basahr AJ
I just figured it out. The problem was that there were 2 versions of maven-jar-plugin on the classpath (2.1 and 2.2). We fixed it by using 2.2only. Thanks, Bashr On Jan 16, 2008 3:55 PM, Olivier Lamy <[EMAIL PROTECTED] > wrote: > Hi, > If you build the same project from the cli, does it works ?

Re: IBM custom project

2008-01-16 Thread David J. M. Karlsen
Stephen Coy wrote: Maven 2.0.4 -> 2.0.8 certainly works on the IBM 1.5 JDK under Windows. I would be really surprised if there were any issues under Linux. We have been using it for more than a year. Cheers, Steve C I've got a m2 plugin which wraps around the ws_ant (generating an ant build

[m2]cobertura ignore verse exclude?

2008-01-16 Thread Mick Knutson
1st I would like to know the difference between ignore verse exclude? I have this, but am trying to exclude every package under a given package org.codehaus.mojo cobertura-maven-plugin 2.2

Re: Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-jar-plugin:2.1:jar'

2008-01-16 Thread Olivier Lamy
Hi, If you build the same project from the cli, does it works ? Have you looked the jar plugin version in your pom ? -- Olivier 2008/1/16, Basahr AJ <[EMAIL PROTECTED]>: > Just this morning our builds on Continuum were failing. Looking at the > logs this is what I see: > > [INFO] > --

Internal error in the plugin manager executing goal 'org.apache.maven.plugins:maven-jar-plugin:2.1:jar'

2008-01-16 Thread Basahr AJ
Just this morning our builds on Continuum were failing. Looking at the logs this is what I see: [INFO] [ERROR] BUILD ERROR [INFO] [INFO] Internal error

Re: IBM custom project

2008-01-16 Thread Stephen Coy
Maven 2.0.4 -> 2.0.8 certainly works on the IBM 1.5 JDK under Windows. I would be really surprised if there were any issues under Linux. We have been using it for more than a year. Cheers, Steve C On 17/01/2008, at 3:46 AM, Jörg Schaible wrote: Wendy Smoak wrote: On Jan 16, 2008 6:19 AM,

EJB WebSphere dependencies

2008-01-16 Thread Marcus Müller
Hi all, I'm currently trying to use Maven2 for creating an EAR file which contains among some utitlity-JARs an EJB-project using EJB 2.1 and containing one message driven bean. I have problems there compiling the project as the EJB-implementation should be used from a WebSphere 6.0 server. So wha

is LDAPS supported on version 1.1?

2008-01-16 Thread Kevin Barrett
I've just installed version 1.1 running under Tomcat. I was able to configure continuum to authenticate via unsecure LDAP database using the documentation found here: http://maven.apache.org/continuum/docs/1.1/administrator_guides/security/ldap.html But I have been unable to configure using a s

Strange problems with mvn release:perform when running javadoc:jar on Windows

2008-01-16 Thread Stephen Connolly
On one of our developer's machines, they cannot do mvn javadoc:jar as it blows up due to an InvalidArrgumentException in (from memory) sun.net.www.ParserInfo.decode()! On other developer machines, there is no problem. The only difference we have found is the locale for this developer is English (

RE: maven properties seem not to work in profile activation feature

2008-01-16 Thread Brewster, Richard
I ran into this before. The element is *NOT* a property. Although it can be referenced like one, it does not behave as expected. /m2/repository I defined my own local.repository property that duplicates the path, so I could reference it. In the properties element in settings.xml: /m2/re

Re: Use 1.6 JRE globally

2008-01-16 Thread Olivier Serve
Le mercredi 16 janvier 2008, Ian Springer a écrit : > > >> set JAVA_HOME JRE_HOME correctly > >> > > > > No, because doing this will make the build non-reproducible on other > > environments as I will lose the 1.6 requirement. > > > > You can use the enforcer plugin in your pom to specif

Re: Use 1.6 JRE globally

2008-01-16 Thread Olivier Serve
Le mercredi 16 janvier 2008, Hayes, Peter a écrit : > You may want to look at using the enforcer plugin : > > http://maven.apache.org/plugins/maven-enforcer-plugin/ > > This would allow you to guarantee that the jdk running is the build's > required JDK. > > As to your initial question, I agree

Re: Use 1.6 JRE globally

2008-01-16 Thread Ian Springer
set JAVA_HOME JRE_HOME correctly No, because doing this will make the build non-reproducible on other environments as I will lose the 1.6 requirement. You can use the enforcer plugin in your pom to specify that your project requires Java 1.6. See http://maven.apache.org/plugins/ma

Re: [archiva] Arctifacts found on on worstation, but not build server.

2008-01-16 Thread Wendy Smoak
On Jan 16, 2008 9:44 AM, Mick Knutson <[EMAIL PROTECTED]> wrote: > I am using wagon-webdav on my local machine and on our CI build machine. But > wagon-web dav can be downloaded from archiva locally, but not on from the > build server: > > *[INFO] Utilities: Services: Logging Proxy EAR > Downloa

RE: Use 1.6 JRE globally

2008-01-16 Thread Hayes, Peter
You may want to look at using the enforcer plugin : http://maven.apache.org/plugins/maven-enforcer-plugin/ This would allow you to guarantee that the jdk running is the build's required JDK. As to your initial question, I agree that the only way to set the JDK versino globally in Maven is to

Re: Use 1.6 JRE globally

2008-01-16 Thread Michael
Olivier Serve wrote: Le mercredi 16 janvier 2008, Michael a écrit : Olivier Serve wrote: Hi _o/ I have a little project that requires a JDK 1.6 (it uses some 1.6 specific APIs). I have both Java 1.5 and 1.6 installed on my system to do some tests. Using the following, I can build the artifac

Re: IBM custom project

2008-01-16 Thread Jörg Schaible
Wendy Smoak wrote: > On Jan 16, 2008 6:19 AM, Jörg Schaible > <[EMAIL PROTECTED]> wrote: > >> For whatever reason, Maven 2 does not run on an IBM JDK. > > I don't see anything in JIRA about this. I always intended to, but forgot about it again. > What issues have you run into? http://commons

Re: Use 1.6 JRE globally

2008-01-16 Thread Olivier Serve
Le mercredi 16 janvier 2008, Michael a écrit : > Olivier Serve wrote: > > Hi _o/ > > > > I have a little project that requires a JDK 1.6 (it uses some 1.6 specific > > APIs). > > I have both Java 1.5 and 1.6 installed on my system to do some tests. > > > > Using the following, I can build the ar

Re: Use 1.6 JRE globally

2008-01-16 Thread Michael
Olivier Serve wrote: Hi _o/ I have a little project that requires a JDK 1.6 (it uses some 1.6 specific APIs). I have both Java 1.5 and 1.6 installed on my system to do some tests. Using the following, I can build the artifact. --8<-- .

Use 1.6 JRE globally

2008-01-16 Thread Olivier Serve
Hi _o/ I have a little project that requires a JDK 1.6 (it uses some 1.6 specific APIs). I have both Java 1.5 and 1.6 installed on my system to do some tests. Using the following, I can build the artifact. --8<-- ...

Re: Compilation order between modules

2008-01-16 Thread Guillaume Lederrey
I think i finally found it ! Module "shared" has a dependency to another project which depend on another project which depend on module "server". So, circular dependencies, which means problem ... I'll go work on that one ... On 16/01/2008, Guillaume Lederrey <[EMAIL PROTECTED]> wrote: > Hello !

[archiva 1.0] 'ORA-00910: specified length too long for its datatype' Error when clicking on searched artifact.

2008-01-16 Thread Mick Knutson
When I do a search for an artifact, then I get the results, I then get this error: javax.jdo.JDODataStoreException: An exception was thrown while adding/validating class(es) : ORA-00910: specified length too long for its datatype java.sql.SQLException: ORA-00910: specified length too long for its

Re: Error by running "mvn package"

2008-01-16 Thread Mark Eramo
Hi Thomas, Do you have the compiler plugin defined in your pom? At a minimum, you need to have this defined. * org.apache.maven.plugins maven-compiler-plugin -verbose 1.5 1.5 * If you have a parent and child pom, you should have this in BOTH places. Regards, Mark Thom

Compilation order between modules

2008-01-16 Thread Guillaume Lederrey
Hello ! I'm working with a multi-modules project. This project has 2 modules : "shared" and "server". Module "server" depends on module "shared". When I try to run "mvn install" on the main project, it fails because it seems to try to compile module "server" before module "shared" (error below).

Error by running "mvn package"

2008-01-16 Thread Thomas Chang
Hi all, I use Eclipse Europa and I set both the JRE and compiler to JDK 1.5. But as I run "mvn oackage" I got error as follow: E:\Projekte\TestSpringToplinkFaceletsTomahawk\src\main\java\wei\spring\jsf\test\ DeleteDataFromTable.java:[18,20] generics are not supported in -source 1.3 (t

Re: IBM custom project

2008-01-16 Thread Wendy Smoak
On Jan 16, 2008 6:19 AM, Jörg Schaible <[EMAIL PROTECTED]> wrote: > For whatever reason, Maven 2 does not run on an IBM JDK. I don't see anything in JIRA about this. What issues have you run into? -- Wendy - To unsubscribe, e

[ANN] Maven Jar Plugin 2.2 for Maven 2 Released

2008-01-16 Thread Olivier Lamy
The Maven team is pleased to announce the release of the Maven Jar Plugin, version 2.2. http://maven.apache.org/plugins/maven-jar-plugin/ You can run mvn -up to get the latest version of the plugin, or specify the version in your project's plugin configuration: org.apache.maven.plugins maven-

Re: error on maven-clean-plugin

2008-01-16 Thread François Xavier Gendrin
François Xavier Gendrin a écrit : Hi, I updated some plugin and crash, an error. Error says to specify: '-Dproject.reporting.outputDirectory=VALUE', but I prefer to use pom configuration file, but I didn't find how to configure it with pom file .. Some one could help ? [INFO] ---

Eclipse project issues

2008-01-16 Thread migl
Hello, I build my projects in the eclipse workspace using maven mvn install eclipse:eclipse command As a result I got total of 9 projects. I experience some weird issue, where Eclipse doesn't find numerous source files in the path, even though I observe them in the Eclipse's Project Explorer vie

Re: maven properties seem not to work in profile activation feature

2008-01-16 Thread Patrizio Munzi
Hi, so file based profile activation can't be used without breaking down project portability. Is there any workaround...? By the way there is already an issue about that on Jira... Thanks a lot. BR Patrizio nicolas de loof wrote: You're right, properties interpolation IS NOT used to comput

Re: error on maven-clean-plugin

2008-01-16 Thread François Xavier Gendrin
François Xavier Gendrin a écrit : Hi, I updated some plugin and crash, an error. Error says to specify: '-Dproject.reporting.outputDirectory=VALUE', but I prefer to use pom configuration file, but I didn't find how to configure it with pom file .. Some one could help ? I'm using continuum

Re: maven properties seem not to work in profile activation feature

2008-01-16 Thread nicolas de loof
You're right, properties interpolation IS NOT used to compute file path during profile activation. The main cause is that profiles may define / override properties values. I agree that some properties like ${basedir} and ${settings.x} MAY be supported, as this restriction makes the file based acti

maven properties seem not to work in profile activation feature

2008-01-16 Thread Patrizio Munzi
Hi all, I'm trying to manage profiles activations/deactivations by using the activation tag among with the file tag. What I would like to do is to activate a particular profile only if a specified folder is present into the local repository. The profile configuration I'm using is the following

Re: IBM custom project

2008-01-16 Thread Jeff Mutonho
On Jan 16, 2008 3:19 PM, Jörg Schaible <[EMAIL PROTECTED]> wrote: > Jeff Mutonho wrote: > > Hi > > > > I have a custom IBM project with ejbs ( for the 2.1 spec).I've > > followed steps outlined at Peter Pilgrim's blog > > (http://www.jroller.com/peter_pilgrim/entry/battling_with_mave > > n_2_integ

RE: IBM custom project

2008-01-16 Thread Jörg Schaible
Jeff Mutonho wrote: > Hi > > I have a custom IBM project with ejbs ( for the 2.1 spec).I've > followed steps outlined at Peter Pilgrim's blog > (http://www.jroller.com/peter_pilgrim/entry/battling_with_mave > n_2_integrating ) and everything seems in order. However when the > maven-antrun-plugin i

Re: Using unreleased plugin

2008-01-16 Thread Simon Kitching
"Rémy Sanlaville" <[EMAIL PROTECTED]> schrieb: > Try this command : > mvn > org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5-SNAPSHOT:tree That did it. Thanks very much! - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: IBM custom project

2008-01-16 Thread Jeff Mutonho
I've added the following to my and running this yields : [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [echo] compile classpath: null Could this be the source of the problem? Why isnt my maven.compile.classpathresolving to "null" ? On Jan 16, 2008 2:48 PM, Jeff Mutonh

Activated profiles list

2008-01-16 Thread Jakub Janczak
Hi, is there any maven variable that holds activated profiles? - what i would like to do is to add a manifest field with it. I need something like: org.apache.maven.plugins maven-jar-plugin ${maven.profiles}

IBM custom project

2008-01-16 Thread Jeff Mutonho
Hi I have a custom IBM project with ejbs ( for the 2.1 spec).I've followed steps outlined at Peter Pilgrim's blog (http://www.jroller.com/peter_pilgrim/entry/battling_with_maven_2_integrating ) and everything seems in order. However when the maven-antrun-plugin is failing with an error message I'm

test successful, tomcat:deploy test fails.

2008-01-16 Thread Jan Torben Heuer
Hi, there is a strange error in my project: mvn test finishes all test as expected. But mvn tomcat:deploy fails: [INFO] Preparing tomcat:deploy [INFO] [resources:resources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:compile] [INFO] Nothing to compile - all classes

Re: Using unreleased plugin

2008-01-16 Thread Rémy Sanlaville
Hi, Try this command : mvn org.apache.maven.plugins:maven-dependency-plugin:2.0-alpha-5-SNAPSHOT:tree HTH, Rémy

Using unreleased plugin

2008-01-16 Thread Simon Kitching
Hi, I'd like to run the "dependency:tree" goal against a local project. According to the docs, this goal is only available in 2.0-alpha-5 or later. But that isn't out yet. There is an alpha-5-SNAPHOT though: http://people.apache.org/repo/m2-snapshot-repository/org/apache/maven/plugins/maven-de

Re: Selenium jars not on the maven repository anymore

2008-01-16 Thread Rohnny Moland
At least they are in my local repository and I dont use this repository you mention. But I could of course add those repositories, even if I dont want to do so. Maybe I am just insane. Regards, Rohnny On Jan 16, 2008 11:16 AM, Marco Huber <[EMAIL PROTECTED]> wrote: > Hello Rohnny, > > I don't k

Re: Selenium jars not on the maven repository anymore

2008-01-16 Thread Marco Huber
Hello Rohnny, I don't know really if the Selenium jars were ever in the repo1.maven.org. We used till now the repository from OpenQA directly, but it seems that they moved there repository. Look at http://maven.openqa.org/ (The old repository url). They split them into three new URL: *

Selenium jars not on the maven repository anymore

2008-01-16 Thread Rohnny Moland
Hello, It seems like the selenium jars have been removed or moved tonight? At least they are not on our mirror nor on repo1.maven.org today. Can the person that removed them, please put the jars back?. Regards, Rohnny - To unsu

Re: Resources from classpath in JAR

2008-01-16 Thread Simon Kitching
dddzzz <[EMAIL PROTECTED]> schrieb: > > > > Heinrich Nirschl wrote: > > > > > > Put them into src/main/resources. > > > > > > I want them to be in same folder that classes are. That's a reasonable way to structure your code I think. I always used to put resources together with the co