Re: How can i create a repo search order?

2007-07-20 Thread Denis Cabasson

Maven is always searching first for the local repo.

Searching for dev or release or public repo is not, to my knowledge,
possible. A given artifact should be the same on all repos, so maven will
look for it wherever it can.

Denis.


Baz-6 wrote:
 
 All,
 
 How can i write the pom so that it looks for local repo (local machine),
 then development repo, then release repo, then public repo?
 
 Thanks.
 
 A.
 
 

-- 
View this message in context: 
http://www.nabble.com/How-can-i-create-a-repo-search-order--tf4118179s177.html#a11715961
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Building MyEclipse project with Maven2

2006-08-24 Thread Denis Cabasson

A lot of WTP specific configuration files. For example : .wtpmodules and lots
of file in .settings folder, such as org.eclipse.wst.common.component or
other (depending on WTP version too).

What is this update sources you're talking about?

Denis.



Douglas Ferguson wrote:
 
 Just curious what the plugin does to specifically deal with wtp?
 
 Also, what does update sources do?
 
 D-
 
 -Original Message-
 From: Denis Cabasson [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, August 23, 2006 8:48 AM
 To: users@maven.apache.org
 Subject: Re: Building MyEclipse project with Maven2
 
 
 
 
 Konstantin Bartchenkov wrote:
 
 Hi Guys,
 
 I'm having a problem building myEclipse project using m2.
 The main issue is that it's not in default maven file structure.
 
 
 I don't know exactly what myEclipse is, but your porject looks a lot like
 a
 WTP project to me.
 
 In this case, I'd advocate for the maven file structure, with the
 maven-eclipse-plugin being able to generate correct eclipse settings so
 that
 WTP can correctly recognize your project structure.
 
 See:
 http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html
 
 Cheers!
 
 Denis
 -- 
 View this message in context:
 http://www.nabble.com/Building-MyEclipse-project-with-Maven2-tf2151867.html#a5944810
 Sent from the Maven - Users forum at Nabble.com.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Building-MyEclipse-project-with-Maven2-tf2151867.html#a5959219
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] does mvn install ignore finalName?

2006-08-24 Thread Denis Cabasson

Such files (abc.jar) should be uploaded using assembly plugin, which can
attach another artifact to the instlal phase.
I guess the standard jar is always deployed, to be available for
dependency...

Denis.


Tom Will wrote:
 
 I configured the finalname in the pom to something
 like this:
 finelNameabcfinalName
 
 After mvn install there is a file with the name
 abc.jar in the target folder, as expected.
 But in the maven repository the filename still has the
 form artifactid-version.jar, the finalName seems
 to be ignored.
 
 Is there a way to have a custom filename like abc.jar
 in the repository, or would this violate basic maven2
 concepts?
 
 Tom
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam protection around 
 http://mail.yahoo.com 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-m2--does-mvn-install-ignore-finalName--tf2157431.html#a5960211
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Building MyEclipse project with Maven2

2006-08-23 Thread Denis Cabasson



Konstantin Bartchenkov wrote:
 
 Hi Guys,
 
 I'm having a problem building myEclipse project using m2.
 The main issue is that it's not in default maven file structure.
 

I don't know exactly what myEclipse is, but your porject looks a lot like a
WTP project to me.

In this case, I'd advocate for the maven file structure, with the
maven-eclipse-plugin being able to generate correct eclipse settings so that
WTP can correctly recognize your project structure.

See:
http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html

Cheers!

Denis
-- 
View this message in context: 
http://www.nabble.com/Building-MyEclipse-project-with-Maven2-tf2151867.html#a5944810
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: getting the sources and javadocs

2006-08-22 Thread Denis Cabasson

Just read what Tomislav wrote, this is a feature of the 1.1-SNAPSHOT
version

Denis


Patrick Moore-3 wrote:
 
 Hi --
 
 I tried :
 
  mvn dependency:sources 
 
 and the plugin does not know about the sources goal (which is also not
 reference on the web page given below.)
 
 Is it possible that you are using a snapshot build of this plugin?
 
 -Pat
 
 --- Tomislav Stojcevich [EMAIL PROTECTED] wrote:
 
 The maven-dependency-plugin has a sources goal.
 http://mojo.codehaus.org/dependency-maven-plugin/introduction.html
 
 mvn dependency:sources
 
 This is not available in the released 1.0 version, but it is in the
 1.1-SNAPSHOT.  You need to build from source or get from mojo snapshot
 repository. 

 http://snapshots.maven.codehaus.org/maven2/org/codehaus/mojo/dependency-maven-plugin/1.1-SNAPSHOT/
 
 Or just use the eclipse plugin with the -DdownloadSources=true and
 ignore the generated eclipse files.
 
 On 8/21/06, Patrick Moore [EMAIL PROTECTED] wrote:
  Hi there -
 
  It looks like there is no way with maven2 to get the generated javadoc
 jar
 or
  the sources.jar files. Is this correct?
 
  Been looking for a while for a way and I found this:
  http://jira.codehaus.org/browse/MNG-2248
 
  -Pat
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 tom
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/getting-the-sources-and-javadocs-tf2141673.html#a5930192
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven cannot find dependencies classes from WEB-INF/classes

2006-08-22 Thread Denis Cabasson

I guess this functionality isn't present in Maven, as it goes against the
best practice Maven is trying to enforce.
If an artifact is supposed to be used as both an external dependency and a
webapp, it should be bundled in its own jar, and user as a normal dependency
in both project. To be more precise, the buisness logic (which is to be
re-used as a dependency in another project) should be in another project,
well the user interface, and all the webapp related stuff should stay in the
war project.

Well, at least, that's my point of view on the matter.

Denis.


Matt Raible-3 wrote:
 
 I discovered this same thing last week.
 
 http://www.nabble.com/Re%3A-Converting-AppFuse-to-a-Maven-2-Project-p5870757.html
 
 Seems like a bug to me, but it's probably more of a missing feature.
 What would it take to add this functionality?
 
 Thanks,
 
 Matt
 
 On 8/22/06, alexsun [EMAIL PROTECTED] wrote:

 I use this configuration in my pom file
 ...
 dependency
   groupId!-- groupId of the war --/groupId
   artifactId!-- artifactId of the war --/artifactId
   version! -- version of the war --/version
   typewar/type
 /dependency
 ...

 but during build process get error that classes from war-package not
 found.

 Why?
 --
 View this message in context:
 http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5928069
 Sent from the Maven - Users forum at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Maven-cannot-find-dependencies-classes-from-WEB-INF-classes-tf2147059.html#a5930280
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with modules

2006-08-21 Thread Denis Cabasson

+1 with Arnaud, which means :

?xml version=1.0 encoding=UTF-8?
project

  parent
artifactIdplexus-components/artifactId
groupIdorg.codehaus.plexus/groupId
version1.1.5/version
  /parent

  modelVersion4.0.0/modelVersion
  artifactIdplexus-yahoo-search/artifactId
  namePlexus Yahoo! Search Web Services Client/name
  version1.0-alpha-1-SNAPSHOT/version
  packagingpom/packaging
  descriptionA Plexus client component for Yahoo! Search Web
Services./description

  modules
moduleplexus-yahoo-search-image/module
  /modules

Denis.
-- 
View this message in context: 
http://www.nabble.com/Problem-with-modules-tf2138852.html#a5903352
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: have to manually build each submodule?

2006-08-21 Thread Denis Cabasson

You are definitly missing something :)

For the eclipse part, you should run eclipse:eclipse from the root project
to use project dependency instead of binary dependency (ie a module will
directly use another module as its dependency instead of using the produced
jar).

For the reactor part (the building of the parent project), you certainly
have something wrong with your projects. Are all the version numbers up to
date? Do you have any cyclic dependencies? 

If you really can't have it work, fill in a JIRA issue, but this *should*
work. (and in my case, it is working, as in most cases).

Denis.

Wojciech Biela wrote:
 
 Hi
 
 I think I'm missing something, I hope I'm missing something, otherwise
 this is a great joke ..
 
 When I have a project and multiple subprojects depending on eachother.
 I update all of them and then when I build the master project, each
 submodule crashes because it's dependencies are not up to date. I have
 to go and manually mvn install each submodule that had changed and
 only then I can properly build the whole thing from the master module
  how can I make this more usable ???
 
 the problem gets more irritating when I have the whole system under
 eclipse and after update all submodules (as eclipse projects) light up
 red 
 
 -- 
 Wojtek Biela
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/have-to-manually-build-each-submodule--tf2140589.html#a5908698
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Errors during site deploy

2006-08-17 Thread Denis Cabasson

The first is worrying, and means you have set the pom.url property in your
POM, meaning some of the links on your website *could* be broken.

The other errors can be discarded (don't ask me where they come from).

Denis.


Jeff Mutonho wrote:
 
 Should I be worried about the following errors that are poping out during
 site-deploy?
 
 [WARNING] No URL defined for the project - decoration links will not be
 resolved[INFO] Generate Continuous Integration report.
 [ERROR] VM #displayTree: error : too few arguments to macro. Wanted 2 got
 0
 [ERROR] VM #menuItem: error : too few arguments to macro. Wanted 1 got 0
 
 However M2 proceeds  , with the generating of the project website.
 
 
 
 Jeff  Mutonho
 
 GoogleTalk : ejbengine
 Skype: ejbengine
 Registered Linux user number 366042
 
 

-- 
View this message in context: 
http://www.nabble.com/Errors-during-site-deploy-tf2121862.html#a5852778
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Maven Antrun Multiple Executions

2006-08-17 Thread Denis Cabasson

exections
  execution
id0/id
phase/phase
configuration.../configuration
  /execution
  execution
id1/id
...
  /execution
/executions

Denis.



Peter.Pilgrim wrote:
 
 
 
 [0]  You cannot have two plugin executions with the same (or
 missing) id/
 elements.
 Offending execution
 
 Id: 'default'
 Plugin:'org.apache.maven.plugins:maven-antrun-plugin'
 
 
 How do I configure the id for each execution XML fragment?
 
 
 --
 Peter Pilgrim
 UBS Investment Bank, 
 PTS Portal / IT FIRC OPS LDN,
 100 Liverpool Street, London EC2M 2RH, United Kingdom
 :: Java EE / E-Commerce / Enterprise Integration / Development ::
 
 Visit our website at http://www.ubs.com
 
 This message contains confidential information and is intended only
 for the individual named.  If you are not the named addressee you
 should not disseminate, distribute or copy this e-mail.  Please
 notify the sender immediately by e-mail if you have received this
 e-mail by mistake and delete this e-mail from your system.
 
 E-mail transmission cannot be guaranteed to be secure or error-free
 as information could be intercepted, corrupted, lost, destroyed,
 arrive late or incomplete, or contain viruses.  The sender therefore
 does not accept liability for any errors or omissions in the contents
 of this message which arise as a result of e-mail transmission.  If
 verification is required please request a hard-copy version.  This
 message is provided for informational purposes and should not be
 construed as a solicitation or offer to buy or sell any securities or
 related financial instruments.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-m2--Maven-Antrun-Multiple-Executions-tf2121980.html#a5853952
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Maven Antrun Multiple Executions

2006-08-17 Thread Denis Cabasson

I don't know if you can call a plugin execution based on its id (this would
sound a sensible thing to do), but what I know you can do is call the phase
your plugin is bound to. Generally, if you phase is carefully chosen, that
whould be enough: executing the plugin outside of a given phase means your
build isn't completly predictable.

Denis


Andrius Šabanas wrote:
 
 Denis Cabasson wrote:
 exections
   execution
 id0/id
 phase/phase
 configuration.../configuration
   /execution
   execution
 id1/id
 ...
   /execution
 /executions
 
 Denis.
 
 Hello,
 
 Is it possible to independently launch a single plugin execution from 
 the command like, for example: mvn antrun:run, and specify an 
 execution id somehow?
 
 Andrius
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-m2--Maven-Antrun-Multiple-Executions-tf2121980.html#a5854945
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Error during page generation

2006-08-17 Thread Denis Cabasson

The second link looks like a 404 error to me.

Denis.


Jeff Mutonho wrote:
 
 In my pom i have this :
  plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-javadoc-plugin/artifactId
 configuration
   links
 linkhttp://java.sun.com/j2se/1.4.2/docs/api/link
linkhttp://plexus.codehaus.org/ref/1.0-alpha-9/apidocs/link
   /links
 /configuration
   /plugin
 
 
 
 
 
 Jeff  Mutonho
 
 GoogleTalk : ejbengine
 Skype: ejbengine
 Registered Linux user number 366042
 
 

-- 
View this message in context: 
http://www.nabble.com/Error-during-page-generation-tf2122367.html#a5855002
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PMD report plugin fails the build

2006-08-09 Thread Denis Cabasson

Add the pmd plugin to your reporting section instead of your build section,
and it shouldn't breal the build anymore (but still generate the report).

Denis.


Ciprian Duma wrote:
 
 How can I configure the PMD plugin not to fail the build when
 generating the report? I tried passing the parameter failOnViolation
 with value false but it's ignored. And I dont want to configure this
 plugin in the build section, it should be called only when is site
 is generated.
 
 The classes that fail this report were automatically generated.
 
 Thx,
 
 Ciprian
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/PMD-report-plugin-fails-the-build-tf2077581.html#a5722804
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Compiler plugin: trying to set compileSourceRoots

2006-08-09 Thread Denis Cabasson


Alexander Hars wrote:
 
 Hi,
 
 I am trying to specify multiple source locations for the compiler-plugin 
 (goal: test-compile). How do I accomplish that?
 
 I have tried to set the compileSourceRoots in the configuration of the 
 compiler plugin:
 configuration
   compileSourceRootssrc/test/main;src/test2/main/compileSourceRoots
 /configuration
 
 But I always get an error:
   Cannot override read-only parameter: compileSourceRoots
 
 Is there a different way by which I can set the property
   project.testCompileSourceRoots
 separately?
 
 Thanks,
 
  Alexander
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

You can't do that in the compiler plugin.
You have to do you own custom maven plugin if you want to add sources to the
compile phase.

Sample mojo (kudos to emmanuel Venisse):
public class AddSourcesDirectoryMojo
extends AbstractMojo
{
/**
 * @parameter
 */
private List sources;

/**
 * @parameter expression=${project}
 *
 * @required
 */
private MavenProject project;

public void execute()
throws MojoExecutionException
{
if ( project != null  sources != null )
{
for ( Iterator i = sources.iterator(); i.hasNext(); )
{
String sourceDirectory = (String) i.next();
project.addCompileSourceRoot( sourceDirectory );
}
}
}
}

Denis.
-- 
View this message in context: 
http://www.nabble.com/Compiler-plugin%3A-trying-to-set-compileSourceRoots-tf2079114.html#a5727585
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: castor doclet plugin

2006-08-09 Thread Denis Cabasson


mmistroni wrote:
 
 hi all,
   with maven1 i have been usign castordoclet (as part of xdoclet) to
 generate castor mapping files for my classes...
 it looks like it is not in m2 xdoclet plugin..
 
 am i wrong or is there a different solution for generating castor mapping
 files?
 
 thanks in advance and regards
  marco
 
 
 There is a castor plugin in the mojo project:
http://mojo.codehaus.org/castor-maven-plugin/

You should have a look at it.

Denis.
-- 
View this message in context: 
http://www.nabble.com/castor-doclet-plugin-tf2079368.html#a5727738
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Compiler plugin: trying to set compileSourceRoots

2006-08-09 Thread Denis Cabasson


Ian Springer wrote:
 
 | -Original Message-
 | From: Denis Cabasson [mailto:[EMAIL PROTECTED] 
 | Sent: Wednesday, August 09, 2006 11:07 AM
 | To: users@maven.apache.org
 | Subject: Re: Compiler plugin: trying to set compileSourceRoots
 | 
 | Alexander Hars wrote:
 |  
 |  Hi,
 |  
 |  I am trying to specify multiple source locations for the 
 | compiler-plugin 
 |  (goal: test-compile). How do I accomplish that?
 |  
 |  I have tried to set the compileSourceRoots in the 
 | configuration of the 
 |  compiler plugin:
 |  configuration
 |
 | compileSourceRootssrc/test/main;src/test2/main/compileSourceRoots
 |  /configuration
 |  
 |  But I always get an error:
 |Cannot override read-only parameter: compileSourceRoots
 |  
 |  Is there a different way by which I can set the property
 |project.testCompileSourceRoots
 |  separately?
 |  
 |  Thanks,
 |  
 |   Alexander
 |  
 | 
 | You can't do that in the compiler plugin.
 | You have to do you own custom maven plugin if you want to add 
 | sources to the
 | compile phase.
 | 
 | Sample mojo (kudos to emmanuel Venisse):
 | public class AddSourcesDirectoryMojo
 | extends AbstractMojo
 | {
 | /**
 |  * @parameter
 |  */
 | private List sources;
 | 
 | /**
 |  * @parameter expression=${project}
 |  *
 |  * @required
 |  */
 | private MavenProject project;
 | 
 | public void execute()
 | throws MojoExecutionException
 | {
 | if ( project != null  sources != null )
 | {
 | for ( Iterator i = sources.iterator(); i.hasNext(); )
 | {
 | String sourceDirectory = (String) i.next();
 | project.addCompileSourceRoot( sourceDirectory );
 | }
 | }
 | }
 | }
 | 
 | Denis.
 | -- 
 
 
 Or you can use the build-helper plugin -
 http://mojo.codehaus.org/build-helper-maven-plugin/howto.html
 
 -Ian
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

I didn't know of a plugin doing this! Seems nice enough and should do
exactly the job.

Of course, an existing plugin is always prefered to a home made one.

Denis.

-- 
View this message in context: 
http://www.nabble.com/Compiler-plugin%3A-trying-to-set-compileSourceRoots-tf2079114.html#a5728267
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] best practices on defining dependencies: i.e. how to avoid the kitchen sink

2006-08-08 Thread Denis Cabasson

Two things can be done on this matter:

Short term solution: add an extra excludes/exclude element to your
dependency which allows for transitive dependencies filtering. (You can
include it in your dependencyManagement section of your parent pom if your
project is multi-module).

Long term solution: If you are confident pom is wrong and dependency
scope/optionnal shoudl be corrected, you can submit an issue to
http://jira.codehaus.org/browse/MEV after having read
http://maven.apache.org/guides/mini/guide-maven-evangelism.html

Denis


baerrach wrote:
 
 I'm sure there are probably other pom's out there that do not
 correctly define the dependencies. So in these cases what is the
 suggested way of overriding them so they are not included?  Including
 the dependency again and using optional doesn't fix the problem,
 nor does changing the scope to provided, but this might be because
 EasyConf depends on xdoclet:xdoclet:jar:1.2.1 which is not available
 at ibiblio.
 
 Cheers
 Bae
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-m2--best-practices-on-defining-dependencies%3A-i.e.-how-to-avoid-the-kitchen-sink-tf2070286.html#a5701865
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: console plugin

2006-08-08 Thread Denis Cabasson

Maven 2 is just so much faster (at startup and after) than Maven 1, that this
plugin isn't needed anymore.
So I guess there is no replacement for this plugin for the time being.

Denis.


Ishaaq Chandy wrote:
 
 Hi all,
 I've been using maven 1.0 till now and just recently started using 2.0 a
 couple of days ago. I used to use the console plugin quite a bit in 1.0,
 but
 I can't seem to find it in 2.0. Is it no longer available or has it been
 replaced with something else?
 
 Thanks,
 Ishaaq
 
 

-- 
View this message in context: 
http://www.nabble.com/console-plugin-tf2070225.html#a5701913
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Automating install:install-file

2006-08-08 Thread Denis Cabasson

I have already encountered your porblem, and the only solution I have found
so far is having a ant build setting every needed jar in place. This ant
script can be called from the maven build (via the antrun plugin).

While this is not a completly satisfying solution, I have found no other
solution so far

Denis.

Dave Syer wrote:
 
 That's not the case (and I wouldn't bother posting to a forum if all I
 needed to do was build my own jar files and install them).  I am talking
 about large numbers of precompiled, prepackaged third party jars.
 

-- 
View this message in context: 
http://www.nabble.com/Automating-install%3Ainstall-file-tf2071058.html#a5702161
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Proximity Setup

2006-08-08 Thread Denis Cabasson

Site (proximity.abstracthorizon.org) is up, and the only place to find good
documentation about proximity.

Denis.


Sam Merrell wrote:
 
 I have been digging around for some good Proximity documentation, but I
 can't seem to find any. It looks like the proximity site (
 proximity.abstracthorizon.org) is down right now and Google isn't helping
 much either. Does anyone have any good links on how to work with
 Proximity?
 Specifically, I'm trying to run my in-house repositories through
 Proximity,
 but I can't seem to figure out how to deploy to it. I have it proxying the
 central repository, but thats about it right now. Any help would be
 appreciated. Thank you!
 
 

-- 
View this message in context: 
http://www.nabble.com/Proximity-Setup-tf2071131.html#a5702235
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to get an up to date plugin?

2006-08-08 Thread Denis Cabasson


Dave Syer wrote:
 
 Yes, I've read the docs at
 http://maven.apache.org/guides/development/guide-testing-development-plugins.html.
  
 But I still don't seem to be able to get an update of
 maven-install-plugin.  I can see mvn downloading a snapshot from the
 snapshot repo, but it is still an old version (2.0-SNAPSHOT).
 
 I can see in the source code that this plugin changed 5 months ago to fix
 the problem I am experiencing [MINSTALL-12], but I can't find an up to
 date distribution.  Can this be correct?
 
 What is the process for core plugins like this one to be released to
 central / snapshot repository?  Shouldn't a bug fix from 5 months ago have
 reached the community by now?  Is there some documentation to help me with
 this (I scoured the maven web s ite but came up with nothing)?
 

Just check it out from SCM and build it for yourself. (mvn install on the
checked out project should do the trick)

Maven plugins are published on quite an  unregular basis (even on snapshot
repository), as far as I can see :)

For release on central, you get a vote of Maven Comitters and PMC members
before releasing a 'stable' version of a plugin (or of whichever else
artifact).

Denis.

-- 
View this message in context: 
http://www.nabble.com/How-to-get-an-up-to-date-plugin--tf2072249.html#a5705257
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] maven-antrun-plugin 2 different taks in different phases

2006-08-08 Thread Denis Cabasson

http://maven.apache.org/plugins/maven-antrun-plugin/usage.html

Just specify two execution block in your plugin declaration. Each have its
own phase indication (and this is the same general mecanism for any plugin).

Denis.


Fred.Hauschel wrote:
 
 Hi all,
 how can i run different tasks in different phases?
 
 Thanks Fredy
  
 
 Kabel Deutschland bietet Ihnen Internet, Telefonieren und Fernsehen aus
 einer Hand. Informieren Sie sich über unsere Produkte unter 
 
 www.kabeldeutschland.de
  
 Diese E-Mail und etwaige Anhänge enthalten vertrauliche und/oder rechtlich
 geschützte Informationen. Wenn Sie nicht der richtige Adressat sind,
 benachrichtigen Sie bitte den Absender und vernichten Sie anschließend
 diese Mail und die Anlagen.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-m2--maven-antrun-plugin-2-different-taks-in-different-phases-tf2071914.html#a5705392
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Site deployment

2006-08-08 Thread Denis Cabasson


apill wrote:
 
 I have quoted a section of the site plugin documentation at the end of
 this post. The NOTE says that if I don't place a trailing slash at the
 end of the site deploy url, then child projects of this project will
 inherit the same location. I have tried this and it fails.
 
 I have set the site deploy URL to
 scp://path-to-website-on-server/${artifactId}/${pom.version} in my
 parent pom.xml. In the child pom I haven't set anything, so I would
 expect the child to deploy to:
 scp://path-to-website-on-server/${child-artifactId}/${child- 
 pom.version}
 
 instead it deploys to
 
 scp://path-to-website-on-server/${child-artifactId}/${child- 
 pom.version}/${child-artifactId}
 
 What can I do to solve this?
 
 Thanks
 

Looks like the documentation is not up to date... child-artifactId is always
appended to parent distributionManagement.url.

AFAIK, your only option there is to repeat in each of your pom the url of
the distributionManagement part.

Maybe you should fill a JIRA request to see this documentation fixed.

Denis.

-- 
View this message in context: 
http://www.nabble.com/Site-deployment-tf2072573.html#a5708020
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to get an up to date plugin?

2006-08-08 Thread Denis Cabasson

Building the latest version of the plugins require to set the snapshot
repository.
Have a look at the guide:
http://maven.apache.org/guides/development/guide-testing-development-plugins.html

Your required dependency can be found there:
http://people.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-plugins/2-SNAPSHOT/

I guess you shoudl correct parent pom to version 1 of maven-plugins, since
current 2-SNAPSHOT version will require you to get maven-2.0.5-SNAPSHOT. Or
else, you can still install the latest version of maven :)

Denis.


Dave Syer wrote:
 
 Thanks.  I'll try and follow it through the JIRA updates.  You'd think
 there would be an easy way to find out the status of core plugins like
 install from the main maven website.  Oh well...
 
 But what do I have to build to get this to work?  If I just try to build
 the plugin (against 2.0.4) it complains:
 
 ~/dev/opvantage/maven/maven-install-pluginmvn install
 [INFO] Scanning for projects...
 [INFO]
 
 [ERROR] FATAL ERROR
 [INFO]
 
 [INFO] Failed to resolve artifact.
 
 GroupId: org.apache.maven.plugins
 ArtifactId: maven-plugins
 Version: 2-SNAPSHOT
 
 Reason: Unable to download the artifact from any repository
 
   org.apache.maven.plugins:maven-plugins:pom:2-SNAPSHOT
 
 from the specified remote repositories:
   central (http://repo1.maven.org/maven2)
 
 so there are dependencies that cannot be resolved?  This is all a bit too
 complicated in my humble op.
 

-- 
View this message in context: 
http://www.nabble.com/How-to-get-an-up-to-date-plugin--tf2072249.html#a5708124
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: incorrect war file structure

2006-08-08 Thread Denis Cabasson


Jeff Mutonho wrote:
 
 On 8/8/06, Stefan Magnus Landrø [EMAIL PROTECTED]
 wrote:

 Hi Jeff,

 properties normally go in the src\main\resources

 BTW, You seem to use a strange layout for your directories. Do you really
 want it to be that way?
 Read Better builds with maven for the recommended dir. structure

 
 
 
 Thats just the way the project is structured and am powerless to
 change it.
 

This is eclipse WTP directory layout.

You should really work the other way round: take maven's directory structure
(far better), and create the eclipse descriptor with:
mvn -Dwtpversion=1.0 eclipse:eclipse

See http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html for more
details

Denis.
-- 
View this message in context: 
http://www.nabble.com/incorrect-war-file-structure-tf2072468.html#a5708197
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: incorrect war file structure

2006-08-08 Thread Denis Cabasson


Jeff Mutonho wrote:
 
 On 8/8/06, Denis Cabasson [EMAIL PROTECTED] wrote:



 Jeff Mutonho wrote:
 
  On 8/8/06, Stefan Magnus Landrø [EMAIL PROTECTED]
  wrote:
 
  Hi Jeff,
 
  properties normally go in the src\main\resources
 
  BTW, You seem to use a strange layout for your directories. Do you
 really
  want it to be that way?
  Read Better builds with maven for the recommended dir. structure
 
  
 
 
  Thats just the way the project is structured and am powerless to
  change it.
 

 This is eclipse WTP directory layout.

 You should really work the other way round: take maven's directory
 structure
 (far better), and create the eclipse descriptor with:
 mvn -Dwtpversion=1.0 eclipse:eclipse

 See http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html for
 more
 details

 Denis.
 --
 View this message in context:
 http://www.nabble.com/incorrect-war-file-structure-tf2072468.html#a5708197
 Sent from the Maven - Users forum at Nabble.com.


 
 I understand that , that would work better but I do not have the liberty
 to
 change the directory structure now to the maven structure.The war plugin
 in
 document (
 http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
 talk about specifying what it calls an external resource using the
 webResources
 resource
  directory/path-to-external-directory/directory
 
 and then  under the section Overriding the default destination directory
 of
 a web resource) says it should be possible to specify what it calls an
 external resource and override the target directory ie the directory where
 you want the resources to be copied to , by specifying  targetPath
 in my case  its targetPathWEB-INF/classes/targetPath
 
 I just don't understand why I won't work.
 
 Jeff
 
 

webRessources, are ressources bundled in your war archive...

You should rather specify the build/ressources element in your POM to
include the correct ressources, and let the maven-war-plugin include those
ressources in your produced war.

Something like:
...
build
  ...
  resources
resource
  directoryWebContent/JavaSource/directory
  excludes
exclude**/*.java/exclude
  /excludes
/resource
  /resources
  ...
/build
...

That should work (alternatively, you can specify includes instead of
excludes tags).

Denis
-- 
View this message in context: 
http://www.nabble.com/incorrect-war-file-structure-tf2072468.html#a5708705
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven Surefire goals available html?

2006-08-08 Thread Denis Cabasson

Plugin goals can be found in Project Reports section / plugin documentation.

Staging new version of the plugin documentation can be found there:
http://people.apache.org/~aramirez/maven-surefire-plugin/

Denis.


Clifton Craig wrote:
 
 Hello,
 
 When I navigate to http://maven.apache.org/plugins/maven-surefire-plugin/
 I 
 don't see the available goals for the plugin? I have to guess and URL hack
 to 
 get to the docs I want, for example 
 http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html. It's 
 been like this for some time now. Is it accidental? Can we get the
 available 
 goals page restored?
 
 - 
 Clifton C. Craig, Software Engineer
 Tell me what's up...
 visit: http://codeforfun.wordpress.com
 [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Maven-Surefire-goals-available-html--tf2074252.html#a5712354
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: incorrect war file structure

2006-08-08 Thread Denis Cabasson


Jeff Mutonho wrote:
 
 On 8/8/06, Denis Cabasson [EMAIL PROTECTED] wrote:



 Jeff Mutonho wrote:
 
  On 8/8/06, Denis Cabasson [EMAIL PROTECTED] wrote:
 
 
 
  Jeff Mutonho wrote:
  
   On 8/8/06, Stefan Magnus Landrø [EMAIL PROTECTED]
   wrote:
  
   Hi Jeff,
  
   properties normally go in the src\main\resources
  
   BTW, You seem to use a strange layout for your directories. Do you
  really
   want it to be that way?
   Read Better builds with maven for the recommended dir. structure
  
   
  
  
   Thats just the way the project is structured and am powerless to
   change it.
  
 
  This is eclipse WTP directory layout.
 
  You should really work the other way round: take maven's directory
  structure
  (far better), and create the eclipse descriptor with:
  mvn -Dwtpversion=1.0 eclipse:eclipse
 
  See http://maven.apache.org/plugins/maven-eclipse-plugin/wtp.html for
  more
  details
 
  Denis.
  --
  View this message in context:
 
 http://www.nabble.com/incorrect-war-file-structure-tf2072468.html#a5708197
  Sent from the Maven - Users forum at Nabble.com.
 
 
 
  I understand that , that would work better but I do not have the
 liberty
  to
  change the directory structure now to the maven structure.The war
 plugin
  in
  document (
 
 http://maven.apache.org/plugins/maven-war-plugin/examples/adding-filtering-webresources.html
  talk about specifying what it calls an external resource using the
  webResources
  resource
   directory/path-to-external-directory/directory
 
  and then  under the section Overriding the default destination
 directory
  of
  a web resource) says it should be possible to specify what it calls an
  external resource and override the target directory ie the directory
 where
  you want the resources to be copied to , by specifying  targetPath
  in my case  its targetPathWEB-INF/classes/targetPath
 
  I just don't understand why I won't work.
 
  Jeff
 
 

 webRessources, are ressources bundled in your war archive...

 You should rather specify the build/ressources element in your POM to
 include the correct ressources, and let the maven-war-plugin include
 those
 ressources in your produced war.

 Something like:
 ...
 build
   ...
   resources
 resource
   directoryWebContent/JavaSource/directory
   excludes
 exclude**/*.java/exclude
   /excludes
 /resource
   /resources
   ...
 /build
 ...

 That should work (alternatively, you can specify includes instead of
 excludes tags).

 Denis
 --
 View this message in context:
 http://www.nabble.com/incorrect-war-file-structure-tf2072468.html#a5708705
 Sent from the Maven - Users forum at Nabble.com.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 I just noticed that the example  provided on the plugin website  has a
  resource tag nested inside another resource , as shown below :
 
 
 Overriding the default destination directory of a web resource
 
 By default web resources are copied to the root of the war, as shown in
 the
 previous example. To override the default destination directory, specify
 the
 target path.
 
  [...]
 configuration
   webResources
 resource
  [...]
  resource
directoryconfigurations/directory
!-- override the destination directory for this resource --
targetPathWEB-INF/targetPath
!-- enable filtering --
filteringtrue/filtering
excludes
   exclude**/propertiesexclude
/excludes
  /resource
 /resource
   /webResources
 /configuration
   [...]
 
 
 
 
 I tried to do it the same way , the build started and then   got stumped
 with an error message saying
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Failed to configure plugin parameters for:
 org.apache.maven.plugins:maven
 -war-plugin:2.0
 
 
 
 Cause: Cannot find setter nor field in org.apache.maven.model.Resource for
 'resource'
 
 
 Is this a bug in the plugin?Has anyone succeded in overriding the default
 destination directory of a web resource using this example on the website?
 
 
 
 
 
 Jeff  Mutonho
 
 GoogleTalk : ejbengine
 Skype: ejbengine
 Registered Linux user number 366042
 
 

You should really consider using the resources/resource tag in the build
section of your POM. This is the right place to do what you want, not in the
war plugin configuration...

Denis.

-- 
View this message in context: 
http://www.nabble.com/incorrect-war-file-structure-tf2072468.html#a5712385
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: The mvn script errors out when JAVA_HOME is not defined

2006-08-07 Thread Denis Cabasson

Maven is juist checking that your JAVA_HOME is correctly set. It definitly
needs to know where JAVA is installed.

IMHO, there is no such thing as a standard location for Java

Denis.


Weiqi Gao wrote:
 
 On 8/7/06, Vincent Siveton [EMAIL PROTECTED] wrote:
 JAVA_HOME is a requirement
 http://maven.apache.org/download.html#installation
 
 That piece of documentation seems to be wrong.  By reading the script,
 I certainly get the impression that the script is furiously trying to
 figure out where my JAVA_HOME is when the JAVA_HOME environment is not
 set.
 
 Right after the block of script I cited, there is another check for
 JAVA_HOME and it gives a warning if JAVA_HOME is not set.
 
 If Maven is going to require the setting of JAVA_HOME anyway, all that
 extra script are pointless.
 
 Of course I'm advocating that Maven not requiring me to set JAVA_HOME
 if I have installed my JDK in the standard location (such as
 C:\Program Files\Java\jdk1.5.0_12.).
 
 -- 
 Weiqi Gao (高为奇)
 [EMAIL PROTECTED]
 http://www.weiqigao.com/blog/
 
 

-- 
View this message in context: 
http://www.nabble.com/The-mvn-script-errors-out-when-JAVA_HOME-is-not-defined-tf2063191.html#a5685379
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: svn check-in history report

2006-08-03 Thread Denis Cabasson

Changelog plugin hasn't been released yet.

You have to use a snpashot version, provided in the snapshot repository, as
described here:
http://maven.apache.org/guides/development/guide-testing-development-plugins.html

Denis.


Sanjiv Jivan wrote:
 
 That's what I tried. I get the following error message
 
 [INFO]
 
 [INFO] The plugin 'org.apache.maven.plugins:maven-changelog-plugin' does
 not
 exist or no valid version could be found
 
 Do I need to point to some other plugin repository?
 
 Thanks,
 Sanjiv
 
 On 8/3/06, Roald Bankras [EMAIL PROTECTED] wrote:

 Add this to your pom

 project

scm
connectionscm:svn{PUT YOUR SVN URL HERE}/connection
/scm

   reporting
plugins
...
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-changelog-plugin/artifactId
/plugin
/plugins
/reporting
 /project

 Roald Bankras
 Software Engineer
 JTeam b.v.

 -Original Message-
 From: Sanjiv Jivan [mailto:[EMAIL PROTECTED]
 Sent: Thursday, August 03, 2006 3:35 PM
 To: Maven Users List
 Subject: Re: svn check-in history report

 Thanks but where for I get this plugin from?
 http://www.ibiblio.org/maven2/org/apache/maven/plugins/  does not have
 this
 plugin.
 Google took me here
 http://www.ibiblio.org/pub/packages/maven2/maven/maven-changelog-plugin/but
 how do I point to this location?

 Sanjiv

 On 8/3/06, Roald Bankras [EMAIL PROTECTED] wrote:
 
  Take a look at the maven changelog plugin
 
  Roald Bankras
  Software Engineer
  JTeam b.v.
  -Original Message-
  From: Sanjiv Jivan [mailto:[EMAIL PROTECTED]
  Sent: Thursday, August 03, 2006 1:19 AM
  To: Maven Users List
  Subject: svn check-in history report
 
  Is there a report that lists the recent checkins into SVN along with
 date
  /
  author info?
 
  Thanks,
  Sanjiv
 
 
  --
  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.1.394 / Virus Database: 268.10.5/405 - Release Date:
 8/1/2006
 
 
  --
  No virus found in this outgoing message.
  Checked by AVG Free Edition.
  Version: 7.1.394 / Virus Database: 268.10.5/405 - Release Date:
 8/1/2006
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 


 --
 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.394 / Virus Database: 268.10.5/406 - Release Date: 8/2/2006


 --
 No virus found in this outgoing message.
 Checked by AVG Free Edition.
 Version: 7.1.394 / Virus Database: 268.10.5/406 - Release Date: 8/2/2006


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/svn-check-in-history-report-tf2042910.html#a5633244
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: SureFire (and surefire-reports) plugins

2006-08-03 Thread Denis Cabasson

Just run mvn test, instead of building the surefire report. This way, the
build if there are tests failures (but after having executed all of your
tests for the current module).

@Jon : just do the opposite :) run mvn surefire-report:report instead of
anything else, should build a surefire report, whatever the result of the
test cas. I guess you can't use your behaviour (ie breaking the build after
generation of report), but you can still get surefire report this way.

Denis.


Dennis Klavans wrote:
 
 
 This is odd. I just posted a request for the exact opposite to happen. I
 can't get the thing to stop on the first failure. First, are you running
 mvn surefire-report:report? If so then perhaps we could help each other by
 comparing environments. What version of maven are you using? I am on the
 latest: 2.04.
 
 Also, the property you refered to is actually testFailureIgnore. Just
 wanted to confirm that. Still, I did not have that set and mine would not
 stop. Having looked at the surefire source, I cannot see what would make
 it stop. Perhaps if the tests were themselves defined in a suite within
 the testing framework, that suite would fail at the first test? My tests
 are all individually defined and surefire is the controller running them.
 I am using the JUnit framework and JUnit seems to trap the exception from
 an invididual test so that is why surefire keeps going. 
 
 
 
 
  --- On Thu 08/03, Jon SlinnHawkins  [EMAIL PROTECTED]  wrote:
 From: Jon SlinnHawkins [mailto: [EMAIL PROTECTED]
 To: users@maven.apache.org
 Date: Thu, 3 Aug 2006 09:18:31 +0100
 Subject: SureFire (and surefire-reports) plugins
 
 Hi All,brbrIs there any way of stop a failed surefire unit from
 immediatley failing a brmaven build, and allowing it to go on to create
 the report using the brsurefire-report plugin.  Then, after the reports
 hasve been created fail the brbuild.brbrI want to see reports of
 failed testsbrbrIs this possible... Can you switch off
 halt-on-failure for the Surefire brplugin, and switch it on for the
 report plugin ?brbrThanksbrbrJon
 brbrbrbrbr-brTo
 unsubscribe, e-mail: [EMAIL PROTECTED]brFor additional
 commands, e-mail: [EMAIL PROTECTED]brbr
 
 ___
 Join Excite! - http://www.excite.com
 The most personalized portal on the Web!
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/SureFire-%28and-surefire-reports%29-plugins-tf2044327.html#a564
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] spring.tld

2006-08-03 Thread Denis Cabasson

http://www.ibiblio.org/maven2/org/springframework/spring-webmvc/1.2.8/spring-webmvc-1.2.8.jar\META-INF\spring.tld

Denis


ben short-2 wrote:
 
 Hi,
 
 Anyone know where the spring.tld taglib is on the maven repository?
 
 Ben
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-m2--spring.tld-tf2045852.html#a5633502
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven site into Trac?

2006-08-02 Thread Denis Cabasson

That would indeed be nice, and I'd like to do the same thing for JIRA.
Problem is I don't know much about how this is taken care of (either in JIRA
or in TRAC). If anyone of you has a clear idea of this could be handled,
please post a JIRA issue for the maven-changes-plugin, and I'll have a look
at it.

Cheers!

Denis.


Doug Douglass-2 wrote:
 
 On the other hand, it would be very nice to not have to write a
 changes.xmlfile at all and just use the Trac timeline RSS feed to
 create it completely
 on the fly.
 
 Just some thoughts.
 
 Doug
 
 http://maven.apache.org/plugins/maven-changes-plugin/changes-report-mojo.html
 
 On 8/1/06, Srepfler Srgjan [EMAIL PROTECTED] wrote:

 Andrew Williams wrote:
  I cannot say without seeing exactly what you want. I have not looked
  into the changes plugin much - what exactly are you looking for? Just a
  handler for Trac changes so the changes plugin outputs links that work
  inside MavenTrac?
 
  Andy
 
  On Tue, 2006-08-01 at 22:55 +0200, Srepfler Srgjan wrote:
 
  Hi Andrew,
  Do you feel you know trac/maven integration enough so that you could
 add
  support for it to the changes plugin so that we can use trac instead
 of
  jira as issue tracker?
  Srgjan
 
  Andrew Williams wrote:
 
  OK, OK so here it is - you can grab MavenTrac, the Trac plugin for
 Maven
  sites here: http://dev.rectang.com/projects/maventrac/
  There are (what I think classify as) comprehensive instructions, but
 let
  me know on the site or on email if you have any troubles using it.
  (Quite possible, as it is still early)
 
  Sorry it took a while, but I was working on TraM a Trac-Multi
 wrapper
  which you can see in action on that site
  (http://dev.rectang.com/projects/). Thought it might interest some
 folk
  here too...
 
  Andy
 
  p.s. why not check out ContinuTrac too ;)
  (http://dev.rectang.com/projects/continutrac/)
 
  p.p.s Sorry for the adverts!
 
  On Sun, 2006-07-30 at 14:10 -0700, Josh Long wrote:
 
 
  The clamoring masses have it..
 
  please release it
 
  On 7/30/06, Srepfler Srgjan [EMAIL PROTECTED] wrote:
 
 
  YES!
  :)
  Srgjan
 
  Andrew Williams wrote:
 
 
  :)
 
  I am the dev behind dev.rectang.com and can tell you it is not
 manually
  done :)
 
  I have a trac plugin that is almost ready for a release that does
 it
  for me.
 
  step 1) install plugin, tell it where the site is generated to (on
 the
  filesystem)
  step 2) set your site to use the maven-trac-skin (or whatever I
 call it
  when it is released) and deploy it into the expected area.
 
  Shall I announce here when it is ready perhaps?
 
  Andrew
 
  Valerio Schiavoni wrote:
 
 
  hello everyone,
  any one knows how to 'merge' the maven generated website within
 Trac, as
  it's done here:
  http://dev.rectang.com/projects/javautil/maven/
 
  i think they did it 'manually'..but maybe not.
 
  thanks,
  valerio
 
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 I unfortunately don't have a jira instance with which I can play with
 but if you take a look at this page:
 http://maven.apache.org/plugins/maven-changes-plugin/usage.html
 you can see under How to generate a JIRA report how they declare they
 want to use it directly to generate a report.
 I don't know what kind of a result does JIRA gives back to the plugin so
 I guess it's possible that Trac doesn't support that kind of export
 capability but I wouldn't be surprised if it's not such a big deal to
 implement it. This would allow I believe creating a changes list getting
 from trac all issues closed (or existing) for the release cycle in
 question.
 Srgjan

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 
 

-- 
View this message in context: 
http://www.nabble.com/maven-site-into-Trac--tf2002924.html#a5608827
Sent from the Maven - Users forum at Nabble.com.



RE: [M2] Surefire POJO / Inner class issue

2006-08-02 Thread Denis Cabasson

Guess this issue is related to:
http://jira.codehaus.org/browse/SUREFIRE-44

You can just vote for it, or better, find a way to fix it, if you feel like
it :)

Denis.


Chris Hilton-2 wrote:
 
 I also ran into this issue and found this page with a workaround:
 
 http://www.jroller.com/page/gridhaus?entry=maven2_testing_madness
 
 Basically, just configure Surefire to exclude the problem classes, like
 this worked for me:
 
   plugin
 artifactIdmaven-surefire-plugin/artifactId
 configuration
   excludes
   exclude**/TestDevice.java/exclude
   /excludes
 /configuration
   /plugin
 
 Chris
 
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, 27 July, 2006 11:49
 To: Maven Users List
 Subject: Re: [M2] Surefire POJO / Inner class issue
 
 Hi Hal -
 
 I'm running into a similar issue.. did you find a work-around?
 
 thx,
 -Russ
 
 ([EMAIL PROTECTED])
 
 At 4:05 PM -0700 7/14/06, Hal Hildebrand wrote:
 I'm running into a weird issue here.  It seems that the 
 Maven surefire 
 plugin is trying to create POJO tests for inner classes 
 which clearly 
 aren't tests.  I'm not even a surefire novice, so I'm not 
 sure why on 
 earth this is happening - I'm just wondering how to stop it 
 from happening.
 
 Anyone have any clues as to how to escape this?
 
 [INFO] Surefire report directory:
 /Users/hhildebrand/Projects/wadi/modules/core/target/surefire-reports
 org.apache.maven.surefire.booter.SurefireExecutionException: 
 Unable to 
 instantiate POJO 'class 
 org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy'
 ; nested 
 exception is java.lang.InstantiationException:
 org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy; nested 
 exception is 
 org.apache.maven.surefire.testset.TestSetFailedException:
 Unable to instantiate POJO 'class
 org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy'
 ; nested 
 exception is java.lang.InstantiationException:
 org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy
 org.apache.maven.surefire.testset.TestSetFailedException: Unable to 
 instantiate POJO 'class 
 org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy'
 ; nested 
 exception is java.lang.InstantiationException:
 org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy
 java.lang.InstantiationException:
 org.codehaus.wadi.sandbox.jcache.TestJCache$NoEvictionPolicy
 at java.lang.Class.newInstance0(Class.java:335)
 at java.lang.Class.newInstance(Class.java:303)
 at
 org.apache.maven.surefire.testset.PojoTestSet.init(PojoTest
 Set.java:52)
 at
 org.apache.maven.surefire.junit.JUnitDirectoryTestSuite.creat
 eTestSet(J
 UnitD
 irectoryTestSuite.java:61)
 at
 org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.lo
 cateTestSe
 ts(Ab
 stractDirectoryTestSuite.java:93)
 at
 org.apache.maven.surefire.Surefire.createSuiteFromDefinition(
 Surefire.j
 ava:1
 47)
 at org.apache.maven.surefire.Surefire.run(Surefire.java:108)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
 sorImpl.ja
 va:39
 )
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
 hodAccesso
 rImpl
 .java:25)
 at java.lang.reflect.Method.invoke(Method.java:585)
 at
 org.apache.maven.surefire.booter.SurefireBooter.runSuitesInPr
 ocess(Sure
 fireB
 ooter.java:225)
 at
 org.apache.maven.surefire.booter.SurefireBooter.main(Surefire
 Booter.jav
 a:747)
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-M2---Surefire-POJO---Inner-class-issue-tf1945806.html#a5609134
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with scm:changelog

2006-08-02 Thread Denis Cabasson

Your working directory looks weird to me. Shouldn't you be in the subdir
created by the checkout before executing the scm:changelog command?


Aryam Online wrote:
 
 Hi everyone ..
 
 I am a newbie to maven ..
 I've been using the scm api and it seems that it's working properly except 
 when I execute the scm:changelog goal I get this error
 
 [INFO] [scm:changelog]
 [INFO] Executing: cvs -z3 -f -d :pserver:[EMAIL PROTECTED]:repository -q
 log
 [INFO] Working directory: C:\Documents and Settings\Administrator
 [ERROR] Provider message:
 [ERROR] The cvs command failed.
 [ERROR] Command output:
 [ERROR] cvs log: in directory .:
 cvs [log aborted]: there is no version here; run 'cvs checkout' first
 
 [INFO] 
 
 [ERROR] BUILD ERROR
 [INFO] 
 
 [INFO] Command failed.The cvs command failed.
 [INFO] 
 
 [INFO] For more information, run Maven with the -e switch
 [INFO] 
 
 [INFO] Total time: 4 seconds
 [INFO] Finished at: Tue Aug 01 19:48:09 PDT 2006
 [INFO] Final Memory: 4M/7M
 [INFO] 
 
 
 I've executed the checkout goal and it successfully build
 I've versioned my project
 and I also tried to execute the  cvs -z3 -f -d 
 :pserver:[EMAIL PROTECTED]:repository -q
 log command , but I got the following error:
 
 : No such file or directory /repository/test
 cvs log: skipping directory
 
 Any help will be really appreciated..
 
 _
 Express yourself instantly with MSN Messenger! Download today - it's FREE! 
 http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-scm%3Achangelog-tf2036988.html#a5609151
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [M2] Equivalent of ant dist in Maven

2006-08-02 Thread Denis Cabasson

mvn clean install

will do much of the trick for you (deleting everything under target, and
building a 'standard' jar out of your project).

If you want a different jar, you have to change the maven-jar-plugin
configuration.

If you want a more subtle bundling of your project (a jar including
dependencies, or source, a zip including documentation, or whatever), you
have to go to the maven-assembly-plugin (binding it to the install phase is
considered good practice).

Denis


Peter.Pilgrim wrote:
 
 Hi All
 
 You now I have reached the point in a project where I have no clue
 what is the equivalent of ant dist in Maven 2.0?
 
 In other words I want to create a ZIP or JAR distribution of 
 my project. Clean it, remove all the target/** and another generated 
 source stuff from all folders, including sub folders.
 
 
 --
 Peter Pilgrim
 UBS Investment Bank, 
 PTS Portal / IT FIRC OPS LDN,
 100 Liverpool Street, London EC2M 2RH, United Kingdom
 :: Java EE / E-Commerce / Enterprise Integration / Development ::
 
 Visit our website at http://www.ubs.com
 
 This message contains confidential information and is intended only
 for the individual named.  If you are not the named addressee you
 should not disseminate, distribute or copy this e-mail.  Please
 notify the sender immediately by e-mail if you have received this
 e-mail by mistake and delete this e-mail from your system.
 
 E-mail transmission cannot be guaranteed to be secure or error-free
 as information could be intercepted, corrupted, lost, destroyed,
 arrive late or incomplete, or contain viruses.  The sender therefore
 does not accept liability for any errors or omissions in the contents
 of this message which arise as a result of e-mail transmission.  If
 verification is required please request a hard-copy version.  This
 message is provided for informational purposes and should not be
 construed as a solicitation or offer to buy or sell any securities or
 related financial instruments.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/-M2--Equivalent-of-ant-dist-in-Maven-tf2034659.html#a5609181
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: questions on 'mvn site'

2006-08-02 Thread Denis Cabasson

For the documentation, good starting points should be:
http://maven.apache.org/guides/mini/guide-site.html
http://maven.apache.org/plugins/maven-site-plugin/howto.html

When adding reports to your site, I guess you have to provide a site.xml
file.
Either you take the default behaviour, or if you want to customize anything,
you have to provide the site.xml file

The 'About' section is AFAIK only a link to the index.html page. To create a
custom index.html page, you just have to provide a index.apt or a index Xdoc
file, which will be processed to an index.html page. See guide above for
more explanations.

For the order of reports, I guess you can't specify the order. A simple
workaround would be not to include the $report in you site.xml but instead
list each of your report in specific items.

Denis.

Laurie Harper wrote:
 
 Playing with 'mvn site' I'm finding a few surprises and documentation 
 gaps. I'm hoping someone can explain some of these behaviours and answer 
 a couple of questions:
 
 - 'mvn site' with no src/site or pom configuration generates a site 
 containing just the default set of reports; but as soon as I add 
 reportSets to the pom, I don't get an index.html anymore, unless I 
 have a src/site/site.xml. Is that expected?
 
 - the documentation for the project-info-reports plugin only tells me 
 how to specify some of the reports generated by default; specifically, 
 it doesn't show how to generate the 'About' or 'Project Summary' 
 reports. By experimentation, I've found that I can specify 
 'reportsummary/report' to get the 'Project Summary' report, but what 
 do I need to specify to get the 'About' section?
 
 - finally, the order of the report elements within reportSets seems 
 to have no effect; I'd like to be able not only to select which reports 
 are generated, but to specify the order the get listed in (both in the 
 navigation pane on the left of the site and in the 'Project Information' 
 summary page. Is that possible?
 
 Thanks,
 
 L.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/questions-on-%27mvn-site%27-tf2031906.html#a5609403
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: accessing artifacts in local repository from pom expressions or antrun scripts

2006-08-02 Thread Denis Cabasson

Merging 2 artifacts

Looks like a task for maven-assembly-plugin:
http://maven.apache.org/plugins/maven-assembly-plugin/unpack-mojo.html

It can unpack jar/zip dependencies to an assembly directory and package them
as you need.

I'm afraid I can't help any futher without more informations about the
artifacts you want to merge, and what you want to produce.

Denis.


J. Matthew Pryor wrote:
 
 I am migrating a maven 1 project to a maven 2 project.
 I have one module that creates its artifact by merging together 2 
 artifacts created by dependent modules
 At the moment, I am trying to do it all with the antrun plugin, rather 
 than writing Mojos.
 
 In the maven 1 version I did somethign like this:
 
 ${maven.repo.local}/${pom.artifactDirectory}/the-file-i-want.exe
 
 Is there any way I can get installed artifacts from the local repository 
 via antrun or pom.xml expressions?
 
 Thanks,
 Matthew
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/accessing-artifacts-in-local-repository-from-pom-expressions-or-antrun-scripts-tf2040042.html#a5614474
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: pom reference could use better indenting

2006-08-01 Thread Denis Cabasson


cbrevard wrote:
 
 be better indented? The xml takes up a fifth of the possible column width
 and is essentially illegible from a structural standpoint.
 

This documentation is generated automatically from description files, and
the standard identation is 2 spaces.

I don't know if changing it to 4 spaces would be such a good idea, since
other models could be more deeply nested. I guess making it configurable
would be nice.

Anyway, you have to fill a JIRA request on this, if you want it to be taken
into account.

Denis.
-- 
View this message in context: 
http://www.nabble.com/pom-reference-could-use-better-indenting-tf2018336.html#a5589404
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Using mvn to download jars to local repository (without pom/project)

2006-08-01 Thread Denis Cabasson


Jan Galinski wrote:
 
 pseudo
 mvn download  -package=mysql -file=driver -version=3.10
 /pseudo
 
 Seems to be rather simple, but its hard to search for (maven,
 download, jar, repository ... gives me anything but an answer to my
 problem).
 

Have a look at the dependency plugin:
http://maven.apache.org/plugins/maven-dependency-plugin/howto.html

It basically does what you want, but given a pom. I don't really know if you
can tweak it from command-line without a pom to back it. But it might be
worth a try...

Denis.

-- 
View this message in context: 
http://www.nabble.com/Using-mvn-to-download-jars-to-local-repository-%28without-pom-project%29-tf2026412.html#a5597413
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: changes plugin and jira-report

2006-07-28 Thread Denis Cabasson


Roald Bankras wrote:
 
 Hey Dennis
 
 I've taken a look at the new changes plugin, including the documentation,
 but I run into a problem when I try to add a filter to my report
 configuration. When I add the following filter to the pom, running changes
 gives a 500 error.
 
 filteramp;sorter/field=priorityamp;sorter/order=DESCamp;sorter/field=updatedamp;sorter/order=DESCamp;sorter/field=fixVersionsamp;sorter/order=ASC/filter
 
 It seems that the leading amp; is removed from the url.
 

Looks like a bug to me. The leading amp; is indeed stripped from the
filter, while when filter is built automatically, it gets a leading amp;
Fill a jira issue for this...



Roald Bankras wrote:
 
 A small comment on the document is that I'd also put an example with a
 configuration in there. For the user not familiar with the configuration
 tag, the tags describes don't mean a thing.
 
Have a look at the examples provided. Even though they don't adress your
problem at all, you can see how to use the configuration element there.

Denis
-- 
View this message in context: 
http://www.nabble.com/changes-plugin-and-jira-report-tf1992932.html#a5535753
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Maven 2.0 and Groovy

2006-07-28 Thread Denis Cabasson

Have a look there:
http://mojo.codehaus.org/groovy-maven-plugin/


Peter.Pilgrim wrote:
 
 
 Hi 
 
 I believe that Groovy the scripting language can be use to call Ant
 tasks.
 If I understand this correctly. You don't run Ant to build a project,
 but
 you run a Groovy script and it does the building for you.
 
 Is their a similar functionality for Maven 2.0?
 
 Or has anybody starting work with M2 and Groovy yet?
 If so what is the use-case for this requirement?
 

-- 
View this message in context: 
http://www.nabble.com/Maven-2.0-and-Groovy-tf2016066.html#a5542721
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: Project description

2006-07-27 Thread Denis Cabasson

Description in POM is meant to be a short description.

If you need something longer, you just add an index.apt file (or xdoc) to
your site, and it will take the place of the project's description.

Cheers!

Arne Sutor wrote:
 
 Hi Jeff,
 
 this is at the moment not solved yet. The Description tag in pom has to
 consist of one single line (no linebreaks or paragraphs between it). 
 I did not find a jira issue yet, may be we have to set one up.
 
 Because I had the same problem, I just made the project description by
 myself using Xdoc Format. Because I named it index.xml the project 'About'
 link was than linked to this page.
 
 Hope that helps,
 
 Arne
 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] Im Auftrag
 von Ivo Limmen
 Gesendet: Mittwoch, 26. Juli 2006 10:29
 An: Maven Users List
 Betreff: Re: Project description
 
 I recently discovered that the description is also added to the manifest
 within the jar that is produced. When the description spans more than one
 line my build fails i.e. the jar is not valid. So to answer your question:
 I
 don't think it is possible.
 
 On 7/26/06, Jeff Mutonho [EMAIL PROTECTED] wrote:

 My project description is a bit long and would like to introduce
 paragraphs
 and sub-headings in it.Is it possible to do this?

 --


 Jeff  Mutonho

 GoogleTalk : ejbengine
 Skype: ejbengine
 Registered Linux user number 366042


 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Project-description-tf2002608.html#a5518560
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [m2] Download page

2006-07-26 Thread Denis Cabasson


Damien Viel wrote:
 
 Hi all,
 
 Is there a way to create a download page in the maven site that will 
 expose a link to get the assembly build with the assembly plugin ?
 
 Thanks
 
 Damien
 

Short answer: no

You have to make this page yourself, using the apt format (not that
difficult...).

Denis.

-- 
View this message in context: 
http://www.nabble.com/-m2--Download-page-tf2002505.html#a5499135
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JUnit Output Directory

2006-07-25 Thread Denis Cabasson


Ole Ersoy wrote:
 
 Hi,
 
 Does anyone know whether I can specify which directory
 a junit test will run in.
 

What kind of output do your Junit tests have?

IMHO, Junit shouldn't have any output, except for failure of the test. Junit
is about automatised tests. Such test shouldn't have any output.
Moreover, if your tests have any output, it should definitly goes in the
target directory, not in the src...

Denis.

-- 
View this message in context: 
http://www.nabble.com/JUnit-Output-Directory-tf1993004.html#a5481005
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to execute jar:jar just once?

2006-07-25 Thread Denis Cabasson


Wayne Fay wrote:
 
 I think you should just move the configuration/ element to be a
 child inside plugin/, and then remove the executions/ completely.
 
 Wayne
 

+1 with Wayne.

Should get the resulting part in your build/plugins part:
plugin 
groupIdorg.apache.maven.plugins/groupId 
artifactIdmaven-jar-plugin/artifactId 
version2.1-SNAPSHOT/version 
   configuration 
archive 
manifestSections 
manifestSection 
nameel4j-config/name 
manifestEntries 
Module${el4j-config.module}/Module 
Files${el4j-config.files}/Files 
  
Dependencies${el4j-config.dependencies}/Dependencies 
/manifestEntries 
/manifestSection 
/manifestSections 
/archive 
/configuration 
/plugin

What you want to do is change the configuration of the jar plugin, not add a
execution of this plugin with a specific configuration

Denis.
-- 
View this message in context: 
http://www.nabble.com/How-to-execute-jar%3Ajar-just-once--tf1993039.html#a5481055
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: M2 URLs with in xdoc files

2006-07-25 Thread Denis Cabasson


Manfred Moser-2 wrote:
 
 Using
  http://www.somewhere.net/test=yes%amp;id=12 test 
 just leaves the url as it is, which doesnt work either.
 
 Supposedly in M1 you can put  but that does not seem to work in M2.
 
 What am I missing? Shouldn't this be simple.
 

Correct XML syntax would require:
http://www.somewhere.net/test=yesamp;id=12 test 

Have you tried this (was the % a typo error)?

Denis.

-- 
View this message in context: 
http://www.nabble.com/M2-URLs-with---in-xdoc-files-tf1995074.html#a5481099
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: maven-jar-plugin: include/exclude functionality?

2006-07-25 Thread Denis Cabasson


Simon Kitching-2 wrote:
 
 I need to build 3 jars from the classes created by a module; a full
 jar and two jars that contain subsets of the available classes.
 

If you need to build 3 different jars (not taking into account javadoc and
sources jar) from a single module, it's probably that this module should be
3 different modules :)

If, for whatever reason, you don't want to split up your module in 3
different modules, you have to use the assembly plugin to create customs
jars out of your module.

Denis.

-- 
View this message in context: 
http://www.nabble.com/maven-jar-plugin%3A-include-exclude-functionality--tf1995736.html#a5481135
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How to configure Maven2 changelog plugin

2006-07-25 Thread Denis Cabasson


Alexander Kriegisch wrote:
 
 this is really a newbie's question: I am trying to configure the changelog
 plugin in Maven 2, but I don't even know where to put the plugin section
 in my pom.xml. I tried to stuff it directly into build, into reporting
 and a few others. I am always getting parse errors.
 
The configuration should go in the reporting/plugins part. Have a look at
http://maven.apache.org/guides/mini/guide-site.html

(section Configuring Reports)


Alexander Kriegisch wrote:
 
 The thing is, that the plugin project page shows sample config snippets,
 but without any context. So I would appreciate a full sample pom.xml and
 also a sample command line, as I don't even know which goal to specify. I
 never used Maven 1.x and am still a Maven 2 newbie, as I said. So I
 apologise to everybody who thinks this should be crystal-clear. It is not
 to me, unfortunately.
 
You're right, documentation isn't clear at the moment, but I guess you
should read the documentation above, and things would get more clear for
you.
The maven team is at the moment putting a lot of work on the plugin
documentation:
http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Documentation?showComments=trueshowCommentArea=true

Denis.
-- 
View this message in context: 
http://www.nabble.com/How-to-configure-Maven2-changelog-plugin-tf1996564.html#a5481183
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: NPE with release-plugin and profile

2006-07-25 Thread Denis Cabasson


Daniel Schaedler wrote:
 
 Hi
 
 I get a Nullpointerexception when executing a release:prepare and using 
 a profile: (using Maven 2.0.4)
 

Does your profile attach a specific plugin to any lifecycle goal?

Such errors commonly comes from mispelled groupId/artifactId plugins
attached to the build lifecycle.

Can you show us the content of your profile?

Denis.
-- 
View this message in context: 
http://www.nabble.com/NPE-with-release-plugin-and-profile-tf1996576.html#a5481211
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Curious behaviour for version element in parent element of pom

2006-07-25 Thread Denis Cabasson


Zeltner Martin wrote:
 
 In the ~/.m2/settings.xml I've created a profile which is always active
 and has property el4j.version set to 1.1-SNAPSHOT.
 

Have you tried renaming your property, to another, less error prone, name?
(say foobar?)

Denis.
-- 
View this message in context: 
http://www.nabble.com/Curious-behaviour-for-version-element-in-parent-element-of-pom-tf1996891.html#a5482299
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: change-log plugin fails with java.lang.IllegalArgumentException:cvs repository connection string doesn't contain six tokens

2006-07-25 Thread Denis Cabasson


Jeff Mutonho wrote:
 
 The changelog-maven-plugin is failing with a message saying :
 

Have you tried using the maven-changelog-plugin instead? I think the former
codehaus project has been moved to maven itself.
Maven-changelog-plugin may fix your problem (you'll have to use a maven
snapshot repository).

Cheers!

Denis.
-- 
View this message in context: 
http://www.nabble.com/change-log-plugin-fails-with-java.lang.IllegalArgumentException%3Acvs-repository-connection-string-doesn%27t-contain-six-tokens-tf1998473.html#a5486549
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Exclude certain files during tests

2006-07-25 Thread Denis Cabasson


Nick Panienski wrote:
 
 Hi,
 
 I have JUnit and HTTPUnit tests in my project, but I dont want surefire to
 execute my HTTPUnit tests.
 
 I tried a
 
 testExcludes
   testExclude implementation=java.lang.Stringpattern/testExclude
 /testExcludes
 
 in the configuration of the Maven Compiler Plugin, without success...
 (maybe
 my pattern was just wrong?)
 
Aren't you confusing Maven 1.x syntax with Maven 2?

If you're using maven 2, the correct syntax is (should be), in the
build/plugins part:
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-plugin/artifactId
configuration
  excludes
excludeui/**/exclude
  /excludes
/configuration
  /plugin

You can find more information about the surefire plugin here:
http://maven.apache.org/plugins/maven-surefire-plugin/howto.html

Cheers!

Denis.
-- 
View this message in context: 
http://www.nabble.com/Exclude-certain-files-during-tests-tf1998613.html#a5486614
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jdepend plugin

2006-07-25 Thread Denis Cabasson


Jeff Mutonho wrote:
 
 The plugin fails to download with the error message :\
 
 [INFO] Velocity successfully started.
 [WARNING] While downloading netbeans:cvslib:3.6
   This artifact has been relocated to org.netbeans:lib:3.6.
 
 
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] The plugin 'org.codehaus.mojo:jdepend-maven-plugin' does not exist
 or
 no
 valid version could be found
 

This plugin hasn't been released yet.
You need to include the codehaus snapshot repository, as described here:
http://mojo.codehaus.org/using-sandbox-plugins.html

Cheers!

Denis.

-- 
View this message in context: 
http://www.nabble.com/jdepend-plugin-tf1998392.html#a5486669
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Connection refused during site-deploy

2006-07-25 Thread Denis Cabasson


Jeff Mutonho wrote:
 
 I've done that but still getting the same error message:
 
  Session error: com.jcraft.jsch.JSchException: Session.connect:
 java.net.Connect
 Exception: Connection refused: connect
 scp://iam-003191.mycompany.co.za/htdocs/websites/eportal - Session:
 Disconnecting
 
 scp://iam-003191.mycompany.co.za/htdocs/websites/eportal - Session:
 Disconnected
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] Error uploading site
 
 Embedded error: Cannot connect. Reason: Session.connect:
 java.net.ConnectExcepti
 on: Connection refused: connect
 
 -- 
 
 
 Jeff  Mutonho
 
 GoogleTalk : ejbengine
 Skype: ejbengine
 Registered Linux user number 366042
 
 

Have you tried connecting from the command line, or with a ssh client, using
you username/password?

Denis.
-- 
View this message in context: 
http://www.nabble.com/Connection-refused-during-site-deploy-tf1997630.html#a5486702
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: modules and assembly problem

2006-07-25 Thread Denis Cabasson

I guess you can't add the assembly plugin to a pom packaging project...

I have to add the assembly-plugin to each of my modules I wanted to be
assembled.

But I'm certainly interested in a better solution :)

Denis.


Damien Viel wrote:
 
 Thank for your help.
 
 I've tried your solution with a dedicated project for the build which 
 has dependencies on the binary assemblies. But my assembly still empty.
 
 Here is my new pom of the build-project :
 
 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
   groupIdfr.toto.corp/groupId
   artifactIdproject-build/artifactId
   packagingpom/packaging
   namePROJECT-BUILD/name
   version${buildVersion}/version
   url${siteURL}/url
 
   build
   sourceDirectory${basedir}/src/java/sourceDirectory
testSourceDirectory${basedir}/src/test/testSourceDirectory
   plugins
   plugin
   artifactIdmaven-assembly-plugin/artifactId
   version2.2-SNAPSHOT/version
   
   /plugin
   /plugins
   /build
 
   dependencies
   
   dependency
   groupIdfr.toto.corp/groupId
   artifactIdmod1/artifactId
   version1.3/version
   /dependency   
   dependency
   groupIdfr.toto.corp/groupId
   artifactIdmod2/artifactId
   version1.0/version
   /dependency   
   /dependencies
 
 
 /project
 
 And I call the pre-defined Descriptor Files : jar-with-dependencies.
 http://maven.apache.org/plugins/maven-assembly-plugin/predefined.html
 
 Damien
 
 
 
 Barrie Treloar a écrit :
 On 7/25/06, Damien Viel [EMAIL PROTECTED] wrote:
 With the standard goals jar-with-dependencies it works fine on each
 modules. But when I call the goal from the parent pom, the assembly is
 empty.
 [del]
 assembly
idjar-with-dependencies/id
formats
 formatzip/format
 formatdir/format
/formats
includeBaseDirectoryfalse/includeBaseDirectory
fileSets
  fileSet
directorytarget/classes/directory
outputDirectory//outputDirectory
  /fileSet
/fileSets
dependencySets
  dependencySet
outputDirectory//outputDirectory
unpackfalse/unpack
scoperuntime/scope
  /dependencySet
/dependencySets
 /assembly
 
 Your parent pom doesn't have any dependency hence it won't include 
 anything.
 
 You will need to create your own assembly descriptor and make use of
 the moduleSets.
 I've never used the moduleSets myself.
 
 Our build includes a client side app, an ear, and a standalone
 application. So the way I build a distributable is to have another
 module called project-build which has dependencies on the binary
 assemblies of these other projects and to use dependencySet to pull
 them in.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -- 
 --
 Damien Viel | +33 1 41 97 83 20 | [EMAIL PROTECTED]
 --
  | http://www.improve-foundations.com
 __/ \__ | http://www.improve.fr
 improve | http://www.application-servers.com
 /_\-| http://www.improve-technologies.com
 --
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/modules-and-assembly-problem-tf1997680.html#a5486737
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Connection refused during site-deploy

2006-07-25 Thread Denis Cabasson


Jeff Mutonho wrote:
 



 Have you tried connecting from the command line, or with a ssh client,
 using
 you username/password?

 Denis.

 
 This running off my windows xp machine :)
 
 
 
 
 
 Jeff  Mutonho
 
 GoogleTalk : ejbengine
 Skype: ejbengine
 Registered Linux user number 366042
 
 



 Have you tried connecting from the command line, or with a ssh client,
 using
 you username/password?

 Denis.


This running off my windows xp machine :)





Jeff  Mutonho

GoogleTalk : ejbengine
Skype: ejbengine
Registered Linux user number 366042



Well, you have many tools available to connect to a ssh server, with windows
XP.

Most popular one is probably putty.

Denis.
-- 
View this message in context: 
http://www.nabble.com/Connection-refused-during-site-deploy-tf1997630.html#a5487127
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: change-log plugin fails with java.lang.IllegalArgumentException:cvs repository connection string doesn't contain six tokens

2006-07-25 Thread Denis Cabasson


Jeff Mutonho wrote:
 
 On 7/25/06, Denis Cabasson [EMAIL PROTECTED] wrote:



 Jeff Mutonho wrote:
 
  The changelog-maven-plugin is failing with a message saying :
 

 Have you tried using the maven-changelog-plugin instead? I think the
 former
 codehaus project has been moved to maven itself.
 Maven-changelog-plugin may fix your problem (you'll have to use a maven
 snapshot repository).

 Cheers!

 Denis.
 --

 
 Thanx Denis.This is what I have in my pom.xml
  plugin
  groupIdorg.apache.maven.plugins/groupId
  artifactIdmaven-changelog-plugin/artifactId
   /plugin
 
 (after looking at
 http://maven.apache.org/plugins/maven-changelog-plugin/howto.html)
 
 However , I still get this :
 
 [INFO] Velocity successfully started.
 [INFO] artifact org.apache.maven.plugins:maven-changelog-plugin: checking
 for up
 dates from central
 [INFO]
 
 [ERROR] BUILD ERROR
 [INFO]
 
 [INFO] The plugin 'org.apache.maven.plugins:maven-changelog-plugin' does
 not
 exi
 st or no valid version could be found
 [INFO]
 
 [INFO] For more information, run Maven with the -e switch
 [INFO]
 
 [INFO] Total time: 9 seconds
 [INFO] Finished at: Tue Jul 25 16:57:52 CAT 2006
 [INFO] Final Memory: 16M/1016M
 [INFO]
 
 
 
 
 Jeff  Mutonho
 
 GoogleTalk : ejbengine
 Skype: ejbengine
 Registered Linux user number 366042
 
 

the maven-changelog-plugin hasn't been released to central yet.

You have to use snapshot repositories, as described here:
http://maven.apache.org/guides/development/guide-testing-development-plugins.html

Denis.

-- 
View this message in context: 
http://www.nabble.com/change-log-plugin-fails-with-java.lang.IllegalArgumentException%3Acvs-repository-connection-string-doesn%27t-contain-six-tokens-tf1998473.html#a5487226
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JavaDocs report not appearing

2006-07-25 Thread Denis Cabasson


Jeff Mutonho wrote:
 
 JavaDocs does not  appear under the generated reports , even though I
 have
 configured my pom.xml to generate javadoc reports as shown below:
 

Please see http://jira.codehaus.org/browse/MJAVADOC-72

aggregating of Javadoc isn't working AFAIK.

Denis.
-- 
View this message in context: 
http://www.nabble.com/JavaDocs-report-not-appearing-tf1998678.html#a5487275
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AW: Exclude certain files during tests

2006-07-25 Thread Denis Cabasson


Nick Panienski wrote:
 
 Denis wrote:
 
 If you're using maven 2, the correct syntax is (should be), 
 in the build/plugins part:
   plugin
 groupIdorg.apache.maven.plugins/groupId
 artifactIdmaven-surefire-plugin/artifactId
 configuration
   excludes
 excludeui/**/exclude
   /excludes
 /configuration
   /plugin
 
 Thanks for the fast reply!
 
 Sorry, I meant Maven 2 :) This is indeed working, although the pattern
 ui/** is not.
 I am a little bit confused about these pattern, is there a page describing
 the syntax?
 I tried a **/*.* - which worked fine - no more tests at all :)
 
 I configured 
  testSourceDirectorysrc/test/testSourceDirectory
 
 and my ui tests sites are located in
  src/test/de/company/project/ui/tests/a/b/
 
 If somewhere in the path ui is present I want to skip tests.
 
 Any ideas for the correct pattern?
 
 Cheers
 Nick
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

Don't know exactly where these patterns come from, but to me, they are
ant-like:
http://ant.apache.org/manual/dirtasks.html#patterns

I thought ui was the base directory for your HttpUnit tests.

So, with this directory structure, exclusion pattern should be something
like:
**/ui/**

(Hope it helps)

Denis.
-- 
View this message in context: 
http://www.nabble.com/Exclude-certain-files-during-tests-tf1998613.html#a5487420
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: changes plugin and jira-report

2006-07-25 Thread Denis Cabasson


dennisl-2 wrote:
 
 How about we add a parameter useJiraProxy to the appropriate mojo. 
 Default value would be true, meaning that a proxy will be used if one is 
 defined in settings.xml. If you set it to false, no proxy would be used 
 when connecting to JIRA whether a proxy is defined or not.
 

I have tried opening a JIRA issue on the subject:
http://jira.codehaus.org/browse/MNG-2457

To me, the relevant place is the nonProxyHost list, in the settings.xml, but
this list is mostly ignored by plugins using the proxy settings

You can vote for this issue, and maybe one ofe the Maven gurus will think of
a solution :)

Denis.
-- 
View this message in context: 
http://www.nabble.com/changes-plugin-and-jira-report-tf1992932.html#a5487745
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: activeByDefault and mvn install

2006-07-24 Thread Denis Cabasson


Jeff Mutonho wrote:
 
 Why isnt  mvn install launching the cargo-plugin even though the
 profile's
 activeByDefault is set to true?I have to type mvn cargo:install to get
 it to execute.

Have you tried adding an executions/excution element?

see:
http://cargo.codehaus.org/Maven2+plugin
-- 
View this message in context: 
http://www.nabble.com/activeByDefault-and-%22mvn-install%22-tf1992260.html#a5468105
Sent from the Maven - Users forum at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]