[ANN] Castor Maven plugin 2.0 released

2009-11-17 Thread Werner Guttmann
The Mojo team is pleased to announce the release of the Castor Maven Plugin version 2.0. http://mojo.codehaus.org/castor-maven-plugin/ This is a major release that depends on Castor XML 1.3, version 1.3, and thus requires Java 5.0 and higher. To get this update, simply specify the version in

maven 3 warning on dependency scope import?

2009-11-17 Thread gabe97330
I'm using maven 3.0-alpha-3 and getting a warning on use of dependencies of scope import in sub-modules although verything works as it did in 2.x. there a way to address this warning either through correcting my usage (assuming it is a valid warning) or some sort of pragma to turn off the warning?

antrun messes up classloader ?

2009-11-17 Thread Sony Antony
I have a submodule that executes antrun in order to comile some webservices files ( using weblogic web services compiler ). This works fine when I executes maven from the submodule directory. But when this submodule is called from a parent pom ( which also calls other submodules ), it complains

mvn site error -Port should only contain digits!

2009-11-17 Thread caner kaplica
Hi, We have an error as i wrote below.It started after i added the maven-xradar-plugin to the reporting section of the pom.xml. The error log is the result of the command mvn site.It works normal on the local pc but ıt gives the error only on the server that has Bamboo(continuous integration tool)

pmd, checkstyle and cobertura in multi module project

2009-11-17 Thread manoj.java
I am using pmd, checkstyle and cobertura in my project. I have configured them all in my parent pom, which is get shared across all my modules. Now i want that one of the module dont use these pmd, checkstyle and cobertura checks. What configuration is required to do that. Please help me out.

[ANN] Apache Maven 3.0-alpha-4 Released

2009-11-17 Thread Benjamin Bentmann
The Maven team is pleased to announce the release of Apache Maven 3.0-alpha-4. Maven is a project comprehension and build tool, designed to simplify the process of maintaining a healthy development lifecycle for your project. You can read more here: http://maven.apache.org/ Downloads of

Maven not taking the latest snapshot

2009-11-17 Thread Yury Kudryashov
Hello, We have a set of products some of them depending on the others. We use Maven to control dependencies and a continuous integration server to check whether the changes are compatible. Continuous integration server first builds and deploys (to local Nexus-based repository) snapshot versions

Maven Embedder thread safety

2009-11-17 Thread Fabien Coppens
Hi all. I'm using Maven Embedder 3.0-alpha-2 to execute a dependency:resolve goal on a large number of POM files (several thousand), using a Java batch runtime. For performance reasons, I use a thread pool (ThreadPoolExecutor) to parallelize the calls to the embedder's execute method. However,

maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread eyal edri
Hi, i'm trying to figure out how can i create a working executable JAR that has dependencies (in-house maven projects plus external lib such as Log4J). I tried using the assembly plugin by creating a jar-with-dependencies. but this creates a big JAR with all the dependencies included. I want

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread Alexander
You could do this without assembly plugin. Just copy all dependencies with maven-dependency-plugin to some folder and than add this folder as classpath prefix in maven-jar-plugin. example for second part plugin artifactIdmaven-jar-plugin/artifactId

Re: antrun messes up classloader ?

2009-11-17 Thread Wayne Fay
But when this submodule is called from a parent pom ( which also calls other submodules ), it complains about a missing class for the weblogic compiler. This is a known problem in M2. Maven only loads the plugin once (the first time it sees it) in a build, and only loads plugin dependencies it

Re: antrun messes up classloader ?

2009-11-17 Thread Sony Antony
Thank you very much Wayne ( I didnt know that ) : But in out case we explicitly specified teh jar files within the tasks path id=wl-jars4compiler fileset dir=${project.build.directory}/weblogic10.3supportfiles include name=**/*.jar/

Re: Support for ditaa diagrams in APT

2009-11-17 Thread Vincent Siveton
Not scheduled and I dont think we will make efforts to. You could always provide a module for it and create an issue. Cheers, Vincent 2009/11/17 Lóránt Pintér l.pin...@topdesk.com: Hi, Are there any plans to support ditaa ( http://ditaa.sourceforge.net/ ) in the future? It would be a nice

Remote resource plugin doesn't work in release plugin

2009-11-17 Thread Max Grigoriev
Hi everybody, I have a project which uses remote-resources (hibernate mapping files). My pom.xml ... plugin     artifactIdmaven-remote-resources-plugin/artifactId     version1.1/version     executions     execution     goals     goalprocess/goal  

maven javadoc plugin -both aggregate and non-aggregate

2009-11-17 Thread caner kaplica
Hi, How can i ensure that maven-javadoc-plugin generates both the aggregate report and report for each submodule(with mvn site command) in a multi-module maven project. Thanks, Caner,

Re: antrun messes up classloader ?

2009-11-17 Thread Wayne Fay
But in out case we explicitly specified teh jar files within the tasks wont this result in all teh classes being reloaded again ? ( because taskdef forced it to reload ) Obviously not, or it would work properly, right? Also, I would convert those Ant scripts into proper Maven plugins. It is

Re: install repeats building of dependencies

2009-11-17 Thread Seth Milder
Jörg Schaible wrote: Seth Milder wrote at Dienstag, 17. November 2009 02:12: Seth Milder wrote: The WarProject1 and 2 poms also use the maven-assembly plugin, in case this matters. What happens is it builds the dependencies (Project1 and Project2), then it goes and builds WarProject1,

Problem with running antscripts in a plugin

2009-11-17 Thread Sommers, Elizabeth
I have a plugin that was originally written for 2.0.5, but was happy through 2.1.0. We are now trying to upgrade to 2.2.1 and it is failing miserably. I upgraded the maven.plugin.plugin to be 2.2.1 and am now able to compile the plugin. Unfortunately, it no longer works. I have two mojos that

Re: Maven not taking the latest snapshot

2009-11-17 Thread Brian Fox
First, I would not use 2.1.0, use 2.0.10 or 2.2.1 instead. I'm fairly certain that -U works properly in those versions. (2.1.0 shouldn't be used at all, there were lots of issues there and we went right to 2.2.x) On Tue, Nov 17, 2009 at 6:24 AM, Yury Kudryashov ykudryas...@devexperts.com wrote:

Re: Non-unique Snapshot Deployments is not in Maven 3

2009-11-17 Thread Brian Fox
This use case currently isn't covered, you're right and it's really the only reason anymore to use non unique snapshots. Bringing this over to @dev to figure out what to do. On Mon, Nov 16, 2009 at 3:41 PM, Paul Benedict pbened...@apache.org wrote: I did read the link. I thought Jason was saying

Re: Non-unique Snapshot Deployments is not in Maven 3

2009-11-17 Thread Dan Tran
Just read my own post again, For my case, we might be able to go forward with maven 3 .. should be For my case, we might NOT be able to go forward with maven 3 .. sorry about the confusion -Dan On Sun, Nov 15, 2009 at 11:26 AM, Dan Tran dant...@gmail.com wrote: Hi According to

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread eyal edri
can i use the 'dependency:copy-dependencieshttp://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html' goal in this project to tell it to copy all it's dependencies to the lib dir? like shown in here: build plugins plugin

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread Alexander
Dont be shy, just try it. 2009/11/17 eyal edri eyal.e...@gmail.com can i use the 'dependency:copy-dependencies http://maven.apache.org/plugins/maven-dependency-plugin/copy-dependencies-mojo.html ' goal in this project to tell it to copy all it's dependencies to the lib dir? like shown in

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread eyal edri
i will, once i get to work tomorrow :) thanks for the help. On Tue, Nov 17, 2009 at 8:05 PM, Alexander the.malk...@gmail.com wrote: Dont be shy, just try it. 2009/11/17 eyal edri eyal.e...@gmail.com can i use the 'dependency:copy-dependencies

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread Brian Fox
http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/ On Tue, Nov 17, 2009 at 1:12 PM, eyal edri eyal.e...@gmail.com wrote: i will, once i get to work tomorrow :) thanks for the help. On Tue, Nov 17, 2009 at 8:05 PM, Alexander the.malk...@gmail.com wrote: Dont be

Re: maven assembly: how to create an execution JAR without packing the dependencies

2009-11-17 Thread Alexander
Question was how make executable jar without including all dependencies in application jar but in separate folder. 2009/11/18 Brian Fox bri...@infinity.nu http://www.sonatype.com/people/2009/08/how-to-make-an-executable-jar-in-maven/ On Tue, Nov 17, 2009 at 1:12 PM, eyal edri

Re: Best practice for declaring repos in open source projects

2009-11-17 Thread Kalle Korhonen
Sure, I agree with both of you that there are conflicts in the various repos, but neither of you gave any suggestions/answers for my practical question. Brian others, do you think its better to keep the extra repos in a profile, always use them if build requires some dependencies from the extra

Request Review of Presentation on Maven and MyEclipse

2009-11-17 Thread phillips1021
I've put together a presentation on using Maven with MyEclipse for my fellow Java developers at the University of Kansas. We use MyEclipse as our Java IDE. The presentation as an Adobe PDF is attached. If you can review it and provide me an corrections/suggestions it would be most appreciated.

compiler plugin problems with compilerOptions

2009-11-17 Thread Mark Derricutt
'lo all, I'm starting to experiment with using some annotation processors in my build and have the following compiler plugin configuration: plugin groupIdorg.apache.maven.plugins/groupId artifactIdmaven-compiler-plugin/artifactId

Re: compiler plugin problems with compilerOptions

2009-11-17 Thread Mark Derricutt
Looks like this problem occurs under Maven 3 as well. I also tried: compilerArguments AauditXml${basedir}/test-audit.xml/AauditXml AoutpurDir${basedir}/target/AoutpurDir /compilerArguments but that just gives

Re: compiler plugin problems with compilerOptions

2009-11-17 Thread Wayne Fay
                     AoutpurDir${basedir}/target/AoutpurDir [ERROR] Compilation failure Failure executing javac, but could not parse the error: javac: invalid flag: Isn't that supposed to be AoutputDir ? Is that the invalid flag that javac is complaining about? Try mvn -X ... to see the

Out of memory = out of mind

2009-11-17 Thread Benson Margulies
In XmlSchema, I have a unit test that has been working, more or less unchanged, for over a year. It still works when run from Eclipse. Tonight, launched from maven, it fails instantly with an OutOfMemory exception. This with MAVEN_OPTS set to -Xmx1g. Or 2g. Changing forkMode to always has no

maven pom.xml deployment...

2009-11-17 Thread JIA Pei
Hi, all: I'm using jahmm open source downloaded form http://jahmm.googlecode.com/svn/repo/be/ac/ulg/montefiore/run/jahmm/jahmm/0.6.2/ As you can see, this is a maven version . However, when I port this jahmm project into my Eclipse 3.5.1+maven 2.2.1 (I'm using m2Eclipse

Re: compiler plugin problems with compilerOptions

2009-11-17 Thread Mark Derricutt
You're right it was supposed to be AoutputDir, however thats just the annotation processor option, one thing I noticed in the compiler plugin docs is that it equates: compilerArgument-verbose -bootclasspath ${java.home}\lib\rt.jar/compilerArgument with compilerArguments verbose /

Re: Out of memory = out of mind

2009-11-17 Thread Brett Porter
To my recollection, the Java memory settings are not propagated to the child process, so its getting the default. Try using the following for your memory settings: http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html#argLine Cheers, Brett On 18/11/2009, at 10:20 AM, Benson

Re: Out of memory = out of mind

2009-11-17 Thread Daniel Kulp
I think the older versions of Surefire defaulted to forkMode never in which case the MAVEN_OPTS settings would have applied. The newer versions default to once so they don't. It could be a year ago, you were using Maven 2.0.9 or similar that brought in an older surefire or something.

RE: compiler plugin problems with compilerOptions

2009-11-17 Thread Martin Gainty
-A assumes Annotation processor? javac -help Usage: javac options source files javac options include: -proc:{none,only} Control whether annotation processing and/or compilation is done. !-- select the annotation processor you wish to implement -- -processor

Format for manually creating source and javadoc bundles?

2009-11-17 Thread Jonathan Gold
Hi -- I'm new to Maven, and think it seems nice, but am having some problems finding the details on what the layout is for a source bundle. I've searched the web a good bit, and can find lots of info about the source plugin used to generate them, but not about the expected format of a source

Re: Format for manually creating source and javadoc bundles?

2009-11-17 Thread Jonathan Gold
(Minor edit: I meant that I'm targeting maven 2.2 users, not 2.1) jon On Tue, Nov 17, 2009 at 09:34:44PM -0800, Jonathan Gold wrote: Hi -- I'm new to Maven, and think it seems nice, but am having some problems finding the details on what the layout is for a source bundle. I've searched the

Re: Format for manually creating source and javadoc bundles?

2009-11-17 Thread Paul Benedict
The format of the bundles are: *-source.jar - it's the java source simply archived. Start archiving from where you think src/main/java would be. Just make sure you remember your archive utility retains the paths of the file you choose. I use WinZip for this. *-docs.jar - same above except for

Re: Format for manually creating source and javadoc bundles?

2009-11-17 Thread Jonathan Gold
Thanks! jon On Tue, Nov 17, 2009 at 11:38:40PM -0600, Paul Benedict wrote: The format of the bundles are: *-source.jar - it's the java source simply archived. Start archiving from where you think src/main/java would be. Just make sure you remember your archive utility retains the paths of