RE: Quality Dashboard

2006-12-03 Thread Vincent Massol
Well... :-) I have been wanting to write this dashboard stuff for a long
time now but I've never found the time to do it... I've now joined the XWiki
project and I think it would make a nice foundation for a quality/health
dashboard. OTOH I still don't know when I'll have time to work on it. Don't
hold your breath...

That said, others on the list have already started working on a dashboard
plugin and there's even been a submission for it I think. You may want to
look at that.

Thanks
-Vincent

> -Original Message-
> From: Alexandre Poitras [mailto:[EMAIL PROTECTED]
> Sent: samedi 2 décembre 2006 02:08
> To: Maven Users List
> Subject: Re: Quality Dashboard
> 
> I went to a conference in Montreal today and from what Vincent said,
> it's going to be based on XWiki. I'll let him talk more about it by
> himself :)
> 
> On 9/7/06, Wim Deblauwe <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > reading through
> http://idisk.maven.org/jvanzyl/Public/presos/Feynman.pdf,
> > there is talk of Vincent's Dashboard. Is this a plugin that is going
> to be
> > released soon? I think many users would like a quality dashboard that
> can
> > generate graphs of your metrics (PMD, unit test pass rate, code
> coverage,
> > ...) over time.
> >
> > regards,
> >
> > Wim






___
Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son 
interface révolutionnaire.
http://fr.mail.yahoo.com

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



RE: Continuum and multimodule setup

2006-12-03 Thread hermod.opstvedt
Hi

I'll give it a try. I hav noticed these issues also:
http://jira.codehaus.org/browse/MRELEASE-6?rc=1
http://jira.codehaus.org/browse/CONTINUUM-462

Hermod

-Original Message-
From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
Sent: Friday, December 01, 2006 4:40 PM
To: continuum-users@maven.apache.org
Subject: Re: Continuum and multimodule setup


continuum use the url you provide in Add Project screen and it add the module 
path.
So with parent url 
http://svn.sandsli.dnb.no/svn/felles/IT-01/IT01-main/trunk/pom.xml and module 
../it01 continuum think that the module url is 
http://svn.sandsli.dnb.no/svn/felles/IT-01/IT01-main/trunk/../it01/pom.xml

Continuum can't know your module path isn't the good path in your scm and can't 
know it isn't ../it01 but ../../it01/trunk

With your directory structure, the only solution is to use the file protocol 
with a local checkout of your project.

With the scm url, it's a similar problem, so you need to specify the scm url in 
each your module if maven doesn't resolve correctly it.

Emmanuel

[EMAIL PROTECTED] a écrit :
> Hi
> 
> In the main pom we have:
> 
>   
>   ../it01
>   ../it01-ant
>   ../it01-pmd
>   ../it01-hs-beans
>   ../HostserverService
>   ../it01-mavenplugins
>   
> 
> What happend was that when we added the project and did the first build, the 
> url changed in Continuum from:
> (...)IT01/it01/trunk to (...)IT01/it01/it01
> 
> If we enter:
> http://svn.sandsli.dnb.no/svn/felles/IT-01/IT01-main/trunk/pom.xml
> Then we get comments like:
> Could not download 
> http://svn.sandsli.dnb.no/svn/felles/IT-01/IT01-main/trunk/../it01/pom.xml: 
> Unable to validate URL 
> Check the logs for more details
> 
> If we enter (to at least build one module):
> http://svn.sandsli.dnb.no/svn/felles/IT-01/it01/trunk/pom.xml
> 
> Then Continuum creates a scm url like:
> scm:svn:http://[EMAIL PROTECTED]/svn/felles/IT-01/it01/it01
> 
> Hermod
> 
> 
> -Original Message-
> From: Emmanuel Venisse [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, November 29, 2006 5:12 PM
> To: continuum-users@maven.apache.org
> Subject: Re: Continuum and multimodule setup
> 
> 
> yes, it's supported, but your parent pom must be in a repository accessible 
> by continuum. How do you have define the remote repositories list?
> 
> Emmanuel
> 
> [EMAIL PROTECTED] a écrit :
>> Hi
>>
>> I have a Maven multimodule project that has a flat Eclipse structure. It 
>> seems that Continuum has problems with this (not finding the parent). Does 
>> Continuum support this type of project?
>>
>> Hermod
>>
>>
>> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>>
>> This email with attachments is solely for the use of the individual or
>> entity to whom it is addressed. Please also be aware that DnB NOR cannot
>> accept any payment orders or other legally binding correspondence with
>> customers as a part of an email. 
>>
>> This email message has been virus checked by the anti virus programs used
>> in the DnB NOR Group.
>>
>> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
>>
>>
>>
>>
> 
> 
> 
> 



Re: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina

Dear Wayne,
As your said, the trouble is very strange.
I created a build.xml,







and run "ant", then I got a right result.

a cup of Java, cheers!
Sha Jiang


Wayne Fay wrote:
> 
> I'd expect there's some "verbose=true" kind of settings you can use in
> your ant call to get more information from Ant. This isn't really a
> Maven issue, per se, so you'll need to consult the Ant docs.
> 
> Wayne
> 
> On 12/3/06, jiangshachina <[EMAIL PROTECTED]> wrote:
>>
>> Hello,
>> Now, I used absolute path, but the result wasn't changed :(
>> I just run "mvn antrun:run"
>> [INFO] [antrun:run]
>> [INFO] Executing task
>> [INFO] Executed tasks
>>
>> a cup of Java, cheers!
>> Sha Jiang
>>
>>
>> Ryan Slobojan wrote:
>> >
>> > Hi Sha,
>> >
>> > It appears that the antrun task is executing, but I suspect it's not
>> > finding the directory correctly. From the block of code you pasted, it
>> > looks like you're using a relative path to select the folder for
>> deletion
>> > - I'd recommend that you use something like
>> > ${project.build.directory}/checkout/whatever as opposed to just
>> > checkout/whatever. You may find that antrun isn't running in the folder
>> > that you think it is, so you have to specify an absolute path.
>> >
>> > In case you're wondering, ${project.build.directory} points at
>> > [project]\target.
>> >
>> > Thanks,
>> >
>> > Ryan Slobojan
>> >
>> > -Original Message-
>> > From: jiangshachina [mailto:[EMAIL PROTECTED]
>> > Sent: Sun 12/3/2006 8:33 PM
>> > To: users@maven.apache.org
>> > Subject: Re: delete a directory by maven-antrun-plugin?
>> >
>> >
>> > Dear Wayne,
>> > I followed your instructions, but didn't find any interesting things.
>> >
>> > It's some of output below
>> > [DEBUG]   org.apache.maven:maven-artifact:jar:2.0.1:runtime
>> (selected
>> > for runtime)
>> > [DEBUG] org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected
>> > for
>> > runtime)
>> > [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for
>> project:
>> > org.apache.maven:maven-plugin-api:jar:2.0.1 from the repository.
>> > [DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.1:runtime (selected
>> > for
>> > runtime)
>> > [DEBUG]   ant:ant:jar:1.6.5:runtime (selected for runtime)
>> > [DEBUG]   ant:ant-launcher:jar:1.6.5:runtime (selected for runtime)
>> > [DEBUG] Configuring mojo
>> > 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run'-->
>> > [DEBUG]   (f) artifacts = [ant:ant:jar:1.6.5:runtime,
>> > ant:ant-launcher:jar:1.6.5:runtime,
>> > org.apache.maven:maven-project:jar:2.0.1:runtime,
>> > org.apache.maven:maven-plugin-api:jar:2.0.1:runtime]
>> > [DEBUG]   (f) project = [EMAIL PROTECTED]
>> > [DEBUG]   (f) tasks =
>> > [DEBUG] -- end configuration --
>> > [INFO] [antrun:run]
>> > [INFO] Executing tasks
>> > [INFO] Executed tasks
>> > [INFO]
>> >
>> 
>> > [INFO] BUILD SUCCESSFUL
>> >
>> > a cup of Java, cheers!
>> > Sha Jiang
>> >
>> >
>> > Wayne Fay wrote:
>> >>
>> >> Add an -X ie mvn -X scm:checkout antrun:run to get more information
>> >> while Maven is running.
>> >>
>> >> Wayne
>> >>
>> >> On 12/3/06, jiangshachina <[EMAIL PROTECTED]> wrote:
>> >>>
>> >>> Hello Ryan,
>> >>> Really, I didn't create a right Ant statements.
>> >>> But my trouble isn't related to Ant scripts, but Maven work flow.
>> >>> The following is my main pom scripts,
>> >>> 
>> >>>
>> >>>
>> >>>org.apache.maven.plugins
>> >>>maven-scm-plugin
>> >>>1.0-beta-3
>> >>>
>> >>>username
>> >>>password
>> >>>
>> >>> checkout/myproject
>> >>>
>> >>>
>> >>>
>> >>>org.apache.maven.plugins
>> >>>maven-antrun-plugin
>> >>>1.1
>> >>>
>> >>>
>> >>>compile
>> >>>   
>> generate-resources
>> >>>
>> >>>
>> >>>> >>> dir="checkout\myproject\specific_directory"
>> >>>
>> >>> includeemptydirs="true"/>
>> >>>
>> >>>
>> >>>
>> >>>run
>> >>>
>> >>>
>> >>>
>> >>>
>> >>>
>> >>> 
>> >>> addtionally, I have set  in .
>> >>> I'm using command mvn scm:checkout antrun:run.
>> >>> In the console, I saw some words about antrun work, but it did
>> nothing
>> >>> :(

Re: Latest version of TestNG (5.3) not available in central repo

2006-12-03 Thread Jimisola Laursen


Wayne Fay wrote:
> 
> http://maven.apache.org/guides/mini/guide-maven-evangelism.html
> and
> http://jira.codehaus.org/browse/MEV
> 
> But ideally, the TestNG team can/will make their own poms and bundles
> and arrange for them to be uploaded to Maven Repo rather than relying
> on a random user of the tool to do it for them. So really you should
> complain to the TestNG devs and ask them to do this.
> 
> Wayne
> 

I agree and did just that earlier on. My post in testng-user has had some
attention:

http://groups.google.com/group/testng-users/browse_thread/thread/44ccd7db21b4fc80

Regards,
Jimisola

-- 
View this message in context: 
http://www.nabble.com/Latest-version-of-TestNG-%285.3%29-not-available-in-central-repo-tf2744273s177.html#a7671710
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: - How to create multiple jar files from one project? - Bayesian Filter detected spam

2006-12-03 Thread Peter Palmreuther
Hello Alexander,

On Sunday, December 3, 2006 at 10:53:57 PM Alexander wrote:

> Yea, I agree...I don't see why interfaces should be dependent on
> implementations?  What's the point?

It doesn't. The *Factory* does, and just *this* factory is (should be)
shipped with the relevant interface, while the implementation should
be shipped separately. Or more precisely: the impl-jar shouldn't be
shipped anywhere, just located in the runtime.

> I don't see how you would have a circular dependency.

I do have. If you don't see it I wasn't able to explain it correctly.

> Your factory classes probably produce instances of your interfaces.

It does.

> Your implementation classes would depend on those interfaces.

Exactly. And for the Factory producing instances it depends on the
implementation class. Which is in a different project / jar. Which
depends on the interface class / jar. Which can't be built due to the
fact it needs the impl-jar (as "" set up in "pom.xml").
Which can't be compiled as it needs the interface class. Which
*aghh* I'm lost in a recursive explanation!!! ;-)

> Life is good!  :D

Sometimes. Not. :-)

> On 12/3/06, William Ferguson <[EMAIL PROTECTED]> wrote:
>>
>> Peter,
>>
>> I don't think a Maven solution is what you need.
>> I think you need to rethink the packaging and dependencies of your 2
>> projects.
>> It sounds like your interface project shouldn't depend on the Factory in
>> the implementation project.
>>
>> You could organise this a couple of different ways:
>> 1) The Factory class could ship with interface project.
>> 2) Ship a Factory interface with your interface project, and ship the
>> Factory impl in the other project.
>>
>> Hope this helps.
>>
>> William
>>
>> -Original Message-
>> From: Peter Palmreuther [mailto:[EMAIL PROTECTED]
>> Sent: Sunday, 3 December 2006 9:01 PM
>> To: Maven Users List
>> Subject: [***POSSIBLE SPAM***] - How to create multiple jar files from
>> one project? - Bayesian Filter detected spam
>>
>> Hello,
>>
>> I'm new to Maven and tried to find an answer on the website, but either
>> I'm to dense or it ain't there (yet). So if this question is already
>> answered in a public available document I'd be happy to get the link.
>>
>> I have a project that should be a library to encapsulate the logger
>> being used in all other projects. From this project I create two JAR
>> files: one containing the interface(s) and a factory, the other one
>> containing the implementation classes.
>>
>> By now I'm trying to switch to use Maven2 for project management and
>> dependency tracking, but I'm still unable to get the two jars out of
>> Maven build process.
>>
>> Therefore I've tried to split the project up into two projects to have
>> two artifacts. But than I end up in a cyclic dependency:
>>
>> Interface project depends on implementation project for the factory to
>> compile; Implementation project depends on interface project for the
>> implementation class to compile (Class implements Interface). A deadlock
>> :-(
>>
>> Anybody out there with an idea how to solve this problem "the Maven2
>> way"? I'd be happy with a hint on
>> - either how to influence the packaging process for getting two JARs
>>   (artifacts?) from one POM
>> - or how to tell the two Maven2 projects they belong "somehow
>>   together" for dependency resolution in a way it's done as if this
>>   were one project
>>
>> Thanks a lot in advance,
>> --
>> Best regards
>> Peter Palmreuther
>>
>> "Bother," said Pooh as he found he'd used a dirty needle
-- 
Best regards
"Peter Palmreuther <[EMAIL PROTECTED]>"
(The Bat! v3.86.8 ALPHA (beta) on Windows XP 5.1 Build 2600 Service Pack 2)

"There is no statute of limitations on stupidity."


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



Re: How to create multiple jar files from one project?

2006-12-03 Thread Peter Palmreuther
Hello Tom,

On Sunday, December 3, 2006 at 8:31:24 PM Tom wrote:

> Maven does not support creating two artifacts from one project and it
> does not support circular dependencies between two projects. The only
> proper solution is cutting the dependency from interface to
> implementation.

Thanks a lot for clarifying things up, for me don't need to search
further.

> One thing you could try is to create an abstract factory that can find
> a concrete implementation of itself through reflection (based on a
> default implementation, a system property, configuration, ...)

Thanks. Already started something similar, while I was awaiting the
answer here ... Seems I was on the right track ...

> On 12/3/06, Peter Palmreuther <[EMAIL PROTECTED]> wrote:
>> Hello,
>>
>> I'm new to Maven and tried to find an answer on the website, but
>> either I'm to dense or it ain't there (yet). So if this question is
>> already answered in a public available document I'd be happy to get
>> the link.
>>
>> I have a project that should be a library to encapsulate the logger
>> being used in all other projects. From this project I create two JAR
>> files: one containing the interface(s) and a factory, the other one
>> containing the implementation classes.
>>
>> By now I'm trying to switch to use Maven2 for project management and
>> dependency tracking, but I'm still unable to get the two jars out of
>> Maven build process.
>>
>> Therefore I've tried to split the project up into two projects to have
>> two artifacts. But than I end up in a cyclic dependency:
>>
>> Interface project depends on implementation project for the factory to
>> compile; Implementation project depends on interface project for the
>> implementation class to compile (Class implements Interface). A
>> deadlock :-(
>>
>> Anybody out there with an idea how to solve this problem "the Maven2
>> way"? I'd be happy with a hint on
>> - either how to influence the packaging process for getting two JARs
>>   (artifacts?) from one POM
>> - or how to tell the two Maven2 projects they belong "somehow
>>   together" for dependency resolution in a way it's done as if this
>>   were one project
>>
>> Thanks a lot in advance,
>> --
>> Best regards
>> Peter Palmreuther
>>
>> "Bother," said Pooh as he found he'd used a dirty needle
-- 
Best regards
"Peter Palmreuther <[EMAIL PROTECTED]>"
(The Bat! v3.86.8 ALPHA (beta) on Windows XP 5.1 Build 2600 Service Pack 2)

DIODE: What happens to people who don't die young.


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



Re: - How to create multiple jar files from one project? - Bayesian Filter detected spam

2006-12-03 Thread Peter Palmreuther
Hello William,

On Sunday, December 3, 2006 at 10:46:37 PM William wrote:

> I don't think a Maven solution is what you need.

OK. Can live with this. I just wanted to make sure *there is none*
before I go the long way and get told later there was a shorter one.

> I think you need to rethink the packaging and dependencies of your 2
> projects.

In fact I do. I took over this project and started to clean up and
introduce Maven ... Rethinking everything is the very first I did ;-)
And I'm not quite finished yet ;-)

> It sounds like your interface project shouldn't depend on the Factory in
> the implementation project.

The factory is part of the interface project:

Interface-Project:
 - Custom logger interface
 - Factory to create such a logger

Implementation-Project:
 - Custom logger
 - some other stuff

(just the relevant parts mentioned)

> You could organise this a couple of different ways:
> 1) The Factory class could ship with interface project.

It does.

> 2) Ship a Factory interface with your interface project, and ship the
> Factory impl in the other project.

*hmm* Good idea, will think about it. But there's still the need
create an instance of something that's in the interface-project. And
this one needs to know something from the implementation. And this
implementation-project needs to know the Interface(s) and this leads
me to: "You most probable need reflection when you want to cut the two
things up".

> Hope this helps.

Sure. Somehow. And if it only enforces me to think about all the stuff
another time ;-)

> -Original Message-
> From: Peter Palmreuther [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, 3 December 2006 9:01 PM
> To: Maven Users List
> Subject: [***POSSIBLE SPAM***] - How to create multiple jar files from
> one project? - Bayesian Filter detected spam

> Hello,

> I'm new to Maven and tried to find an answer on the website, but either
> I'm to dense or it ain't there (yet). So if this question is already
> answered in a public available document I'd be happy to get the link.

> I have a project that should be a library to encapsulate the logger
> being used in all other projects. From this project I create two JAR
> files: one containing the interface(s) and a factory, the other one
> containing the implementation classes.

> By now I'm trying to switch to use Maven2 for project management and
> dependency tracking, but I'm still unable to get the two jars out of
> Maven build process.

> Therefore I've tried to split the project up into two projects to have
> two artifacts. But than I end up in a cyclic dependency:

> Interface project depends on implementation project for the factory to
> compile; Implementation project depends on interface project for the
> implementation class to compile (Class implements Interface). A deadlock
> :-(

> Anybody out there with an idea how to solve this problem "the Maven2
> way"? I'd be happy with a hint on
> - either how to influence the packaging process for getting two JARs
>   (artifacts?) from one POM
> - or how to tell the two Maven2 projects they belong "somehow
>   together" for dependency resolution in a way it's done as if this
>   were one project

> Thanks a lot in advance,
> --
> Best regards
> Peter Palmreuther

> "Bother," said Pooh as he found he'd used a dirty needle
-- 
Best regards
"Peter Palmreuther <[EMAIL PROTECTED]>"
(The Bat! v3.86.8 ALPHA (beta) on Windows XP 5.1 Build 2600 Service Pack 2)

Don't know what I'm after, but the pressure's driving me insane...


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



Re: delete a directory by maven-antrun-plugin?

2006-12-03 Thread Wayne Fay

I'd expect there's some "verbose=true" kind of settings you can use in
your ant call to get more information from Ant. This isn't really a
Maven issue, per se, so you'll need to consult the Ant docs.

Wayne

On 12/3/06, jiangshachina <[EMAIL PROTECTED]> wrote:


Hello,
Now, I used absolute path, but the result wasn't changed :(
I just run "mvn antrun:run"
[INFO] [antrun:run]
[INFO] Executing task
[INFO] Executed tasks

a cup of Java, cheers!
Sha Jiang


Ryan Slobojan wrote:
>
> Hi Sha,
>
> It appears that the antrun task is executing, but I suspect it's not
> finding the directory correctly. From the block of code you pasted, it
> looks like you're using a relative path to select the folder for deletion
> - I'd recommend that you use something like
> ${project.build.directory}/checkout/whatever as opposed to just
> checkout/whatever. You may find that antrun isn't running in the folder
> that you think it is, so you have to specify an absolute path.
>
> In case you're wondering, ${project.build.directory} points at
> [project]\target.
>
> Thanks,
>
> Ryan Slobojan
>
> -Original Message-
> From: jiangshachina [mailto:[EMAIL PROTECTED]
> Sent: Sun 12/3/2006 8:33 PM
> To: users@maven.apache.org
> Subject: Re: delete a directory by maven-antrun-plugin?
>
>
> Dear Wayne,
> I followed your instructions, but didn't find any interesting things.
>
> It's some of output below
> [DEBUG]   org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected
> for runtime)
> [DEBUG] org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected
> for
> runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project:
> org.apache.maven:maven-plugin-api:jar:2.0.1 from the repository.
> [DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.1:runtime (selected
> for
> runtime)
> [DEBUG]   ant:ant:jar:1.6.5:runtime (selected for runtime)
> [DEBUG]   ant:ant-launcher:jar:1.6.5:runtime (selected for runtime)
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run'-->
> [DEBUG]   (f) artifacts = [ant:ant:jar:1.6.5:runtime,
> ant:ant-launcher:jar:1.6.5:runtime,
> org.apache.maven:maven-project:jar:2.0.1:runtime,
> org.apache.maven:maven-plugin-api:jar:2.0.1:runtime]
> [DEBUG]   (f) project = [EMAIL PROTECTED]
> [DEBUG]   (f) tasks =
> [DEBUG] -- end configuration --
> [INFO] [antrun:run]
> [INFO] Executing tasks
> [INFO] Executed tasks
> [INFO]
> 
> [INFO] BUILD SUCCESSFUL
>
> a cup of Java, cheers!
> Sha Jiang
>
>
> Wayne Fay wrote:
>>
>> Add an -X ie mvn -X scm:checkout antrun:run to get more information
>> while Maven is running.
>>
>> Wayne
>>
>> On 12/3/06, jiangshachina <[EMAIL PROTECTED]> wrote:
>>>
>>> Hello Ryan,
>>> Really, I didn't create a right Ant statements.
>>> But my trouble isn't related to Ant scripts, but Maven work flow.
>>> The following is my main pom scripts,
>>> 
>>>
>>>
>>>org.apache.maven.plugins
>>>maven-scm-plugin
>>>1.0-beta-3
>>>
>>>username
>>>password
>>>
>>> checkout/myproject
>>>
>>>
>>>
>>>org.apache.maven.plugins
>>>maven-antrun-plugin
>>>1.1
>>>
>>>
>>>compile
>>>generate-resources
>>>
>>>
>>>>> dir="checkout\myproject\specific_directory"
>>>
>>> includeemptydirs="true"/>
>>>
>>>
>>>
>>>run
>>>
>>>
>>>
>>>
>>>
>>> 
>>> addtionally, I have set  in .
>>> I'm using command mvn scm:checkout antrun:run.
>>> In the console, I saw some words about antrun work, but it did nothing
>>> :(
>>>
>>> a cup of Java, cheers!
>>> Sha Jiang
>>>
>>>
>>> Ryan Slobojan wrote:
>>> >
>>> > Hi Sha,
>>> >
>>> > There are a couple things I can recommend:
>>> >
>>> > * To see what you are deleting, do:
>>> >
>>> > 
>>> >   
>>> >   
>>> > 
>>> >
>>> > Of course, if you are hardcoding a directory as opposed to using e.g.
>>> > ${basedir}/something, then this won't be very helpful
>>> >
>>> > * Ant's delete task has an annoying habit of deleting *only* the files
>>> > inside of a directory, not the directories themselves. To get it ot
>>> > delete the directories, you need to:
>>> >
>>> > 
>>> >
>>> > Thanks,
>>> >
>>> >

RE: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina

Hello,
Now, I used absolute path, but the result wasn't changed :(
I just run "mvn antrun:run"
[INFO] [antrun:run]
[INFO] Executing task
[INFO] Executed tasks

a cup of Java, cheers!
Sha Jiang


Ryan Slobojan wrote:
> 
> Hi Sha,
> 
> It appears that the antrun task is executing, but I suspect it's not
> finding the directory correctly. From the block of code you pasted, it
> looks like you're using a relative path to select the folder for deletion
> - I'd recommend that you use something like
> ${project.build.directory}/checkout/whatever as opposed to just
> checkout/whatever. You may find that antrun isn't running in the folder
> that you think it is, so you have to specify an absolute path.
> 
> In case you're wondering, ${project.build.directory} points at
> [project]\target.
> 
> Thanks,
> 
> Ryan Slobojan
> 
> -Original Message-
> From: jiangshachina [mailto:[EMAIL PROTECTED]
> Sent: Sun 12/3/2006 8:33 PM
> To: users@maven.apache.org
> Subject: Re: delete a directory by maven-antrun-plugin?
>  
> 
> Dear Wayne,
> I followed your instructions, but didn't find any interesting things.
> 
> It's some of output below
> [DEBUG]   org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected
> for runtime)
> [DEBUG] org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected
> for
> runtime)
> [DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project: 
> org.apache.maven:maven-plugin-api:jar:2.0.1 from the repository.
> [DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.1:runtime (selected
> for
> runtime)
> [DEBUG]   ant:ant:jar:1.6.5:runtime (selected for runtime)
> [DEBUG]   ant:ant-launcher:jar:1.6.5:runtime (selected for runtime)
> [DEBUG] Configuring mojo
> 'org.apache.maven.plugins:maven-antrun-plugin:1.1:run'-->
> [DEBUG]   (f) artifacts = [ant:ant:jar:1.6.5:runtime,
> ant:ant-launcher:jar:1.6.5:runtime, 
> org.apache.maven:maven-project:jar:2.0.1:runtime,
> org.apache.maven:maven-plugin-api:jar:2.0.1:runtime]
> [DEBUG]   (f) project = [EMAIL PROTECTED]
> [DEBUG]   (f) tasks =
> [DEBUG] -- end configuration --
> [INFO] [antrun:run]
> [INFO] Executing tasks
> [INFO] Executed tasks
> [INFO]
> 
> [INFO] BUILD SUCCESSFUL
> 
> a cup of Java, cheers!
> Sha Jiang
> 
> 
> Wayne Fay wrote:
>> 
>> Add an -X ie mvn -X scm:checkout antrun:run to get more information
>> while Maven is running.
>> 
>> Wayne
>> 
>> On 12/3/06, jiangshachina <[EMAIL PROTECTED]> wrote:
>>>
>>> Hello Ryan,
>>> Really, I didn't create a right Ant statements.
>>> But my trouble isn't related to Ant scripts, but Maven work flow.
>>> The following is my main pom scripts,
>>> 
>>>
>>>
>>>org.apache.maven.plugins
>>>maven-scm-plugin
>>>1.0-beta-3
>>>
>>>username
>>>password
>>>   
>>> checkout/myproject
>>>
>>>
>>>
>>>org.apache.maven.plugins
>>>maven-antrun-plugin
>>>1.1
>>>
>>>
>>>compile
>>>generate-resources
>>>
>>>
>>>>> dir="checkout\myproject\specific_directory"
>>>   
>>> includeemptydirs="true"/>
>>>
>>>
>>>
>>>run
>>>
>>>
>>>
>>>
>>>
>>> 
>>> addtionally, I have set  in .
>>> I'm using command mvn scm:checkout antrun:run.
>>> In the console, I saw some words about antrun work, but it did nothing
>>> :(
>>>
>>> a cup of Java, cheers!
>>> Sha Jiang
>>>
>>>
>>> Ryan Slobojan wrote:
>>> >
>>> > Hi Sha,
>>> >
>>> > There are a couple things I can recommend:
>>> >
>>> > * To see what you are deleting, do:
>>> >
>>> > 
>>> >   
>>> >   
>>> > 
>>> >
>>> > Of course, if you are hardcoding a directory as opposed to using e.g.
>>> > ${basedir}/something, then this won't be very helpful
>>> >
>>> > * Ant's delete task has an annoying habit of deleting *only* the files
>>> > inside of a directory, not the directories themselves. To get it ot
>>> > delete the directories, you need to:
>>> >
>>> > 
>>> >
>>> > Thanks,
>>> >
>>> > Ryan Slobojan
>>> >
>>> > -Original Message-
>>> > From: jiangshachina [mailto:[EMAIL PROTECTED]
>>> > Sent: Sunday, December 03, 2006 2:34 AM

RE: delete a directory by maven-antrun-plugin?

2006-12-03 Thread Ryan Slobojan
Hi Sha,

It appears that the antrun task is executing, but I suspect it's not finding 
the directory correctly. From the block of code you pasted, it looks like 
you're using a relative path to select the folder for deletion - I'd recommend 
that you use something like ${project.build.directory}/checkout/whatever as 
opposed to just checkout/whatever. You may find that antrun isn't running in 
the folder that you think it is, so you have to specify an absolute path.

In case you're wondering, ${project.build.directory} points at [project]\target.

Thanks,

Ryan Slobojan

-Original Message-
From: jiangshachina [mailto:[EMAIL PROTECTED]
Sent: Sun 12/3/2006 8:33 PM
To: users@maven.apache.org
Subject: Re: delete a directory by maven-antrun-plugin?
 

Dear Wayne,
I followed your instructions, but didn't find any interesting things.

It's some of output below
[DEBUG]   org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected
for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project: 
org.apache.maven:maven-plugin-api:jar:2.0.1 from the repository.
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.1:runtime (selected for
runtime)
[DEBUG]   ant:ant:jar:1.6.5:runtime (selected for runtime)
[DEBUG]   ant:ant-launcher:jar:1.6.5:runtime (selected for runtime)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-antrun-plugin:1.1:run'-->
[DEBUG]   (f) artifacts = [ant:ant:jar:1.6.5:runtime,
ant:ant-launcher:jar:1.6.5:runtime, 
org.apache.maven:maven-project:jar:2.0.1:runtime,
org.apache.maven:maven-plugin-api:jar:2.0.1:runtime]
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) tasks =
[DEBUG] -- end configuration --
[INFO] [antrun:run]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO]

[INFO] BUILD SUCCESSFUL

a cup of Java, cheers!
Sha Jiang


Wayne Fay wrote:
> 
> Add an -X ie mvn -X scm:checkout antrun:run to get more information
> while Maven is running.
> 
> Wayne
> 
> On 12/3/06, jiangshachina <[EMAIL PROTECTED]> wrote:
>>
>> Hello Ryan,
>> Really, I didn't create a right Ant statements.
>> But my trouble isn't related to Ant scripts, but Maven work flow.
>> The following is my main pom scripts,
>> 
>>
>>
>>org.apache.maven.plugins
>>maven-scm-plugin
>>1.0-beta-3
>>
>>username
>>password
>>   
>> checkout/myproject
>>
>>
>>
>>org.apache.maven.plugins
>>maven-antrun-plugin
>>1.1
>>
>>
>>compile
>>generate-resources
>>
>>
>>> dir="checkout\myproject\specific_directory"
>>   
>> includeemptydirs="true"/>
>>
>>
>>
>>run
>>
>>
>>
>>
>>
>> 
>> addtionally, I have set  in .
>> I'm using command mvn scm:checkout antrun:run.
>> In the console, I saw some words about antrun work, but it did nothing :(
>>
>> a cup of Java, cheers!
>> Sha Jiang
>>
>>
>> Ryan Slobojan wrote:
>> >
>> > Hi Sha,
>> >
>> > There are a couple things I can recommend:
>> >
>> > * To see what you are deleting, do:
>> >
>> > 
>> >   
>> >   
>> > 
>> >
>> > Of course, if you are hardcoding a directory as opposed to using e.g.
>> > ${basedir}/something, then this won't be very helpful
>> >
>> > * Ant's delete task has an annoying habit of deleting *only* the files
>> > inside of a directory, not the directories themselves. To get it ot
>> > delete the directories, you need to:
>> >
>> > 
>> >
>> > Thanks,
>> >
>> > Ryan Slobojan
>> >
>> > -Original Message-
>> > From: jiangshachina [mailto:[EMAIL PROTECTED]
>> > Sent: Sunday, December 03, 2006 2:34 AM
>> > To: users@maven.apache.org
>> > Subject: Re: delete a directory by maven-antrun-plugin?
>> >
>> >
>> > Dear dan,
>> >> are you sure you did point ant:delete to a valid directory? ;-)
>> > Really, I don't know the plugin.
>> > How can I get its home page?
>> >
>> > a cup of Java, cheers!
>> > Sha Jiang
>> >
>> >
>> > dan tran wrote:
>> >>
>> >> are you sure you did point ant:delete to a valid directory? ;-)
>> >>
>> >>

Re: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina

Dear Wayne,
I followed your instructions, but didn't find any interesting things.

It's some of output below
[DEBUG]   org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected
for runtime)
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.1:runtime (selected for
runtime)
[DEBUG] Retrieving parent-POM: org.apache.maven:maven::2.0.1 for project: 
org.apache.maven:maven-plugin-api:jar:2.0.1 from the repository.
[DEBUG]   org.apache.maven:maven-plugin-api:jar:2.0.1:runtime (selected for
runtime)
[DEBUG]   ant:ant:jar:1.6.5:runtime (selected for runtime)
[DEBUG]   ant:ant-launcher:jar:1.6.5:runtime (selected for runtime)
[DEBUG] Configuring mojo
'org.apache.maven.plugins:maven-antrun-plugin:1.1:run'-->
[DEBUG]   (f) artifacts = [ant:ant:jar:1.6.5:runtime,
ant:ant-launcher:jar:1.6.5:runtime, 
org.apache.maven:maven-project:jar:2.0.1:runtime,
org.apache.maven:maven-plugin-api:jar:2.0.1:runtime]
[DEBUG]   (f) project = [EMAIL PROTECTED]
[DEBUG]   (f) tasks =
[DEBUG] -- end configuration --
[INFO] [antrun:run]
[INFO] Executing tasks
[INFO] Executed tasks
[INFO]

[INFO] BUILD SUCCESSFUL

a cup of Java, cheers!
Sha Jiang


Wayne Fay wrote:
> 
> Add an -X ie mvn -X scm:checkout antrun:run to get more information
> while Maven is running.
> 
> Wayne
> 
> On 12/3/06, jiangshachina <[EMAIL PROTECTED]> wrote:
>>
>> Hello Ryan,
>> Really, I didn't create a right Ant statements.
>> But my trouble isn't related to Ant scripts, but Maven work flow.
>> The following is my main pom scripts,
>> 
>>
>>
>>org.apache.maven.plugins
>>maven-scm-plugin
>>1.0-beta-3
>>
>>username
>>password
>>   
>> checkout/myproject
>>
>>
>>
>>org.apache.maven.plugins
>>maven-antrun-plugin
>>1.1
>>
>>
>>compile
>>generate-resources
>>
>>
>>> dir="checkout\myproject\specific_directory"
>>   
>> includeemptydirs="true"/>
>>
>>
>>
>>run
>>
>>
>>
>>
>>
>> 
>> addtionally, I have set  in .
>> I'm using command mvn scm:checkout antrun:run.
>> In the console, I saw some words about antrun work, but it did nothing :(
>>
>> a cup of Java, cheers!
>> Sha Jiang
>>
>>
>> Ryan Slobojan wrote:
>> >
>> > Hi Sha,
>> >
>> > There are a couple things I can recommend:
>> >
>> > * To see what you are deleting, do:
>> >
>> > 
>> >   
>> >   
>> > 
>> >
>> > Of course, if you are hardcoding a directory as opposed to using e.g.
>> > ${basedir}/something, then this won't be very helpful
>> >
>> > * Ant's delete task has an annoying habit of deleting *only* the files
>> > inside of a directory, not the directories themselves. To get it ot
>> > delete the directories, you need to:
>> >
>> > 
>> >
>> > Thanks,
>> >
>> > Ryan Slobojan
>> >
>> > -Original Message-
>> > From: jiangshachina [mailto:[EMAIL PROTECTED]
>> > Sent: Sunday, December 03, 2006 2:34 AM
>> > To: users@maven.apache.org
>> > Subject: Re: delete a directory by maven-antrun-plugin?
>> >
>> >
>> > Dear dan,
>> >> are you sure you did point ant:delete to a valid directory? ;-)
>> > Really, I don't know the plugin.
>> > How can I get its home page?
>> >
>> > a cup of Java, cheers!
>> > Sha Jiang
>> >
>> >
>> > dan tran wrote:
>> >>
>> >> are you sure you did point ant:delete to a valid directory? ;-)
>> >>
>> >> i works for me here
>> >>
>> >> -D
>> >>
>> >>
>> >> On 12/3/06, jiangshachina <[EMAIL PROTECTED]> wrote:
>> >>>
>> >>>
>> >>> Hi,
>> >>> In fact, I need to delete some directories after checkout one module
>> >>> from CVS.
>> >>> and it seems that I cannot checkout several modules in one pom, then
>> >>> I made the idea.
>> >>>
>> >>> a cup of Java, cheers!
>> >>> Sha Jiang
>> >>>
>> >>>
>> >>> jiangshachina wrote:
>> >>> >
>> >>> > I just want to delete directory,
>> >>> > the work isn't related to "compile", "package", or others.
>> >>> >
>> >>> > a cup of Java, cheers!
>> >>> > Sha Jiang
>> >>> >
>> >>> >
>> >>> > jiangshachina wrote:
>> >>> >>
>> >>> >> Hello dan,
>> >>> >> Exactly, I don't know which phase would be bined :( I used
>> >>> >> initia

Re: Latest version of TestNG (5.3) not available in central repo

2006-12-03 Thread Carlos Sanchez

actually this is the right one
http://maven.apache.org/guides/mini/guide-ibiblio-upload.html

On 12/3/06, Wayne Fay <[EMAIL PROTECTED]> wrote:

http://maven.apache.org/guides/mini/guide-maven-evangelism.html
and
http://jira.codehaus.org/browse/MEV

But ideally, the TestNG team can/will make their own poms and bundles
and arrange for them to be uploaded to Maven Repo rather than relying
on a random user of the tool to do it for them. So really you should
complain to the TestNG devs and ask them to do this.

Wayne

On 12/2/06, Jimisola Laursen <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> There seems to be many Maven users using TestNG, so I was quite surprised
> that the latest version of TestNG available in central repo is 5.1, when the
> latest version of TestNG is 5.3.
>
> What do I have to do for it to be added to the central repo?
>
> Regards,
> Jimisola
>
>
> --
> View this message in context: 
http://www.nabble.com/Latest-version-of-TestNG-%285.3%29-not-available-in-central-repo-tf2744273s177.html#a7657016
> Sent from the Maven - Users mailing list archive 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]





--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
-- The Princess Bride

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



Re: Latest version of TestNG (5.3) not available in central repo

2006-12-03 Thread Wayne Fay

http://maven.apache.org/guides/mini/guide-maven-evangelism.html
and
http://jira.codehaus.org/browse/MEV

But ideally, the TestNG team can/will make their own poms and bundles
and arrange for them to be uploaded to Maven Repo rather than relying
on a random user of the tool to do it for them. So really you should
complain to the TestNG devs and ask them to do this.

Wayne

On 12/2/06, Jimisola Laursen <[EMAIL PROTECTED]> wrote:


Hi,

There seems to be many Maven users using TestNG, so I was quite surprised
that the latest version of TestNG available in central repo is 5.1, when the
latest version of TestNG is 5.3.

What do I have to do for it to be added to the central repo?

Regards,
Jimisola


--
View this message in context: 
http://www.nabble.com/Latest-version-of-TestNG-%285.3%29-not-available-in-central-repo-tf2744273s177.html#a7657016
Sent from the Maven - Users mailing list archive 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]



Re: Simple Depedency Management Rules

2006-12-03 Thread Ole Ersoy
Cool - Thanks D - That's definitely on the list

- Ole


--- Dan Tran <[EMAIL PROTECTED]> wrote:

> I did exactly that in my ~70 projects tree.
> 
> one more rule,  nail down all plugin versions in the
> pluginManagement
> section too.
> 
> -D
> 
> 
> 
> 
> On 12/2/06, Ole Ersoy <[EMAIL PROTECTED]> wrote:
> >
> > OK - I'm hijacking my own thread.
> >
> > I think I have a simple rule / best practice
> > now for structuring dependencies.
> >
> > I would love feedback on this before I begin
> coding
> > the mojo that checks conformance.
> >
> > Here are the rules:
> >
> > Keep all dependencies specified in the top
> > level pom's dependencyManagement section.
> >
> > Specify scope and version in child projects,
> > only when scope and version need to be
> > different from
> > those provided in the top level pom.
> >
> > Thoughts?
> >
> > Thanks,
> > - Ole
> >
> > --- Ole Ersoy <[EMAIL PROTECTED]> wrote:
> >
> > > Hi,
> > >
> > > I'm working on a mojo that will analyze a
> build's
> > > poms and come up with structuring
> recommendations.
> > >
> > > For dependencies I had a simple rule in mind.
> > >
> > > Keep them either on the parent or the child,
> unless
> > > one of the children has to override the parent's
> > > version setting...so this would only happen if a
> > > parent had 3 children, two of which needed the
> same
> > > version and a 3rd
> > > needing a different version.
> > >
> > > However Maven also has the dependencyManagement
> > > element.
> > > Does that do something that the regular
> dependencies
> > > element does not?
> > >
> > > Also, if anyone has other pom structuring rules
> /
> > > best
> > > practices they would like to see included in the
> > > report
> > > I'm accepting requests.  The report mojo will be
> > > apache licensed.
> > >
> > > Cheers,
> > > - Ole
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
>

> > > Do you Yahoo!?
> > > Everyone is raving about the all-new Yahoo! Mail
> > > beta.
> > > http://new.mail.yahoo.com
> > >
> > >
> >
>
-
> > > To unsubscribe, e-mail:
> > > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > > [EMAIL PROTECTED]
> > >
> > >
> >
> >
> >
> >
> >
> >
>

> > Want to start your own business?
> > Learn how on Yahoo! Small Business.
> > http://smallbusiness.yahoo.com/r-index
> >
> >
>
-
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >
> >
> 



 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

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



Re: delete a directory by maven-antrun-plugin?

2006-12-03 Thread Wayne Fay

Add an -X ie mvn -X scm:checkout antrun:run to get more information
while Maven is running.

Wayne

On 12/3/06, jiangshachina <[EMAIL PROTECTED]> wrote:


Hello Ryan,
Really, I didn't create a right Ant statements.
But my trouble isn't related to Ant scripts, but Maven work flow.
The following is my main pom scripts,

   
   
   org.apache.maven.plugins
   maven-scm-plugin
   1.0-beta-3
   
   username
   password
   
checkout/myproject
   
   
   
   org.apache.maven.plugins
   maven-antrun-plugin
   1.1
   
   
   compile
   generate-resources
   
   
   
   
   
   
   run
   
   
   
   
   

addtionally, I have set  in .
I'm using command mvn scm:checkout antrun:run.
In the console, I saw some words about antrun work, but it did nothing :(

a cup of Java, cheers!
Sha Jiang


Ryan Slobojan wrote:
>
> Hi Sha,
>
> There are a couple things I can recommend:
>
> * To see what you are deleting, do:
>
> 
>   
>   
> 
>
> Of course, if you are hardcoding a directory as opposed to using e.g.
> ${basedir}/something, then this won't be very helpful
>
> * Ant's delete task has an annoying habit of deleting *only* the files
> inside of a directory, not the directories themselves. To get it ot
> delete the directories, you need to:
>
> 
>
> Thanks,
>
> Ryan Slobojan
>
> -Original Message-
> From: jiangshachina [mailto:[EMAIL PROTECTED]
> Sent: Sunday, December 03, 2006 2:34 AM
> To: users@maven.apache.org
> Subject: Re: delete a directory by maven-antrun-plugin?
>
>
> Dear dan,
>> are you sure you did point ant:delete to a valid directory? ;-)
> Really, I don't know the plugin.
> How can I get its home page?
>
> a cup of Java, cheers!
> Sha Jiang
>
>
> dan tran wrote:
>>
>> are you sure you did point ant:delete to a valid directory? ;-)
>>
>> i works for me here
>>
>> -D
>>
>>
>> On 12/3/06, jiangshachina <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>> Hi,
>>> In fact, I need to delete some directories after checkout one module
>>> from CVS.
>>> and it seems that I cannot checkout several modules in one pom, then
>>> I made the idea.
>>>
>>> a cup of Java, cheers!
>>> Sha Jiang
>>>
>>>
>>> jiangshachina wrote:
>>> >
>>> > I just want to delete directory,
>>> > the work isn't related to "compile", "package", or others.
>>> >
>>> > a cup of Java, cheers!
>>> > Sha Jiang
>>> >
>>> >
>>> > jiangshachina wrote:
>>> >>
>>> >> Hello dan,
>>> >> Exactly, I don't know which phase would be bined :( I used
>>> >> initialize initialize but the result was
>>> >> the same.
>>> >>
>>> >> a cup of Java, cheers!
>>> >> Sha Jiang
>>> >>
>>> >>
>>> >> dan tran wrote:
>>> >>>
>>> >>> You may want to bind your antrun execution to a phase.
>>> >>>
>>> >>> -D
>>> >>>
>>> >>>
>>> >>> On 12/2/06, jiangshachina <[EMAIL PROTECTED]> wrote:
>>> 
>>> 
>>>  Hello,
>>>  I want to delete a directory by maven-antrun-plugin, I'm using
>>>  the scripts below, 
>>> org.apache.maven.plugins
>>> maven-antrun-plugin
>>> 1.1
>>> 
>>> 
>>> 
>>> 
>>>  dir="the_directory"/>
>>> 
>>> 
>>> 
>>> run
>>> 
>>> 
>>> 
>>>  
>>>  then I run "mvn antrun:run",
>>>  unfortunately, Maven didn't delete the directory.
>>>  How can I resolve the trouble?
>>> 
>>>  a cup of Java, cheers!
>>>  Sha Jiang
>>>  --
>>>  View this message in context:
>>> 
>>> http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf27
>>> 45727s177.html#a7660767
>>>  Sent from the Maven - Users mailing list archive at Nabble.com.
>>> 
>>> 
>>> 
>>> -
>>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
>>> >>>
>>> >>>
>>> >>
>>> >>
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/delete-a-dir

RE: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina

Hello Ryan,
Really, I didn't create a right Ant statements.
But my trouble isn't related to Ant scripts, but Maven work flow.
The following is my main pom scripts,



org.apache.maven.plugins
maven-scm-plugin
1.0-beta-3

username
password

checkout/myproject



org.apache.maven.plugins
maven-antrun-plugin
1.1


compile
generate-resources






run






addtionally, I have set  in .
I'm using command mvn scm:checkout antrun:run.
In the console, I saw some words about antrun work, but it did nothing :(

a cup of Java, cheers!
Sha Jiang


Ryan Slobojan wrote:
> 
> Hi Sha,
> 
> There are a couple things I can recommend:
> 
> * To see what you are deleting, do:
> 
> 
>   
>   
> 
> 
> Of course, if you are hardcoding a directory as opposed to using e.g.
> ${basedir}/something, then this won't be very helpful
> 
> * Ant's delete task has an annoying habit of deleting *only* the files
> inside of a directory, not the directories themselves. To get it ot
> delete the directories, you need to:
> 
> 
> 
> Thanks,
> 
> Ryan Slobojan
> 
> -Original Message-
> From: jiangshachina [mailto:[EMAIL PROTECTED] 
> Sent: Sunday, December 03, 2006 2:34 AM
> To: users@maven.apache.org
> Subject: Re: delete a directory by maven-antrun-plugin?
> 
> 
> Dear dan,
>> are you sure you did point ant:delete to a valid directory? ;-)
> Really, I don't know the plugin.
> How can I get its home page?
> 
> a cup of Java, cheers!
> Sha Jiang
> 
> 
> dan tran wrote:
>> 
>> are you sure you did point ant:delete to a valid directory? ;-)
>> 
>> i works for me here
>> 
>> -D
>> 
>> 
>> On 12/3/06, jiangshachina <[EMAIL PROTECTED]> wrote:
>>>
>>>
>>> Hi,
>>> In fact, I need to delete some directories after checkout one module 
>>> from CVS.
>>> and it seems that I cannot checkout several modules in one pom, then 
>>> I made the idea.
>>>
>>> a cup of Java, cheers!
>>> Sha Jiang
>>>
>>>
>>> jiangshachina wrote:
>>> >
>>> > I just want to delete directory,
>>> > the work isn't related to "compile", "package", or others.
>>> >
>>> > a cup of Java, cheers!
>>> > Sha Jiang
>>> >
>>> >
>>> > jiangshachina wrote:
>>> >>
>>> >> Hello dan,
>>> >> Exactly, I don't know which phase would be bined :( I used 
>>> >> initialize initialize but the result was 
>>> >> the same.
>>> >>
>>> >> a cup of Java, cheers!
>>> >> Sha Jiang
>>> >>
>>> >>
>>> >> dan tran wrote:
>>> >>>
>>> >>> You may want to bind your antrun execution to a phase.
>>> >>>
>>> >>> -D
>>> >>>
>>> >>>
>>> >>> On 12/2/06, jiangshachina <[EMAIL PROTECTED]> wrote:
>>> 
>>> 
>>>  Hello,
>>>  I want to delete a directory by maven-antrun-plugin, I'm using 
>>>  the scripts below, 
>>> org.apache.maven.plugins
>>> maven-antrun-plugin
>>> 1.1
>>> 
>>> 
>>> 
>>> 
>>>  dir="the_directory"/>
>>> 
>>> 
>>> 
>>> run
>>> 
>>> 
>>> 
>>>  
>>>  then I run "mvn antrun:run",
>>>  unfortunately, Maven didn't delete the directory.
>>>  How can I resolve the trouble?
>>> 
>>>  a cup of Java, cheers!
>>>  Sha Jiang
>>>  --
>>>  View this message in context:
>>> 
>>> http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf27
>>> 45727s177.html#a7660767
>>>  Sent from the Maven - Users mailing list archive at Nabble.com.
>>> 
>>> 
>>> 
>>> -
>>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>  For additional commands, e-mail: [EMAIL PROTECTED]
>>> 
>>> 
>>> >>>
>>> >>>
>>> >>
>>> >>
>>> >
>>> >
>>>
>>> --
>>> View this message in context:
>>> http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf27
>>> 45727s177.html#a7661328 Sent from the Maven - Users mailin

Re: [***POSSIBLE SPAM***] - How to create multiple jar files from one project? - Bayesian Filter detected spam

2006-12-03 Thread Alexander Sack

Yea, I agree...I don't see why interfaces should be dependent on
implementations?  What's the point?  I don't see how you would have a
circular dependency.  Your factory classes probably produce instances of
your interfaces.  Your implementation classes would depend on those
interfaces.  Life is good!  :D

-aps

On 12/3/06, William Ferguson <[EMAIL PROTECTED]> wrote:


Peter,

I don't think a Maven solution is what you need.
I think you need to rethink the packaging and dependencies of your 2
projects.
It sounds like your interface project shouldn't depend on the Factory in
the implementation project.

You could organise this a couple of different ways:
1) The Factory class could ship with interface project.
2) Ship a Factory interface with your interface project, and ship the
Factory impl in the other project.

Hope this helps.

William

-Original Message-
From: Peter Palmreuther [mailto:[EMAIL PROTECTED]
Sent: Sunday, 3 December 2006 9:01 PM
To: Maven Users List
Subject: [***POSSIBLE SPAM***] - How to create multiple jar files from
one project? - Bayesian Filter detected spam

Hello,

I'm new to Maven and tried to find an answer on the website, but either
I'm to dense or it ain't there (yet). So if this question is already
answered in a public available document I'd be happy to get the link.

I have a project that should be a library to encapsulate the logger
being used in all other projects. From this project I create two JAR
files: one containing the interface(s) and a factory, the other one
containing the implementation classes.

By now I'm trying to switch to use Maven2 for project management and
dependency tracking, but I'm still unable to get the two jars out of
Maven build process.

Therefore I've tried to split the project up into two projects to have
two artifacts. But than I end up in a cyclic dependency:

Interface project depends on implementation project for the factory to
compile; Implementation project depends on interface project for the
implementation class to compile (Class implements Interface). A deadlock
:-(

Anybody out there with an idea how to solve this problem "the Maven2
way"? I'd be happy with a hint on
- either how to influence the packaging process for getting two JARs
  (artifacts?) from one POM
- or how to tell the two Maven2 projects they belong "somehow
  together" for dependency resolution in a way it's done as if this
  were one project

Thanks a lot in advance,
--
Best regards
Peter Palmreuther

"Bother," said Pooh as he found he'd used a dirty needle


-
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]





--
"What lies behind us and what lies in front of us is of little concern to
what lies within us." -Ralph Waldo Emerson


RE: [***POSSIBLE SPAM***] - How to create multiple jar files from one project? - Bayesian Filter detected spam

2006-12-03 Thread William Ferguson
Peter,

I don't think a Maven solution is what you need.
I think you need to rethink the packaging and dependencies of your 2
projects.
It sounds like your interface project shouldn't depend on the Factory in
the implementation project.

You could organise this a couple of different ways:
1) The Factory class could ship with interface project.
2) Ship a Factory interface with your interface project, and ship the
Factory impl in the other project.

Hope this helps.

William 

-Original Message-
From: Peter Palmreuther [mailto:[EMAIL PROTECTED] 
Sent: Sunday, 3 December 2006 9:01 PM
To: Maven Users List
Subject: [***POSSIBLE SPAM***] - How to create multiple jar files from
one project? - Bayesian Filter detected spam

Hello,

I'm new to Maven and tried to find an answer on the website, but either
I'm to dense or it ain't there (yet). So if this question is already
answered in a public available document I'd be happy to get the link.

I have a project that should be a library to encapsulate the logger
being used in all other projects. From this project I create two JAR
files: one containing the interface(s) and a factory, the other one
containing the implementation classes.

By now I'm trying to switch to use Maven2 for project management and
dependency tracking, but I'm still unable to get the two jars out of
Maven build process.

Therefore I've tried to split the project up into two projects to have
two artifacts. But than I end up in a cyclic dependency:

Interface project depends on implementation project for the factory to
compile; Implementation project depends on interface project for the
implementation class to compile (Class implements Interface). A deadlock
:-(

Anybody out there with an idea how to solve this problem "the Maven2
way"? I'd be happy with a hint on
- either how to influence the packaging process for getting two JARs
  (artifacts?) from one POM
- or how to tell the two Maven2 projects they belong "somehow
  together" for dependency resolution in a way it's done as if this
  were one project

Thanks a lot in advance,
--
Best regards
Peter Palmreuther

"Bother," said Pooh as he found he'd used a dirty needle


-
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]



Using https with certificate auth

2006-12-03 Thread Arnaud Bailly
Hello,
I want to use continuum with pom urls usgin https and client
certificate authentication. I tried adding the same parameters
(keystore, trusted certs store ..) than what is used with maven but it fails. 

INFO   | jvm 1| 2006/12/03 21:06:55 | 2006-12-03 21:06:55,221 
[SocketListener0-0] INFO  Validator:url-source   - An error is occurred.
INFO   | jvm 1| 2006/12/03 21:06:55 | javax.net.ssl.SSLHandshakeException: 
Received fatal alert: handshake_failure
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:150)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:117)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1542)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:863)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1038)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:402)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:170)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:913)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.codehaus.plexus.formica.util.MungedHttpsURL.isValid(MungedHttpsURL.java:111)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.codehaus.plexus.formica.validation.UrlSourceValidator.validate(UrlSourceValidator.java:63)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.codehaus.plexus.formica.DefaultFormManager.validateElements(DefaultFormManager.java:195)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.codehaus.plexus.formica.DefaultFormManager.validate(DefaultFormManager.java:124)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.codehaus.plexus.formica.DefaultFormManager.validate(DefaultFormManager.java:114)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.codehaus.plexus.formica.action.AbstractEntityAction.execute(AbstractEntityAction.java:107)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.codehaus.plexus.summit.pipeline.valve.ActionValve.invoke(ActionValve.java:68)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.codehaus.plexus.summit.pipeline.AbstractPipeline.invoke(AbstractPipeline.java:70)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.codehaus.plexus.summit.Summit.doGet(Summit.java:54)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.codehaus.plexus.summit.Summit.doPost(Summit.java:108)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:358)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:567)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1807)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:525)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.mortbay.http.HttpContext.handle(HttpContext.java:1757)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.mortbay.http.HttpServer.service(HttpServer.java:879)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.mortbay.http.HttpConnection.service(HttpConnection.java:789)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.mortbay.http.HttpConnection.handleNext(HttpConnection.java:960)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.mortbay.http.HttpConnection.handle(HttpConnection.java:806)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.mortbay.http.SocketListener.handleConnection(SocketListener.java:218)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.mortbay.util.ThreadedServer.handle(ThreadedServer.java:331)
INFO   | jvm 1| 2006/12/03 21:06:55 |   at 
org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:520)

thank for help

-- 
OQub

Re: Modfy classpath

2006-12-03 Thread Eric Redmond

Maven manages its classloader hierarchy through classworlds (
http://classworlds.codehaus.org/). If you want to do some manipulation of
the hierarchy, you must do it through that. Unless you actually need to
modify the classpath for some other third party execution, in which case set
the system property directly.

On 12/3/06, Kevin Menard <[EMAIL PROTECTED]> wrote:


Hi,

I'm working on a Maven plugin and need to modify the classpath.  It
appears that maven runs the plugin with all of its dependencies, but the
plugin itself can't see them.  The only classpath entry I have is
"C:\dev\maven\core\boot\classworlds-1.1.jar".

Any help would be appreciated.  My guess is that I just don't understand
what maven is doing.  All I want is one is the plugin's dependencies to
appear under the system classpath.

Thanks,
Kevin

--
Kevin Menard
Servprise International
WebReboot -- Remote Reboot Without Pulling the Plug
800.832.3823


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





--
Eric Redmond
http://codehaus.org/~eredmond


How to create multiple jar files from one project?

2006-12-03 Thread Peter Palmreuther
Hello,

I'm new to Maven and tried to find an answer on the website, but
either I'm to dense or it ain't there (yet). So if this question is
already answered in a public available document I'd be happy to get
the link.

I have a project that should be a library to encapsulate the logger
being used in all other projects. From this project I create two JAR
files: one containing the interface(s) and a factory, the other one
containing the implementation classes.

By now I'm trying to switch to use Maven2 for project management and
dependency tracking, but I'm still unable to get the two jars out of
Maven build process.

Therefore I've tried to split the project up into two projects to have
two artifacts. But than I end up in a cyclic dependency:

Interface project depends on implementation project for the factory to
compile; Implementation project depends on interface project for the
implementation class to compile (Class implements Interface). A
deadlock :-(

Anybody out there with an idea how to solve this problem "the Maven2
way"? I'd be happy with a hint on
- either how to influence the packaging process for getting two JARs
  (artifacts?) from one POM
- or how to tell the two Maven2 projects they belong "somehow
  together" for dependency resolution in a way it's done as if this
  were one project

Thanks a lot in advance,
-- 
Best regards
Peter Palmreuther

"Bother," said Pooh as he found he'd used a dirty needle


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



Re: checkout from several modules?

2006-12-03 Thread Wayne Fay

I don't believe this is directly possible in Maven, though I certainly
could be wrong.

I think other projects generally create a batch script or similar
which calls CVS checkout repeatedly. For example, here's the CVS
checkout for Project Glassfish which is actually an Ant target:

   
   
   


   

Wayne

On 12/2/06, jiangshachina <[EMAIL PROTECTED]> wrote:


Hi guys,
I'm using the following scripts for checkouting from CVS,

   
   scm:cvs:pserver:user:[EMAIL PROTECTED]:port:repository:module
   

then I run "mvn scm:checkout".
But the approach only checkouts one module.
Now I want to checkout several ones?
How can I get it?

a cup of Java, cheers!
Sha Jiang
--
View this message in context: 
http://www.nabble.com/checkout-from-several-modules--tf2742630s177.html#a7652248
Sent from the Maven - Users mailing list archive 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]



Re: How to create multiple jar files from one project?

2006-12-03 Thread Tom Huybrechts

Maven does not support creating two artifacts from one project and it
does not support circular dependencies between two projects. The only
proper solution is cutting the dependency from interface to
implementation.

One thing you could try is to create an abstract factory that can find
a concrete implementation of itself through reflection (based on a
default implementation, a system property, configuration, ...)

Or use some kind of container that does these things for you (plexus,
spring, ...)

Tom

On 12/3/06, Peter Palmreuther <[EMAIL PROTECTED]> wrote:

Hello,

I'm new to Maven and tried to find an answer on the website, but
either I'm to dense or it ain't there (yet). So if this question is
already answered in a public available document I'd be happy to get
the link.

I have a project that should be a library to encapsulate the logger
being used in all other projects. From this project I create two JAR
files: one containing the interface(s) and a factory, the other one
containing the implementation classes.

By now I'm trying to switch to use Maven2 for project management and
dependency tracking, but I'm still unable to get the two jars out of
Maven build process.

Therefore I've tried to split the project up into two projects to have
two artifacts. But than I end up in a cyclic dependency:

Interface project depends on implementation project for the factory to
compile; Implementation project depends on interface project for the
implementation class to compile (Class implements Interface). A
deadlock :-(

Anybody out there with an idea how to solve this problem "the Maven2
way"? I'd be happy with a hint on
- either how to influence the packaging process for getting two JARs
  (artifacts?) from one POM
- or how to tell the two Maven2 projects they belong "somehow
  together" for dependency resolution in a way it's done as if this
  were one project

Thanks a lot in advance,
--
Best regards
Peter Palmreuther

"Bother," said Pooh as he found he'd used a dirty needle


-
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]



Modfy classpath

2006-12-03 Thread Kevin Menard
Hi,

I'm working on a Maven plugin and need to modify the classpath.  It
appears that maven runs the plugin with all of its dependencies, but the
plugin itself can't see them.  The only classpath entry I have is
"C:\dev\maven\core\boot\classworlds-1.1.jar".

Any help would be appreciated.  My guess is that I just don't understand
what maven is doing.  All I want is one is the plugin's dependencies to
appear under the system classpath.

Thanks,
Kevin

-- 
Kevin Menard
Servprise International
WebReboot -- Remote Reboot Without Pulling the Plug
800.832.3823


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



How to create multiple jar files from one project?

2006-12-03 Thread Peter Palmreuther
Hello,

I'm new to Maven and tried to find an answer on the website, but
either I'm to dense or it ain't there (yet). So if this question is
already answered in a public available document I'd be happy to get
the link.

I have a project that should be a library to encapsulate the logger
being used in all other projects. From this project I create two JAR
files: one containing the interface(s) and a factory, the other one
containing the implementation classes.

By now I'm trying to switch to use Maven2 for project management and
dependency tracking, but I'm still unable to get the two jars out of
Maven build process.

Therefore I've tried to split the project up into two projects to have
two artifacts. But than I end up in a cyclic dependency:

Interface project depends on implementation project for the factory to
compile; Implementation project depends on interface project for the
implementation class to compile (Class implements Interface). A
deadlock :-(

Anybody out there with an idea how to solve this problem "the Maven2
way"? I'd be happy with a hint on
- either how to influence the packaging process for getting two JARs
  (artifacts?) from one POM
- or how to tell the two Maven2 projects they belong "somehow
  together" for dependency resolution in a way it's done as if this
  were one project

Thanks a lot in advance,
-- 
Best regards
Peter Palmreuther

"Bother," said Pooh as he found he'd used a dirty needle


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



Re: assembly file and descriptorRefs

2006-12-03 Thread Wendy Smoak

On 12/2/06, Yann Albou <[EMAIL PROTECTED]> wrote:


I saw I can configure a descriptorRefs, but it seems limited to
predefined assembly files (bin, jar-with-dependencies, or src).
I would like to add my own descriptorRef and make it availables to other
projects.


Maybe as a build extension?  Try creating another module and putting
your assembly descriptor in a jar.  Deploy that to your Maven repo,
then pull it in with .

I haven't tried it with assembly, but it works for Checkstyle config files.

--
Wendy

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



assembly file and descriptorRefs

2006-12-03 Thread Yann Albou

I have created my own assembly.xml file.
Now I would like to make this file available through the maven repository.
Is this possible ?

I saw I can configure a descriptorRefs, but it seems limited to 
predefined assembly files (bin, jar-with-dependencies, or src).
I would like to add my own descriptorRef and make it availables to other 
projects.

When looking inside assembly source code, ref are loading using :
getClass().getResourceAsStream( "/assemblies/" + ref + ".xml" );
So it seems that "/assemblies/myOwnRef" need to be in the classloader of 
the assembly plugin.

But how can I do it ?


Yann.


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



Re: POM Structuring Recommendations Report

2006-12-03 Thread Ole Ersoy
Incidentally,

Do you by chance know if 
there is a way to make 
mvn eclipse:eclipse work
for a project with pom packaging?

This would be really nice for quickly
editing the dependencyManagement section
on a parent.

Thanks,
- Ole




--- Wendy Smoak <[EMAIL PROTECTED]> wrote:

> On 12/2/06, Ole Ersoy <[EMAIL PROTECTED]> wrote:
> 
> > I'm leaning toward this as a best practice,
> because we
> > could have a build that has 3 modules and then we
> add
> > a 4th one, and if the parent had dependencies
> included
> > in the pom, the 4th module automatically gets
> them,
> > and maybe it didn't really want them.
> >
> > Thoughts?
> 
> That's exactly what  is for.
> 
> -- 
> Wendy
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



 

Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com

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



Re: POM Structuring Recommendations Report

2006-12-03 Thread Ole Ersoy
Yes!

Cool - It makes perfect sense.

Thanks for the reassurance.


--- Wendy Smoak <[EMAIL PROTECTED]> wrote:

> On 12/2/06, Ole Ersoy <[EMAIL PROTECTED]> wrote:
> 
> > I'm leaning toward this as a best practice,
> because we
> > could have a build that has 3 modules and then we
> add
> > a 4th one, and if the parent had dependencies
> included
> > in the pom, the 4th module automatically gets
> them,
> > and maybe it didn't really want them.
> >
> > Thoughts?
> 
> That's exactly what  is for.
> 
> -- 
> Wendy
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 



 

Have a burning question?  
Go to www.Answers.yahoo.com and get answers from real people who know.

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



RE: delete a directory by maven-antrun-plugin?

2006-12-03 Thread Ryan Slobojan
Hi Sha,

There are a couple things I can recommend:

* To see what you are deleting, do:






Of course, if you are hardcoding a directory as opposed to using e.g.
${basedir}/something, then this won't be very helpful

* Ant's delete task has an annoying habit of deleting *only* the files
inside of a directory, not the directories themselves. To get it ot
delete the directories, you need to:



Thanks,

Ryan Slobojan

-Original Message-
From: jiangshachina [mailto:[EMAIL PROTECTED] 
Sent: Sunday, December 03, 2006 2:34 AM
To: users@maven.apache.org
Subject: Re: delete a directory by maven-antrun-plugin?


Dear dan,
> are you sure you did point ant:delete to a valid directory? ;-)
Really, I don't know the plugin.
How can I get its home page?

a cup of Java, cheers!
Sha Jiang


dan tran wrote:
> 
> are you sure you did point ant:delete to a valid directory? ;-)
> 
> i works for me here
> 
> -D
> 
> 
> On 12/3/06, jiangshachina <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi,
>> In fact, I need to delete some directories after checkout one module 
>> from CVS.
>> and it seems that I cannot checkout several modules in one pom, then 
>> I made the idea.
>>
>> a cup of Java, cheers!
>> Sha Jiang
>>
>>
>> jiangshachina wrote:
>> >
>> > I just want to delete directory,
>> > the work isn't related to "compile", "package", or others.
>> >
>> > a cup of Java, cheers!
>> > Sha Jiang
>> >
>> >
>> > jiangshachina wrote:
>> >>
>> >> Hello dan,
>> >> Exactly, I don't know which phase would be bined :( I used 
>> >> initialize initialize but the result was 
>> >> the same.
>> >>
>> >> a cup of Java, cheers!
>> >> Sha Jiang
>> >>
>> >>
>> >> dan tran wrote:
>> >>>
>> >>> You may want to bind your antrun execution to a phase.
>> >>>
>> >>> -D
>> >>>
>> >>>
>> >>> On 12/2/06, jiangshachina <[EMAIL PROTECTED]> wrote:
>> 
>> 
>>  Hello,
>>  I want to delete a directory by maven-antrun-plugin, I'm using 
>>  the scripts below, 
>> org.apache.maven.plugins
>> maven-antrun-plugin
>> 1.1
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> run
>> 
>> 
>> 
>>  
>>  then I run "mvn antrun:run",
>>  unfortunately, Maven didn't delete the directory.
>>  How can I resolve the trouble?
>> 
>>  a cup of Java, cheers!
>>  Sha Jiang
>>  --
>>  View this message in context:
>> 
>> http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf27
>> 45727s177.html#a7660767
>>  Sent from the Maven - Users mailing list archive at Nabble.com.
>> 
>> 
>> 
>> -
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> >>>
>> >>>
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf27
>> 45727s177.html#a7661328 Sent from the Maven - Users mailing list 
>> archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

--
View this message in context:
http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf27457
27s177.html#a7661702
Sent from the Maven - Users mailing list archive 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]



internal dependencies check, excluding local repo

2006-12-03 Thread Valerio Schiavoni

hello everyone,
given a multi-module project, does it make sense to resolve the dependency
to a given module without checking if a new version of it has already been
installed to our local repository ?

That is, given this :

parent/
 sub-1/
 sub-2/

sub-2 must always be aligned with developments being made in sub-1: that is,
i can't be sure that developers on module sub-1 always perform a deploy over
our internal repository, but still i'd like maven to see if the current
local copy is up-to-date to the one on our scm: if not, update my local
copy, compile those just-checked out sources, install them, and just after
all this build sub-2.

Does any one has this need?

thanks,
valerio

--
http://valerioschiavoni.blogspot.com
http://jroller.com/page/vschiavoni


Re: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina

Dear dan,
> are you sure you did point ant:delete to a valid directory? ;-)
Really, I don't know the plugin.
How can I get its home page?

a cup of Java, cheers!
Sha Jiang


dan tran wrote:
> 
> are you sure you did point ant:delete to a valid directory? ;-)
> 
> i works for me here
> 
> -D
> 
> 
> On 12/3/06, jiangshachina <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi,
>> In fact, I need to delete some directories after checkout one module from
>> CVS.
>> and it seems that I cannot checkout several modules in one pom,
>> then I made the idea.
>>
>> a cup of Java, cheers!
>> Sha Jiang
>>
>>
>> jiangshachina wrote:
>> >
>> > I just want to delete directory,
>> > the work isn't related to "compile", "package", or others.
>> >
>> > a cup of Java, cheers!
>> > Sha Jiang
>> >
>> >
>> > jiangshachina wrote:
>> >>
>> >> Hello dan,
>> >> Exactly, I don't know which phase would be bined :(
>> >> I used
>> >> initialize
>> >> initialize
>> >> but the result was the same.
>> >>
>> >> a cup of Java, cheers!
>> >> Sha Jiang
>> >>
>> >>
>> >> dan tran wrote:
>> >>>
>> >>> You may want to bind your antrun execution to a phase.
>> >>>
>> >>> -D
>> >>>
>> >>>
>> >>> On 12/2/06, jiangshachina <[EMAIL PROTECTED]> wrote:
>> 
>> 
>>  Hello,
>>  I want to delete a directory by maven-antrun-plugin,
>>  I'm using the scripts below,
>>  
>> org.apache.maven.plugins
>> maven-antrun-plugin
>> 1.1
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> run
>> 
>> 
>> 
>>  
>>  then I run "mvn antrun:run",
>>  unfortunately, Maven didn't delete the directory.
>>  How can I resolve the trouble?
>> 
>>  a cup of Java, cheers!
>>  Sha Jiang
>>  --
>>  View this message in context:
>> 
>> http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7660767
>>  Sent from the Maven - Users mailing list archive at Nabble.com.
>> 
>> 
>> 
>> -
>>  To unsubscribe, e-mail: [EMAIL PROTECTED]
>>  For additional commands, e-mail: [EMAIL PROTECTED]
>> 
>> 
>> >>>
>> >>>
>> >>
>> >>
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7661328
>> Sent from the Maven - Users mailing list archive at Nabble.com.
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7661702
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: delete a directory by maven-antrun-plugin?

2006-12-03 Thread Dan Tran

are you sure you did point ant:delete to a valid directory? ;-)

i works for me here

-D


On 12/3/06, jiangshachina <[EMAIL PROTECTED]> wrote:



Hi,
In fact, I need to delete some directories after checkout one module from
CVS.
and it seems that I cannot checkout several modules in one pom,
then I made the idea.

a cup of Java, cheers!
Sha Jiang


jiangshachina wrote:
>
> I just want to delete directory,
> the work isn't related to "compile", "package", or others.
>
> a cup of Java, cheers!
> Sha Jiang
>
>
> jiangshachina wrote:
>>
>> Hello dan,
>> Exactly, I don't know which phase would be bined :(
>> I used
>> initialize
>> initialize
>> but the result was the same.
>>
>> a cup of Java, cheers!
>> Sha Jiang
>>
>>
>> dan tran wrote:
>>>
>>> You may want to bind your antrun execution to a phase.
>>>
>>> -D
>>>
>>>
>>> On 12/2/06, jiangshachina <[EMAIL PROTECTED]> wrote:


 Hello,
 I want to delete a directory by maven-antrun-plugin,
 I'm using the scripts below,
 
org.apache.maven.plugins
maven-antrun-plugin
1.1








run



 
 then I run "mvn antrun:run",
 unfortunately, Maven didn't delete the directory.
 How can I resolve the trouble?

 a cup of Java, cheers!
 Sha Jiang
 --
 View this message in context:

http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7660767
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


>>>
>>>
>>
>>
>
>

--
View this message in context:
http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7661328
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: delete a directory by maven-antrun-plugin?

2006-12-03 Thread jiangshachina

Hi,
In fact, I need to delete some directories after checkout one module from
CVS.
and it seems that I cannot checkout several modules in one pom,
then I made the idea.

a cup of Java, cheers!
Sha Jiang


jiangshachina wrote:
> 
> I just want to delete directory,
> the work isn't related to "compile", "package", or others.
> 
> a cup of Java, cheers!
> Sha Jiang
> 
> 
> jiangshachina wrote:
>> 
>> Hello dan,
>> Exactly, I don't know which phase would be bined :(
>> I used
>> initialize
>> initialize
>> but the result was the same.
>> 
>> a cup of Java, cheers!
>> Sha Jiang
>> 
>> 
>> dan tran wrote:
>>> 
>>> You may want to bind your antrun execution to a phase.
>>> 
>>> -D
>>> 
>>> 
>>> On 12/2/06, jiangshachina <[EMAIL PROTECTED]> wrote:


 Hello,
 I want to delete a directory by maven-antrun-plugin,
 I'm using the scripts below,
 
org.apache.maven.plugins
maven-antrun-plugin
1.1








run



 
 then I run "mvn antrun:run",
 unfortunately, Maven didn't delete the directory.
 How can I resolve the trouble?

 a cup of Java, cheers!
 Sha Jiang
 --
 View this message in context:
 http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7660767
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


>>> 
>>> 
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/delete-a-directory-by-maven-antrun-plugin--tf2745727s177.html#a7661328
Sent from the Maven - Users mailing list archive at Nabble.com.


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