Question about C-Builds

2009-05-27 Thread Dan Tran
Hi,

Can i use C-builds to download and unpack a source tar ball thru maven
dependencies, apply some patches, or replace some files, run configure
with a --prefix, run make, install it to fakeroot, zip/tgz/tbz2 the
fakeroot to become final artifacts.

Look likes Cbuild do most, but the fakeroot and zip up the fakeroot (
it uses rpm instead )

Thanks

-Dan

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Articles for CM Crossroads

2009-05-27 Thread Bob Aiello
Hi everyone, 

the June of CM Crossroads (www.cmcrossroads.com) is on 
"Evaluating and Selecting Right Tools". If you are interested in 
participating then I need a draft of your article by June 10th 
(publication date is June 17th).


Articles are usually around 1200 - 1500 words and I provide
editing support (e.g. grammer, spelling, word usage). 


Oh and I am always looking for short articles on Ant, Maven,
GNU Make and MSBuild etc.

Bob Aiello
Editor in Chief 
CM Crossroads

raie...@acm.org

http://www.linkedin.com/in/BobAiello


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Dependency version resolution inconsistent between projects in a multimodule project

2009-05-27 Thread Olivier Dehon
Hello,

I have a multimodule project with 2 modules:
- an EJB project
- an EAR project that only has the EJB as a dependency

When the EJB gets built, the indirect dependency to commons-lang gets
resolved to version 2.0, and is hence referenced in the MANIFEST.MF
Class-Path entry as commons-lang-2.0.jar

The commons-lang dependency is an indirect dependency via 2 direct
dependencies of the EJB. One uses version 2.1, whilst the other uses 2.0

Unfortunately, when the EAR file gets built, maven chooses to resolve
commons-lang as version 2.1 and the EJB's Class-Path entry becomes
inconsistent with the contents of the EAR.

Is there any way to ensure consistency of the resolution process, other
than managing the version via  after having
detected the issue?

(This is maven 2.0.9)

Thanks in advance for your advice.
-Olivier


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Override dependency classes with another module's classes

2009-05-27 Thread Brendan Haverlock
The version of Mule that we are using does not use OSGi, but that should be 
irrelevant because the problem is occurring at compile time.

When I ran "mvn help:effective-pom," queue was still after mule and there was 
only one instance of each.  It was quite large because it inherited a lot of 
dependencies from the parent project.

Thanks,

Brendan Haverlock

-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com] 
Sent: Wednesday, May 27, 2009 5:04 PM
To: Maven Users List
Subject: Re: Override dependency classes with another module's classes

> So the module "A" that has these 2 dependencies is trying to use the 
> implementations from the queue-override that overrides the packages/classes 
> inside of mule.  So:

Is Mule perhaps using OSGi or something to look up classes, so even
though your artifacts/classes appear first in the classpath, they are
getting ignored?

What does "mvn help:effective-pom" show you? I'm not entirely
convinced this is Maven performing badly but rather something more
intricate going on... Might want to take this over to the Mule list to
see what people there think.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: issue with load time weaving and Maven

2009-05-27 Thread Mick Knutson
I will have to wait til tomorrow to try this, but 1st off, I notice that I
changed the default location of my repository in my settings.xml

Is there a way to reference that value instead of ${user.home} ???

---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---



On Wed, May 27, 2009 at 5:08 PM, Martin Gainty  wrote:

>
> add spring-agent dependency
> 
>  org.springframework
>  spring-agent
>  test
> 
>
>
> also add arg-line to maven-surefire-plugin e.g.
>
>  
> -javaagent:${user.home}/.m2/repository/org/springframework/spring-agent/2.5.6/spring-agent-2.5.6.jar
>
>
> http://ketilsjavablog.blogspot.com/2009/01/loadtimeweaver-in-unit-tests-with.html
>
> hth
> Martin Gainty
> __
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie
> de ceci est interdite. Ce message sert à l'information seulement et n'aura
> pas n'importe quel effet légalement obligatoire. Étant donné que les email
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter
> aucune responsabilité pour le contenu fourni.
>
>
>
>
> > Date: Wed, 27 May 2009 17:45:02 -0400
> > Subject: issue with load time weaving and Maven
> > From: mknut...@baselogic.com
> > To: users@maven.apache.org
> >
> > I have an issue trying to use Load Time weaving with Spring.
> >
> > With the addition of the weaving context:
> > **
> >
> > I get this error when running :
> > *Caused by: org.springframework.beans.factory.BeanCreationException:
> Error
> > creating bean with name
> > 'org.springframework.context.weaving.AspectJWeavingEnabler#0':
> > Initialization of bean failed; nested exception is
> > org.springframework.beans.factory.BeanCreationException: Error creating
> bean
> > with name 'loadTimeWeaver': Initialization of bean failed; nested
> exception
> > is java.lang.IllegalStateException: ClassLoader
> > [sun.misc.Launcher$AppClassLoader] does NOT provide an
> > 'addTransformer(ClassFileTransformer)' method. Specify a custom
> > LoadTimeWeaver or start your Java virtual machine with Spring's agent:
> > -javaagent:spring-agent.jar
> > at
> >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
> > at
> >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at
> >
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> > *
> >
> > I see some posts talk about the same issue with Jetty:
> > *http://forum.springsource.org/archive/index.php/t-58666.html
> > *
> >
> > then a fix would be to add:
> > *When I start maven jetty:run with the following set:
> > set MAVEN_OPTS=-javaagent:"C:\Documents and
> > Settings\Administrator\.m2\repository\org\springfr
> > amework\spring-agent\2.5.4\spring-agent-2.5.4.jar"
> > *
> >
> > But I tried that and it does not work.
> >
> > I also have the dependency like this:
> > *
> > org.springframework
> > spring-agent
> > ${spring.version}
> > provided
> > 
> > *
> >
> >
> > Can anyone help me to get Maven to play well?
> >
> >
> > ---
> > Thank You…
> >
> > Mick Knutson, President
> >
> > BASE Logic, Inc.
> > Enterprise Architecture, Design, Mentoring & Agile Consulting
> > p. (866) BLiNC-411: (254-6241-1)
> > f. (415) 685-4233
> >
> > Website: http://baselogic.com
> > Linked IN: http://linkedin.com/in/mickknutson
> > Vacation Rental: http://tahoe.baselogic.com
> > ---
>
> _
> Hotmail® has ever-growing storage! Don’t worry about storage limits.
>
> http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009
>


RE: issue with load time weaving and Maven

2009-05-27 Thread Martin Gainty

add spring-agent dependency

  org.springframework
  spring-agent
  test



also add arg-line to maven-surefire-plugin e.g.

-javaagent:${user.home}/.m2/repository/org/springframework/spring-agent/2.5.6/spring-agent-2.5.6.jar

http://ketilsjavablog.blogspot.com/2009/01/loadtimeweaver-in-unit-tests-with.html

hth
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Wed, 27 May 2009 17:45:02 -0400
> Subject: issue with load time weaving and Maven
> From: mknut...@baselogic.com
> To: users@maven.apache.org
> 
> I have an issue trying to use Load Time weaving with Spring.
> 
> With the addition of the weaving context:
> **
> 
> I get this error when running :
> *Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name
> 'org.springframework.context.weaving.AspectJWeavingEnabler#0':
> Initialization of bean failed; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating bean
> with name 'loadTimeWeaver': Initialization of bean failed; nested exception
> is java.lang.IllegalStateException: ClassLoader
> [sun.misc.Launcher$AppClassLoader] does NOT provide an
> 'addTransformer(ClassFileTransformer)' method. Specify a custom
> LoadTimeWeaver or start your Java virtual machine with Spring's agent:
> -javaagent:spring-agent.jar
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
> *
> 
> I see some posts talk about the same issue with Jetty:
> *http://forum.springsource.org/archive/index.php/t-58666.html
> *
> 
> then a fix would be to add:
> *When I start maven jetty:run with the following set:
> set MAVEN_OPTS=-javaagent:"C:\Documents and
> Settings\Administrator\.m2\repository\org\springfr
> amework\spring-agent\2.5.4\spring-agent-2.5.4.jar"
> *
> 
> But I tried that and it does not work.
> 
> I also have the dependency like this:
> *
> org.springframework
> spring-agent
> ${spring.version}
> provided
> 
> *
> 
> 
> Can anyone help me to get Maven to play well?
> 
> 
> ---
> Thank You…
> 
> Mick Knutson, President
> 
> BASE Logic, Inc.
> Enterprise Architecture, Design, Mentoring & Agile Consulting
> p. (866) BLiNC-411: (254-6241-1)
> f. (415) 685-4233
> 
> Website: http://baselogic.com
> Linked IN: http://linkedin.com/in/mickknutson
> Vacation Rental: http://tahoe.baselogic.com
> ---

_
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage1_052009

Re: Override dependency classes with another module's classes

2009-05-27 Thread Wayne Fay
> So the module "A" that has these 2 dependencies is trying to use the 
> implementations from the queue-override that overrides the packages/classes 
> inside of mule.  So:

Is Mule perhaps using OSGi or something to look up classes, so even
though your artifacts/classes appear first in the classpath, they are
getting ignored?

What does "mvn help:effective-pom" show you? I'm not entirely
convinced this is Maven performing badly but rather something more
intricate going on... Might want to take this over to the Mule list to
see what people there think.

Wayne

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



maven assembly plugin 2.2-beta-3 fails packing parent pom

2009-05-27 Thread widerst...@t-online.de
Hi,

I'm using Maven 2.1.0.

I get:

[INFO] [assembly:single {execution: make-assembly}]
[WARNING] Cannot include project artifact: org.foo.bar:j2se:pom:1
.0.2-SNAPSHOT; it doesn't have an associated file or directory.
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to create assembly: Error creating assembly archive
jar-with-depen
dencies: You must set at least one file.

I previuos releases it was working.

Regards,
Karsten



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



maven-assembly-plugin 2.2-beta-3 includes all module directories with complete path

2009-05-27 Thread widerst...@t-online.de
Hi,

I'm using maven 2.1.0.

With the maven-assembly plugin 2.2-beta-3. When I use the descriptor
project it simply zips all directory contents and also inclused the
target directory.
Also the whole directory path is included (C:\User ...\ ...)

When using the with-dependencies descriptor also the whole project (src,
target and everything in the module directoryy ) with the complete path
is added to the jar.

Regards,
Karsten



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Using dependency analyzer via Maven API

2009-05-27 Thread Fabien Coppens

Hi.
If you don't mind, could you please elaborate on that ?

Brian Fox wrote:

Most likely these will need to be looked up from a plexus container so that
all the dependencies are injected.

On Wed, May 27, 2009 at 7:37 AM, Fabien Coppens wrote:

  

Hi.
I would like to perform programatic dependency analysis from a POM, via the
standard Maven 2.1 APIs. I'd like to be able to call methode analyze() in
class
DefaultProjectDependencyAnalyzer, passing it a MavenProject instance which
I
would have previously built from the POM file by using method build() in
class
DefaultMavenProjectBuilder.
The two classes mentioned above have empty default constructors but they do
have
private attributes which seem to be set elsewhere (I don't see any setters
in
the classes).
Can I just instantiate the above classes (for example as Spring singletons)
and
call the methods I need (see above), or do I need to go through some other
code
that will initialize those classes' attributes with the right values ?
Fabien


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org





  




No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.5.339 / Virus Database: 270.12.41/2136 - Release Date: 05/26/09 20:20:00


  



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



RE: Override dependency classes with another module's classes

2009-05-27 Thread Brendan Haverlock
Well, I've tried switching the order of the two dependencies both ways and 
tried all sorts of different scopes and exclusions to try to get it to work, 
and I've had no success.  Since both of you say it should work in the version I 
am using, can you take a look at my 2 dependencies and let me know if you see 
anything that stands out?

Here are the 2 dependencies in my POM:



com.sample
queue-override
1.9.0-SNAPSHOT
jar
compile


mule
mule
1.2
jar
compile



So the module "A" that has these 2 dependencies is trying to use the 
implementations from the queue-override that overrides the packages/classes 
inside of mule.  So:

Queue-override has the classes: org.mule.util.queue.QueueSession, 
org.mule.util.queue.Queue
And the mule package has the same classes minus a few methods.

In module "A" when I try to use the methods I added in queue-override, no 
matter which way I order the dependencies, it doesn't see the new methods.

Thanks!

Brendan Haverlock

-Original Message-
From: Wayne Fay [mailto:wayne...@gmail.com] 
Sent: Tuesday, May 26, 2009 4:50 PM
To: Maven Users List
Subject: Re: Override dependency classes with another module's classes

Like Brian, I expected this would work right in 2.0.10 and 2.1.0, so
I'm a bit surprised it didn't work.

Having said that, let me remind you what I said earlier... ;-)
> This just won't work at all, at least not consistently. Build a
> different jar containing just the classes you DON'T override, and
> depend on it instead.

I've just run into too many odd problems as a result of trying to
override classes like this that I simply refuse to go this route at
this point. Making sure your jars are in the right order in Maven plus
your Web container and any other environments you may use them in is
just too much work when you can "solve" this pretty easily with your
own build of the jar minus certain classes.

Wayne

On Tue, May 26, 2009 at 4:24 PM, Brian Fox  wrote:
> I expected it would, yes.
>
> On Tue, May 26, 2009 at 10:54 AM, Brendan Haverlock
> wrote:
>
>> I am using 2.1.0, and it doesn't seem to make a difference which order I
>> put
>> them in.  Based on what you said, shouldn't this be working in my version?
>>
>> Thanks,
>>
>> Brendan Haverlock
>

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



issue with load time weaving and Maven

2009-05-27 Thread Mick Knutson
I have an issue trying to use Load Time weaving with Spring.

With the addition of the weaving context:
**

I get this error when running :
*Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.springframework.context.weaving.AspectJWeavingEnabler#0':
Initialization of bean failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'loadTimeWeaver': Initialization of bean failed; nested exception
is java.lang.IllegalStateException: ClassLoader
[sun.misc.Launcher$AppClassLoader] does NOT provide an
'addTransformer(ClassFileTransformer)' method. Specify a custom
LoadTimeWeaver or start your Java virtual machine with Spring's agent:
-javaagent:spring-agent.jar
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
*

I see some posts talk about the same issue with Jetty:
*http://forum.springsource.org/archive/index.php/t-58666.html
*

then a fix would be to add:
*When I start maven jetty:run with the following set:
set MAVEN_OPTS=-javaagent:"C:\Documents and
Settings\Administrator\.m2\repository\org\springfr
amework\spring-agent\2.5.4\spring-agent-2.5.4.jar"
*

But I tried that and it does not work.

I also have the dependency like this:
*
org.springframework
spring-agent
${spring.version}
provided

*


Can anyone help me to get Maven to play well?


---
Thank You…

Mick Knutson, President

BASE Logic, Inc.
Enterprise Architecture, Design, Mentoring & Agile Consulting
p. (866) BLiNC-411: (254-6241-1)
f. (415) 685-4233

Website: http://baselogic.com
Linked IN: http://linkedin.com/in/mickknutson
Vacation Rental: http://tahoe.baselogic.com
---


Re: Maven: The Definitive Guide in French

2009-05-27 Thread Baptiste MATHUS
Cédric, tu oublies qu'on est toujours sur la ML utilisateur de maven
:-). Donc, en anglais.
So, now back to english :-).

And yes, this seems very interesting. I already worked on hibernate
documentation translation and you sometimes feel akward when you just
replaced an english block and are wondering what the sentence was to
double-check you seem to have put the best translation... So, having a
double-screen doing the matching between the two versions just seems like
the way to go.

Cheers.

2009/5/27 Mimil 

>
> je pensais plutôt à des trucs du genre:
> https://open-language-tools.dev.java.net/
>
> enfin pour l'instant j'ai pas trouver mieux.
>
> Cédric,
>
> On Wed, May 27, 2009 at 4:07 PM, ehsavoie (via Nabble) <
> ml-user+65-514126...@n2.nabble.com <
> ml-user%2b65-514126...@n2.nabble.com
> >>wrote:
>
> > http://code.google.com/p/google-api-translate-java/
> >
> > On Mon, May 25, 2009 at 10:18 PM, Mimil  http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2981285&i=0>>
> > wrote:
> >
> > >
> > > Hello,
> > >
> > > I also would like to help on translating this book but I am more
> focused
> > on
> > > creating tools allowing to translate docbook content so I think I will
> > try
> > > to help on this side.
> > > I am developer on docbkx-tools (the current maven plugin you sonatype
> is
> > > using for docbook generation) (ad.: the best docbook toolchain :P).
> > > I will try to see how ppl on docbook malinglist manage the translation
> > work
> > > and I hope there will be something in the java world in opensource.
> > > An other thing that may be needed for this work is an xmldiff in order
> to
> >
> > > detect the changes from the master language files for an easy of
> backport
> >
> > > to
> > > the translation files.
> > >
> > > If someone already have some xp on this two topics, feel free to
> message
> > > me.
> > >
> > > Regards,
> > > Cédric,
> > > --
> > > View this message in context:
> > >
> >
> http://n2.nabble.com/Maven%3A-The-Definitive-Guide-in-French-tp2592139p2971483.html
> > > Sent from the maven users mailing list archive at Nabble.com.
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@...<
> http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2981285&i=1>
> > > For additional commands, e-mail: users-h...@...<
> http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2981285&i=2>
> > >
> > >
> >
> >
> > --
> >  This email is a reply to your post @
> >
> http://n2.nabble.com/Maven%3A-The-Definitive-Guide-in-French-tp2592139p2981285.html
> > You can reply by email or by visting the link above.
> >
> >
>
> --
> View this message in context:
> http://n2.nabble.com/Maven%3A-The-Definitive-Guide-in-French-tp2592139p2982057.html
> Sent from the maven users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


-- 
Baptiste  MATHUS - http://batmat.net
Sauvez un arbre,
Mangez un castor !


[ANN] Maven Ant Tasks 2.0.10 Released

2009-05-27 Thread Paul Gier


The Maven team is pleased to announce the release of the Maven Ant Tasks,
version 2.0.10

The Maven Ant Tasks allow several features of Maven, (dependency management, 
artifact deployment, etc.) to be used within an Ant build.  More information is 
available at the project site.


http://maven.apache.org/ant-tasks

The binaries can be downloaded from the maven download page.

http://maven.apache.org/download.html


Release Notes - Maven Ant Tasks - Version 2.0.10

** Bug
* [MANTTASKS-87] - Using a pom.xml for dependencies, in which the pom.xml 
has a parent pom.xml will cause a "Error downloading parent pom" error
* [MANTTASKS-106] - Maven ant tasks artifact has maven inside the jar and 
so can't be used from inside the maven (maven-antrun-plugin) - classes do conflict

* [MANTTASKS-111] - Support for SNAPSHOT deployment
* [MANTTASKS-116] - NPE when install target is missing file and pom type is 
JAR
* [MANTTASKS-142] - Default remote repository id not safe
* [MANTTASKS-144] - "Error reading settings file" error is reported when 
settings.xml is deleted from maven/conf folder.
* [MANTTASKS-145] - Dependency management doesn't work with pom and 
dependencies tasks


** Improvement
* [MANTTASKS-35] - Support profiles in pom type
* [MANTTASKS-114] - improve documentation
* [MANTTASKS-146] - Improvements to site documentation
* [MANTTASKS-147] - Improvements to scope filtering

** New Feature
* [MANTTASKS-71] - running m2 inside Ant
* [MANTTASKS-149] - Allow multiple types in the type filter
* [MANTTASKS-150] - Add option for creating fileset refs for each resolved 
artifact.



Enjoy,

-The Maven team



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Using dependency analyzer via Maven API

2009-05-27 Thread Brian Fox
Most likely these will need to be looked up from a plexus container so that
all the dependencies are injected.

On Wed, May 27, 2009 at 7:37 AM, Fabien Coppens wrote:

> Hi.
> I would like to perform programatic dependency analysis from a POM, via the
> standard Maven 2.1 APIs. I'd like to be able to call methode analyze() in
> class
> DefaultProjectDependencyAnalyzer, passing it a MavenProject instance which
> I
> would have previously built from the POM file by using method build() in
> class
> DefaultMavenProjectBuilder.
> The two classes mentioned above have empty default constructors but they do
> have
> private attributes which seem to be set elsewhere (I don't see any setters
> in
> the classes).
> Can I just instantiate the above classes (for example as Spring singletons)
> and
> call the methods I need (see above), or do I need to go through some other
> code
> that will initialize those classes' attributes with the right values ?
> Fabien
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


RE: Changing default message of type validation in 1.4

2009-05-27 Thread Martin Gainty

//setting properties in classname-conversion.properties
# syntax: =
amount=com.acme.converters.MyCustomBigDecimalConverter

//assigning a Custom Converter class in xwork-conversion.properties
# syntax:  = 
java.math.BigDecimal = com.acme.MyBigDecimalConverterSaludos Cordiales desde 
EEUU
Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Wed, 27 May 2009 09:37:32 -0700
> From: dfernan...@users.sourceforge.net
> To: users@maven.apache.org
> Subject: Changing default message of type validation in 1.4
> 
> 
> 
> Hello,
> 
> I have a form with a input to which I have set type BigDecimal
> (setType(BigDecimal.class)), but I want to change the default type
> validation message so that it says "'a' is not a valid Number" instead of
> "'a' is not a valid BigDecimal.
> 
> I have tried setting i18n property "TypeValidator.BigDecimal" and also
> "TypeValidator.java.math.BigDecimal", which is the way I thought it was, but
> none of them seemed to work... has this changed in 1.4-rc2?
> 
> Regards,
> Daniel.
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Changing-default-message-of-type-validation-in-1.4-tp23746191p23746191.html
> Sent from the Maven - Users mailing list archive at Nabble.com.
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 

_
Hotmail® goes with you. 
http://windowslive.com/Tutorial/Hotmail/Mobile?ocid=TXT_TAGLM_WL_HM_Tutorial_Mobile1_052009

Changing default message of type validation in 1.4

2009-05-27 Thread dfernandez


Hello,

I have a form with a input to which I have set type BigDecimal
(setType(BigDecimal.class)), but I want to change the default type
validation message so that it says "'a' is not a valid Number" instead of
"'a' is not a valid BigDecimal.

I have tried setting i18n property "TypeValidator.BigDecimal" and also
"TypeValidator.java.math.BigDecimal", which is the way I thought it was, but
none of them seemed to work... has this changed in 1.4-rc2?

Regards,
Daniel.

-- 
View this message in context: 
http://www.nabble.com/Changing-default-message-of-type-validation-in-1.4-tp23746191p23746191.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven: The Definitive Guide in French

2009-05-27 Thread Mimil

je pensais plutôt à des trucs du genre:
https://open-language-tools.dev.java.net/

enfin pour l'instant j'ai pas trouver mieux.

Cédric,

On Wed, May 27, 2009 at 4:07 PM, ehsavoie (via Nabble) <
ml-user+65-514126...@n2.nabble.com >wrote:

> http://code.google.com/p/google-api-translate-java/
>
> On Mon, May 25, 2009 at 10:18 PM, Mimil 
> http://n2.nabble.com/user/SendEmail.jtp?type=node&node=2981285&i=0>>
> wrote:
>
> >
> > Hello,
> >
> > I also would like to help on translating this book but I am more focused
> on
> > creating tools allowing to translate docbook content so I think I will
> try
> > to help on this side.
> > I am developer on docbkx-tools (the current maven plugin you sonatype is
> > using for docbook generation) (ad.: the best docbook toolchain :P).
> > I will try to see how ppl on docbook malinglist manage the translation
> work
> > and I hope there will be something in the java world in opensource.
> > An other thing that may be needed for this work is an xmldiff in order to
>
> > detect the changes from the master language files for an easy of backport
>
> > to
> > the translation files.
> >
> > If someone already have some xp on this two topics, feel free to message
> > me.
> >
> > Regards,
> > Cédric,
> > --
> > View this message in context:
> >
> http://n2.nabble.com/Maven%3A-The-Definitive-Guide-in-French-tp2592139p2971483.html
> > Sent from the maven users mailing list archive at Nabble.com.
> >
> >
> > -
> > To unsubscribe, e-mail: 
> > users-unsubscr...@...
> > For additional commands, e-mail: 
> > users-h...@...
> >
> >
>
>
> --
>  This email is a reply to your post @
> http://n2.nabble.com/Maven%3A-The-Definitive-Guide-in-French-tp2592139p2981285.html
> You can reply by email or by visting the link above.
>
>

-- 
View this message in context: 
http://n2.nabble.com/Maven%3A-The-Definitive-Guide-in-French-tp2592139p2982057.html
Sent from the maven users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Using dependency analyzer via Maven API

2009-05-27 Thread Fabien Coppens
Hi.
I would like to perform programatic dependency analysis from a POM, via the
standard Maven 2.1 APIs. I'd like to be able to call methode analyze() in class
DefaultProjectDependencyAnalyzer, passing it a MavenProject instance which I
would have previously built from the POM file by using method build() in class
DefaultMavenProjectBuilder.
The two classes mentioned above have empty default constructors but they do have
private attributes which seem to be set elsewhere (I don't see any setters in
the classes).
Can I just instantiate the above classes (for example as Spring singletons) and
call the methods I need (see above), or do I need to go through some other code
that will initialize those classes' attributes with the right values ?
Fabien


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven: The Definitive Guide in French

2009-05-27 Thread Emmanuel Hugonnet
http://code.google.com/p/google-api-translate-java/

On Mon, May 25, 2009 at 10:18 PM, Mimil  wrote:

>
> Hello,
>
> I also would like to help on translating this book but I am more focused on
> creating tools allowing to translate docbook content so I think I will try
> to help on this side.
> I am developer on docbkx-tools (the current maven plugin you sonatype is
> using for docbook generation) (ad.: the best docbook toolchain :P).
> I will try to see how ppl on docbook malinglist manage the translation work
> and I hope there will be something in the java world in opensource.
> An other thing that may be needed for this work is an xmldiff in order to
> detect the changes from the master language files for an easy of backport
> to
> the translation files.
>
> If someone already have some xp on this two topics, feel free to message
> me.
>
> Regards,
> Cédric,
> --
> View this message in context:
> http://n2.nabble.com/Maven%3A-The-Definitive-Guide-in-French-tp2592139p2971483.html
> Sent from the maven users mailing list archive at Nabble.com.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>


Re: Slow maven compile after upgrading JDK from 1.5 to 1.6

2009-05-27 Thread j_ri

finally we found the cause of the issue.

javac of 1.6 doesn't ignore the class-path entries in the manifest file of
the JARs in the classpath as 1.5 did.
As all of our jars have configured
.

false

..

There are a lot of dependencies in the "search path for class files" of the
compiler which are nor really there.
If maven passes
"c:\Daten\repository\commons-lang\commons-lang\2.3\commons-lang-2.3.jar" as
command line option to the compiler
and the manifest Class-Path of another JAr in my classpath contains the
relative path "lib/commons-lang-2.3.jar"
then the compiler resolves this to "/lib/commons-lang-2.3.jar" and additionally adds that to the
"search path for class files" of javac.

So this search path suddenly contained 500 paths to jar files, instead of
the 56 passed by maven

-- 
View this message in context: 
http://n2.nabble.com/Slow-maven-compile-after-upgrading-JDK-from-1.5-to-1.6-tp2868702p2980816.html
Sent from the maven users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



creating new archetypes

2009-05-27 Thread vpalle

In the pom for the archetype I'm creating (archetype-resources/pom.xml), I'm
referencing ${project.build.directory}. Which is causing an error when
creating/generating a project from the archetype.. 

org.apache.velocity.runtime.exception.ReferenceException: reference :
template = archetype-resources/pom.xml [line 15,column 18] :
${project.build.directory} is not a valid reference.

, I'm I missing something, or do I not have access to the standard maven2
properties when defining my own archetypes!? 
-- 
View this message in context: 
http://www.nabble.com/creating-new-archetypes-tp23741605p23741605.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: [maven-eclipse-plugin] We need your help to test the future 2.7

2009-05-27 Thread Martijn Dashorst
On Wed, May 27, 2009 at 10:47 AM, Barrie Treloar  wrote:
> I went quickly hacking an existing IT test to include the resources
> definition you provided and some debugging output (as ERROR so I could
> see it)

Great!

> So src/main/resources is correctly on the resources list.
> The problem is that the list of directories to parse is a Set and the
> second addition is returning false to add() but nothing is checking
> this condition.
>
> Now I need to work out how to handle the collision

Let me know when there's a new snapshot to try.

Martijn


-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: problem compiling the project with ubuntu's pbuilder

2009-05-27 Thread Max Bowsher
Jordi Txor Casas Ríos wrote:
> Dear community.
> I have a project on Ubuntu that is compiled with maven 2 (version 2.0.8), it
> compiles and builds perfectly, creating the correct jars.
> The problem comes when I try to do the same in a chrooted environment, with
> pbuilder. The maven instalation is created when pbuilder starts, and the
> project directory is copied inside; the problem is that maven does not
> copies a set of jars that are in the local repository...

Since the entire point of pbuilder is to build in a clean chroot with
only build dependencies explicitly declared via the debian packaging
infrastructure available, I would say that that is functioning as intended.

Max.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



maven changes plugin : how to include JIRA Tasks in the mail report ?

2009-05-27 Thread Laurent Perez
Hi

I'm using a custom announcement template, does anyone know how to
include Tasks in the JIRA report ? Running mvn -X shows there seems to
be no wording available, ie. I can see "[DEBUG] o update" for
Improvements but for tasks, the line is "[DEBUG] o"

I'm really confused because the announce itself for the plugin release
contains a **Task segment
(http://mail-archives.apache.org/mod_mbox/maven-announce/200811.mbox/%3c9948cb690811250201u2d6489eep2d46a584ff57a...@mail.gmail.com%3e),
but looking at the template source
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-changes-plugin/src/main/resources/org/apache/maven/plugin/announcement/announcement.vm
, there is no Task segment, and there is no Task segment either on the
live jira report on
http://maven.apache.org/plugins/maven-changes-plugin/jira-report.html.

Was the task part added manually when the 2.1 plugin announcement was
prepared ? :)

thanks
laurent


-- 
http://in-pocket.blogspot.com";>http://in-pocket.blogspot.com
- Mobile world, technology and more

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: [maven-eclipse-plugin] We need your help to test the future 2.7

2009-05-27 Thread Barrie Treloar
On Wed, May 27, 2009 at 5:17 PM, Martijn Dashorst
 wrote:
> http://wicket.apache.org/quickstart.html
>
> Select for example Wicket 1.3.6
>

I went quickly hacking an existing IT test to include the resources
definition you provided and some debugging output (as ERROR so I could
see it)

[ERROR] Resources = [Resource {targetPath: null, filtering: false,
FileSet {directory:
D:\ide\maven\maven-eclipse-plugin\target\test-classes\projects\project-53-MECLIPSE-551\src\main\java,
PatternSet [includes: {**/*}, excludes: {**/*.java, **/*.sample}]}}]
[DEBUG] Processing resource dir:
D:\ide\maven\maven-eclipse-plugin\target\test-classes\projects\project-53-MECLIPSE-551\src\main\java
[DEBUG] Making relative and fixing separator: {
D:\ide\maven\maven-eclipse-plugin\target\test-classes\projects\project-53-MECLIPSE-551,
D:\ide\maven\maven-eclipse-plugin\target\test-classes\projects\project-53-MECLIPSE-551\target\classes,
false }.
[DEBUG] Adding eclipse source dir: { src/main/java, target/classes,
true, false, **/*, **/*.java|**/*.sample|**/*.java }.
[ERROR] Failed to add eclipse source dir: src/main/java as it already
exists in the set.

So src/main/resources is correctly on the resources list.
The problem is that the list of directories to parse is a Set and the
second addition is returning false to add() but nothing is checking
this condition.

Now I need to work out how to handle the collision

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: Maven: The Definitive Guide in French

2009-05-27 Thread coutant

Yes, a relevant example is the translation in French of the "OpenOffice.org
Migration Guide". 
Ebook available here : 
http://www.inlibroveritas.net/catalogue/fiche-livre/changer_pour_openofficeorg.html
http://www.inlibroveritas.net/catalogue/fiche-livre/changer_pour_openofficeorg.html
. 
In addition to the free ebook, the real paper book can be ordered (here for
15 euros). I tested the service : it was shipped within 3 days.

I'm interested in helping with the translation of Definitive Guide.
Specially chapter 20 : "Developing with Flexmojos". I've been using
Flexmojos since it's inception.

Coutant


ehsavoie wrote:
> 
> Hi,
> There is also: In Libro Veritas (http://www.inlibroveritas.net) a small
> editor for open content license books (Licence Art
> Libre,
> Creative Commons ,
> GFDL).
> You can get the books in pdf or on paper for a price depending on the
> quality of the paper (new or recycled) and on the number of pages (
> http://www.inlibroveritas.net/presentation_livres.php).
> They will give 10% back as royalties, I don't know but we could use it to
> sponsor some opensource projects, the Apache Foundation, etc. (or maybe
> our
> readers ;o) )
> 
> Emmanuel
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Maven%3A-The-Definitive-Guide-in-French-tp22905160p23738324.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



[maven-assembly-plugin][jar-with-dependencies] How to include only one dependency?

2009-05-27 Thread daronmaster

Hi, 

I have a maven project that uses several dependencies (you tell me as many
projects ...). 

Once the project as a jar, I dynamically load a class included in it. The
problem is that it lacks the level of dependency and therefore leaves me an
error when loading. 

I have therefore chosen to include my addiction (which gives me an error if
it is not loaded), this is the POM:
http://www.nabble.com/file/p23737766/pom.xml pom.xml 

By running MVN assembly: assembly in my console, you've guessed that all
dependencies were included in my jar.

I would like to include only the dependence D (the last), do you have an
idea? 

Thank you

-- 
View this message in context: 
http://www.nabble.com/-maven-assembly-plugin--jar-with-dependencies--How-to-include-only-one-dependency--tp23737766p23737766.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: [maven-eclipse-plugin] We need your help to test the future 2.7

2009-05-27 Thread Martijn Dashorst
http://wicket.apache.org/quickstart.html

Select for example Wicket 1.3.6

Martijn

On Wed, May 27, 2009 at 8:44 AM, Barrie Treloar  wrote:
> On Wed, May 27, 2009 at 3:58 PM, Martijn Dashorst
>  wrote:
>> With Wicket, we have Page.html, Page.properties, Page.properties_ru,
>> Page.js, Page.css, Page.younameit next to the Java files. This has
>> been the official way to work with Wicket, and was 100% supported by
>> maven by defining src/main/java as a resources element in our poms.
>> 443 breaks this. And no, we don't take put them in src/main/resources
>> as an answer.
>
> Can you attach to http://jira.codehaus.org/browse/MECLIPSE-551 a test
> project that is configured the way you expect.
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.5 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.

-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



Re: maven, ant, antrun:run

2009-05-27 Thread vpalle

Thank you for the answer. I'm using this specific ant task to deploy an axis
webservice ( with a program called AdminClient). I can only deploy it after
my container ( in this case jetty:run ) has started.. So which phase would
be relevant?


Wayne Fay wrote:
> 
>>                    
>>                        Ant: deleting
>> EDepotServiceBindingImpl.java
>>                        generate-sources
> ...
>>                    
>>                        Ant: Deploying service with axis-admin
>>                        pre-integration-test
> ...
>> As I understand, I should be able to execute my ant tasks, embedded in
>> the
>> above executions, with 'mvn ant:run'... But the message > message="Running axis-admin" /> is not shown in the output.. Seems lilke
>> the
>> tasks are not run.
> 
> Since you bound both executions of the plugin to various phases of
> your build's lifecycle, Maven will automatically execute the plugin
> with those configuration values at the proper time of the lifecycle
> during your build -- you do not (and should not) need to type "mvn
> ant:run" -- instead just type "mvn package" or whatever lifecycle you
> wish to execute. Read more here:
> http://maven.apache.org/plugins/maven-antrun-plugin/
> 
> Wayne
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/maven%2C-ant%2C-antrun%3Arun-tp23720986p23737664.html
Sent from the Maven - Users mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org