Setting up proxy for Maven mojo doesn't work

2010-01-05 Thread Zdeněk Zikán
Hello, I want to use proxy in my maven project (to make some builds faster, because when processing Docbook documentation, some DTDs are slow to fetch from some servers). I have tried following ways how to do it: 1) set it up in Java: $JAVA_HOME/bin/ControlPanel - Network Settings 2) in

Re: Setting up proxy for Maven mojo doesn't work

2010-01-05 Thread Zdeněk Zikán
6) Also environment variable http_proxy doesn't work: export http_proxy=http://proxy.myhost.com:3128/; (I'm using Linux, it works for other command line utilities). On Tue, Jan 5, 2010 at 9:47 AM, Zdeněk Zikán zdenek.zi...@gmail.com wrote: Hello, I want to use proxy in my maven project (to

Global dependencies report?

2010-01-05 Thread Lewis, Eric
Hi We have a company-wide parent POM where all the versions of all dependencies are managed. Now it's very handy to have the Dependency Analysis in the site for each project, but we may have some dependencies declared in the company-wide parent POM which are never used in the projects. Is

Re: ear-plugin and profiles: poor cooperation?

2010-01-05 Thread Stephane Nicoll
A configuration item that is a list can't be merged in a profile. See the modules element as a configuration item, like the JavaEE version you want to use. If you override the value in the profile, you can't expect it to merge the elements that are set in the main build (this is a global behavior

Re: Global dependencies report?

2010-01-05 Thread Anders Hammar
Does dependency:analyze work? Not sure if I've tried this with inherited unused dependencies. But I would assume the plugin works on the merged pom. http://maven.apache.org/plugins/maven-dependency-plugin/analyze-mojo.html /Anders On Tue, Jan 5, 2010 at 10:16, Lewis, Eric eric.le...@ipi.ch

Surefire and testSourceDirectory

2010-01-05 Thread Marcin Kwapisz
Hi, can someone tell me what is the purpose of testSourceDirectory in configuration of the surefire plugin. I do not think this parameter work at all. There is project.build.testSourceDirectory and I use it to point at my filtered test source files. But this method is very inconvenient due to

Re: Surefire and testSourceDirectory

2010-01-05 Thread Anders Hammar
Well, the purpose is what the docs says: The test source directory containing test class sources. And it does work, otherwise no unit tests would work/run for any Maven project. As a convention, this param is defined in the Maven super pom. Have a look here:

Re: release:prepare and plugin in snapshot version

2010-01-05 Thread Rémy
With 1.4.6-mycompany-1 in my repository, I've got this problem. mvn help:effective-pom [INFO] Scanning for projects... [INFO] [ERROR] BUILD ERROR [INFO]

RE: Surefire and testSourceDirectory

2010-01-05 Thread Marcin Kwapisz
Well, the purpose is what the docs says: The test source directory containing test class sources. And it does work, otherwise no unit tests would work/run for any Maven project. As a convention, this param is defined in the Maven super pom. [Marcin Kwapisz] Source files are not run. You mean

Re: Surefire and testSourceDirectory

2010-01-05 Thread Anders Hammar
off topic: If the testSourceDirectory param isn't set correctly, unit test source files wouldn't be found and thus not run (as they cannot be compiled). /Anders On Tue, Jan 5, 2010 at 12:41, Marcin Kwapisz mkwap...@zsk.p.lodz.pl wrote: Well, the purpose is what the docs says: The test

Re: release:prepare and plugin in snapshot version

2010-01-05 Thread Stephen Connolly
because you did not update the pom before deploying 2010/1/5 Rémy remy.tempora...@gmail.com: With 1.4.6-mycompany-1 in my repository, I've got this problem. mvn help:effective-pom [INFO] Scanning for projects... [INFO]

Re: Surefire and testSourceDirectory

2010-01-05 Thread Roland Brassous
Hi Usually i use the tag testSourceDirectory in order to indicate if tests are for integration (testSourceDirectorysrc/it/testSourceDirectory) or for unit tests (testSourceDirectorysrc/test/testSourceDirectory) I use 2 modules, one for unit tests and another for integration tests Roland

RE: Surefire and testSourceDirectory

2010-01-05 Thread Marcin Kwapisz
Usually i use the tag testSourceDirectory in order to indicate if tests are for integration (testSourceDirectorysrc/it/testSourceDirectory) or for unit tests (testSourceDirectorysrc/test/testSourceDirectory) I use 2 modules, one for unit tests and another for integration tests [[Marcin

RE: Surefire and testSourceDirectory

2010-01-05 Thread Marcin Kwapisz
Sorry, attachments are not accepted. It is my pom.xml project xmlns=http://maven.apache.org/POM/4.0.0; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd; modelVersion4.0.0/modelVersion

Re: release:prepare and plugin in snapshot version

2010-01-05 Thread Rémy
It's OK. I've to update version in the plugin.xml file in jspc-maven-plugin-1.4.6-mycompany-1.jar. Rémy Rémy wrote: With 1.4.6-mycompany-1 in my repository, I've got this problem. mvn help:effective-pom [INFO] Scanning for projects... [INFO]

Problem in site deployment

2010-01-05 Thread DebasisM
Hi, I am generating a site and trying to deploy it.I am facing two problem. 1.i am having 8 modules.i am using pom aggregation for running install and deploy goal.but site i want to generate only for parent not for the child modules. how to prevent only for the site generation. 2.for

Listing war file content

2010-01-05 Thread solo1970
Hello, We would like to list, the content of a war file, the equivalent of jar -tf. Besides using the antrun plugin, is there any other way? Thanks -- View this message in context: http://old.nabble.com/Listing-war-file-content-tp27026642p27026642.html Sent from the Maven - Users mailing

Re: Problem with Maven deploy (Error writing to server)

2010-01-05 Thread K J
Just an additional note...this fix works for Maven 2.2.1. Not sure whether there is a way to make it work for older versions of Maven. On Fri, Dec 11, 2009 at 5:34 PM, K J gomm...@gmail.com wrote: Update on my solution for anyones else who has the same problem... Thanks for the input Brendan.

Re: Surefire and testSourceDirectory

2010-01-05 Thread Wayne Fay
               artifactIdmaven-surefire-plugin/artifactId                configuration                     testSourceDirectorysrc/test/whatever/testSourceDirectory This is simply not where testSourceDirectory goes in the pom. The Surefire plugin does not look for this value where you've put

RE: Help figuring out the Maven dependency

2010-01-05 Thread laredotornado
Thanks paulv! That sonatype link is gold. As a follow-up, what is a web site that would tell me what dependencies a certain dependency required? I'm using an older version of Maven (1.1) to do builds so I have to handle the dependencies myself. Thanks, - Dave paulv wrote: Use the

Error in assembly - META-INF/MANIFEST.MF not found

2010-01-05 Thread Mike Key
I am building an assembly from a war and when I build locally with maven it works fine, however when I build on a CentOS machine through Hudson I get the following error on initial build, if I restart the build it clears itself up, but on each checkin this error occurs. I have checked the war

Re: Help figuring out the Maven dependency

2010-01-05 Thread Wes Wannemacher
I like to use www.jarvana.com I would assume the Sonatype one is similar (haven't used it), but I figured I'd point out the alternative :) -Wes On Tue, Jan 5, 2010 at 2:36 PM, laredotornado laredotorn...@gmail.com wrote: Thanks paulv!  That sonatype link is gold. As a follow-up, what is a

Re: Help figuring out the Maven dependency

2010-01-05 Thread Wayne Fay
As a follow-up, what is a web site that would tell me what dependencies a certain dependency required?  I'm using an older version of Maven (1.1) to do builds so I have to handle the dependencies myself. The website or documentation for the tool/library itself should tell you, right?

m2eclipse error

2010-01-05 Thread Philippe Couas
Hi When i launch m2eclipse 0.94 from RAD7, i have folloing error message. I haven't this error message from MSDOS How avoid it ERROR] Mojo: org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile FAILED for project: com.p:WEB-ENLIGNE-WebService:war:1.0 Reason:

Re: m2eclipse error

2010-01-05 Thread Anders Hammar
The error message says it. You need to define source 1.5 for the compiler plugin. http://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-source-and-target.html /Anders On Tue, Jan 5, 2010 at 22:24, Philippe Couas pco...@orange.fr wrote: Hi When i launch m2eclipse 0.94

Re: Plugins: Goals without a phase

2010-01-05 Thread mfs
If there IS a default phase associated with the plugin's goal/mojo, even then the plugin would execute OUTSIDE of the any of the build life-cycles IF (plugin:goal) executed from the command line ? I understand that above is true (as per your last statement) when the mojo/goal has NO

Re: Plugins: Goals without a phase

2010-01-05 Thread Stephen Connolly
if you execute a mojo directly, eg plugin:goal then the lifecycle is _never_ invoked irrespective of there being a default phase or not Sent from my [rhymes with tryPod] ;-) On 6 Jan 2010, at 00:40, mfs farhan.sar...@gmail.com wrote: If there IS a default phase associated with the plugin's

Re: Plugins: Goals without a phase

2010-01-05 Thread mfs
Got the answer... YES, the goal (even if bound to phase, by default) would execute independent of any build-life-cycles if executed/invoked directly from the command-line. Farhan. mfs wrote: If there IS a default phase associated with the plugin's goal/mojo, even then the plugin would