Re: Is there any way to stop the same version of pom file/build being built more than once?

2011-01-06 Thread baz themail
Todd, thats one of the function that I thought Nexus has... but I
cannot find the usage for it. Is it only available in Pro version?

On Wed, Jan 5, 2011 at 9:58 AM, Thiessen, Todd (Todd)
tthies...@avaya.com wrote:
 Configure your Nexus server to not allow artifacts to get overwritten. You 
 can't stop the build from happening, but you can stop the artifact from being 
 deployed.

 -Original Message-
 From: baz themail [mailto:bazthem...@gmail.com]
 Sent: Wednesday, January 05, 2011 12:55 PM
 To: Maven Users List
 Subject: Re: Is there any way to stop the same version of pom file/build
 being built more than once?

 Wendy, thanks for your reply.

 Here is the example:

 1. Someone need to fix a bug in production.
 2. Create a new branch for bug fix based on a label.
 3. The newly created branch will contain older pom files with older
 version that already released in Nexus (or any Maven based
 repository).
 4. Logically, once the branch is created from an older label, in order
 to avoid redeploying the old version numbers, the version number
 should be changed.
 5. Say, if #4 is skipped, then the same version number that exist in
 Nexus will be overwritten after performing a release build.
 6. This is to assume that we should keep the old release version even
 if it is buggy.

 So, my question is: Is there any way to skip #4 by having some Maven
 type mechanism to check and stop a release build if the version
 already exist in maven repo?

 Thanks.

 B.

 On Tue, Jan 4, 2011 at 10:01 AM, Wendy Smoak wsm...@gmail.com wrote:
  On Tue, Jan 4, 2011 at 12:28 PM, baz themail bazthem...@gmail.com
 wrote:
  Hi,
  Is there any way to stop the same version of pom file/build being
  built more than once?
 
  Being _built_?  Probably not... anyone can check out a tag and
  re-build that version locally, nothing to prevent that from happening.
   (Nor should there be.)
 
  What's the real underlying problem?
 
  My guess is that it's about not overwriting released versions.  In
  which case... are you using -SNAPSHOT version numbers and going
  through a release process?  A repository manager to store your
  artifacts?
 
  Tell us more about your situation and most likely someone will have
  some advice for you.
 
  --
  Wendy
 
  -
  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


 -
 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: Is there any way to stop the same version of pom file/build being built more than once?

2011-01-06 Thread baz themail
Nick,

I am using Nexus open source version 1.3.6.

- Open repository named releases.
- Configuration tab.
- I see Repositoy ID, Repository Name, Repository type,
Provider, Format, Repository Policy, Default Local Storage
Location, Override Local Storage Location; Access settings: Allow
Deployment, Allow File Browsing, Include in Search; Expiration
settings: Not found cache TTL.

I do not see Deployment policy. Is this a feature for PRO?

Thanks.

B.

On Thu, Jan 6, 2011 at 10:02 AM, Nick Stolwijk nick.stolw...@gmail.com wrote:
 I just checked our 1.8.0.1 instance of Nexus and it is right there
 under the configuration of a hosted repository:

 Deployment policy:
 Allow redeploy
 Disallow redeploy
 Read only

 Hth,

 Nick Stolwijk
 ~Senior Java Developer~

 iPROFS
 Wagenweg 208
 2012 NM Haarlem
 T +31 23 547 6369
 F +31 23 547 6370
 I www.iprofs.nl



 On Thu, Jan 6, 2011 at 6:58 PM, baz themail bazthem...@gmail.com wrote:
 Todd, thats one of the function that I thought Nexus has... but I
 cannot find the usage for it. Is it only available in Pro version?

 On Wed, Jan 5, 2011 at 9:58 AM, Thiessen, Todd (Todd)
 tthies...@avaya.com wrote:
 Configure your Nexus server to not allow artifacts to get overwritten. You 
 can't stop the build from happening, but you can stop the artifact from 
 being deployed.

 -Original Message-
 From: baz themail [mailto:bazthem...@gmail.com]
 Sent: Wednesday, January 05, 2011 12:55 PM
 To: Maven Users List
 Subject: Re: Is there any way to stop the same version of pom file/build
 being built more than once?

 Wendy, thanks for your reply.

 Here is the example:

 1. Someone need to fix a bug in production.
 2. Create a new branch for bug fix based on a label.
 3. The newly created branch will contain older pom files with older
 version that already released in Nexus (or any Maven based
 repository).
 4. Logically, once the branch is created from an older label, in order
 to avoid redeploying the old version numbers, the version number
 should be changed.
 5. Say, if #4 is skipped, then the same version number that exist in
 Nexus will be overwritten after performing a release build.
 6. This is to assume that we should keep the old release version even
 if it is buggy.

 So, my question is: Is there any way to skip #4 by having some Maven
 type mechanism to check and stop a release build if the version
 already exist in maven repo?

 Thanks.

 B.

 On Tue, Jan 4, 2011 at 10:01 AM, Wendy Smoak wsm...@gmail.com wrote:
  On Tue, Jan 4, 2011 at 12:28 PM, baz themail bazthem...@gmail.com
 wrote:
  Hi,
  Is there any way to stop the same version of pom file/build being
  built more than once?
 
  Being _built_?  Probably not... anyone can check out a tag and
  re-build that version locally, nothing to prevent that from happening.
   (Nor should there be.)
 
  What's the real underlying problem?
 
  My guess is that it's about not overwriting released versions.  In
  which case... are you using -SNAPSHOT version numbers and going
  through a release process?  A repository manager to store your
  artifacts?
 
  Tell us more about your situation and most likely someone will have
  some advice for you.
 
  --
  Wendy
 
  -
  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


 -
 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



 -
 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: Is there any way to stop the same version of pom file/build being built more than once?

2011-01-06 Thread baz themail
How is the upgrade process from 1.3.6 to 1.8.0.1? Painless?

On Thu, Jan 6, 2011 at 10:12 AM, Nick Stolwijk nick.stolw...@gmail.com wrote:
 I've also checked 1.3.6 (still in production here, Saturday we are
 moving to 1.8.0.1) and, indeed, it isn't there. You have to upgrade to
 a newer version to have it. It isn't a Pro feature, the free version
 also has it.

 With regards,

 Nick Stolwijk
 ~Senior Java Developer~

 iPROFS
 Wagenweg 208
 2012 NM Haarlem
 T +31 23 547 6369
 F +31 23 547 6370
 I www.iprofs.nl



 On Thu, Jan 6, 2011 at 7:08 PM, baz themail bazthem...@gmail.com wrote:
 Nick,

 I am using Nexus open source version 1.3.6.

 - Open repository named releases.
 - Configuration tab.
 - I see Repositoy ID, Repository Name, Repository type,
 Provider, Format, Repository Policy, Default Local Storage
 Location, Override Local Storage Location; Access settings: Allow
 Deployment, Allow File Browsing, Include in Search; Expiration
 settings: Not found cache TTL.

 I do not see Deployment policy. Is this a feature for PRO?

 Thanks.

 B.

 On Thu, Jan 6, 2011 at 10:02 AM, Nick Stolwijk nick.stolw...@gmail.com 
 wrote:
 I just checked our 1.8.0.1 instance of Nexus and it is right there
 under the configuration of a hosted repository:

 Deployment policy:
 Allow redeploy
 Disallow redeploy
 Read only

 Hth,

 Nick Stolwijk
 ~Senior Java Developer~

 iPROFS
 Wagenweg 208
 2012 NM Haarlem
 T +31 23 547 6369
 F +31 23 547 6370
 I www.iprofs.nl



 On Thu, Jan 6, 2011 at 6:58 PM, baz themail bazthem...@gmail.com wrote:
 Todd, thats one of the function that I thought Nexus has... but I
 cannot find the usage for it. Is it only available in Pro version?

 On Wed, Jan 5, 2011 at 9:58 AM, Thiessen, Todd (Todd)
 tthies...@avaya.com wrote:
 Configure your Nexus server to not allow artifacts to get overwritten. 
 You can't stop the build from happening, but you can stop the artifact 
 from being deployed.

 -Original Message-
 From: baz themail [mailto:bazthem...@gmail.com]
 Sent: Wednesday, January 05, 2011 12:55 PM
 To: Maven Users List
 Subject: Re: Is there any way to stop the same version of pom file/build
 being built more than once?

 Wendy, thanks for your reply.

 Here is the example:

 1. Someone need to fix a bug in production.
 2. Create a new branch for bug fix based on a label.
 3. The newly created branch will contain older pom files with older
 version that already released in Nexus (or any Maven based
 repository).
 4. Logically, once the branch is created from an older label, in order
 to avoid redeploying the old version numbers, the version number
 should be changed.
 5. Say, if #4 is skipped, then the same version number that exist in
 Nexus will be overwritten after performing a release build.
 6. This is to assume that we should keep the old release version even
 if it is buggy.

 So, my question is: Is there any way to skip #4 by having some Maven
 type mechanism to check and stop a release build if the version
 already exist in maven repo?

 Thanks.

 B.

 On Tue, Jan 4, 2011 at 10:01 AM, Wendy Smoak wsm...@gmail.com wrote:
  On Tue, Jan 4, 2011 at 12:28 PM, baz themail bazthem...@gmail.com
 wrote:
  Hi,
  Is there any way to stop the same version of pom file/build being
  built more than once?
 
  Being _built_?  Probably not... anyone can check out a tag and
  re-build that version locally, nothing to prevent that from happening.
   (Nor should there be.)
 
  What's the real underlying problem?
 
  My guess is that it's about not overwriting released versions.  In
  which case... are you using -SNAPSHOT version numbers and going
  through a release process?  A repository manager to store your
  artifacts?
 
  Tell us more about your situation and most likely someone will have
  some advice for you.
 
  --
  Wendy
 
  -
  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


 -
 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



 -
 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: Is there any way to stop the same version of pom file/build being built more than once?

2011-01-06 Thread baz themail
Ic. so instead of upgrade from same machine, you have a new server
then migrate the files and directories over... Thank you for your
reply. B.

On Thu, Jan 6, 2011 at 10:31 AM, Nick Stolwijk nick.stolw...@gmail.com wrote:
 We just did a reinstall on a new server and planning to copy the
 repositories by hand and do a reindex. We had a testrun and it went
 painlessly. The mirror and snapshot repositories we just deleted, as
 to do some cleanup.

 Hth,

 Nick Stolwijk
 ~Senior Java Developer~

 iPROFS
 Wagenweg 208
 2012 NM Haarlem
 T +31 23 547 6369
 F +31 23 547 6370
 I www.iprofs.nl



 On Thu, Jan 6, 2011 at 7:24 PM, baz themail bazthem...@gmail.com wrote:
 How is the upgrade process from 1.3.6 to 1.8.0.1? Painless?

 On Thu, Jan 6, 2011 at 10:12 AM, Nick Stolwijk nick.stolw...@gmail.com 
 wrote:
 I've also checked 1.3.6 (still in production here, Saturday we are
 moving to 1.8.0.1) and, indeed, it isn't there. You have to upgrade to
 a newer version to have it. It isn't a Pro feature, the free version
 also has it.

 With regards,

 Nick Stolwijk
 ~Senior Java Developer~

 iPROFS
 Wagenweg 208
 2012 NM Haarlem
 T +31 23 547 6369
 F +31 23 547 6370
 I www.iprofs.nl



 On Thu, Jan 6, 2011 at 7:08 PM, baz themail bazthem...@gmail.com wrote:
 Nick,

 I am using Nexus open source version 1.3.6.

 - Open repository named releases.
 - Configuration tab.
 - I see Repositoy ID, Repository Name, Repository type,
 Provider, Format, Repository Policy, Default Local Storage
 Location, Override Local Storage Location; Access settings: Allow
 Deployment, Allow File Browsing, Include in Search; Expiration
 settings: Not found cache TTL.

 I do not see Deployment policy. Is this a feature for PRO?

 Thanks.

 B.

 On Thu, Jan 6, 2011 at 10:02 AM, Nick Stolwijk nick.stolw...@gmail.com 
 wrote:
 I just checked our 1.8.0.1 instance of Nexus and it is right there
 under the configuration of a hosted repository:

 Deployment policy:
 Allow redeploy
 Disallow redeploy
 Read only

 Hth,

 Nick Stolwijk
 ~Senior Java Developer~

 iPROFS
 Wagenweg 208
 2012 NM Haarlem
 T +31 23 547 6369
 F +31 23 547 6370
 I www.iprofs.nl



 On Thu, Jan 6, 2011 at 6:58 PM, baz themail bazthem...@gmail.com wrote:
 Todd, thats one of the function that I thought Nexus has... but I
 cannot find the usage for it. Is it only available in Pro version?

 On Wed, Jan 5, 2011 at 9:58 AM, Thiessen, Todd (Todd)
 tthies...@avaya.com wrote:
 Configure your Nexus server to not allow artifacts to get overwritten. 
 You can't stop the build from happening, but you can stop the artifact 
 from being deployed.

 -Original Message-
 From: baz themail [mailto:bazthem...@gmail.com]
 Sent: Wednesday, January 05, 2011 12:55 PM
 To: Maven Users List
 Subject: Re: Is there any way to stop the same version of pom 
 file/build
 being built more than once?

 Wendy, thanks for your reply.

 Here is the example:

 1. Someone need to fix a bug in production.
 2. Create a new branch for bug fix based on a label.
 3. The newly created branch will contain older pom files with older
 version that already released in Nexus (or any Maven based
 repository).
 4. Logically, once the branch is created from an older label, in order
 to avoid redeploying the old version numbers, the version number
 should be changed.
 5. Say, if #4 is skipped, then the same version number that exist in
 Nexus will be overwritten after performing a release build.
 6. This is to assume that we should keep the old release version even
 if it is buggy.

 So, my question is: Is there any way to skip #4 by having some Maven
 type mechanism to check and stop a release build if the version
 already exist in maven repo?

 Thanks.

 B.

 On Tue, Jan 4, 2011 at 10:01 AM, Wendy Smoak wsm...@gmail.com wrote:
  On Tue, Jan 4, 2011 at 12:28 PM, baz themail bazthem...@gmail.com
 wrote:
  Hi,
  Is there any way to stop the same version of pom file/build being
  built more than once?
 
  Being _built_?  Probably not... anyone can check out a tag and
  re-build that version locally, nothing to prevent that from 
  happening.
   (Nor should there be.)
 
  What's the real underlying problem?
 
  My guess is that it's about not overwriting released versions.  In
  which case... are you using -SNAPSHOT version numbers and going
  through a release process?  A repository manager to store your
  artifacts?
 
  Tell us more about your situation and most likely someone will have
  some advice for you.
 
  --
  Wendy
 
  -
  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


 -
 To unsubscribe, e-mail: users-unsubscr

Re: Is there any way to stop the same version of pom file/build being built more than once?

2011-01-05 Thread baz themail
Wendy, thanks for your reply.

Here is the example:

1. Someone need to fix a bug in production.
2. Create a new branch for bug fix based on a label.
3. The newly created branch will contain older pom files with older
version that already released in Nexus (or any Maven based
repository).
4. Logically, once the branch is created from an older label, in order
to avoid redeploying the old version numbers, the version number
should be changed.
5. Say, if #4 is skipped, then the same version number that exist in
Nexus will be overwritten after performing a release build.
6. This is to assume that we should keep the old release version even
if it is buggy.

So, my question is: Is there any way to skip #4 by having some Maven
type mechanism to check and stop a release build if the version
already exist in maven repo?

Thanks.

B.

On Tue, Jan 4, 2011 at 10:01 AM, Wendy Smoak wsm...@gmail.com wrote:
 On Tue, Jan 4, 2011 at 12:28 PM, baz themail bazthem...@gmail.com wrote:
 Hi,
 Is there any way to stop the same version of pom file/build being
 built more than once?

 Being _built_?  Probably not... anyone can check out a tag and
 re-build that version locally, nothing to prevent that from happening.
  (Nor should there be.)

 What's the real underlying problem?

 My guess is that it's about not overwriting released versions.  In
 which case... are you using -SNAPSHOT version numbers and going
 through a release process?  A repository manager to store your
 artifacts?

 Tell us more about your situation and most likely someone will have
 some advice for you.

 --
 Wendy

 -
 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



Is there any way to stop the same version of pom file/build being built more than once?

2011-01-04 Thread baz themail
Hi,
Is there any way to stop the same version of pom file/build being
built more than once?
Thanks.
B.

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



How to prune contents of the local repo?

2010-12-28 Thread baz themail
Hi,

1. What is the best and recommended way to limit the size of the local
maven repo? Currently, I am having a cron job to remove older
SNAPSHOT.

2. Is there any way to keep certain release builds but not others?
Meaning, is there any type of promotion mechanism in maven to mark
some releases in local repo?

3. Is there any way to stop the same version of pom file/build being
built more than once?

Thanks.

B.

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



Re: Can i re-deploy the contents from local repository from a build machine to release repository?

2010-09-23 Thread baz themail
I am sorry if i cause the group to over-react about this real issue
that i am here.

I read the wiki page
http://maven.apache.org/plugins/maven-deploy-plugin/usage.html three
(or more) times now. I still not sure how to deploy older artifacts
from local repository to remote repository without the need of
recompiling older version of source code.

It may be a simple thing to do. Am i missing something for the page?
Or am i still not sure the usage? Or, the information is not from that
page and need some people with the experience to answer?

On Wed, Sep 22, 2010 at 11:07 PM, Anders Hammar and...@hammar.net wrote:
 I second Wayne here. We'd be happy to help, but you have to do some job
 yourself.
 A pointer: look at the deploy-file goal of maven-deploy-plugin.

 /Anders

 On Thu, Sep 23, 2010 at 04:56, Wayne Fay wayne...@gmail.com wrote:

  If there are version 1.0.0.0, 2.0.0.0 and 3.0.0.0 of A in my local
  repo. If I go to the location/workspace where I built A. If I type
  mvn deploy -Dversion=2.0.0.0, then will this deploy command deploy
  the 2.0.0.0 from my local repository to remote repository without
  re-building it?

 No, that will not work.

 Honestly, I give up until you go read the documentation and
 demonstrate that you've read it (and tried things yourself) before
 replying again.

 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: Can i re-deploy the contents from local repository from a build machine to release repository?

2010-09-23 Thread baz themail
Ummm, thanks. I read that and i understand that deploy:deploy-file can
deploy files to remote repo. I guess I am confused by reading the
comments here in this thread.

I think at one point, I replied and described using deploy-file and
some replied that it is not suitable in my situation.

Just repeating my situation: IT guys removed some files from Nexus'
directories. Some pom files (including parent pom file) and artifacts
are now missing. I am trying to recover some of the artifacts from
build machine to remote repository. The Nexus is assumed without
backup at this point.

So, using deploy-file to deploy missing artifacts one by one is the
best way to do it?

Thanks. A.

On Thu, Sep 23, 2010 at 8:51 AM, Justin Edelson justinedel...@gmail.com wrote:
 The fact that the artifacts are in your local repository is irrelevant.
 Put that out of your mind. All that matters is that you have an artifact
 and a pom and you want to deploy them to a remote repository. That's
 what deploy-file does.

 All you have to do is:

 mvn deploy:deploy-file -Durl=repoURL -DrepositoryId=repoId
 -Dfile=file -DpomFile=pomFile

 This is described on the page you linked to. If you have constructive
 suggestions as to how to make this more obvious, feel free to submit
 documentation JIRAs and I'm sure the plugin developers will take those
 under advisement.

 On 9/23/10 11:42 AM, baz themail wrote:
 I am sorry if i cause the group to over-react about this real issue
 that i am here.

 I read the wiki page
 http://maven.apache.org/plugins/maven-deploy-plugin/usage.html three
 (or more) times now. I still not sure how to deploy older artifacts
 from local repository to remote repository without the need of
 recompiling older version of source code.

 It may be a simple thing to do. Am i missing something for the page?
 Or am i still not sure the usage? Or, the information is not from that
 page and need some people with the experience to answer?

 On Wed, Sep 22, 2010 at 11:07 PM, Anders Hammar and...@hammar.net wrote:
 I second Wayne here. We'd be happy to help, but you have to do some job
 yourself.
 A pointer: look at the deploy-file goal of maven-deploy-plugin.

 /Anders

 On Thu, Sep 23, 2010 at 04:56, Wayne Fay wayne...@gmail.com wrote:

 If there are version 1.0.0.0, 2.0.0.0 and 3.0.0.0 of A in my local
 repo. If I go to the location/workspace where I built A. If I type
 mvn deploy -Dversion=2.0.0.0, then will this deploy command deploy
 the 2.0.0.0 from my local repository to remote repository without
 re-building it?

 No, that will not work.

 Honestly, I give up until you go read the documentation and
 demonstrate that you've read it (and tried things yourself) before
 replying again.

 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



 -
 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: Can i re-deploy the contents from local repository from a build machine to release repository?

2010-09-23 Thread baz themail
anders,

Yes, i am planning to back up the local repo first.

Thanks guys...

On Thu, Sep 23, 2010 at 10:43 AM, Anders Hammar and...@hammar.net wrote:
 As you don't seem to be fully comfortable with Maven, I suggest that you
 either use the staging feature of Nexus Pro or (if you're using Nexus OSS)
 set up a temporary repo which you practice this on. Then, as long as you
 don't delete the local files, you can't mess anything up.

 As a Nexus tip, when you eventually have the files in the right repo you
 probably need to fix the metadata and re-index (in Nexus), as I understand
 that someone has been messing around with the file system (when removing the
 artifacts).

 /Anders

 On Thu, Sep 23, 2010 at 18:45, Wayne Fay wayne...@gmail.com wrote:

  I think at one point, I replied and described using deploy-file and
  some replied that it is not suitable in my situation.

 You thought wrong. Go back and read the thread. No one ever said that.

  So, using deploy-file to deploy missing artifacts one by one is the
  best way to do it?

 Yes
 Ja
 Si
 Oui
 Da
 Hai
 Do you need it in another language?

 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: Can i re-deploy the contents from local repository from a build machine to release repository?

2010-09-23 Thread baz themail
Yeah, unfortunately, the delete has been done in system/file level and
not via Nexus. :(

On Thu, Sep 23, 2010 at 4:11 PM, Brian Fox bri...@infinity.nu wrote:
 Nexus has a trash folder that holds all files deleted.
 (sonatype-work/nexus/trash) Hopefully they didn't also purge that and
 you can just recover the files from there.

 Otherwise you could manually load the files from your local into
 nexus' storage folder, the do a clear cache and reindex.

 Sent from my iPad

 On Sep 23, 2010, at 9:15 AM, baz themail bazthem...@gmail.com wrote:

 Ummm, thanks. I read that and i understand that deploy:deploy-file can
 deploy files to remote repo. I guess I am confused by reading the
 comments here in this thread.

 I think at one point, I replied and described using deploy-file and
 some replied that it is not suitable in my situation.

 Just repeating my situation: IT guys removed some files from Nexus'
 directories. Some pom files (including parent pom file) and artifacts
 are now missing. I am trying to recover some of the artifacts from
 build machine to remote repository. The Nexus is assumed without
 backup at this point.

 So, using deploy-file to deploy missing artifacts one by one is the
 best way to do it?

 Thanks. A.

 On Thu, Sep 23, 2010 at 8:51 AM, Justin Edelson justinedel...@gmail.com 
 wrote:
 The fact that the artifacts are in your local repository is irrelevant.
 Put that out of your mind. All that matters is that you have an artifact
 and a pom and you want to deploy them to a remote repository. That's
 what deploy-file does.

 All you have to do is:

 mvn deploy:deploy-file -Durl=repoURL -DrepositoryId=repoId
 -Dfile=file -DpomFile=pomFile

 This is described on the page you linked to. If you have constructive
 suggestions as to how to make this more obvious, feel free to submit
 documentation JIRAs and I'm sure the plugin developers will take those
 under advisement.

 On 9/23/10 11:42 AM, baz themail wrote:
 I am sorry if i cause the group to over-react about this real issue
 that i am here.

 I read the wiki page
 http://maven.apache.org/plugins/maven-deploy-plugin/usage.html three
 (or more) times now. I still not sure how to deploy older artifacts
 from local repository to remote repository without the need of
 recompiling older version of source code.

 It may be a simple thing to do. Am i missing something for the page?
 Or am i still not sure the usage? Or, the information is not from that
 page and need some people with the experience to answer?

 On Wed, Sep 22, 2010 at 11:07 PM, Anders Hammar and...@hammar.net wrote:
 I second Wayne here. We'd be happy to help, but you have to do some job
 yourself.
 A pointer: look at the deploy-file goal of maven-deploy-plugin.

 /Anders

 On Thu, Sep 23, 2010 at 04:56, Wayne Fay wayne...@gmail.com wrote:

 If there are version 1.0.0.0, 2.0.0.0 and 3.0.0.0 of A in my local
 repo. If I go to the location/workspace where I built A. If I type
 mvn deploy -Dversion=2.0.0.0, then will this deploy command deploy
 the 2.0.0.0 from my local repository to remote repository without
 re-building it?

 No, that will not work.

 Honestly, I give up until you go read the documentation and
 demonstrate that you've read it (and tried things yourself) before
 replying again.

 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



 -
 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


 -
 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



Can i re-deploy the contents from local repository from a build machine to release repository?

2010-09-22 Thread baz themail
Hi,

If the data in the remote release repository is corrupted and no
backups. However, I found the artifacts in the local repository from a
build machine. Can i re-deploy them into remote repository? How to do
deploy a specific version like that without changing anything? Do i
still need the source tree?

Thanks.

A.

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



Re: Can i re-deploy the contents from local repository from a build machine to release repository?

2010-09-22 Thread baz themail
Just to be clear, you are saying:

1. Go to the machine with the local repository.
2. Do i need to go to the specific source tree or any place in the computer?
3. Type mvn deploy:deploy-file all the rest of the arguments.

Does the above command deploy the artifacts from local repository to
remote repository as long as the settings.xml has the correct
information about the remote repository?

Thank you.

A.

On Wed, Sep 22, 2010 at 2:42 PM, Anders Hammar and...@hammar.net wrote:
 There are several ways. I think the easiest is to use the deploy-file goal
 of the deploy plugin.

 /Anders

 On Wed, Sep 22, 2010 at 23:20, baz themail bazthem...@gmail.com wrote:

 Hi,

 If the data in the remote release repository is corrupted and no
 backups. However, I found the artifacts in the local repository from a
 build machine. Can i re-deploy them into remote repository? How to do
 deploy a specific version like that without changing anything? Do i
 still need the source tree?

 Thanks.

 A.

 -
 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: Can i re-deploy the contents from local repository from a build machine to release repository?

2010-09-22 Thread baz themail
If there are version 1.0.0.0, 2.0.0.0 and 3.0.0.0 of A in my local
repo. If I go to the location/workspace where I built A. If I type
mvn deploy -Dversion=2.0.0.0, then will this deploy command deploy
the 2.0.0.0 from my local repository to remote repository without
re-building it?

Thanks. A.

On Wed, Sep 22, 2010 at 3:30 PM, Wayne Fay wayne...@gmail.com wrote:
 1. Go to the machine with the local repository.
 2. Do i need to go to the specific source tree or any place in the computer?
 3. Type mvn deploy:deploy-file all the rest of the arguments.

 Go read up on the deploy plugin... deploy:deploy-file takes a single
 file as its argument, and deploys just that file to a specified remote
 repo.

 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



why I do not see the parent pom file in Nexus?

2010-09-21 Thread baz themail
Hi,

We are using Nexus here. I am pretty sure the parent pom file has been
deployed and in use already. However, for some reason, I cannot see it
in Nexus, why? How can i find it?

Thank you.

A.

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



Re: why I do not see the parent pom file in Nexus?

2010-09-21 Thread baz themail
The path of groupId, artifactID, version is there. I just do not see
the pom.xml under it. This happens to both snapshot and release. All
builds are taking the right values and settings. I am assuming that
the parent pom has been deployed correctly to both release and
snapshot repositories.

Is there any way that i can verify?

On Tue, Sep 21, 2010 at 11:52 AM, Nayan Hajratwala na...@chikli.com wrote:

 On Sep 21, 2010, at 2:50 PM, baz themail wrote:

 Hi,

 We are using Nexus here. I am pretty sure the parent pom file has been
 deployed and in use already.

 What makes you think it has already been deployed? Do you have output of the 
 parent pom build showing such?


 However, for some reason, I cannot see it
 in Nexus, why? How can i find it?

 Thank you.

 A.

 ---
 Nayan Hajratwala
 http://agileshrugged.com
 http://twitter.com/nhajratw
 734.658.6032



 -
 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: why I do not see the parent pom file in Nexus?

2010-09-21 Thread baz themail
I am not sure what you meant by .pom file. I am looking for a
pom.xml which has the artifactId parent-pom and this should be the
parent pom file for all project. I track down the whole groupId path
in Nexus (both snapshot and release repositories). All I have found is
the path composed of groupId and version, then no contents in the
directory (In the Nexus view). Is this what you are referring to?

Because that's how pom.xml files get renamed when you're looking at a
repo. You won't actually see pom.xml there So, how can i verify the
parent pom file in Nexus? Can you please explain the parent pom file
deployment process?

On Tue, Sep 21, 2010 at 2:03 PM, Bryan Loofbourrow
bryan.loofbour...@amdocs.com wrote:

 -Original Message-
 From: baz themail [mailto:bazthem...@gmail.com]
 Sent: Tuesday, September 21, 2010 1:39 PM
 To: Maven Users List
 Subject: Re: why I do not see the parent pom file in Nexus?

 The path of groupId, artifactID, version is there. I just do not see
 the pom.xml under it. This happens to both snapshot and release. All
 builds are taking the right values and settings. I am assuming that
 the parent pom has been deployed correctly to both release and
 snapshot repositories.

 Is there any way that i can verify? 

 Are you looking for a .pom file? Because that's how pom.xml files get renamed 
 when you're looking at a repo. You won't actually see pom.xml there.

 -- Bryan


 This message and the information contained herein is proprietary and 
 confidential and subject to the Amdocs policy statement,
 you may review at http://www.amdocs.com/email_disclaimer.asp

 -
 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



How can i test release plugin locally?

2010-09-16 Thread baz themail
Hi,

How can i test release plugin locally in my machine? Specifically, can
i release the artifacts into my local repository on my machine? Can i
configure it so that i do not need to make actual updates to pom files
in perforce but only in local source tree?

Thank you.

A.

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



Re: How to manage from snapshot to release? When should we use automated builds?

2010-09-16 Thread baz themail

 debugging a snapshot version that's not the dev version, you have a
 problem

 in your dev process)


 Our central, nightly builds do not use published snapshots but always
 checks
 out from CVS and then build from source. I agree that if a central build
 (that could be a release candidate) was built using published snapshots,
 we
 would have a problem.

 /Bengt


 2010/9/15 Baptiste MATHUSm...@batmat.net

  Yes, this is a typical, almost specific CVS problem that's
 understandable.
 As the versioning is done at the file level, and not at the repo one, it
 can
 be necessary to tag to be able to identify the code corresponding to a
 snapshot (even if, imo, if you're depending on a snapshot revision, and
 try
 debugging a snapshot version that's not the dev version, you have a
 problem
 in your dev process).

 This problem doesn't exist with SVN. For example, we use the
 buildnumber-maven-plugin and add the svn repository revision number to
 the
 manifest for each build. So finding corresponding code for a jar is no
 problem at all for us, but we actually hardly need it.

 For the dev process, only in my opinion, I think automatically releasing
 every nights isn't a very good pratice. I rather think the release
 process
 should be actually 100% standalone, but *manually* initiated (giving the
 new
 version and so).

 Cheers

 2010/9/15 Bengt Rodehavbe...@rodehav.com

  We've had similar questions where I work. The question has been related

 to

 how and when to create tags in CVS (preferrably using the
 maven-release-plugin).

 Some people advocate tagging every build so that it can be recreated in
 case
 it was fit for delivery. This is a problem when using CVS since huge

 number

 of tags are not handled very well.

 However, builds that could potentially become a released version must be
 recreatable somehow which implies a tag in the version control system.
 Whenever a release candidate is built, doesn't it have to be tagged -

 and

 therefore released?

 When we enter a system testing period close to the release of a new
 version.
 We normally build and deploy new versions automatically every day. At

 some

 point we decide that it's good enough to release. It is then imperative
 that
 the latest build (which we have used for testing) is the one we package

 and

 tag.

 What are the best practices around this? I'm very curious to know how

 other

 organisations handle this using maven.

 /Bengt


 2010/9/15 Baptiste MATHUSm...@batmat.net

  Well, for example, we don't release automatically. We  launch manually

 it

 via a special release plugin through hudson, itself launching a maven
 release through the maven-release-plugin.

 This makes it easier to keep a clean release environment. Releasing

 from

 a

 development machine would add risk since it (1) might be less close to

 the

 production system and (2) might contain things depending on the dev box
 that
 wasn't added to the SCM.

 Snapshot builds are totally sufficient for us to handle testing

 purposes.

 Cheers

 2010/9/15 baz themailbazthem...@gmail.com

  Hi,

 I have been searching the maven website and articles but not sure if

 i

 get the best practice for managing snapshots and release.
 Specifically, if continuous builds produce maven snapshot builds,

 then

 when will i produce maven release builds using maven release plug-in?

 Will I ever produce a maven release build via an automated build job
 that runs daily for example? The problem with that is: Because maven
 plugin is incrementing pom.xml, and the automated build job will
 always detect changes even tho there is no changes in the produce
 software code. Does it even make sense? Or, release build should be
 run manually depending on the release schedule?

 Thank you.

 A.

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



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



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



 -
 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: How can i test release plugin locally?

2010-09-16 Thread baz themail
Thanks for the replies.

Yes, i know about DryRun. So, my question is: Does DryRun correctly
run without SCM information such as P4 userid and password?

Thanks. B.

On Thu, Sep 16, 2010 at 7:47 AM, Nayan Hajratwala na...@chikli.com wrote:
 On Sep 16, 2010, at 10:45 AM, baz themail wrote:

 Hi,

 How can i test release plugin locally in my machine? Specifically, can
 i release the artifacts into my local repository on my machine? Can i
 configure it so that i do not need to make actual updates to pom files
 in perforce but only in local source tree?

 Have you tried the -DdryRun=true option? 
 http://maven.apache.org/plugins/maven-release-plugin/usage.html

 ---
 Nayan Hajratwala
 http://agileshrugged.com
 http://twitter.com/nhajratw
 734.658.6032


 -
 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: How can i test release plugin locally?

2010-09-16 Thread baz themail
Another question. Is this possible to release into local repository
without giving SCM information such as P4 username and password? I do
not mean dryRun this time.

On Thu, Sep 16, 2010 at 10:12 AM, baz themail bazthem...@gmail.com wrote:
 Thanks for the replies.

 Yes, i know about DryRun. So, my question is: Does DryRun correctly
 run without SCM information such as P4 userid and password?

 Thanks. B.

 On Thu, Sep 16, 2010 at 7:47 AM, Nayan Hajratwala na...@chikli.com wrote:
 On Sep 16, 2010, at 10:45 AM, baz themail wrote:

 Hi,

 How can i test release plugin locally in my machine? Specifically, can
 i release the artifacts into my local repository on my machine? Can i
 configure it so that i do not need to make actual updates to pom files
 in perforce but only in local source tree?

 Have you tried the -DdryRun=true option? 
 http://maven.apache.org/plugins/maven-release-plugin/usage.html

 ---
 Nayan Hajratwala
 http://agileshrugged.com
 http://twitter.com/nhajratw
 734.658.6032


 -
 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: How can i test release plugin locally?

2010-09-16 Thread baz themail
The reason i want to dryRun and actual release in local repository is
to make sure the module pom.xml files are being update correctly.
Currently, I am having problem with incrementing the pom.xml file in
one of the modules and not sure how to debug this.

Can someone give me a sample where i can confirm the creation of new
version'ed jar in both dryRun or actual log?

On Thu, Sep 16, 2010 at 11:16 AM, baz themail bazthem...@gmail.com wrote:
 Another question. Is this possible to release into local repository
 without giving SCM information such as P4 username and password? I do
 not mean dryRun this time.

 On Thu, Sep 16, 2010 at 10:12 AM, baz themail bazthem...@gmail.com wrote:
 Thanks for the replies.

 Yes, i know about DryRun. So, my question is: Does DryRun correctly
 run without SCM information such as P4 userid and password?

 Thanks. B.

 On Thu, Sep 16, 2010 at 7:47 AM, Nayan Hajratwala na...@chikli.com wrote:
 On Sep 16, 2010, at 10:45 AM, baz themail wrote:

 Hi,

 How can i test release plugin locally in my machine? Specifically, can
 i release the artifacts into my local repository on my machine? Can i
 configure it so that i do not need to make actual updates to pom files
 in perforce but only in local source tree?

 Have you tried the -DdryRun=true option? 
 http://maven.apache.org/plugins/maven-release-plugin/usage.html

 ---
 Nayan Hajratwala
 http://agileshrugged.com
 http://twitter.com/nhajratw
 734.658.6032


 -
 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: How can i test release plugin locally?

2010-09-16 Thread baz themail
Nick, do you mean to branch out the existing code into a test branch?

Any other ideas?

On Thu, Sep 16, 2010 at 12:05 PM, Nick Stolwijk nick.stolw...@gmail.com wrote:
 To test release:prepare I usually use a branch or a local SVN
 repostory. To test release:perform you can set the goals [1] to
 install instead of deploy.

 [1] 
 http://maven.apache.org/plugins/maven-release-plugin/perform-mojo.html#goals

 Hth,

 Nick Stolwijk
 ~Java Developer~

 IPROFS BV.
 Claus Sluterweg 125
 2012 WS Haarlem
 http://www.iprofs.nl



 On Thu, Sep 16, 2010 at 8:25 PM, baz themail bazthem...@gmail.com wrote:
 The reason i want to dryRun and actual release in local repository is
 to make sure the module pom.xml files are being update correctly.
 Currently, I am having problem with incrementing the pom.xml file in
 one of the modules and not sure how to debug this.

 Can someone give me a sample where i can confirm the creation of new
 version'ed jar in both dryRun or actual log?

 On Thu, Sep 16, 2010 at 11:16 AM, baz themail bazthem...@gmail.com wrote:
 Another question. Is this possible to release into local repository
 without giving SCM information such as P4 username and password? I do
 not mean dryRun this time.

 On Thu, Sep 16, 2010 at 10:12 AM, baz themail bazthem...@gmail.com wrote:
 Thanks for the replies.

 Yes, i know about DryRun. So, my question is: Does DryRun correctly
 run without SCM information such as P4 userid and password?

 Thanks. B.

 On Thu, Sep 16, 2010 at 7:47 AM, Nayan Hajratwala na...@chikli.com wrote:
 On Sep 16, 2010, at 10:45 AM, baz themail wrote:

 Hi,

 How can i test release plugin locally in my machine? Specifically, can
 i release the artifacts into my local repository on my machine? Can i
 configure it so that i do not need to make actual updates to pom files
 in perforce but only in local source tree?

 Have you tried the -DdryRun=true option? 
 http://maven.apache.org/plugins/maven-release-plugin/usage.html

 ---
 Nayan Hajratwala
 http://agileshrugged.com
 http://twitter.com/nhajratw
 734.658.6032


 -
 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



 -
 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



How to manage from snapshot to release? When should we use automated builds?

2010-09-15 Thread baz themail
Hi,

I have been searching the maven website and articles but not sure if i
get the best practice for managing snapshots and release.
Specifically, if continuous builds produce maven snapshot builds, then
when will i produce maven release builds using maven release plug-in?

Will I ever produce a maven release build via an automated build job
that runs daily for example? The problem with that is: Because maven
plugin is incrementing pom.xml, and the automated build job will
always detect changes even tho there is no changes in the produce
software code. Does it even make sense? Or, release build should be
run manually depending on the release schedule?

Thank you.

A.

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



Can i use variables within the parentartifactId section?

2008-05-20 Thread Baz
All,

I am trying to define a variable that i can use on command line to rename
all artifacts (build type) during the build. Something like mvn clean
install -DbuildType=-Debug.

I made the change and it works if I build from the parent directory level.
However, it does not the sub directory level. When execute the above command
in the CHILD directory level, Maven does not translate ${buildType} to
-Debug, it just leave it as ${buildType}. As a result, it fails because
it looking for xxx-yyy-zzz${buildType}-fullbuild instead of
xxx-yyy-zzz-Debug-fullbuild.

Please see the code below.

Is there any Maven statement that help me to achieve what I want to do?

Thanks.

A.

PARENT:

  groupIdcom.xxx.yyy.aaa/groupId
  artifactIdxxx-yyy-zzz${buildType}-fullbuild/artifactId
   version1.0.0-SNAPSHOT/version
  packagingpom/packaging
  namexxx-yyy-zzz${buildType}-fullbuild (branch:${scm.branch})/name


CHILD:

  parent
groupIdcom.xxx.yyy.aaa/groupId
artifactIdxxx-yyy-zzz${buildType}-fullbuild/artifactId
version1.0.0-SNAPSHOT/version
  /parent


Re: which ant version that maven-antrun-plugin will run?

2008-03-10 Thread Baz
Do you know if there is a maven version that will support Ant 1.7.0+ ?

Thanks.

A.

On Sun, Mar 9, 2008 at 9:45 PM, Wayne Fay [EMAIL PROTECTED] wrote:

 That's what he said. Just to be clear, Maven downloads and uses its
 own Ant jar files etc, not any Ant build you've randomly installed on
 your computer. And presently, there is no way to change the version of
 Ant which is being used by Maven.

 Wayne

 On 3/9/08, Baz [EMAIL PROTECTED] wrote:
  dennis,
 
  Thank you for you reply.
 
  Just to confirm what you said...When using maven-antrun-plugin from
 Maven2,
  the Ant version must be 1.6.5 and cannot be changed.
 
  A.
 
 
  On 3/9/08, Dennis Lundberg [EMAIL PROTECTED] wrote:
  
   Baz wrote:
All,
   
Which ant version that maven 2's maven-antrun-plugin will run?
  
   The currently released version uses Ant 1.6.5
  
How do i find out?
  
   http://maven.apache.org/plugins/maven-antrun-plugin/dependencies.html
  
Can i change it?
  
   No
  
   
Thanks.
   
A.
   
  
  
   --
   Dennis Lundberg
  
   -
   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: which ant version that maven-antrun-plugin will run?

2008-03-10 Thread Baz
Is there a way that I can use Maven 2 to run ant 1.7.0 tasks?

On Mon, Mar 10, 2008 at 12:37 AM, Baz [EMAIL PROTECTED] wrote:

 Do you know if there is a maven version that will support Ant 1.7.0+ ?

 Thanks.

 A.

   On Sun, Mar 9, 2008 at 9:45 PM, Wayne Fay [EMAIL PROTECTED] wrote:

  That's what he said. Just to be clear, Maven downloads and uses its
  own Ant jar files etc, not any Ant build you've randomly installed on
  your computer. And presently, there is no way to change the version of
  Ant which is being used by Maven.
 
  Wayne
 
  On 3/9/08, Baz [EMAIL PROTECTED] wrote:
   dennis,
  
   Thank you for you reply.
  
   Just to confirm what you said...When using maven-antrun-plugin from
  Maven2,
   the Ant version must be 1.6.5 and cannot be changed.
  
   A.
  
  
   On 3/9/08, Dennis Lundberg [EMAIL PROTECTED] wrote:
   
Baz wrote:
 All,

 Which ant version that maven 2's maven-antrun-plugin will run?
   
The currently released version uses Ant 1.6.5
   
 How do i find out?
   
   
  http://maven.apache.org/plugins/maven-antrun-plugin/dependencies.html
   
 Can i change it?
   
No
   

 Thanks.

 A.

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



which ant version that maven-antrun-plugin will run?

2008-03-09 Thread Baz
All,

Which ant version that maven 2's maven-antrun-plugin will run? How do i find
out? Can i change it?

Thanks.

A.


Re: which ant version that maven-antrun-plugin will run?

2008-03-09 Thread Baz
dennis,

Thank you for you reply.

Just to confirm what you said...When using maven-antrun-plugin from Maven2,
the Ant version must be 1.6.5 and cannot be changed.

A.


On 3/9/08, Dennis Lundberg [EMAIL PROTECTED] wrote:

 Baz wrote:
  All,
 
  Which ant version that maven 2's maven-antrun-plugin will run?

 The currently released version uses Ant 1.6.5

  How do i find out?

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

  Can i change it?

 No

 
  Thanks.
 
  A.
 


 --
 Dennis Lundberg

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




Is there any way to control the number of snapshot produced?

2008-02-27 Thread Baz
Hi,

Is there a way that we can control the total number of snapshot of one
specific version? I think I have seen it somewhere and forget about the
syntax.

Thank you.

A.


Re: What is the different between using ant tasks and antrun plugin?

2008-02-04 Thread Baz
Wayne, thanks.

On 1/31/08, Wayne Fay [EMAIL PROTECTED] wrote:

 Use ant-tasks if you want to integrate certain Maven functions into
 your ant build.xml scripts. This is for people who want to keep using
 Ant as their primary build tool. I don't think you want to do this.

 Use antrun plugin if you want to call ant tasks from your Maven build.
 This is for people who are trying to use Maven as their primary build
 tool. I think this is what you're trying to do.

 Wayne

 On 2/1/08, Baz [EMAIL PROTECTED] wrote:
  Hi,
 
  I am trying to execute some existing ant build.xml files with maven 2. I
 am
  confuse if i should use antrun plugin (
  http://maven.apache.org/plugins/maven-antrun-plugin/) or ant tasks (
  http://maven.apache.org/ant-tasks.html)
 
  Can someone help to explain?
 
  Thanks.
 
  A.
 

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




What is the different between using ant tasks and antrun plugin?

2008-01-31 Thread Baz
Hi,

I am trying to execute some existing ant build.xml files with maven 2. I am
confuse if i should use antrun plugin (
http://maven.apache.org/plugins/maven-antrun-plugin/) or ant tasks (
http://maven.apache.org/ant-tasks.html)

Can someone help to explain?

Thanks.

A.


how to change version numbers in multiple pom.xml?

2007-11-12 Thread Baz
Hi,

What is the recommended methods to change contents (version numbers)
version within multiple pom.xml? Is there anything like REXML in RUBY?

Thanks.

A.


Re: how to change version numbers in multiple pom.xml?

2007-11-12 Thread Baz
Joerg,

Thanks for your reply.

I know I can use release plug-in. What if i am changing dependency version
numbers?



On 11/12/07, Joerg Hohwiller [EMAIL PROTECTED] wrote:

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

  Hi,
 Hi there,
 
  What is the recommended methods to change contents (version numbers)
  version within multiple pom.xml? Is there anything like REXML in RUBY?
 You can find an experimental approach that might or might not help you:

 http://maven.apache.org/plugins/maven-dependency-plugin/go-offline-mojo.html
 
  Thanks.
 
  A.
 
 Regards
 Jörg
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v1.4.5 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

 iD8DBQFHOLYAmPuec2Dcv/8RAm9yAKCSDKnTYiY7erD5XGhRjiYlBYgz3ACfaXpT
 E2yDhyEM2MorwAO3Z5AaAT4=
 =BjE6
 -END PGP SIGNATURE-

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




Re: What should i type to compile against a certain version of snapshot?

2007-10-11 Thread Baz
When deploying snapshot version to remote repository. There are versioned
snapshots in the sub directories. For example,

if i deploy 5.0-SNAPSHOT of ABC, then here is the directory structure within
the repo after deployment:

com/123/ABC/5.0-SNAPSHOT/
  ...
  ABC-5.0-20070802.165005-1.pom
  ABC-5.0-20070802.165005-1.jar
  ...
  ABC-5.0-20070803.165005-4.jar
  ...

How can my compilation build against a specific version of SNAPSHOT?

Thank you.

A.


On 10/10/07, Harlan Iverson [EMAIL PROTECTED] wrote:

 If it's an inhouse snapshot repository, you should deploy using
 uniqueVersion=true and then -SNAPSHOT will be replaced with a unique
 identifier that you can use. For example, 1.0-SNAPSHOT will become
 something
 like 1.0-423423423434 when deployed. You then use that version as your
 dependency.

 I hope that helps.

 Harlan

 On 10/10/07, Baz [EMAIL PROTECTED] wrote:
 
  All,
 
  What should i type to compile against a certain version of snapshot?
 
  Thanks.
 
  A.
 



 --
 Harlan Iverson
 http://blog.devspan.com



What should i type to compile against a certain version of snapshot?

2007-10-10 Thread Baz
All,

What should i type to compile against a certain version of snapshot?

Thanks.

A.


Is there any way to tell who deployed into the repository?

2007-10-08 Thread Baz
All,

Is there any way to tell who deployed files into the repository?

Thanks.

A.


Specifying ftp port number during deploy?

2007-10-03 Thread Baz
Hi,

Is there a way to specify the port number during deploy?

I am asking this because I might have one server that has more than one ftp
servers created.

Thank you.

A.


How can i setup the dependency on more than one repos in certain order?

2007-09-06 Thread Baz
Hi,

How can i setup the dependency on more than one repos in certain order? For
example, production repo, stage repo, then dev repo?

Thanks.

A.


Re: How can i setup the dependency on more than one repos in certain order?

2007-09-06 Thread Baz
I saw the followings at,
http://maven.apache.org/guides/mini/guide-multiple-repositories.html. Does
it mean my compilation will now look for my-repo1 first, then my-repo2?

If so, can i define this at super pom so i only need to do it once?

Thanks.


project
...
  repositories
repository
  idmy-repo1/id
  nameyour custom repo/name
  urlhttp://jarsm2.dyndns.dk/url
/repository
repository
  idmy-repo2/id
  nameyour custom repo/name
  urlhttp://jarsm2.dyndns.dk/url
/repository
  /repositories
...
/project




On 9/6/07, Baz [EMAIL PROTECTED] wrote:

 Hi,

 How can i setup the dependency on more than one repos in certain order?
 For example, production repo, stage repo, then dev repo?

 Thanks.

 A.



Re: How can i setup the dependency on more than one repos in certain order?

2007-09-06 Thread Baz
Ossi, thanks for your reply.

Why are we using profile in this case? In
http://maven.apache.org/guides/mini/guide-multiple-repositories.html, it
seems like a standard pom.xml file that specify several repositories in
order. Thats all right?

Would you please give coding example for a simple implementation?

dev repo - a repo for developers to change things for testing.
stage and production repo - repos that controlled by release engineering
group.

search order - production, stage, then dev.

Thanks.


On 9/6/07, ossi petz [EMAIL PROTECTED] wrote:

 hallo

 yes the order of the repositories is kept when looking for artifacts.

 you can define repositores in settings.xml or in a profile in a parent
 pom.

 but from here: do you plan to put different artifacts with the same
 groupId/artifactId/version into your repositories?
 so dev-repo will contain a group/id/artifactId-product-version.jar
 and stage-repo too? but both jars are not actually the same?

 it might turn out difficult to say what ends up in you build! once an
 artifact is found in stage, the prod build may not come to the expected
 result since the prod jar will not be searched.

 i would strongly recommend using the version to distinguish the
 different types (1.0.0-dev, 1.0.0-stage) if you do not plan to use
 snapshot builds.

 jars will be send around. if it does not have an unique name things will
 go wrong.


 hope to help a little bit :)
 regards

 ossi



 Baz schrieb:
  I saw the followings at,
  http://maven.apache.org/guides/mini/guide-multiple-repositories.html.
 Does
  it mean my compilation will now look for my-repo1 first, then my-repo2?
 
  If so, can i define this at super pom so i only need to do it once?
 
  Thanks.
 
 
  project
  ...
repositories
  repository
idmy-repo1/id
nameyour custom repo/name
urlhttp://jarsm2.dyndns.dk/url
  /repository
  repository
idmy-repo2/id
nameyour custom repo/name
urlhttp://jarsm2.dyndns.dk/url
  /repository
/repositories
  ...
  /project
 
 
 
 
  On 9/6/07, Baz [EMAIL PROTECTED] wrote:
  Hi,
 
  How can i setup the dependency on more than one repos in certain order?
  For example, production repo, stage repo, then dev repo?
 
  Thanks.
 
  A.
 
 


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




Re: environment variable for location of settings.xml?

2007-08-29 Thread Baz
Got it. Just to confirm since i cannot find anything such as an environment
variable. Thanks

On 8/28/07, Wayne Fay [EMAIL PROTECTED] wrote:

 Other than -s, nothing else is built in.

 Of course, you can easily alter the mvn.bat file for your company and
 add other parameters, check for environment variables etc. But then
 you need to make sure everyone is running your modified mvn.bat file.

 Wayne

 On 8/28/07, Baz [EMAIL PROTECTED] wrote:
  Wayne,
 
  Thanks for your reply.
 
  If I dont use -s then it will only look at user_home/.m2 ? No
  environment variable will change this behaviour right?
 
  B.
 
  On 8/28/07, Wayne Fay [EMAIL PROTECTED] wrote:
  
   mvn -?
   -s,--settings Alternate path for the user settings
 file
  
   Wayne
  
   On 8/28/07, Baz [EMAIL PROTECTED] wrote:
All,
   
Does maven 2.x looking at any environment variables for the location
 of
settings.xml? I know the default location is user_home_dir/.m2 but
 I
   want
to be able to change the default behavior when you type mvn.
   
Thanks.
   
B.
   
  
   -
   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]




environment variable for location of settings.xml?

2007-08-28 Thread Baz
All,

Does maven 2.x looking at any environment variables for the location of
settings.xml? I know the default location is user_home_dir/.m2 but I want
to be able to change the default behavior when you type mvn.

Thanks.

B.


Re: environment variable for location of settings.xml?

2007-08-28 Thread Baz
Wayne,

Thanks for your reply.

If I dont use -s then it will only look at user_home/.m2 ? No
environment variable will change this behaviour right?

B.

On 8/28/07, Wayne Fay [EMAIL PROTECTED] wrote:

 mvn -?
 -s,--settings Alternate path for the user settings file

 Wayne

 On 8/28/07, Baz [EMAIL PROTECTED] wrote:
  All,
 
  Does maven 2.x looking at any environment variables for the location of
  settings.xml? I know the default location is user_home_dir/.m2 but I
 want
  to be able to change the default behavior when you type mvn.
 
  Thanks.
 
  B.
 

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




Re: clover issue when executing from a high level multi modules pom.xml?

2007-08-16 Thread Baz
Anyone? I try to add ${basedir} in various places but still not working.
What changes should I make?

On 8/15/07, Baz [EMAIL PROTECTED] wrote:

 It seems like the paths are set in the parent pom.xml for clover
 implementation:

 include implementation=java.lang.String
 build/clover/src/**/*.java/include
 include 
 implementation=java.lang.Stringbuild/clover/src/something/**/*.java/include


 build directory is the local output directory - product_A/module/build
 directory

 So my guess is: When executing in a few directories level up, the clover
 is still looking for ./build directory and hence it failed.

 What can i do so that the clover is looking for relative path? So that it
 will work locally or using high level multi modules pom file?

 Thanks.

 B.


  On 8/15/07, Baz [EMAIL PROTECTED] wrote:
 
  All,
 
  I am having issues when running clover through a high level multi module
  pom.xml.
 
  Here are the directory structure:
 
  products/
 pom.xml
 /product_A/module/pom.xml
 /product_B/module/pom.xml
 
  Here are the symptoms:
 
  1. products/pom.xml will run mvn clean install with
  product_A/module/pom.xml and product_B/module/pom.xml. It works fine.
 
  2. If I change the command to mvn clean install -Dclover.skip=false
  then it will failed.
 
  3. If I go into product_A/module/ and product_B/module individually and
  type mvn clean install -Dclover.skip=false then it works fine.
 
  Error message:
 
  [INFO] [clover:instrumentInternal]
 
*** ERROR: No source files specified
 
USAGE: com.cenqua.clover.CloverInstr [OPTIONS] PARAMS [FILES...]
 
PARAMS:
  -i, --initstring file  Clover initstring. This is the path to
  the dbfi
  le that
 
  Blah blah blah...
 
  Can anyone help? I suspect is the path of the source files mixed up
  since I am not executing in the local directory anymore. But how can i fix
  it?
 
  Thanks.
 
 
 
 




clover issue when executing from a high level multi modules pom.xml?

2007-08-15 Thread Baz
All,

I am having issues when running clover through a high level multi module
pom.xml.

Here are the directory structure:

products/
   pom.xml
   /product_A/module/pom.xml
   /product_B/module/pom.xml

Here are the symptoms:

1. products/pom.xml will run mvn clean install with
product_A/module/pom.xml and product_B/module/pom.xml. It works fine.

2. If I change the command to mvn clean install -Dclover.skip=false then
it will failed.

3. If I go into product_A/module/ and product_B/module individually and type
mvn clean install -Dclover.skip=false then it works fine.

Error message:

[INFO] [clover:instrumentInternal]

  *** ERROR: No source files specified

  USAGE: com.cenqua.clover.CloverInstr [OPTIONS] PARAMS [FILES...]

  PARAMS:
-i, --initstring file  Clover initstring. This is the path to the
dbfi
le that

Blah blah blah...

Can anyone help? I suspect is the path of the source files mixed up since I
am not executing in the local directory anymore. But how can i fix it?

Thanks.


Re: clover issue when executing from a high level multi modules pom.xml?

2007-08-15 Thread Baz
It seems like the paths are set in the parent pom.xml for clover
implementation:

include implementation=java.lang.String
build/clover/src/**/*.java/include
include implementation=java.lang.String
build/clover/src/something/**/*.java/include

build directory is the local output directory - product_A/module/build
directory

So my guess is: When executing in a few directories level up, the clover is
still looking for ./build directory and hence it failed.

What can i do so that the clover is looking for relative path? So that it
will work locally or using high level multi modules pom file?

Thanks.

B.


On 8/15/07, Baz [EMAIL PROTECTED] wrote:

 All,

 I am having issues when running clover through a high level multi module
 pom.xml.

 Here are the directory structure:

 products/
pom.xml
/product_A/module/pom.xml
/product_B/module/pom.xml

 Here are the symptoms:

 1. products/pom.xml will run mvn clean install with
 product_A/module/pom.xml and product_B/module/pom.xml. It works fine.

 2. If I change the command to mvn clean install -Dclover.skip=false then
 it will failed.

 3. If I go into product_A/module/ and product_B/module individually and
 type mvn clean install -Dclover.skip=false then it works fine.

 Error message:

 [INFO] [clover:instrumentInternal]

   *** ERROR: No source files specified

   USAGE: com.cenqua.clover.CloverInstr [OPTIONS] PARAMS [FILES...]

   PARAMS:
 -i, --initstring file  Clover initstring. This is the path to
 the dbfi
 le that

 Blah blah blah...

 Can anyone help? I suspect is the path of the source files mixed up since
 I am not executing in the local directory anymore. But how can i fix it?

 Thanks.






Re: How to increase the memory usage for mvn?

2007-08-07 Thread Baz
Can i set MAVEN_OPTS in system variables instead of mvn.bat? Is there any
problems with it?

On 8/6/07, William Ferguson [EMAIL PROTECTED] wrote:

 From mvn.bat:

 @REM MAVEN_OPTS - parameters passed to the Java VM when running Maven

 Eg
 set MAVEN_OPTS=-Xmx1024m

 William

 -Original Message-
 From: Baz [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, 7 August 2007 9:19 AM
 To: Maven Users List
 Subject: [***POSSIBLE SPAM***] - How to increase the memory usage for
 mvn? - Email has different SMTP TO: and MIME TO: fields in the email
 addresses

 Hi,

 How can i increase the memory usage for mvn? Like using ANT, there is an
 option for that right?

 Thanks.

 A.

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




How to increase the memory usage for mvn?

2007-08-06 Thread Baz
Hi,

How can i increase the memory usage for mvn? Like using ANT, there is an
option for that right?

Thanks.

A.


setting default location of settings.xml

2007-07-31 Thread Baz
Hi,

Is there a way to setup default location of settings.xml? I understand the
default location is M2 repo.

I am trying to have settings.xml stored in Perforce and add an environment
variable to point to a directory so developers can have a consistent
settings.xml file. Suggestion?

Thanks.

A.


Re: setting default location of settings.xml

2007-07-31 Thread Baz
Wayne,

Thanks for your reply. I forgot to say that I also checked the -s flag.

So, there is no environment variable to indicate the path or
exact_path/file_name right?

It is possible to edit mvn.bat but i want to make sure it is possible for
developers to use their personal copy also. I am sure there are many ways to
do it but i am not sure which one is the best.


On 7/31/07, Wayne Fay [EMAIL PROTECTED] wrote:

 Looks like you want to use mvn -s your location here.

 C:\cvs_root\xsltc-maven-pluginmvn -h
 usage: mvn [options] [goal(s)] [phase(s)]
 Options:
 -s,--settings Alternate path for the user settings file

 To make this work consistently, you could probably edit the mvn.bat
 file itself to provide the -s setting automatically with every
 execution of mvn.

 Also, refer to this webpage for more info on settings.xml files:
 http://maven.apache.org/guides/introduction/introduction-to-profiles.html

 Wayne

 On 7/31/07, Baz [EMAIL PROTECTED] wrote:
  Hi,
 
  Is there a way to setup default location of settings.xml? I understand
 the
  default location is M2 repo.
 
  I am trying to have settings.xml stored in Perforce and add an
 environment
  variable to point to a directory so developers can have a consistent
  settings.xml file. Suggestion?
 
  Thanks.
 
  A.
 

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




Re: setting default location of settings.xml

2007-07-31 Thread Baz
Dana, Wayne,

What about this?

1. Change mvn.bat to do -s $MVN_SETTING_FILE.
2. Define MVN_SETTING_FILE in the shell environment.
3. Point the MVN_SETTING_FILE to the default workspace location where your
SCM tool will update the latest settings.xml (or any name in this case)

This way, you can use default and customize if you want by changing the
environment variable. This seems like a flexible solution. Comments?



On 7/31/07, Lacoste, Dana [EMAIL PROTECTED] wrote:

 We checked into our project home a settings.xml.sample so that users
 could customize their own environment.

 But if you added the -s flag to your maven command in cruise control
 you could force it to use the checked in/perforce version at build time
 (then just get the developers to use the shared one as well)

 Dana

 -Original Message-
 From: Baz [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, July 31, 2007 12:20 PM
 To: Maven Users List
 Subject: setting default location of settings.xml

 Hi,

 Is there a way to setup default location of settings.xml? I understand
 the default location is M2 repo.

 I am trying to have settings.xml stored in Perforce and add an
 environment variable to point to a directory so developers can have a
 consistent settings.xml file. Suggestion?

 Thanks.

 A.

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




Re: How can i build a specific version without changing the pom.xml?

2007-07-27 Thread Baz
In that case, you will need to change pom.xml everytime right?

Or, we can have profile defined in profiles.xml or settings.xml to avoid
pom.xml changes?


On 7/27/07, John Patrick [EMAIL PROTECTED] wrote:

 Yeah I follow you more now.

 We similar by having a developer profile active by default using snapshot
 versions and the release and continuous profiles using non snapshot
 versions.

 John
 On 27/07/07, Baz [EMAIL PROTECTED] wrote:
 
  John,
 
  I agreed with your comments. Here is the practical usage:
 
  The version under source code is building against xyz version 5.6.1.0.
  However, we need the capability to build against the non-release quality
  of
  version xyz that comes out every day or week, say 5.6.1.1, then 5.6.1.2,
  then 5.6.1.3, ...etc.
 
  I should alter the dependency information in my pom.xml for product A
  since
  I really do not know which version of xyz will pass QA. Does it make
  sense?
 
  Baz
 
 
  On 7/26/07, John Patrick [EMAIL PROTECTED] wrote:
  
   Baz,
  
   I would put this type of information into a profile within the pom.
 Then
   its
   simple and repeatable. Also trackable if your project is under source
   control, instead of just relying on people knowing the correct command
   line
   arguments to use.
  
   Personally I think building a different version from what the pom says
  is
   a
   very bad idea as from my experience, definitively knowing from a file
  its
   artifact id and version number is a huge advantage. It can give you a
  link
   into a source control tag or label and maintenance and support effect
  can
   be
   more efficiently used.
  
   If a defect gets raised for version 0.1 how will support know its
  actually
   1.0 with version 2.0 of xyz and not version 0.1 with what ever version
  of
   xyz was defined at the point.
  
   I apologise for the rant but I've been called in several times to help
   with
   issues with supporting non maven projects and finding out versions of
  jars
   being used and setting up a test environment took 85% of the time with
  the
   rest doing the actual fix and proving it works. Where as with a maven
   project, get the pom from the main jar and then sync to that tag/label
  and
   your setup in minuets not hours.
  
   John
  
   On 26/07/07, Baz [EMAIL PROTECTED] wrote:
   
All,
   
How can i build a specific version or depend on specific version
  without
changing the pom.xml ?
   
For example, if pom.xml of product A is building version 1.0 of
  product
   A
and depending on version 5.6 of xyz.
   
Can i type something like mvn -Dversion=0.1 -Dxyz_version=
 2.0install
   to
build version 0.1 of product A and depending on version 2.0 of xyz?
   
Thank you.
   
A.
   
  
  
  
   On 26/07/07, Baz [EMAIL PROTECTED] wrote:
   
All,
   
How can i build a specific version or depend on specific version
  without
changing the pom.xml ?
   
For example, if pom.xml of product A is building version 1.0 of
  product
   A
and depending on version 5.6 of xyz.
   
Can i type something like mvn -Dversion=0.1 -Dxyz_version=
 2.0install
   to
build version 0.1 of product A and depending on version 2.0 of xyz?
   
Thank you.
   
A.
   
  
 



Re: How can i build a specific version without changing the pom.xml?

2007-07-26 Thread Baz
John,

I agreed with your comments. Here is the practical usage:

The version under source code is building against xyz version 5.6.1.0.
However, we need the capability to build against the non-release quality of
version xyz that comes out every day or week, say 5.6.1.1, then 5.6.1.2,
then 5.6.1.3, ...etc.

I should alter the dependency information in my pom.xml for product A since
I really do not know which version of xyz will pass QA. Does it make sense?

Baz


On 7/26/07, John Patrick [EMAIL PROTECTED] wrote:

 Baz,

 I would put this type of information into a profile within the pom. Then
 its
 simple and repeatable. Also trackable if your project is under source
 control, instead of just relying on people knowing the correct command
 line
 arguments to use.

 Personally I think building a different version from what the pom says is
 a
 very bad idea as from my experience, definitively knowing from a file its
 artifact id and version number is a huge advantage. It can give you a link
 into a source control tag or label and maintenance and support effect can
 be
 more efficiently used.

 If a defect gets raised for version 0.1 how will support know its actually
 1.0 with version 2.0 of xyz and not version 0.1 with what ever version of
 xyz was defined at the point.

 I apologise for the rant but I've been called in several times to help
 with
 issues with supporting non maven projects and finding out versions of jars
 being used and setting up a test environment took 85% of the time with the
 rest doing the actual fix and proving it works. Where as with a maven
 project, get the pom from the main jar and then sync to that tag/label and
 your setup in minuets not hours.

 John

 On 26/07/07, Baz [EMAIL PROTECTED] wrote:
 
  All,
 
  How can i build a specific version or depend on specific version without
  changing the pom.xml ?
 
  For example, if pom.xml of product A is building version 1.0 of product
 A
  and depending on version 5.6 of xyz.
 
  Can i type something like mvn -Dversion=0.1 -Dxyz_version=2.0 install
 to
  build version 0.1 of product A and depending on version 2.0 of xyz?
 
  Thank you.
 
  A.
 



 On 26/07/07, Baz [EMAIL PROTECTED] wrote:
 
  All,
 
  How can i build a specific version or depend on specific version without
  changing the pom.xml ?
 
  For example, if pom.xml of product A is building version 1.0 of product
 A
  and depending on version 5.6 of xyz.
 
  Can i type something like mvn -Dversion=0.1 -Dxyz_version=2.0 install
 to
  build version 0.1 of product A and depending on version 2.0 of xyz?
 
  Thank you.
 
  A.
 



How can i build a specific version without changing the pom.xml?

2007-07-25 Thread Baz

All,

How can i build a specific version or depend on specific version without
changing the pom.xml?

For example, if pom.xml of product A is building version 1.0 of product A
and depending on version 5.6 of xyz.

Can i type something like mvn -Dversion=0.1 -Dxyz_version=2.0 install to
build version 0.1 of product A and depending on version 2.0 of xyz?

Thank you.

A.


How can i create a repo search order?

2007-07-20 Thread Baz

All,

How can i write the pom so that it looks for local repo (local machine),
then development repo, then release repo, then public repo?

Thanks.

A.


Re: Building multiple modules/subdirectories with a single pom.xml?

2007-07-20 Thread Baz

Interesting tho, if you do what you mentioned in the email, then the modules
in the profiles will execute after the one in the declared after.

For example, project-domain will run before project-unittests.

Is it a normal behavior? What if i want project-unittests run before
project-domain (Yes i know it is bad example, I just want to follow whats in
the email), then what should i do? Can it be done?

Thanks.

A.


On 7/14/07, Manos Batsis [EMAIL PROTECTED] wrote:


Baz wrote:
 All,

 So i asked similar question before... How can i build multiple
 sub-directories with one pom.xml? The answer is using modules.

 What if, there are two sets of sub-directories, one for product A and
the
 other for product B, how can i do mvn product_a and mvn product_b?

 Using profile?

Yup, e.g.:


/profiles
profile
idtest/id
modules
moduleproject-unittests/module
/modules
/profile
/profiles

!-- ... --

modules
moduleproject-domain/module
moduleproject-ear/module
moduleproject-ejb/module
moduleproject-web/module
/modules

hth,

Manos

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




Re: How can i create a repo search order?

2007-07-20 Thread Baz

Denis, thanks. How can i configure the searching behaviour? Is there a file?
Syntax?

On 7/20/07, Denis Cabasson [EMAIL PROTECTED] wrote:



Maven is always searching first for the local repo.

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

Denis.


Baz-6 wrote:

 All,

 How can i write the pom so that it looks for local repo (local machine),
 then development repo, then release repo, then public repo?

 Thanks.

 A.



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


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




Re: How to build sub-directories recursively without knowing the exact names for sub-directories?

2007-07-20 Thread Baz

Wayne, got it. Thanks.

On 7/20/07, Wayne Fay [EMAIL PROTECTED] wrote:


I understand the situation, but you simply need to realize that (at
least at this point) Maven does not support your use case.

Considering the work to maintain product/pom.xml is extremely
trivial (add one line in modules when a new module is added), I
don't see the payoff all that large for doing things automatically.

File an RFE in Jira if you'd like, but I just don't see this being
something that very many people will care about, so if you really want
to see this feature added, you'll need to hack it in yourself IMHO.

Wayne

On 7/19/07, Baz [EMAIL PROTECTED] wrote:
 Say I have a the following directory structure:

 product/
   module_1/
   module_2/
   ...

 Can i have a pom.xml at product directory level, and it will go into
module
 directories and run their pom files?

 The number of module subdirectories can increase but i do not want to
 maintain the product/pom.xml. Does it make sense?

 A.

 On 7/19/07, Wayne Fay [EMAIL PROTECTED] wrote:
 
  What's your use case? How could you possibly not know the names of the
  modules when you're building a project? Are you trying to build a
  super master pom that builds all your company's projects, or
  something along those lines?
 
  Wayne
 
  On 7/19/07, Baz [EMAIL PROTECTED] wrote:
   All,
  
   I know we can use modules to specify which sub-directories that we
  would
   like to build. What if i dont know the name of the sub-directories?
Can
  i do
   wildcards?
  
   Thanks.
  
 
  -
  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]




error messages from velocimacro?

2007-07-19 Thread Baz

All,

Any ideas what the following errors mean?

[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
any resource loader.
[INFO] Velocimacro : error using VM library template VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
[INFO] Velocimacro : VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may
NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be
global in scope if allowed.
[INFO] Velocimacro : initialization complete.


Re: error messages from velocimacro?

2007-07-19 Thread Baz

Wayne, thanks. B.

On 7/19/07, Wayne Fay [EMAIL PROTECTED] wrote:


Baz, you've asked this question before, and people told you to ignore
that [ERROR]. Are you have problems with something specific, or is it
just a general query? That [ERROR] can/should be ignored.

Wayne

On 7/19/07, Baz [EMAIL PROTECTED] wrote:
 All,

 Any ideas what the following errors mean?

 [INFO] Velocimacro : initialization starting.
 [INFO] Velocimacro : adding VMs from VM library template :
 VM_global_library.vm
 [ERROR] ResourceManager : unable to find resource 'VM_global_library.vm'
in
 any resource loader.
 [INFO] Velocimacro : error using VM library template
VM_global_library.vm :
 org.apache.velocity.exception.ResourceNotFoundException: Unable to find
 resource 'VM_global_library.vm'
 [INFO] Velocimacro : VM library template macro registration complete.
 [INFO] Velocimacro : allowInline = true : VMs can be defined inline in
 templates
 [INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline
may
 NOT replace previous VM definitions
 [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will
be
 global in scope if allowed.
 [INFO] Velocimacro : initialization complete.


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




How to build sub-directories recursively without knowing the exact names for sub-directories?

2007-07-19 Thread Baz

All,

I know we can use modules to specify which sub-directories that we would
like to build. What if i dont know the name of the sub-directories? Can i do
wildcards?

Thanks.


Re: How to build sub-directories recursively without knowing the exact names for sub-directories?

2007-07-19 Thread Baz

Say I have a the following directory structure:

product/
  module_1/
  module_2/
  ...

Can i have a pom.xml at product directory level, and it will go into module
directories and run their pom files?

The number of module subdirectories can increase but i do not want to
maintain the product/pom.xml. Does it make sense?

A.

On 7/19/07, Wayne Fay [EMAIL PROTECTED] wrote:


What's your use case? How could you possibly not know the names of the
modules when you're building a project? Are you trying to build a
super master pom that builds all your company's projects, or
something along those lines?

Wayne

On 7/19/07, Baz [EMAIL PROTECTED] wrote:
 All,

 I know we can use modules to specify which sub-directories that we
would
 like to build. What if i dont know the name of the sub-directories? Can
i do
 wildcards?

 Thanks.


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




Do we have any issues with release plug-in with perforce?

2007-07-17 Thread Baz

All,

Do we have issues with using release plug-in with perforce as scm tool?

Thanks.

A.


Question about setting up snapshot repository

2007-07-16 Thread Baz

All,

I have questions about setting up snapshot repository. I read the
instruction on http://mojo.codehaus.org/using-sandbox-plugins.html and i
have the following questions:

If I build some java code, and resulted in some_api.jar and type mvn
deploy, then does it goes to http://snapshots.repository.codehaus.org/ ?

What if product A is depending on some_api.jar, will the pom.xml retrieve
some_api.jar from http://snapshots.repository.codehaus.org/ ?

Does the code apply to both build dependencies and deployment? Meaning does
the code in http://mojo.codehaus.org/using-sandbox-plugins.html apply to
both some_api and product_a?

Thank you.

A.


How can i turn off and on the snapshot archive (timestamp) functionalities?

2007-07-14 Thread Baz

All,

How can i turn off and on the snapshot archive (timestamp) functionalities?

Thanks.

A.


Re: How can i turn off and on the snapshot archive (timestamp) functionalities?

2007-07-14 Thread Baz

Wendy,

Thanks for the reply.

Does that mean it only apply when doing mvn deploy and affecting snapshot
repository?




On 7/14/07, Wendy Smoak [EMAIL PROTECTED] wrote:


On 7/14/07, Baz [EMAIL PROTECTED] wrote:

 How can i turn off and on the snapshot archive (timestamp)
functionalities?

distributionManagement
   snapshotRepository
   uniqueVersionfalse/uniqueVersion
...


http://maven.apache.org/ref/2.0.4/maven-model/maven.html#class_snapshotRepository

--
Wendy

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




Re: How can i turn off and on the snapshot archive (timestamp) functionalities?

2007-07-14 Thread Baz

Cool. Wendy, thanks for the testing and confirmation.

On 7/14/07, Wendy Smoak [EMAIL PROTECTED] wrote:


On 7/14/07, Baz [EMAIL PROTECTED] wrote:

 Does that mean it only apply when doing mvn deploy and affecting
snapshot
 repository?

Yes.  (Is there a 'part two' of that question?)

A quick experiment indicates that locally installed snapshots are not
timestamped.  I think I've seen reports of Maven thinking that a
snapshot retrieved from a remote snapshot repo is newer than one you
just 'mvn install'ed.

--
Wendy

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




Building multiple modules/subdirectories with a single pom.xml?

2007-07-14 Thread Baz

All,

So i asked similar question before... How can i build multiple
sub-directories with one pom.xml? The answer is using modules.

What if, there are two sets of sub-directories, one for product A and the
other for product B, how can i do mvn product_a and mvn product_b?

Using profile? Or? How would you implement this?

Thanks. A.


Re: Building multiple modules/subdirectories with a single pom.xml?

2007-07-14 Thread Baz

Also, is it possible to build ANY subdirectories without knowing what they
are? Meaning using wildcards in module???

Thanks. Baz


On 7/14/07, Baz [EMAIL PROTECTED] wrote:


All,

So i asked similar question before... How can i build multiple
sub-directories with one pom.xml? The answer is using modules.

What if, there are two sets of sub-directories, one for product A and the
other for product B, how can i do mvn product_a and mvn product_b?

Using profile? Or? How would you implement this?

Thanks. A.



Re: Building multiple modules/subdirectories with a single pom.xml?

2007-07-14 Thread Baz

cool let me play around

On 7/14/07, Manos Batsis [EMAIL PROTECTED] wrote:


Baz wrote:
 All,

 So i asked similar question before... How can i build multiple
 sub-directories with one pom.xml? The answer is using modules.

 What if, there are two sets of sub-directories, one for product A and
the
 other for product B, how can i do mvn product_a and mvn product_b?

 Using profile?

Yup, e.g.:


/profiles
profile
idtest/id
modules
moduleproject-unittests/module
/modules
/profile
/profiles

!-- ... --

modules
moduleproject-domain/module
moduleproject-ear/module
moduleproject-ejb/module
moduleproject-web/module
/modules

hth,

Manos

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




Re: How can i add clover report generation into maven and have the ability to turn on/off?

2007-07-13 Thread Baz

i thought you can do something like -Dmaven.clover.skip=false in order to
invoke it?

On 7/12/07, Thorsten Heit [EMAIL PROTECTED] wrote:


Hi,

 How can i add clover report generation into maven and have the ability
to
 turn on/off? Meaning, after implementation, when running mvn install, it
 will not run clover unless doing something like mvn install
 -Dclover=true?

I'd create a profile clover that only contains the clover reporting
plugin section so you can activate it by simply specifying mvn -P clover
...


HTH

Thorsten

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




How can i specifying a settings.xml file to be used?

2007-07-13 Thread Baz

Is there a -f flag or something?

Thanks.

A.


Re: How can i specifying a settings.xml file to be used?

2007-07-13 Thread Baz

Cool, wendy, thanks.

On 7/13/07, Wendy Smoak [EMAIL PROTECTED] wrote:


On 7/13/07, Baz [EMAIL PROTECTED] wrote:

 Is there a -f flag or something?

$ mvn -h
...
-s,--settings Alternate path for the user settings file

--
Wendy

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




How can i add clover report generation into maven and have the ability to turn on/off?

2007-07-12 Thread Baz

All,

How can i add clover report generation into maven and have the ability to
turn on/off? Meaning, after implementation, when running mvn install, it
will not run clover unless doing something like mvn install
-Dclover=true?

What is the recommended way to do it?

Thanks.

A.


Re: How can i release a version of software with the existing version is SNAPSHOT?

2007-07-07 Thread Baz

Does it work with Perforce? I think I have seen email thread here and there
about Maven plugins do not work with Perforce 100%.

On 7/7/07, Wim Deblauwe [EMAIL PROTECTED] wrote:


Use the release plugin to do a release of your module/project

2007/7/7, Baz [EMAIL PROTECTED]:

 All,

 If the software that i am building is at version 0.1-SNAPSHOT, is it
 possible that I can build 1.0.0.0 in official build systems? What is the
 best way to handle this situation?

 Can I pass a flag to maven and let it change to 1.0.0.0 while compiling?

 Thanks.

 A.




--
Vigilog - an open source log file viewer: http://vigilog.sourceforge.net
Blog: http://www.jroller.com/page/Fester



How can i release a version of software with the existing version is SNAPSHOT?

2007-07-06 Thread Baz

All,

If the software that i am building is at version 0.1-SNAPSHOT, is it
possible that I can build 1.0.0.0 in official build systems? What is the
best way to handle this situation?

Can I pass a flag to maven and let it change to 1.0.0.0 while compiling?

Thanks.

A.


How to use mvn release:perform with Perforce

2007-06-11 Thread Baz

All,

Does maven 2.0 release plug-in support Perforce? According to the following
link, it is not. If not, then anyone here got solution?

Thanks.

A.

http://www.nabble.com/release:prepare-with-Perforce-t1217272s177.html


Re: mvn site error? 'VM_global_library.vm' ???

2007-05-25 Thread Baz

how to ignore it? It seems like mvn site failed and not creating the html
within the target directory...

On 5/25/07, Andrew Williams [EMAIL PROTECTED] wrote:


It is safe to ignore this, I believe.
A long standing issue is the need to tidy up what velocity reports as
errors or indeed what is output at all.

Andy

On 25 May 2007, at 01:11, Baz wrote:

 Why am i seeing the following error? How can i resolve it?

 [INFO] Velocimacro : initialization starting.^M
 [INFO] Velocimacro : adding VMs from VM library template :
 VM_global_library.vm^
 M
 [ERROR] ResourceManager : unable to find resource
 'VM_global_library.vm' in
 any
 resource loader.^M
 [INFO] Velocimacro : error using  VM library template
 VM_global_library.vm :
 org
 .apache.velocity.exception.ResourceNotFoundException: Unable to find
 resource 'V
 M_global_library.vm'^M
 [INFO] Velocimacro :  VM library template macro registration
 complete.^M
 [INFO] Velocimacro : allowInline = true : VMs can be defined inline in
 templates
 ^M
 [INFO] Velocimacro : allowInlineToOverride = false : VMs defined
 inline may
 NOT
 replace previous VM definitions^M
 [INFO] Velocimacro : allowInlineLocal = false : VMs defined inline
 will be
 glob
 al in scope if allowed.^M
 [INFO] Velocimacro : initialization complete.^M
 [INFO] Velocity successfully started.^M


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




Re: mvn site error? 'VM_global_library.vm' ???

2007-05-25 Thread Baz

So here is most of the output, please tell me if there is a problem or
not...


[INFO] Loaded System Directive:
org.apache.velocity.runtime.directive.Foreach^M
[INFO] Created: 20 parsers.^M
[INFO] Velocimacro : initialization starting.^M
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm^
M
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
any
resource loader.^M
[INFO] Velocimacro : error using  VM library template VM_global_library.vm :
org
.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'V
M_global_library.vm'^M
[INFO] Velocimacro :  VM library template macro registration complete.^M
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates
^M
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may
NOT
replace previous VM definitions^M
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be
glob
al in scope if allowed.^M
[INFO] Velocimacro : initialization complete.^M
[INFO] Velocity successfully started.^M
[INFO] Setting property: classpath.resource.loader.class = '
org.codehaus.plexus
.velocity.ContextClassLoaderResourceLoader'.^M
[INFO] Setting property: velocimacro.messages.on = 'false'.^M
[INFO] Setting property: resource.loader = 'classpath'.^M
[INFO] Setting property: resource.manager.logwhenfound = 'false'.^M
[INFO] Preparing surefire-report:report^M
[INFO] [dependency:unpack-dependencies {execution: default}]^M
[INFO] Expanding: c:\Documents and
Settings\Administrator\.m2\Castle\DynamicProx
y\1.1.5.0\DynamicProxy-1.1.5.0.zip into c:\Documents and
Settings\Administrator\
.m2\Castle\DynamicProxy\1.1.5.0^M
[INFO] Expanding: c:\Documents and
Settings\Administrator\.m2\Common\Logging\1.1
.0.2\Logging-1.1.0.2.zip into c:\Documents and
Settings\Administrator\.m2\Common
\Logging\1.1.0.2^M
[INFO] Expanding: c:\Documents and
Settings\Administrator\.m2\Iesi\Collections\1
.0.0.3\Collections-1.0.0.3.zip into c:\Documents and
Settings\Administrator\.m2\
Iesi\Collections\1.0.0.3^M
[INFO] Expanding: c:\Documents and
Settings\Administrator\.m2\Interop\EA\2.10.23
8.1\EA-2.10.238.1.zip into c:\Documents and
Settings\Administrator\.m2\Interop\E
A\2.10.238.1^M
[INFO] Expanding: c:\Documents and
Settings\Administrator\.m2\MySql\Data\1.0.7.3
0072\Data-1.0.7.30072.zip into c:\Documents and
Settings\Administrator\.m2\MySql
\Data\1.0.7.30072^M

--- cut ---

C:\xyz\engines\platform\build\clover\generated-src\javaSpecific\com\abc\sb
\platform\Money.java:[20,7] duplicate class: com.abc.sb.platform.Money

C:\xyz\engines\platform\build\clover\src\com\abc\sb\platform\Good.java:[20
,7] duplicate class: com.abc.sb.platform.Good

C:\xyz\engines\platform\build\clover\generated-src\javaSpecific\com\abc\sb
\platform\MetricPropertyId.java:[22,13] duplicate class: com.abc.sb.platform
.
MetricPropertyId

C:\xyz\engines\platform\build\clover\src\com\abc\sb\platform\BusinessLineI
tem.java:[20,7] duplicate class: com.abc.sb.platform.BusinessLineItem

C:\xyz\engines\platform\build\clover\generated-src\javaSpecific\com\abc\sb
\platform\Person.java:[20,7] duplicate class: com.abc.sb.platform.Person

C:\xyz\engines\platform\build\clover\generated-src\javaSpecific\com\abc\sb
\platform\Organization.java:[20,7] duplicate class:
com.abc.sb.platform.Organ
ization

C:\xyz\engines\platform\build\clover\src\com\abc\sb\platform\GoodPropertyI
d.java:[22,13] duplicate class: com.abc.sb.platform.GoodPropertyId

C:\xyz\engines\platform\build\generated-src\javaSpecific\com\abc\sb\platfo
rm\UnitPropertyId.java:[22,13] duplicate class:
com.abc.sb.platform.UnitPrope
rtyId


[INFO]

[INFO] For more information, run Maven with the -e switch
[INFO]

[INFO] Total time: 1 minute 7 seconds
[INFO] Finished at: Thu May 24 17:02:50 PDT 2007
[INFO] Final Memory: 22M/41M
[INFO]



On 5/25/07, Nick Stolwijk [EMAIL PROTECTED] wrote:


As I can see it Velocity is started, so if mvn site failed it should be
another error. Could you post the error or perhaps the mvn output.

With regards,

Nick S.

Baz wrote:
 how to ignore it? It seems like mvn site failed and not creating the
 html
 within the target directory...

 On 5/25/07, Andrew Williams [EMAIL PROTECTED] wrote:

 It is safe to ignore this, I believe.
 A long standing issue is the need to tidy up what velocity reports as
 errors or indeed what is output at all.

 Andy

 On 25 May 2007, at 01:11, Baz wrote:

  Why am i seeing the following error? How can i resolve it?
 
  [INFO] Velocimacro : initialization starting.^M
  [INFO] Velocimacro : adding VMs from VM library template :
  VM_global_library.vm^
  M
  [ERROR] ResourceManager : unable to find resource
  'VM_global_library.vm' in
  any
  resource loader.^M
  [INFO] Velocimacro : error using  VM library

Re: mvn site error? 'VM_global_library.vm' ???

2007-05-25 Thread Baz

So i also see the following errors during nunit, does it stop me using mvn
site?

[INFO] Velocimacro : initialization starting.
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
any resource loader.
[INFO] Velocimacro : error using VM library template VM_global_library.vm :
org.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'VM_global_library.vm'
[INFO] Velocimacro : VM library template macro registration complete.
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may
NOT replace previous VM definitions
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be
global in scope if allowed.
[INFO] Velocimacro : initialization complete.
[INFO] Velocity successfully started.


mvn site error? 'VM_global_library.vm' ???

2007-05-24 Thread Baz

Why am i seeing the following error? How can i resolve it?

[INFO] Velocimacro : initialization starting.^M
[INFO] Velocimacro : adding VMs from VM library template :
VM_global_library.vm^
M
[ERROR] ResourceManager : unable to find resource 'VM_global_library.vm' in
any
resource loader.^M
[INFO] Velocimacro : error using  VM library template VM_global_library.vm :
org
.apache.velocity.exception.ResourceNotFoundException: Unable to find
resource 'V
M_global_library.vm'^M
[INFO] Velocimacro :  VM library template macro registration complete.^M
[INFO] Velocimacro : allowInline = true : VMs can be defined inline in
templates
^M
[INFO] Velocimacro : allowInlineToOverride = false : VMs defined inline may
NOT
replace previous VM definitions^M
[INFO] Velocimacro : allowInlineLocal = false : VMs defined inline will be
glob
al in scope if allowed.^M
[INFO] Velocimacro : initialization complete.^M
[INFO] Velocity successfully started.^M


How to run ant tasks in maven 2?

2007-04-30 Thread Baz

All,

I read the page in
http://maven.apache.org/plugins/maven-antrun-plugin/usage.html but i still
cannot make a simple ant task work in maven 2. Please help.

Here is my code:

 plugin
   artifactIdmaven-antrun-plugin/artifactId
 executions
   execution
   phasedeploy/phase
 configuration
   tasks
 target name=aaa
   echo message=Testing/
 /target
   /tasks
 /configuration
 goals
   goalrun/goal
 /goals
   /execution
 /executions
 /plugin


Re: How to run ant tasks in maven 2?

2007-04-30 Thread Baz

All,

I think I got it. I shouldnt put target line in the pom.xml. It works
without it.

Thank you.

A.


On 4/30/07, Jared Blitzstein [EMAIL PROTECTED] wrote:


Are you running the deploy goal or something else that executes that
phase? Also I'm not sure if you're supposed to define a target.

On Apr 30, 2007, at 8:48 PM, Baz wrote:

 All,

 I read the page in
 http://maven.apache.org/plugins/maven-antrun-plugin/usage.html but
 i still
 cannot make a simple ant task work in maven 2. Please help.

 Here is my code:

  plugin
artifactIdmaven-antrun-plugin/artifactId
  executions
execution
phasedeploy/phase
  configuration
tasks
  target name=aaa
echo message=Testing/
  /target
/tasks
  /configuration
  goals
goalrun/goal
  /goals
/execution
  /executions
  /plugin


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




How to clean a directory outside the source tree?

2007-04-26 Thread Baz

All,

I am trying to clean a directory outside the source tree, how can i do
it? I read the following page:

http://maven.apache.org/plugins/maven-clean-plugin/examples/delete_additional_files.html

What is the specific syntax i need for the include line? I added the
following line but nothing have been removed.

includes
 includeabc/**/*/include
/includes

Thanks. A.

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



Re: How to clean a directory outside the source tree?

2007-04-26 Thread Baz

Here are the errors:

[INFO] Deleting file-set: C:\Documents and Settings\Administrator\.m2\com (inc
luded: [abc/*], excluded: [])
[INFO] 
[ERROR] FATAL ERROR
[INFO] 
[INFO] java.lang.String
[INFO] 
[INFO] Trace
java.lang.ClassCastException: java.lang.String
   at org.apache.maven.plugin.clean.CleanMojo.removeAdditionalFilesets(Clea
nMojo.java:107)
   at org.apache.maven.plugin.clean.CleanMojo.execute(CleanMojo.java:98)
   at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:420)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:539)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:480)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
ltLifecycleExecutor.java:459)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
dleFailures(DefaultLifecycleExecutor.java:311)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
ts(DefaultLifecycleExecutor.java:278)
   at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
fecycleExecutor.java:143)
   at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:330)
   at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:123)
   at org.apache.maven.cli.MavenCli.main(MavenCli.java:272)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
   at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
   at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)

   at org.codehaus.classworlds.Launcher.main(Launcher.java:375)

On 4/26/07, Baz [EMAIL PROTECTED] wrote:

All,

I am trying to clean a directory outside the source tree, how can i do
it? I read the following page:

http://maven.apache.org/plugins/maven-clean-plugin/examples/delete_additional_files.html

What is the specific syntax i need for the include line? I added the
following line but nothing have been removed.

includes
 includeabc/**/*/include
/includes

Thanks. A.



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



Re: How to clean a directory outside the source tree?

2007-04-26 Thread Baz

cool thanks.

A.

On 4/26/07, Pier Mauro Vignati [EMAIL PROTECTED] wrote:

Hi Baz, yuo can use something like:
(here I'm using the clean plugin to clean up my local tomcat webapp dir ..)

  plugin
   artifactIdmaven-clean-plugin/artifactId
   configuration
filesets
 fileset
  directory
   ${tomcat.installation.dir}\webapps
  /directory
  includes
   include**/*/include
  /includes

  followSymlinksfalse/followSymlinks
 /fileset
/filesets
   /configuration

   executions
execution
 idauto-clean/id
 phasevalidate/phase
 goals
  goalclean/goal
 /goals
/execution
   /executions
  /plugin
Regards
Pier.


On 4/26/07, Baz [EMAIL PROTECTED] wrote:

 All,

 I am trying to clean a directory outside the source tree, how can i do
 it? I read the following page:


 
http://maven.apache.org/plugins/maven-clean-plugin/examples/delete_additional_files.html

 What is the specific syntax i need for the include line? I added the
 following line but nothing have been removed.

 includes
 includeabc/**/*/include
 /includes

 Thanks. A.

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



How to execute a system command from maven 2?

2007-04-26 Thread Baz

Hi,

How can i execute a system command such as del from maven 2? Is
there any exec in maven 2 and what is the syntax? I dont seem to be
able to locate it.

Thanks.

A.

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



Re: How to execute a system command from maven 2?

2007-04-26 Thread Baz

Thanks. :)

A.

On 4/26/07, Wayne Fay [EMAIL PROTECTED] wrote:

Google maven exec. Its the first link.

Wayne

On 4/26/07, Baz [EMAIL PROTECTED] wrote:
 Hi,

 How can i execute a system command such as del from maven 2? Is
 there any exec in maven 2 and what is the syntax? I dont seem to be
 able to locate it.

 Thanks.

 A.

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



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




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



Re: How to execute a system command from maven 2?

2007-04-26 Thread Baz

When i put in the following code, and run mvn exec:exec I receive
errors, do you know what is the issue? Do i need to run mvn
exec:exec? Can I incoroperate this into mvn clean so when i execute
clean, it will clean up specific directories for me?

Thanks. A.

 build
   plugins
 plugin
   groupIdorg.codehaus.mojo/groupId
   artifactIdexec-maven-plugin/artifactId
   executions
 execution
   goals
 goalexec/goal
   /goals
 /execution
   /executions
   configuration
 executablermdir/executable
 !-- optional --
 workingDirectoryC:\tmp\.m2/workingDirectory
 arguments
   argument/Q/argument
   argument/S/argument
   argumentcom/argument
 /arguments
   /configuration
 /plugin
   /plugins
 /build

Errors:

---
[INFO] 
[ERROR] BUILD ERROR
[INFO] 
[INFO] One or more required plugin parameters are invalid/missing for 'exec:exec
'

[0] inside the definition for plugin: 'exec-maven-plugin'specify the following:

configuration
 ...
 executableVALUE/executable
/configuration

-OR-

on the command line, specify: '-Dexec.executable=VALUE'

On 4/26/07, Baz [EMAIL PROTECTED] wrote:

Thanks. :)

A.

On 4/26/07, Wayne Fay [EMAIL PROTECTED] wrote:
 Google maven exec. Its the first link.

 Wayne

 On 4/26/07, Baz [EMAIL PROTECTED] wrote:
  Hi,
 
  How can i execute a system command such as del from maven 2? Is
  there any exec in maven 2 and what is the syntax? I dont seem to be
  able to locate it.
 
  Thanks.
 
  A.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 

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





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



Re: Simple example for maven 2 release goals?

2007-04-23 Thread Baz

Is the question too general or too open ended?

On 4/22/07, Baz [EMAIL PROTECTED] wrote:

All,

I would like to obtain simple instructions of incoroperating the use
of release goals in my build system that consists of CruiseControl or
Continuum and Maven 2. I have read the pages in
http://maven.apache.org/plugins/maven-release-plugin/ and
understanding that could simplify my life but still not exactly how to
use it. I wonder if someone can give me some sort of working example
and templates.

Here are the things that I would like to do:

Environment:
1. Perforce.
2. Continuum/CruiseControl.
3. Maven 2.
4. Windows OS.

Build types:

1.Continuous builds.
- Build tree resides in build machine itself.
- Maven 2 site generation.
- External webpages point directly to the generated pages within the
build tree for reports.
- P4 labelling? Not necessary.
- Archiving? Not necessary.
- Version: SNAPSHOT.

2. Nightly/Daily builds.
- Build tree build in build machine, then archive into file share location.
- Maven 2 site generation.
- External webpages point to the generated pages build tree that
reside in the archive file share location. I am assuming that we
keeping 7 days of daily builds. Builds are overwritting each others.
- P4 labelling? Yes.
- Archiving? Yes.
- Version: I dont know what is the best practice here? I dont want to
use snapshot and I would like to use time stamp as part of the file
name, is it possible? For example, package-070102.*.

3. Ad-hoc/release builds.
- Build tree build in build machine, then archive into file share location.
- Maven 2 site generation.
- External webpages point to the generated pages build tree that
reside in the archive file share location. I am assuming that we keep
30 builds.
- P4 labelling? Yes.
- Archiving? Yes.
- Version:  dont know what is the best practice here? I dont want to
use snapshot and I would like to use time stamp as part of the file
name, is it possible? For example, package-070102.*.

Thank you and please comment.

A.



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



Simple example for maven 2 release goals?

2007-04-22 Thread Baz

All,

I would like to obtain simple instructions of incoroperating the use
of release goals in my build system that consists of CruiseControl or
Continuum and Maven 2. I have read the pages in
http://maven.apache.org/plugins/maven-release-plugin/ and
understanding that could simplify my life but still not exactly how to
use it. I wonder if someone can give me some sort of working example
and templates.

Here are the things that I would like to do:

Environment:
1. Perforce.
2. Continuum/CruiseControl.
3. Maven 2.
4. Windows OS.

Build types:

1.Continuous builds.
- Build tree resides in build machine itself.
- Maven 2 site generation.
- External webpages point directly to the generated pages within the
build tree for reports.
- P4 labelling? Not necessary.
- Archiving? Not necessary.
- Version: SNAPSHOT.

2. Nightly/Daily builds.
- Build tree build in build machine, then archive into file share location.
- Maven 2 site generation.
- External webpages point to the generated pages build tree that
reside in the archive file share location. I am assuming that we
keeping 7 days of daily builds. Builds are overwritting each others.
- P4 labelling? Yes.
- Archiving? Yes.
- Version: I dont know what is the best practice here? I dont want to
use snapshot and I would like to use time stamp as part of the file
name, is it possible? For example, package-070102.*.

3. Ad-hoc/release builds.
- Build tree build in build machine, then archive into file share location.
- Maven 2 site generation.
- External webpages point to the generated pages build tree that
reside in the archive file share location. I am assuming that we keep
30 builds.
- P4 labelling? Yes.
- Archiving? Yes.
- Version:  dont know what is the best practice here? I dont want to
use snapshot and I would like to use time stamp as part of the file
name, is it possible? For example, package-070102.*.

Thank you and please comment.

A.

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



Re: bogus error? [ERROR]? How can i get rid of it?

2007-04-18 Thread Baz

I wonder if anyone read this...

On 4/11/07, Baz [EMAIL PROTECTED] wrote:

Hi,

I have seen this error in the build log but i think they are bogus
since the operation is successful. How can i get rid of them?

Thanks.

AY

[INFO] copy c:\Documents and
Settings\Administrator\.m2\com\aaa\bbb.jar C:\install_dir
   1 file(s) copied.
[ERROR]



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



How to define variables and overwrite them with user defined files?

2007-04-18 Thread Baz

All,

How can i define variables in pom.xml and overwrite them with user
defined files?

For example, I would like to define a variable called mypath how can i
define it in pom.xml? Is there a way like in Ant, within
build.properties to redefine mypath? I know I can do -Dmypath=xyz

Thanks.

A.

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



Re: how can i compile a multiple directories with pom.xml?

2007-04-17 Thread Baz

I am missing the point here. So can i use fay's suggestion:

toplevel/pom.xml (modules a, b, c)
toplevel/a/pom.xml (no dependencies)
toplevel/b/pom.xml (depends on a)
toplevel/c/pom.xml (depends on b)

How can i implement toplevel/pom.xml?

Thanks. A.

On 4/12/07, franz see [EMAIL PROTECTED] wrote:


Good day,

After a quick browse to [1], [2], [3], [4], and [5] - I think they are
compiled all at once. I think it's like doing

javac -classpath source locations ...

If you want to do one java on each source location, you may have to run the
maven-compiler-plugin and provide each their own classpath via the compiler
arguments ( see [6] and [7] ).

Cheers,
Franz

[1]
http://svn.codehaus.org/mojo/trunk/mojo/build-helper-maven-plugin/src/main/java/org/codehaus/mojo/buildhelper/AddSourceMojo.java
[2]
http://maven.apache.org/ref/current/maven-project/apidocs/org/apache/maven/project/MavenProject.html#getCompileSourceRoots()
[3]
http://svn.apache.org/repos/asf/maven/plugins/trunk/maven-compiler-plugin/src/main/java/org/apache/maven/plugin/AbstractCompilerMojo.java
[4]
http://svn.codehaus.org/plexus/tags/plexus-compiler-1.5.3/plexus-compiler-api/src/main/java/org/codehaus/plexus/compiler/CompilerConfiguration.java
[5]
http://svn.codehaus.org/plexus/tags/plexus-compiler-1.5.3/plexus-compilers/plexus-compiler-javac/src/main/java/org/codehaus/plexus/compiler/javac/JavacCompiler.java
[6]
http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#compilerArgument
[7]
http://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#compilerArguments

Baz-6 wrote:

 Fay, Frank thanks for the replies.

 Frank, I checked the first example of the link you sent. The example
 demonstrated how to add sources, what about the order of compilation?
 Is it sequential?

 Thanks. A.

 On 4/11/07, franz see [EMAIL PROTECTED] wrote:

 Good day,

 Try [1].

 Cheers,
 Franz

 [1] http://mojo.codehaus.org/build-helper-maven-plugin/howto.html


 Wayne Fay wrote:
 
  Ideally you would just make multiple poms ie:
 
  toplevel/pom.xml (modules a, b, c)
  toplevel/a/pom.xml (no dependencies)
  toplevel/b/pom.xml (depends on a)
  toplevel/c/pom.xml (depends on b)
 
  Wayne
 
  On 4/11/07, Baz [EMAIL PROTECTED] wrote:
  All,
 
  If I have a directory src and subdirectories a, b and c. Each
  subdirectories have their own pom.xml files. Output of a depends on b,
  and b on c.
 
  Is it possible to have a pom.xml in src directory and start
  compilation in directory c, then b then a?
 
  Thanks.
 
  A.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 
http://www.nabble.com/how-can-i-compile-a-multiple-directories-with-pom.xml--tf3563309s177.html#a9953345
 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]




--
View this message in context: 
http://www.nabble.com/how-can-i-compile-a-multiple-directories-with-pom.xml--tf3563309s177.html#a9973455
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]



What is the correct way to increment/change the version number for builds?

2007-04-17 Thread Baz

All,

I have version1.0-SNAPSHOT/version in my pom by default.

What is the recommended way to version continuous, daily/nightly and
ad-hoc builds?

Currently, I have continuous builds versioned with SNAPSHOT.

What is the recommended way to change it to, say package-1.0.jar when
performing an ad-hoc release build?

Should i use version snapshot for all nightly builds? What if I want
to archive the nightly builds? Should i leave the snapshot in the m2
repo but when i copy the file, i rename it as
package-snapshot-date.jar?

Thanks.

B.

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



Re: how can i compile a multiple directories with pom.xml?

2007-04-17 Thread Baz

Sorry if i ask another stupid question again...

I am pretty new at Maven and how can i make your module section works?
Do you have a complete file for me as template? I have the following
error:

Validation Messages:

   [0]  Packaging 'application_1' is invalid. Aggregator projects require 'pom'
as packaging.


Reason: Failed to validate POM

Thanks.

A.

On 4/17/07, Lacoste, Dana [EMAIL PROTECTED] wrote:


toplevel/pom.xml (modules a, b, c)

contains
modules
 modulea/module
 moduleb/module
 modulec/module
/modules

toplevel/a/pom.xml (no dependencies)

no change

toplevel/b/pom.xml (depends on a)

contains a dependencies section with a dependency on what's produced
in a

toplevel/c/pom.xml (depends on b)

contains a dependencies section with a dependency on what's produced
in b

Enjoy!

--
Dana Lacoste
Software Design Engineer
HP Software
http://www.hp.com/go/software

-
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 can i compile a multiple directories with pom.xml?

2007-04-17 Thread Baz

So i am using the followings:

project xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://maven.apache.org/POM/4.0.0
 http://maven.apache.org/xsd/maven-4.0.0.xsd;
 modelVersion4.0.0/modelVersion
 groupIdcom.mycompany.app/groupId
 version1.0-SNAPSHOT/version
 artifactIdapp/artifactId
 packagingpom/packaging
 modules
   modulemy-app/module
   modulemy-webapp/module
 /modules
/project

and seems to be ok... ignore my last email. Let me test and report :)



On 4/17/07, Baz [EMAIL PROTECTED] wrote:

Sorry if i ask another stupid question again...

I am pretty new at Maven and how can i make your module section works?
Do you have a complete file for me as template? I have the following
error:

Validation Messages:

   [0]  Packaging 'application_1' is invalid. Aggregator projects require 'pom'
 as packaging.


Reason: Failed to validate POM

Thanks.

A.

On 4/17/07, Lacoste, Dana [EMAIL PROTECTED] wrote:

 toplevel/pom.xml (modules a, b, c)

 contains
 modules
  modulea/module
  moduleb/module
  modulec/module
 /modules

 toplevel/a/pom.xml (no dependencies)

 no change

 toplevel/b/pom.xml (depends on a)

 contains a dependencies section with a dependency on what's produced
 in a

 toplevel/c/pom.xml (depends on b)

 contains a dependencies section with a dependency on what's produced
 in b

 Enjoy!

 --
 Dana Lacoste
 Software Design Engineer
 HP Software
 http://www.hp.com/go/software

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



Is there a mvn command to clean the local repo?

2007-04-16 Thread Baz

All,

Is there a mvn command that clean the local repo?

Thanks.

B.

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



How to run multiple mvn commands in a windows bat file?

2007-04-16 Thread Baz

All,

How can i run multiple mvn commands in a windows bat file?

I would like to run mvn clean, then mvn install in directory 1 and
mvn install in another directory. However, after the first mvn
command, the script quit. Not sure why.

A.

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



  1   2   >