Re: How to configure Maven for an overloaded intranet repository?

2022-09-29 Thread Benjamin Marwell
There are two approaches for your issue.

First of all, you can try to use caches, so you don't need to download
dependencies over and over again. There are also settings which might help,
see the system properties in WAGON-545 [1]. E.g. retries and timeouts.

But.
To me it sounds from your description that your internal repo mirror needs
some HA / scaling set up.
Refer to the guides from nexus [2] and artifactory [3] for more
information. Have nodes near your locations and configure the LBs to prefer
near nodes.



[1] - https://issues.apache.org/jira/browse/WAGON-545
[2] -
https://help.sonatype.com/repomanager3/planning-your-implementation/resiliency-and-high-availability/high-availability-clustering-%28legacy%29/configuring-nodes
[3] - https://www.jfrog.com/confluence/display/JFROG/High+Availability


On Thu, 29 Sept 2022, 20:23 David Karr,  wrote:

> I work in a very large enterprise that uses a centralized intranet maven
> repository to get artifacts from.  It often has load issues that result in
> builds failing with "failed to respond".  The team that maintains it is
> working towards eventual mitigations for that, but it will be quite a while
> before that actually happens.
>
> What knobs or dials can I get to to make the connection to the remote
> repository more resilient?  The error "failed to respond" sounds like a
> connection timeout, not a read timeout, but I can't tell. What property
> values can I override that would help here?
>


Re: How to configure maven-dependency-plugin's encoding used for unpack?

2015-03-17 Thread Kristian Rosenvold
Herve;

Markus is right. when we switched to default UTF-8 like the rest of the
world, users of legacy windows versions lost the option to unzip with
default locale, which had been the behaviour up to that point.

This is really nothing to discuss and there is no further reason to
aggreviate Markus by requiring more docs or arguments :)

Kristian




2015-03-17 8:39 GMT+01:00 Kristian Rosenvold kristian.rosenv...@gmail.com:

 I'm not kidding about anything. I reopened the issue.

 If you make a patch that applies encoding to zip files I can review that.

 Kristian


 2015-03-17 8:27 GMT+01:00 Markus Karg k...@quipsy.de:

 Kristian,

 you're kidding, don't you? ;-)

 what you propose does not work. We are an ISV providing a download for
 virtually anybody. We cannot tell the world Hey, you cannot simply use
 Windows to unzip, but you must first download some other application,
 because we're using Maven, and it is unable to deal with encodings.. :-(

 We are NOT packaging a jar file. We are packaging a zip file. In fact
 I never mentioned jar AFAIK. That one is publicly downloadable. Some team
 told us they use that zip as a dependency and need to unpack it as part
 of their prepare-package phase (they only need some files, not the full
 zip). At that moment, then file names are turned into garbage. If there is
 headroom, then let's use that headroom. All we demand is a way to tell in
 the POM that the plexus zip unarchiver used by maven-dependency-plugin
 for that single artifactItem shall use CP850. :-)

 I'm talking about http://jira.codehaus.org/browse/MDEP-436

 Thank you for your kind help.

 Regards
 -Markus


 -Ursprüngliche Nachricht-
 Von: kristian.rosenv...@zenior.no [mailto:kristian.rosenv...@zenior.no]
 Im Auftrag von Kristian Rosenvold
 Gesendet: Montag, 16. März 2015 21:19
 An: Maven Users List
 Betreff: Re: How to configure maven-dependency-plugin's encoding used for
 unpack?

 There is no way to specify unarchiver encoding in the dependency plugin,
 I have checked. So currently you have to make your users install a less
 brain dead zip program than the windows compressed folder mechanism.

 I am also slightly questioning of what you are trying to achieve here; if
 you are unpacking a jar file then it *will* and *should* be UTF8, meaning
 you cannot use the lobotomized zip support that is included in windows, no
 matter what. I don't see us fixing /that/ issue, since we'd be violating
 the jar specification. If your dependency is to an actual zip file, we
 have slightly more headroom, and such a patch might be applied.

 I am not sure which issue you are referring to, I know there is one for
 assembly-plugin (http://jira.codehaus.org/browse/MASSEMBLY-748) since
 the encoding feature should be fixed to work for unpack too.

 Kristian




 2015-03-16 15:04 GMT+01:00 Markus Karg k...@quipsy.de:

  Kristian,
 
  can you please reopen the item then? I mean, it simply is not fixed,
  because UTF-8 ZIPs are not a solution: Windows cannot correctly
  display them, so people on the Windows world will virtually every
 create CP850-ZIPs!
 
  Do you know about any plans to support this, or what is the intended
  future of this issue?
 
  Thanks
  -Markus
 
  -Ursprüngliche Nachricht-
  Von: kristian.rosenv...@zenior.no
  [mailto:kristian.rosenv...@zenior.no]
  Im Auftrag von Kristian Rosenvold
  Gesendet: Montag, 16. März 2015 13:46
  An: Maven Users List
  Betreff: Re: How to configure maven-dependency-plugin's encoding used
  for unpack?
 
  I did not actually look at the implementation on the dependency
  plugin, but it is actually technically impossible to supply the
  encoding parameter to
  *unzip* via the archiverConfig tag. So until this is fixed, UTF-8
  zip archives are the only ones that will work (with plexus unzip
 archiver).
 
  Kristian
 
 
  2015-03-16 13:05 GMT+01:00 Adrien Rivard adrien.riv...@gmail.com:
 
   If I'm reading the documentation correctly,
   archiverConfigencoding only apply to filter resources, not to zip
 them.
  
   In any case I would try using utf-8.
  
  
   On Mon, Mar 16, 2015 at 12:34 PM, Kristian Rosenvold 
   kristian.rosenv...@gmail.com wrote:
  
I dont believe there is support for specifying encoding to unzip.
At
   least
assembly only provides config to zip. Call it a bug, call it a
feature :(
   
Kristian
   
   
2015-03-16 12:12 GMT+01:00 Markus Karg k...@quipsy.de:
   
 To preserve German umlauts in file names within a ZIP, we are
  using...

 archiverConfig
 encodingCP850/encoding
 /archiverConfig

 ...in the maven-assembly-plugin configuration, which is working
 well.
   :)

 Next we want to use maven-dependency-plugin to unpack that ZIP.

 How can we configure maven-dependency-plugin:unpack so it will
 apply
CP850
 when unpacking that ZIP?

 Thanks!
 -Markus

   
  
  
  
   --
   Adrien Rivard
  
 





Re: How to configure maven-dependency-plugin's encoding used for unpack?

2015-03-17 Thread Kristian Rosenvold
I'm not kidding about anything. I reopened the issue.

If you make a patch that applies encoding to zip files I can review that.

Kristian


2015-03-17 8:27 GMT+01:00 Markus Karg k...@quipsy.de:

 Kristian,

 you're kidding, don't you? ;-)

 what you propose does not work. We are an ISV providing a download for
 virtually anybody. We cannot tell the world Hey, you cannot simply use
 Windows to unzip, but you must first download some other application,
 because we're using Maven, and it is unable to deal with encodings.. :-(

 We are NOT packaging a jar file. We are packaging a zip file. In fact
 I never mentioned jar AFAIK. That one is publicly downloadable. Some team
 told us they use that zip as a dependency and need to unpack it as part
 of their prepare-package phase (they only need some files, not the full
 zip). At that moment, then file names are turned into garbage. If there is
 headroom, then let's use that headroom. All we demand is a way to tell in
 the POM that the plexus zip unarchiver used by maven-dependency-plugin
 for that single artifactItem shall use CP850. :-)

 I'm talking about http://jira.codehaus.org/browse/MDEP-436

 Thank you for your kind help.

 Regards
 -Markus


 -Ursprüngliche Nachricht-
 Von: kristian.rosenv...@zenior.no [mailto:kristian.rosenv...@zenior.no]
 Im Auftrag von Kristian Rosenvold
 Gesendet: Montag, 16. März 2015 21:19
 An: Maven Users List
 Betreff: Re: How to configure maven-dependency-plugin's encoding used for
 unpack?

 There is no way to specify unarchiver encoding in the dependency plugin, I
 have checked. So currently you have to make your users install a less brain
 dead zip program than the windows compressed folder mechanism.

 I am also slightly questioning of what you are trying to achieve here; if
 you are unpacking a jar file then it *will* and *should* be UTF8, meaning
 you cannot use the lobotomized zip support that is included in windows, no
 matter what. I don't see us fixing /that/ issue, since we'd be violating
 the jar specification. If your dependency is to an actual zip file, we
 have slightly more headroom, and such a patch might be applied.

 I am not sure which issue you are referring to, I know there is one for
 assembly-plugin (http://jira.codehaus.org/browse/MASSEMBLY-748) since the
 encoding feature should be fixed to work for unpack too.

 Kristian




 2015-03-16 15:04 GMT+01:00 Markus Karg k...@quipsy.de:

  Kristian,
 
  can you please reopen the item then? I mean, it simply is not fixed,
  because UTF-8 ZIPs are not a solution: Windows cannot correctly
  display them, so people on the Windows world will virtually every create
 CP850-ZIPs!
 
  Do you know about any plans to support this, or what is the intended
  future of this issue?
 
  Thanks
  -Markus
 
  -Ursprüngliche Nachricht-
  Von: kristian.rosenv...@zenior.no
  [mailto:kristian.rosenv...@zenior.no]
  Im Auftrag von Kristian Rosenvold
  Gesendet: Montag, 16. März 2015 13:46
  An: Maven Users List
  Betreff: Re: How to configure maven-dependency-plugin's encoding used
  for unpack?
 
  I did not actually look at the implementation on the dependency
  plugin, but it is actually technically impossible to supply the
  encoding parameter to
  *unzip* via the archiverConfig tag. So until this is fixed, UTF-8
  zip archives are the only ones that will work (with plexus unzip
 archiver).
 
  Kristian
 
 
  2015-03-16 13:05 GMT+01:00 Adrien Rivard adrien.riv...@gmail.com:
 
   If I'm reading the documentation correctly,
   archiverConfigencoding only apply to filter resources, not to zip
 them.
  
   In any case I would try using utf-8.
  
  
   On Mon, Mar 16, 2015 at 12:34 PM, Kristian Rosenvold 
   kristian.rosenv...@gmail.com wrote:
  
I dont believe there is support for specifying encoding to unzip.
At
   least
assembly only provides config to zip. Call it a bug, call it a
feature :(
   
Kristian
   
   
2015-03-16 12:12 GMT+01:00 Markus Karg k...@quipsy.de:
   
 To preserve German umlauts in file names within a ZIP, we are
  using...

 archiverConfig
 encodingCP850/encoding
 /archiverConfig

 ...in the maven-assembly-plugin configuration, which is working
 well.
   :)

 Next we want to use maven-dependency-plugin to unpack that ZIP.

 How can we configure maven-dependency-plugin:unpack so it will
 apply
CP850
 when unpacking that ZIP?

 Thanks!
 -Markus

   
  
  
  
   --
   Adrien Rivard
  
 



Re: How to configure maven-dependency-plugin's encoding used for unpack?

2015-03-17 Thread Kristian Rosenvold
This is really only a question about the borked zip file explorer that is
default in windows. Quality zip clients always works fine on Windows.

The miserable story is documented entirely at
http://commons.apache.org/proper/commons-compress/zip.html#Encoding and is
an enjoyable read for anyone who wants the full story :)

For the assembly plugin I have scheduled
http://jira.codehaus.org/browse/MASSEMBLY-748 for the next release, which
should be soonish.

For the dependency plugin I am still not convinced that this should be
supported. Unlike the ZIP specification, the Jar specification is crystal
clear on UTF-8 only, which means we'd be breaking something that is not
broken.

Kristian





2015-03-17 6:39 GMT+01:00 Baptiste Mathus bmat...@batmat.net:

 And this is actually not even always true, CP1252 is also often used on
 Windows (in France for example).

 Encoding is actually a quite simple problem, but transfer makes it
 difficult to handle as each move has to take care of what it does.
 As for the JIRA tickets, if you feel this is not OK, feel free to
 comment/reopen/create the ones you want.
 But also beware that without a patch, in that very specific situation, it's
 not very likely someone else will spend time to fix it.

 HTH
 Cheers

 2015-03-16 15:04 GMT+01:00 Markus Karg k...@quipsy.de:

  Kristian,
 
  can you please reopen the item then? I mean, it simply is not fixed,
  because UTF-8 ZIPs are not a solution: Windows cannot correctly display
  them, so people on the Windows world will virtually every create
 CP850-ZIPs!
 
  Do you know about any plans to support this, or what is the intended
  future of this issue?
 
  Thanks
  -Markus
 
  -Ursprüngliche Nachricht-
  Von: kristian.rosenv...@zenior.no [mailto:kristian.rosenv...@zenior.no]
  Im Auftrag von Kristian Rosenvold
  Gesendet: Montag, 16. März 2015 13:46
  An: Maven Users List
  Betreff: Re: How to configure maven-dependency-plugin's encoding used for
  unpack?
 
  I did not actually look at the implementation on the dependency plugin,
  but it is actually technically impossible to supply the encoding
 parameter
  to
  *unzip* via the archiverConfig tag. So until this is fixed, UTF-8 zip
  archives are the only ones that will work (with plexus unzip archiver).
 
  Kristian
 
 
  2015-03-16 13:05 GMT+01:00 Adrien Rivard adrien.riv...@gmail.com:
 
   If I'm reading the documentation correctly, archiverConfigencoding
   only apply to filter resources, not to zip them.
  
   In any case I would try using utf-8.
  
  
   On Mon, Mar 16, 2015 at 12:34 PM, Kristian Rosenvold 
   kristian.rosenv...@gmail.com wrote:
  
I dont believe there is support for specifying encoding to unzip. At
   least
assembly only provides config to zip. Call it a bug, call it a
feature :(
   
Kristian
   
   
2015-03-16 12:12 GMT+01:00 Markus Karg k...@quipsy.de:
   
 To preserve German umlauts in file names within a ZIP, we are
  using...

 archiverConfig
 encodingCP850/encoding
 /archiverConfig

 ...in the maven-assembly-plugin configuration, which is working
 well.
   :)

 Next we want to use maven-dependency-plugin to unpack that ZIP.

 How can we configure maven-dependency-plugin:unpack so it will
 apply
CP850
 when unpacking that ZIP?

 Thanks!
 -Markus

   
  
  
  
   --
   Adrien Rivard
  
 



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



Re: How to configure maven-dependency-plugin's encoding used for unpack?

2015-03-17 Thread Andreas Gudian
Markus, as for an ASAP quick fix, did you try using the vfs-maven-plugin
to unpack your zip files? I don't fully understand your usecase, but I use
that one to download and unpack zip files within a maven build.

2015-03-17 13:34 GMT+01:00 Kristian Rosenvold kristian.rosenv...@gmail.com
:

 I can guarantee a timely review, which is about as much as we
 guarantee around here :)

 There is a practical issue, since maven assembly plugin uses a
 parameter called archiverConfig configure the Archiver. I am still
 pondering if for assembly I should supply the *same* config object or
 create a separate one called unarchiverConfig. The same would apply
 for dependency plugin, since we'd definitely want this to be done in
 the same manner.

 Kristian


 2015-03-17 9:49 GMT+01:00 Markus Karg k...@quipsy.de:
  Great, thanks a lot! :-)
 
  But let's negotiate one thing upfront: If we provide code that adds
 encoding to maven-dependency-plugin's configuration, which essentially
 forwards the encoding to the Plexus Unarchiver, and it looks good to you
 from a technical view, will you guarantee us that it will definitively up
 in the plugin? I have to ask that upfront because of the discussion going
 on here currently about the general usefulness of encodings and we must not
 spend any time into providing code if it ends up in the trash due to
 different opinions within the pluging management team. So if you can ensure
 this, we will lookup some people coding the solution.
 
  Thanks!
  -Markus
 
 
  -Ursprüngliche Nachricht-
  Von: kristian.rosenv...@zenior.no [mailto:kristian.rosenv...@zenior.no]
 Im Auftrag von Kristian Rosenvold
  Gesendet: Dienstag, 17. März 2015 08:39
  An: Maven Users List
  Betreff: Re: How to configure maven-dependency-plugin's encoding used
 for unpack?
 
  I'm not kidding about anything. I reopened the issue.
 
  If you make a patch that applies encoding to zip files I can review that.
 
  Kristian
 
 
  2015-03-17 8:27 GMT+01:00 Markus Karg k...@quipsy.de:
 
  Kristian,
 
  you're kidding, don't you? ;-)
 
  what you propose does not work. We are an ISV providing a download for
  virtually anybody. We cannot tell the world Hey, you cannot simply
  use Windows to unzip, but you must first download some other
  application, because we're using Maven, and it is unable to deal with
  encodings.. :-(
 
  We are NOT packaging a jar file. We are packaging a zip file. In
  fact I never mentioned jar AFAIK. That one is publicly downloadable.
  Some team told us they use that zip as a dependency and need to
  unpack it as part of their prepare-package phase (they only need
  some files, not the full zip). At that moment, then file names are
  turned into garbage. If there is headroom, then let's use that
  headroom. All we demand is a way to tell in the POM that the plexus
  zip unarchiver used by maven-dependency-plugin for that single
  artifactItem shall use CP850. :-)
 
  I'm talking about http://jira.codehaus.org/browse/MDEP-436
 
  Thank you for your kind help.
 
  Regards
  -Markus
 
 
  -Ursprüngliche Nachricht-
  Von: kristian.rosenv...@zenior.no
  [mailto:kristian.rosenv...@zenior.no]
  Im Auftrag von Kristian Rosenvold
  Gesendet: Montag, 16. März 2015 21:19
  An: Maven Users List
  Betreff: Re: How to configure maven-dependency-plugin's encoding used
  for unpack?
 
  There is no way to specify unarchiver encoding in the dependency
  plugin, I have checked. So currently you have to make your users
  install a less brain dead zip program than the windows compressed
 folder mechanism.
 
  I am also slightly questioning of what you are trying to achieve here;
  if you are unpacking a jar file then it *will* and *should* be UTF8,
  meaning you cannot use the lobotomized zip support that is included in
  windows, no matter what. I don't see us fixing /that/ issue, since
  we'd be violating the jar specification. If your dependency is to an
  actual zip file, we have slightly more headroom, and such a patch
 might be applied.
 
  I am not sure which issue you are referring to, I know there is one
  for assembly-plugin (http://jira.codehaus.org/browse/MASSEMBLY-748)
  since the encoding feature should be fixed to work for unpack too.
 
  Kristian
 
 
 
 
  2015-03-16 15:04 GMT+01:00 Markus Karg k...@quipsy.de:
 
   Kristian,
  
   can you please reopen the item then? I mean, it simply is not fixed,
   because UTF-8 ZIPs are not a solution: Windows cannot correctly
   display them, so people on the Windows world will virtually every
   create
  CP850-ZIPs!
  
   Do you know about any plans to support this, or what is the intended
   future of this issue?
  
   Thanks
   -Markus
  
   -Ursprüngliche Nachricht-
   Von: kristian.rosenv...@zenior.no
   [mailto:kristian.rosenv...@zenior.no]
   Im Auftrag von Kristian Rosenvold
   Gesendet: Montag, 16. März 2015 13:46
   An: Maven Users List
   Betreff: Re: How to configure maven-dependency-plugin's encoding
   used for unpack

Re: How to configure maven-dependency-plugin's encoding used for unpack?

2015-03-17 Thread Kristian Rosenvold
I can guarantee a timely review, which is about as much as we
guarantee around here :)

There is a practical issue, since maven assembly plugin uses a
parameter called archiverConfig configure the Archiver. I am still
pondering if for assembly I should supply the *same* config object or
create a separate one called unarchiverConfig. The same would apply
for dependency plugin, since we'd definitely want this to be done in
the same manner.

Kristian


2015-03-17 9:49 GMT+01:00 Markus Karg k...@quipsy.de:
 Great, thanks a lot! :-)

 But let's negotiate one thing upfront: If we provide code that adds 
 encoding to maven-dependency-plugin's configuration, which essentially 
 forwards the encoding to the Plexus Unarchiver, and it looks good to you from 
 a technical view, will you guarantee us that it will definitively up in the 
 plugin? I have to ask that upfront because of the discussion going on here 
 currently about the general usefulness of encodings and we must not spend any 
 time into providing code if it ends up in the trash due to different opinions 
 within the pluging management team. So if you can ensure this, we will lookup 
 some people coding the solution.

 Thanks!
 -Markus


 -Ursprüngliche Nachricht-
 Von: kristian.rosenv...@zenior.no [mailto:kristian.rosenv...@zenior.no] Im 
 Auftrag von Kristian Rosenvold
 Gesendet: Dienstag, 17. März 2015 08:39
 An: Maven Users List
 Betreff: Re: How to configure maven-dependency-plugin's encoding used for 
 unpack?

 I'm not kidding about anything. I reopened the issue.

 If you make a patch that applies encoding to zip files I can review that.

 Kristian


 2015-03-17 8:27 GMT+01:00 Markus Karg k...@quipsy.de:

 Kristian,

 you're kidding, don't you? ;-)

 what you propose does not work. We are an ISV providing a download for
 virtually anybody. We cannot tell the world Hey, you cannot simply
 use Windows to unzip, but you must first download some other
 application, because we're using Maven, and it is unable to deal with
 encodings.. :-(

 We are NOT packaging a jar file. We are packaging a zip file. In
 fact I never mentioned jar AFAIK. That one is publicly downloadable.
 Some team told us they use that zip as a dependency and need to
 unpack it as part of their prepare-package phase (they only need
 some files, not the full zip). At that moment, then file names are
 turned into garbage. If there is headroom, then let's use that
 headroom. All we demand is a way to tell in the POM that the plexus
 zip unarchiver used by maven-dependency-plugin for that single
 artifactItem shall use CP850. :-)

 I'm talking about http://jira.codehaus.org/browse/MDEP-436

 Thank you for your kind help.

 Regards
 -Markus


 -Ursprüngliche Nachricht-
 Von: kristian.rosenv...@zenior.no
 [mailto:kristian.rosenv...@zenior.no]
 Im Auftrag von Kristian Rosenvold
 Gesendet: Montag, 16. März 2015 21:19
 An: Maven Users List
 Betreff: Re: How to configure maven-dependency-plugin's encoding used
 for unpack?

 There is no way to specify unarchiver encoding in the dependency
 plugin, I have checked. So currently you have to make your users
 install a less brain dead zip program than the windows compressed folder 
 mechanism.

 I am also slightly questioning of what you are trying to achieve here;
 if you are unpacking a jar file then it *will* and *should* be UTF8,
 meaning you cannot use the lobotomized zip support that is included in
 windows, no matter what. I don't see us fixing /that/ issue, since
 we'd be violating the jar specification. If your dependency is to an
 actual zip file, we have slightly more headroom, and such a patch might be 
 applied.

 I am not sure which issue you are referring to, I know there is one
 for assembly-plugin (http://jira.codehaus.org/browse/MASSEMBLY-748)
 since the encoding feature should be fixed to work for unpack too.

 Kristian




 2015-03-16 15:04 GMT+01:00 Markus Karg k...@quipsy.de:

  Kristian,
 
  can you please reopen the item then? I mean, it simply is not fixed,
  because UTF-8 ZIPs are not a solution: Windows cannot correctly
  display them, so people on the Windows world will virtually every
  create
 CP850-ZIPs!
 
  Do you know about any plans to support this, or what is the intended
  future of this issue?
 
  Thanks
  -Markus
 
  -Ursprüngliche Nachricht-
  Von: kristian.rosenv...@zenior.no
  [mailto:kristian.rosenv...@zenior.no]
  Im Auftrag von Kristian Rosenvold
  Gesendet: Montag, 16. März 2015 13:46
  An: Maven Users List
  Betreff: Re: How to configure maven-dependency-plugin's encoding
  used for unpack?
 
  I did not actually look at the implementation on the dependency
  plugin, but it is actually technically impossible to supply the
  encoding parameter to
  *unzip* via the archiverConfig tag. So until this is fixed, UTF-8
  zip archives are the only ones that will work (with plexus unzip
 archiver).
 
  Kristian
 
 
  2015-03-16 13:05 GMT+01:00 Adrien Rivard adrien.riv...@gmail.com

Re: How to configure maven-dependency-plugin's encoding used for unpack?

2015-03-16 Thread Kristian Rosenvold
There is no way to specify unarchiver encoding in the dependency plugin, I
have checked. So currently you have to make your users install a less brain
dead zip program than the windows compressed folder mechanism.

I am also slightly questioning of what you are trying to achieve here; if
you are unpacking a jar file then it *will* and *should* be UTF8, meaning
you cannot use the lobotomized zip support that is included in windows, no
matter what. I don't see us fixing /that/ issue, since we'd be violating
the jar specification. If your dependency is to an actual zip file, we
have slightly more headroom, and such a patch might be applied.

I am not sure which issue you are referring to, I know there is one for
assembly-plugin (http://jira.codehaus.org/browse/MASSEMBLY-748) since the
encoding feature should be fixed to work for unpack too.

Kristian




2015-03-16 15:04 GMT+01:00 Markus Karg k...@quipsy.de:

 Kristian,

 can you please reopen the item then? I mean, it simply is not fixed,
 because UTF-8 ZIPs are not a solution: Windows cannot correctly display
 them, so people on the Windows world will virtually every create CP850-ZIPs!

 Do you know about any plans to support this, or what is the intended
 future of this issue?

 Thanks
 -Markus

 -Ursprüngliche Nachricht-
 Von: kristian.rosenv...@zenior.no [mailto:kristian.rosenv...@zenior.no]
 Im Auftrag von Kristian Rosenvold
 Gesendet: Montag, 16. März 2015 13:46
 An: Maven Users List
 Betreff: Re: How to configure maven-dependency-plugin's encoding used for
 unpack?

 I did not actually look at the implementation on the dependency plugin,
 but it is actually technically impossible to supply the encoding parameter
 to
 *unzip* via the archiverConfig tag. So until this is fixed, UTF-8 zip
 archives are the only ones that will work (with plexus unzip archiver).

 Kristian


 2015-03-16 13:05 GMT+01:00 Adrien Rivard adrien.riv...@gmail.com:

  If I'm reading the documentation correctly, archiverConfigencoding
  only apply to filter resources, not to zip them.
 
  In any case I would try using utf-8.
 
 
  On Mon, Mar 16, 2015 at 12:34 PM, Kristian Rosenvold 
  kristian.rosenv...@gmail.com wrote:
 
   I dont believe there is support for specifying encoding to unzip. At
  least
   assembly only provides config to zip. Call it a bug, call it a
   feature :(
  
   Kristian
  
  
   2015-03-16 12:12 GMT+01:00 Markus Karg k...@quipsy.de:
  
To preserve German umlauts in file names within a ZIP, we are
 using...
   
archiverConfig
encodingCP850/encoding
/archiverConfig
   
...in the maven-assembly-plugin configuration, which is working well.
  :)
   
Next we want to use maven-dependency-plugin to unpack that ZIP.
   
How can we configure maven-dependency-plugin:unpack so it will
apply
   CP850
when unpacking that ZIP?
   
Thanks!
-Markus
   
  
 
 
 
  --
  Adrien Rivard
 



Re: How to configure maven-dependency-plugin's encoding used for unpack?

2015-03-16 Thread Kristian Rosenvold
I did not actually look at the implementation on the dependency plugin, but
it is actually technically impossible to supply the encoding parameter to
*unzip* via the archiverConfig tag. So until this is fixed, UTF-8 zip
archives are the only ones that will work (with plexus unzip archiver).

Kristian


2015-03-16 13:05 GMT+01:00 Adrien Rivard adrien.riv...@gmail.com:

 If I'm reading the documentation correctly, archiverConfigencoding
  only apply to filter resources, not to zip them.

 In any case I would try using utf-8.


 On Mon, Mar 16, 2015 at 12:34 PM, Kristian Rosenvold 
 kristian.rosenv...@gmail.com wrote:

  I dont believe there is support for specifying encoding to unzip. At
 least
  assembly only provides config to zip. Call it a bug, call it a feature :(
 
  Kristian
 
 
  2015-03-16 12:12 GMT+01:00 Markus Karg k...@quipsy.de:
 
   To preserve German umlauts in file names within a ZIP, we are using...
  
   archiverConfig
   encodingCP850/encoding
   /archiverConfig
  
   ...in the maven-assembly-plugin configuration, which is working well.
 :)
  
   Next we want to use maven-dependency-plugin to unpack that ZIP.
  
   How can we configure maven-dependency-plugin:unpack so it will apply
  CP850
   when unpacking that ZIP?
  
   Thanks!
   -Markus
  
 



 --
 Adrien Rivard



Re: How to configure maven-dependency-plugin's encoding used for unpack?

2015-03-16 Thread Kristian Rosenvold
I dont believe there is support for specifying encoding to unzip. At least
assembly only provides config to zip. Call it a bug, call it a feature :(

Kristian


2015-03-16 12:12 GMT+01:00 Markus Karg k...@quipsy.de:

 To preserve German umlauts in file names within a ZIP, we are using...

 archiverConfig
 encodingCP850/encoding
 /archiverConfig

 ...in the maven-assembly-plugin configuration, which is working well. :)

 Next we want to use maven-dependency-plugin to unpack that ZIP.

 How can we configure maven-dependency-plugin:unpack so it will apply CP850
 when unpacking that ZIP?

 Thanks!
 -Markus



Re: How to configure maven-dependency-plugin's encoding used for unpack?

2015-03-16 Thread Baptiste Mathus
And this is actually not even always true, CP1252 is also often used on
Windows (in France for example).

Encoding is actually a quite simple problem, but transfer makes it
difficult to handle as each move has to take care of what it does.
As for the JIRA tickets, if you feel this is not OK, feel free to
comment/reopen/create the ones you want.
But also beware that without a patch, in that very specific situation, it's
not very likely someone else will spend time to fix it.

HTH
Cheers

2015-03-16 15:04 GMT+01:00 Markus Karg k...@quipsy.de:

 Kristian,

 can you please reopen the item then? I mean, it simply is not fixed,
 because UTF-8 ZIPs are not a solution: Windows cannot correctly display
 them, so people on the Windows world will virtually every create CP850-ZIPs!

 Do you know about any plans to support this, or what is the intended
 future of this issue?

 Thanks
 -Markus

 -Ursprüngliche Nachricht-
 Von: kristian.rosenv...@zenior.no [mailto:kristian.rosenv...@zenior.no]
 Im Auftrag von Kristian Rosenvold
 Gesendet: Montag, 16. März 2015 13:46
 An: Maven Users List
 Betreff: Re: How to configure maven-dependency-plugin's encoding used for
 unpack?

 I did not actually look at the implementation on the dependency plugin,
 but it is actually technically impossible to supply the encoding parameter
 to
 *unzip* via the archiverConfig tag. So until this is fixed, UTF-8 zip
 archives are the only ones that will work (with plexus unzip archiver).

 Kristian


 2015-03-16 13:05 GMT+01:00 Adrien Rivard adrien.riv...@gmail.com:

  If I'm reading the documentation correctly, archiverConfigencoding
  only apply to filter resources, not to zip them.
 
  In any case I would try using utf-8.
 
 
  On Mon, Mar 16, 2015 at 12:34 PM, Kristian Rosenvold 
  kristian.rosenv...@gmail.com wrote:
 
   I dont believe there is support for specifying encoding to unzip. At
  least
   assembly only provides config to zip. Call it a bug, call it a
   feature :(
  
   Kristian
  
  
   2015-03-16 12:12 GMT+01:00 Markus Karg k...@quipsy.de:
  
To preserve German umlauts in file names within a ZIP, we are
 using...
   
archiverConfig
encodingCP850/encoding
/archiverConfig
   
...in the maven-assembly-plugin configuration, which is working well.
  :)
   
Next we want to use maven-dependency-plugin to unpack that ZIP.
   
How can we configure maven-dependency-plugin:unpack so it will
apply
   CP850
when unpacking that ZIP?
   
Thanks!
-Markus
   
  
 
 
 
  --
  Adrien Rivard
 




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


Re: How to configure maven-dependency-plugin's encoding used for unpack?

2015-03-16 Thread Kristian Rosenvold
I don't really see that the dependency plugin has any support for encoding
in pack or unpack. Where did you see that ?

Kristian


2015-03-16 15:04 GMT+01:00 Markus Karg k...@quipsy.de:

 Kristian,

 can you please reopen the item then? I mean, it simply is not fixed,
 because UTF-8 ZIPs are not a solution: Windows cannot correctly display
 them, so people on the Windows world will virtually every create CP850-ZIPs!

 Do you know about any plans to support this, or what is the intended
 future of this issue?

 Thanks
 -Markus

 -Ursprüngliche Nachricht-
 Von: kristian.rosenv...@zenior.no [mailto:kristian.rosenv...@zenior.no]
 Im Auftrag von Kristian Rosenvold
 Gesendet: Montag, 16. März 2015 13:46
 An: Maven Users List
 Betreff: Re: How to configure maven-dependency-plugin's encoding used for
 unpack?

 I did not actually look at the implementation on the dependency plugin,
 but it is actually technically impossible to supply the encoding parameter
 to
 *unzip* via the archiverConfig tag. So until this is fixed, UTF-8 zip
 archives are the only ones that will work (with plexus unzip archiver).

 Kristian


 2015-03-16 13:05 GMT+01:00 Adrien Rivard adrien.riv...@gmail.com:

  If I'm reading the documentation correctly, archiverConfigencoding
  only apply to filter resources, not to zip them.
 
  In any case I would try using utf-8.
 
 
  On Mon, Mar 16, 2015 at 12:34 PM, Kristian Rosenvold 
  kristian.rosenv...@gmail.com wrote:
 
   I dont believe there is support for specifying encoding to unzip. At
  least
   assembly only provides config to zip. Call it a bug, call it a
   feature :(
  
   Kristian
  
  
   2015-03-16 12:12 GMT+01:00 Markus Karg k...@quipsy.de:
  
To preserve German umlauts in file names within a ZIP, we are
 using...
   
archiverConfig
encodingCP850/encoding
/archiverConfig
   
...in the maven-assembly-plugin configuration, which is working well.
  :)
   
Next we want to use maven-dependency-plugin to unpack that ZIP.
   
How can we configure maven-dependency-plugin:unpack so it will
apply
   CP850
when unpacking that ZIP?
   
Thanks!
-Markus
   
  
 
 
 
  --
  Adrien Rivard
 



Re: How to configure maven-dependency-plugin's encoding used for unpack?

2015-03-16 Thread Adrien Rivard
If I'm reading the documentation correctly, archiverConfigencoding
 only apply to filter resources, not to zip them.

In any case I would try using utf-8.


On Mon, Mar 16, 2015 at 12:34 PM, Kristian Rosenvold 
kristian.rosenv...@gmail.com wrote:

 I dont believe there is support for specifying encoding to unzip. At least
 assembly only provides config to zip. Call it a bug, call it a feature :(

 Kristian


 2015-03-16 12:12 GMT+01:00 Markus Karg k...@quipsy.de:

  To preserve German umlauts in file names within a ZIP, we are using...
 
  archiverConfig
  encodingCP850/encoding
  /archiverConfig
 
  ...in the maven-assembly-plugin configuration, which is working well. :)
 
  Next we want to use maven-dependency-plugin to unpack that ZIP.
 
  How can we configure maven-dependency-plugin:unpack so it will apply
 CP850
  when unpacking that ZIP?
 
  Thanks!
  -Markus
 




-- 
Adrien Rivard


RE: How to configure maven

2014-01-22 Thread Walters, Jay
Sorry, this is probably also relevant (and also does not look right).  Is this 
a mirror gone bad?  How do I configure where maven looks for the repository for 
apache files (and where is the right place).

Downloading: http://shibboleth.internet2.edu/downloads/maven2/org/apache/axis2/a
xis2-kernel/1.6.2/axis2-kernel-1.6.2.pom

[WARNING] Checksum validation failed, expected !DOCTYPE but is 97233c537f442e88
47a66d8a2d49fa0ef2cfc60b for http://shibboleth.internet2.edu/downloads/maven2/or
g/apache/axis2/mex/1.6.2/mex-1.6.2-impl.jar

-Original Message-
From: Walters, Jay [mailto:walte...@hmc.harvard.edu] 
Sent: Wednesday, January 22, 2014 11:47 AM
To: 'users@maven.apache.org'
Subject: How to configure maven

Sorry for asking such a easy question, but googling apache maven anything 
doesn't get to the answer too easily.

I have a previously working local repository in my home\.m2 directory.  I am on 
windows and JDK 1.6.0_21.  I have previously used this with maven 2.2.1 and 
3.0.4.  I also downloaded a fresh maven 3.1.1 which has the same problem.  I 
have no custom settings.xml file, I just have what comes in the zipfile 
downloads from the apache website.

Today, I'm trying to build apache rampart 1.6.2 from source (downloaded 
yesterday) which wants to pull in apache axis jars/poms and also a file 
apache/8/pom.xml from  an apache repository.  Rather than fetching in the files 
I need I get the attached internet2 html page which breaks the build.

Is there  a way to configure this so apache stuff builds properly?


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



RE: How to configure maven

2014-01-22 Thread Walters, Jay
Sorry - the bad repo is in the rampart pom.xml file. I must have fat fingered 
the text search first time around.

-Original Message-
From: Walters, Jay [mailto:walte...@hmc.harvard.edu] 
Sent: Wednesday, January 22, 2014 11:49 AM
To: 'Maven Users List'
Subject: RE: How to configure maven

Sorry, this is probably also relevant (and also does not look right).  Is this 
a mirror gone bad?  How do I configure where maven looks for the repository for 
apache files (and where is the right place).

Downloading: http://shibboleth.internet2.edu/downloads/maven2/org/apache/axis2/a
xis2-kernel/1.6.2/axis2-kernel-1.6.2.pom

[WARNING] Checksum validation failed, expected !DOCTYPE but is 
97233c537f442e88 47a66d8a2d49fa0ef2cfc60b for 
http://shibboleth.internet2.edu/downloads/maven2/or
g/apache/axis2/mex/1.6.2/mex-1.6.2-impl.jar

-Original Message-
From: Walters, Jay [mailto:walte...@hmc.harvard.edu]
Sent: Wednesday, January 22, 2014 11:47 AM
To: 'users@maven.apache.org'
Subject: How to configure maven

Sorry for asking such a easy question, but googling apache maven anything 
doesn't get to the answer too easily.

I have a previously working local repository in my home\.m2 directory.  I am on 
windows and JDK 1.6.0_21.  I have previously used this with maven 2.2.1 and 
3.0.4.  I also downloaded a fresh maven 3.1.1 which has the same problem.  I 
have no custom settings.xml file, I just have what comes in the zipfile 
downloads from the apache website.

Today, I'm trying to build apache rampart 1.6.2 from source (downloaded 
yesterday) which wants to pull in apache axis jars/poms and also a file 
apache/8/pom.xml from  an apache repository.  Rather than fetching in the files 
I need I get the attached internet2 html page which breaks the build.

Is there  a way to configure this so apache stuff builds properly?


-
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 to configure a profile to NOT upload build aritfact to a repository?

2012-11-03 Thread Barrie Treloar
On Sat, Nov 3, 2012 at 2:35 AM, carlos.a.de.la@accenture.com wrote:

 Greetings,

 I have a project that builds and then artifacts are automatically uploaded
 to our Nexus repository.  I have a special case where I need the code to
 build but I don't want the artifacts to be uploaded.

 I set up a profile for the special case.  However it is still trying to
 upload because it is inheriting the distributionManagement attributes
 from the parent.

 How can I tell this profile to NOT upload to the Nexus repo?  I tried
 putting dummy data under a distributionManagement tag inside the profile
 but that is causing the builds to fail.

 Thanks,

 Carlos


What command are you using?

mvn install
does everything locally, does not upload anything.

mvn deploy
does everything that mvn install does, plus uploads to
distributionManagement.

mvn release:perform
Automated some of the steps that you should be doing if you were to
manually run mvn deploy.


Re: How to configure a profile to NOT upload build aritfact to a repository?

2012-11-03 Thread Anders Hammar
As Berrie explained, the correct solution here is to just do a mvn
install build in this case. Starting to use profiles is not the solution.
It (almost) never is.

/Anders

On Sat, Nov 3, 2012 at 10:22 AM, Barrie Treloar baerr...@gmail.com wrote:

 On Sat, Nov 3, 2012 at 2:35 AM, carlos.a.de.la@accenture.com wrote:

  Greetings,
 
  I have a project that builds and then artifacts are automatically
 uploaded
  to our Nexus repository.  I have a special case where I need the code to
  build but I don't want the artifacts to be uploaded.
 
  I set up a profile for the special case.  However it is still trying to
  upload because it is inheriting the distributionManagement attributes
  from the parent.
 
  How can I tell this profile to NOT upload to the Nexus repo?  I tried
  putting dummy data under a distributionManagement tag inside the
 profile
  but that is causing the builds to fail.
 
  Thanks,
 
  Carlos
 

 What command are you using?

 mvn install
 does everything locally, does not upload anything.

 mvn deploy
 does everything that mvn install does, plus uploads to
 distributionManagement.

 mvn release:perform
 Automated some of the steps that you should be doing if you were to
 manually run mvn deploy.



Re: How to configure a profile to NOT upload build aritfact to a repository?

2012-11-03 Thread Olivier Lamy
deploy plugin has a skip option [1]
So add this option in a profile ?

HTH,
--
Olivier
[1] http://maven.apache.org/plugins/maven-deploy-plugin/faq.html#skip

2012/11/3 Anders Hammar and...@hammar.net:
 As Berrie explained, the correct solution here is to just do a mvn
 install build in this case. Starting to use profiles is not the solution.
 It (almost) never is.

 /Anders

 On Sat, Nov 3, 2012 at 10:22 AM, Barrie Treloar baerr...@gmail.com wrote:

 On Sat, Nov 3, 2012 at 2:35 AM, carlos.a.de.la@accenture.com wrote:

  Greetings,
 
  I have a project that builds and then artifacts are automatically
 uploaded
  to our Nexus repository.  I have a special case where I need the code to
  build but I don't want the artifacts to be uploaded.
 
  I set up a profile for the special case.  However it is still trying to
  upload because it is inheriting the distributionManagement attributes
  from the parent.
 
  How can I tell this profile to NOT upload to the Nexus repo?  I tried
  putting dummy data under a distributionManagement tag inside the
 profile
  but that is causing the builds to fail.
 
  Thanks,
 
  Carlos
 

 What command are you using?

 mvn install
 does everything locally, does not upload anything.

 mvn deploy
 does everything that mvn install does, plus uploads to
 distributionManagement.

 mvn release:perform
 Automated some of the steps that you should be doing if you were to
 manually run mvn deploy.




--
Olivier Lamy
Talend: http://coders.talend.com
http://twitter.com/olamy | http://linkedin.com/in/olamy

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



Re: How to configure a profile to NOT upload build aritfact to a repository?

2012-11-03 Thread Anders Hammar
 deploy plugin has a skip option [1]
 So add this option in a profile ?


I'd say the only use case for the skip param would be if you have some
Maven project the should NEVER upload it's artifact. Then you could
configure this so that it will not be uploaded even if mvn deploy
 is executed. But it should then not be in a profile.

But if you have a project that normally should upload it's artifact and you
have some scenario where it shouldn't (like one of your CI build jobs),
then you should just do mvn install in that case. A profile using skip
brings no advantage but is just a step away from Maven conventions IMO.

/Anders



 HTH,
 --
 Olivier
 [1] http://maven.apache.org/plugins/maven-deploy-plugin/faq.html#skip

 2012/11/3 Anders Hammar and...@hammar.net:
  As Berrie explained, the correct solution here is to just do a mvn
  install build in this case. Starting to use profiles is not the
 solution.
  It (almost) never is.
 
  /Anders
 
  On Sat, Nov 3, 2012 at 10:22 AM, Barrie Treloar baerr...@gmail.com
 wrote:
 
  On Sat, Nov 3, 2012 at 2:35 AM, carlos.a.de.la@accenture.com
 wrote:
 
   Greetings,
  
   I have a project that builds and then artifacts are automatically
  uploaded
   to our Nexus repository.  I have a special case where I need the code
 to
   build but I don't want the artifacts to be uploaded.
  
   I set up a profile for the special case.  However it is still trying
 to
   upload because it is inheriting the distributionManagement
 attributes
   from the parent.
  
   How can I tell this profile to NOT upload to the Nexus repo?  I tried
   putting dummy data under a distributionManagement tag inside the
  profile
   but that is causing the builds to fail.
  
   Thanks,
  
   Carlos
  
 
  What command are you using?
 
  mvn install
  does everything locally, does not upload anything.
 
  mvn deploy
  does everything that mvn install does, plus uploads to
  distributionManagement.
 
  mvn release:perform
  Automated some of the steps that you should be doing if you were to
  manually run mvn deploy.
 



 --
 Olivier Lamy
 Talend: http://coders.talend.com
 http://twitter.com/olamy | http://linkedin.com/in/olamy

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




Re: how to configure maven plugins using compony repository with nexus

2012-01-13 Thread Ansgar Konermann
Am 13.01.2012 07:12 schrieb chandrasheker chandrasheke...@gmail.com:

 Hi,

 How to configure maven plugins to company repository with nexus ui.i
 download the jar from  internal company repository

It's described in the manual of Sonatype Nexus. Please rtfm.

Besides, the exception stack trace you gave is mostly useless, as it does
not contain the dependency which could mot be resolved.

Regards

Ansgar

while run application but
 it gives the following excepiton
 org.apache.maven.lifecycle.LifecycleExecutionException:
 at

org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:196)
at

org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:108)
at

org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at

org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at

org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at

org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at

org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at

org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at

org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at

org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at

org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at
 org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
 Caused by: org.apache.maven.project.DependencyResolutionException:

 Thanks  Regards,
 chandra

 --
 View this message in context:
http://maven.40175.n5.nabble.com/how-to-configure-maven-plugins-using-compony-repository-with-nexus-tp5141812p5141812.html
 Sent from the Maven - Users mailing list archive at Nabble.com.

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



Re: How to configure properties-maven-plugin to report built in properties/variables

2012-01-04 Thread Karl Heinz Marbaise

Hi,

if you create a site and using the project-info-report-plugin will show 
a page with the information about the source repository

which contains exactly the information about the scm area...

http://maven.apache.org/plugins/maven-project-info-reports-plugin/
Example of this:
http://maven.apache.org/plugins/maven-project-info-reports-plugin/source-repository.html

So no need to put the scm connections into properties which will not 
work...in particular if you are using the release plugin of Maven...
So simply write the information plain into the scm are no using of 
properties...



project...
  scm
   connectionscm:svn:https://.../connection
   developerConnectionscm:svn:https://.../developerConnection
   urlhttps://.../url
 /scm
...
/project

To get these values reported using this plugin I have to add this to my project:

properties
 
project.scm.connection${project.scm.connection}/project.scm.connection
 
project.scm.developerConnection${project.scm.developerConnection}/project.scm.developerConnection
 project.scm.url${project.scm.url}/project.scm.url
/properties

This is tedious and error prone.  Is there a way to report this
without adding variables as properties manually?

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





--
SoftwareEntwicklung Beratung SchulungTel.: +49 (0) 2405 / 415 893
Dipl.Ing.(FH) Karl Heinz MarbaiseICQ#: 135949029
Hauptstrasse 177 USt.IdNr: DE191347579
52146 Würselen   http://www.soebes.de

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



Re: How to configure properties-maven-plugin to report built in properties/variables

2012-01-04 Thread Ansgar Konermann
Am 03.01.2012 17:22 schrieb David Hoffer dhoff...@gmail.com:

 How can I get project variables/properties exported to property file?

What are you going to do with these properties files?

Depending on your use case, there might be quite easy solutions for you,
without putting a lot of properties into files.

A


 I'm using properties-maven-plugin and it's good but it only reports
 things I have explicitly created as properties in my project.  I need
 to also get a report on things that maven already defined such as:

 project...
  scm
  connectionscm:svn:https://.../connection
  developerConnectionscm:svn:https://.../developerConnection
  urlhttps://.../url
/scm
 ...
 /project

 To get these values reported using this plugin I have to add this to my
project:

 properties

 project.scm.connection${project.scm.connection}/project.scm.connection

 
project.scm.developerConnection${project.scm.developerConnection}/project.scm.developerConnection
project.scm.url${project.scm.url}/project.scm.url
 /properties

 This is tedious and error prone.  Is there a way to report this
 without adding variables as properties manually?

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



Re: How to configure properties-maven-plugin to report built in properties/variables

2012-01-04 Thread Guillaume Polet
You can achieve this very easily by using the maven-ant-plugin combined 
with the echoproperties Ant task 
(http://ant.apache.org/manual/Tasks/echoproperties.html).


Cheers,
Guillaume

Le 3/01/2012 17:22, David Hoffer a écrit :

How can I get project variables/properties exported to property file?

I'm using properties-maven-plugin and it's good but it only reports
things I have explicitly created as properties in my project.  I need
to also get a report on things that maven already defined such as:

project...
  scm
   connectionscm:svn:https://.../connection
   developerConnectionscm:svn:https://.../developerConnection
   urlhttps://.../url
 /scm
...
/project

To get these values reported using this plugin I have to add this to my project:

properties
 
project.scm.connection${project.scm.connection}/project.scm.connection
 
project.scm.developerConnection${project.scm.developerConnection}/project.scm.developerConnection
 project.scm.url${project.scm.url}/project.scm.url
/properties

This is tedious and error prone.  Is there a way to report this
without adding variables as properties manually?

-
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 to configure plugin with default values

2011-08-18 Thread Mark H. Wood
On Thu, Aug 18, 2011 at 10:40:23AM -0600, David Hoffer wrote:
 I'm creating a plugin and having trouble getting the container
 (plexus) to configure initial values.  I've started with the
 dependency plugin as a basis and see that somehow mojo parameters get
 set with default values...I assume this is happening by the container
 but what's the secret to making this work?  I've added some new mojo

http://maven.apache.org/guides/plugin/guide-java-plugin-development.html

You add a 'default-value=something' to the @parameter annotation,
and something (I'm not sure it's plexus, at least not directly) will
evaluate the string value and attempt to convert it to something
compatible with the type of the parameter field, if no value was
configured externally.

The bit that's not well documented is that you can pluck property
values such as ${project.build.directory} out of the model by writing
them in the default-value string.  Apparently this is the proper way
to discover model values and the like, though I've found nothing
authoritative yet that actually says do it this way.

 parameters following the same convention and they are null at runtime
 (running unit test).  Is there some documentation on the
 creating/wiring of plugin mojos to the container?

Some.  Not enough.  When I figure out some of the missing stuff I will
write some more.

-- 
Mark H. Wood, Lead System Programmer   mw...@iupui.edu
Asking whether markets are efficient is like asking whether people are smart.


pgpfuDT2RpVxp.pgp
Description: PGP signature


Re: how to configure build processes with mavn

2010-06-22 Thread Anders Hammar
Having different flavors of your artifacts, depending on which environment
you build for is not recommended. In Maven, a specific artifact defined by
GAV (i.e. a specific version of your artifact) cannot (should not) change.
We've had numerous discussions regarding this on the list. It simply isn't
the Maven way.
What you should do, is to try to keep your configuration separated from your
binaries. And then create separate artifacts (either through classifiers or
different projects) for each environment. And in your build process, by
default, you build them all.

/Anders

On Mon, Jun 21, 2010 at 14:58, Mariyan Nenchev mnenc...@trinitascapital.com
 wrote:

 Hi,

 I have a huge java project with several modules. The build is based on
 maven. There are many parameters, that are used in the project and i have
 placed them in the database. They are environment specific (for example
 parameter x has value1 for TEST, value2 for UAT, value3 for PROD so on..).
 I
 want to create 3 different configurations about these 3 environments. And
 tell something like project_root$mvn install configuration1 - this builds
 me the whole project by using parameters setuped for UAT for example.

 Is there any way to do this with maven?

 Regards.



Re: How to configure proxy for multiple protocols

2009-10-14 Thread Michal Hlavac
network proxy settings in maven has really bad design. As I know, only
one proxy can active at the same time.

m.

Hugo Palma  wrote / napísal(a):
 I'm trying to use the same proxy for both http and https but i'm having no
 success.
 I've tried configuring like this:
 
 proxies
 proxy
   idmyhttp/id
   activetrue/active
   protocolhttp/protocol
   host192.168.0.4/host
   port8080/port
 /proxy
 
 proxy
   idmyhttps/id
   activetrue/active
   protocolhttps/protocol
   host192.168.0.4/host
   port8080/port
 /proxy
   /proxies
 
 But only the first proxy is used. I also tried using the same id for both
 proxies with no success.
 Any ideas ?
 
 Thanks.
 




smime.p7s
Description: S/MIME Cryptographic Signature


Re: How to configure proxy for multiple protocols

2009-10-14 Thread Hugo Palma
Thanks for your response.
I've created an issue for this http://jira.codehaus.org/browse/MNG-4394

On Wed, Oct 14, 2009 at 11:32, Michal Hlavac hla...@hlavki.eu wrote:

 network proxy settings in maven has really bad design. As I know, only
 one proxy can active at the same time.

 m.

 Hugo Palma  wrote / napísal(a):
  I'm trying to use the same proxy for both http and https but i'm having
 no
  success.
  I've tried configuring like this:
 
  proxies
  proxy
idmyhttp/id
activetrue/active
protocolhttp/protocol
host192.168.0.4/host
port8080/port
  /proxy
 
  proxy
idmyhttps/id
activetrue/active
protocolhttps/protocol
host192.168.0.4/host
port8080/port
  /proxy
/proxies
 
  But only the first proxy is used. I also tried using the same id for both
  proxies with no success.
  Any ideas ?
 
  Thanks.
 





Re: How to configure maven-site-plugin to publish jar?

2009-04-15 Thread Dennis Lundberg
David Hoffer wrote:
 Can and if possible how can I configure the maven-site-plugin so that it
 bundles the entire site in a jar and then deploys it?  Ideally the whole
 process would remain contained within the site-deploy phase.
 
 -Dave
 

You can use the site:jar goal for this purpose:
http://maven.apache.org/plugins/maven-site-plugin/jar-mojo.html

The site.jar file is attached to your main artifact by default.

-- 
Dennis Lundberg

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



Re: how to configure existing project for maven2

2009-04-10 Thread Gabriel Euzet
Hi,

Some questions you need to find responses :

 * is your project single module or multiple ? = one pom or several pom
with one parent
 * does your project tree respects the default structure used by maven
(src/main/java, src/main/resources, ...) ? modify your project structure or
configure it in the pom (http://maven.apache.org/pom.html#Build_Element). My
advice : try to match as much as possible the default configuration .

Hope it helps ...

Gab'

2009/4/10 rohan chauhan rohan4u_...@yahoo.com



  Hi al,

 I'm wondering that how can i configure an existing project in maven2.

 How to create pom.xml file for that.

 And  is it necessary to have pom.xml file in each sub-folder of root folder



 
 Do not follow where the path may lead. Go instead where there is no path
 and leave a trail ! ! !

 

 
 * Learn to enjoy every minute of your life.  Be happy now.  Don't wait for
 something outside of yourself to make you happy in the future.  Think how
 really precious is the time you have to spend, whether it's at work or with
 your family..  Every minute should be enjoyed and savored
 by forgetting problems. * - My Thought

 


  Add more friends to your messenger and enjoy! Go to
 http://messenger.yahoo.com/invite/



Re: How to configure resources plugin to copy extra files

2009-02-24 Thread trollswagen

I had the same issue... and I didn't want to set the extra resources in the
build section of the pom, because i didn't want to include them in my jar.

I think this has to do with the version of the maven-resources-plugin that
you have installed.  If you run maven -U to update to the latest version
of all dependencies, it should solve the problem.  Or you can explicitly set
the version to 2.3:

plugin
artifactIdmaven-resources-plugin/artifactId
version2.3/version
executions
execution.../execution
/executions
/plugin


zorro2b wrote:
 
 I am converting a project to use Maven. I have got it to compile but the
 tests are failing because there are xml files in with the java source that
 need to be copied over with the classes. I don't want to move these into
 the resources dir, so I followed the example here:
 http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.html
 
 but I get the error 'copy-resources' was specified in an execution, but
 not found in the plugin
 
 so I have tried changing the goal to resources as well as removing the
 goals section completely. Both get rid of the error, but no files are
 copied.
 
 Does anyone have a working config they could share?
 
 Here is my current config:
 plugin
 artifactIdmaven-resources-plugin/artifactId
 executions
   execution
 idcopy-resources/id
 phaseprocess-resources/phase
 
   goals
   goalresources/goal
   /goals
 configuration
   outputDirectory${basedir}/target/classes/outputDirectory
   resources  
 resource
   directorysrc/main/java/directory
   includes
   include**/*.xml/include
 /includes
 /resource
   /resources  
 /configuration
   /execution
 /executions
   /plugin
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-configure-resources-plugin-to-copy-extra-files-tp21067611p22189863.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to configure resources plugin to copy extra files

2009-02-16 Thread Blueshirts

You may not need to for his example though the example on the page sited does
not work.  Anyone know what the correct execution value should be? 
Configuring the plug-in is useful because in the example it states you can
attach it to a phase.


brettporter wrote:
 
 You shouldn't need to configure the resource plugin at all, just the  
 following will work:
 
 resources
resource
  directorysrc/main/java/directory
  includes
include**/*.xml/include
  /includes
/resource
 /resources
 
 Cheers,
 Brett
 
 On 18/12/2008, at 5:19 PM, zorro2b wrote:
 

 I am converting a project to use Maven. I have got it to compile but  
 the
 tests are failing because there are xml files in with the java  
 source that
 need to be copied over with the classes. I don't want to move these  
 into the
 resources dir, so I followed the example here:
 http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.html

 but I get the error 'copy-resources' was specified in an execution,  
 but not
 found in the plugin

 so I have tried changing the goal to resources as well as removing  
 the
 goals section completely. Both get rid of the error, but no files are
 copied.

 Does anyone have a working config they could share?

 Here is my current config:
plugin
artifactIdmaven-resources-plugin/artifactId
executions
  execution
idcopy-resources/id
phaseprocess-resources/phase

  goals
  goalresources/goal
  /goals
configuration
  outputDirectory${basedir}/target/classes/ 
 outputDirectory
  resources
resource
  directorysrc/main/java/directory
  includes
  include**/*.xml/include
/includes
/resource
  /resources
/configuration
  /execution
/executions
  /plugin

 -- 
 View this message in context:
 http://www.nabble.com/How-to-configure-resources-plugin-to-copy-extra-files-tp21067611p21067611.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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

 
 --
 Brett Porter
 br...@apache.org
 http://blogs.exist.com/bporter/
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-configure-resources-plugin-to-copy-extra-files-tp21067611p22043924.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to configure resources plugin to copy extra files

2008-12-18 Thread zorro2b

Excellent! That worked, thanks.


brettporter wrote:
 
 You shouldn't need to configure the resource plugin at all, just the  
 following will work:
 
 resources
resource
  directorysrc/main/java/directory
  includes
include**/*.xml/include
  /includes
/resource
 /resources
 
 Cheers,
 Brett
 
 On 18/12/2008, at 5:19 PM, zorro2b wrote:
 

 I am converting a project to use Maven. I have got it to compile but  
 the
 tests are failing because there are xml files in with the java  
 source that
 need to be copied over with the classes. I don't want to move these  
 into the
 resources dir, so I followed the example here:
 http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.html

 but I get the error 'copy-resources' was specified in an execution,  
 but not
 found in the plugin

 so I have tried changing the goal to resources as well as removing  
 the
 goals section completely. Both get rid of the error, but no files are
 copied.

 Does anyone have a working config they could share?

 Here is my current config:
plugin
artifactIdmaven-resources-plugin/artifactId
executions
  execution
idcopy-resources/id
phaseprocess-resources/phase

  goals
  goalresources/goal
  /goals
configuration
  outputDirectory${basedir}/target/classes/ 
 outputDirectory
  resources
resource
  directorysrc/main/java/directory
  includes
  include**/*.xml/include
/includes
/resource
  /resources
/configuration
  /execution
/executions
  /plugin

 -- 
 View this message in context:
 http://www.nabble.com/How-to-configure-resources-plugin-to-copy-extra-files-tp21067611p21067611.html
 Sent from the Maven - Users mailing list archive at Nabble.com.


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

 
 --
 Brett Porter
 br...@apache.org
 http://blogs.exist.com/bporter/
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/How-to-configure-resources-plugin-to-copy-extra-files-tp21067611p21068948.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Re: How to configure resources plugin to copy extra files

2008-12-17 Thread Brett Porter
You shouldn't need to configure the resource plugin at all, just the  
following will work:


resources
  resource
directorysrc/main/java/directory
includes
  include**/*.xml/include
/includes
  /resource
/resources

Cheers,
Brett

On 18/12/2008, at 5:19 PM, zorro2b wrote:



I am converting a project to use Maven. I have got it to compile but  
the
tests are failing because there are xml files in with the java  
source that
need to be copied over with the classes. I don't want to move these  
into the

resources dir, so I followed the example here:
http://maven.apache.org/plugins/maven-resources-plugin/examples/copy-resources.html

but I get the error 'copy-resources' was specified in an execution,  
but not

found in the plugin

so I have tried changing the goal to resources as well as removing  
the

goals section completely. Both get rid of the error, but no files are
copied.

Does anyone have a working config they could share?

Here is my current config:
  plugin
   artifactIdmaven-resources-plugin/artifactId
   executions
 execution
   idcopy-resources/id
   phaseprocess-resources/phase

goals
goalresources/goal
/goals
   configuration
 outputDirectory${basedir}/target/classes/ 
outputDirectory

 resources
   resource
 directorysrc/main/java/directory
 includes
include**/*.xml/include
  /includes
   /resource
 /resources
   /configuration
 /execution
   /executions
 /plugin

--
View this message in context: 
http://www.nabble.com/How-to-configure-resources-plugin-to-copy-extra-files-tp21067611p21067611.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



--
Brett Porter
br...@apache.org
http://blogs.exist.com/bporter/


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



Re: How to configure..

2008-12-11 Thread Wayne Fay
 We are planning to use maven in our project. our project has the production 
 server. And we need to configure the maven repository for each developer 
 instance like mirror or something else. So that the developer can test 
 locally their part without touching the main pom.xml. Please guide me how to 
 configure this.

You probably want to configure the settings.xml file on each of your
developer's workstations. But it is hard to tell what exaxctly you are
asking, or what your problem is.

You will have better luck on this list if you ask specific, detailed
questions and demonstrate that you have done your own homework/reading
before asking on the list.

Wayne

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



Re: how to configure hibernate3-maven-plugin

2008-12-08 Thread Rusty Wright

I have a vague memory that the AppFuse archetypes use the hibernate plugin, but 
I can't swear to it; try this:

 http://appfuse.org/display/APF/AppFuse+QuickStart


dahoffer wrote:

Can someone point me to an example of how to use hibernate3-maven-plugin to:

1. Create hibernate mapping files from POJOs.
2. Create hibernate configuration file.
3. Create db schema from 1  2.
4. Deploy schema to database.

Thanks much,
-Dave


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



Re: How to configure a JBoss to link to the webapp folder of a WAR project

2008-09-02 Thread Pedro Viegas
Martin... THANKS!

I tried the antiJARLocking=true like you said and the inner modules began to
work.
I now have all classes hot-code replacing fine, as long as they are of the
same eclipse project (in it's build path).

Only one little detail is missing, and it would be very handy.
Dependent projects.
Maven dependencies are linked to other projects in the workspace. It knows
it can browse the sources when in debug for instance. But, these classes are
not hot-deployed, even with the antiJARLocking set to true. Any clue? Been
trying several things to try to figure out without sucess so far...

Ragards,

On Tue, Sep 2, 2008 at 1:59 AM, Martin Gainty [EMAIL PROTECTED] wrote:


 did you look at antiJARLocking=true

 http://www.jboss.org/file-access/default/members/jbossweb/freezone/docs/2.1.0/config/context.html
 otherwise the classloader locks the jar and no other process can deploy on
 top of itMartin__ Disclaimer and
 confidentiality note Everything in this e-mail and any attachments relates
 to the official business of Sender. This transmission is of a confidential
 nature and Sender does not endorse distribution to any party other than
 intended recipient. Sender does not necessarily endorse content contained
 within this transmission.  Date: Mon, 1 Sep 2008 18:30:35 +0100 From:
 [EMAIL PROTECTED] To: users@maven.apache.org Subject: Re: How to
 configure a JBoss to link to the webapp folder of a WAR project  Many
 apologies! My previous post had so many tipos I had to repost it here...
 Will be more careful in the future... and type slower too! :-D  Hi
 again,  Following a tip from John Newman I used this Eclipse plugin...
 http://andrei.gmxhome.de/filesync/  This allows us to configure an
 automated file copy operation for specific project folders to whatever
 folder we want to. So I configured the plugin to copy the webapp folder to
 the exploded war target folder and got the JSP/CSS/Images and JS files hot
 code replace working! (Thanks John!)  This is fine except for
 multi-module projects or dependent projects. For these I still cannot get
 hot-code replacement for classes since they are bundled as JARs even if the
 dependent projects are open in eclipse and workspace resolution is active
 im the Maven Eclipse Plugin.  Has anyone gotten further with this approach
 or a similar one?  Thanks,  On Mon, Sep 1, 2008 at 6:09 PM, Pedro Viegas
 [EMAIL PROTECTED] wrote:   Hi again,   Following a tip from
 John Newman I used this Eclipse plugin... 
 http://andrei.gmxhome.de/filesync/   This allows us to configure an
 automaed file copy operation for specific  project folders to whateve
 folder we want to.  So I configured the plugin to copy the webapp folder
 to the exploded wr  target folder ad got the JSP/CS/Images/JS files hot
 code replace working!  (Thans John!)   This is fine except for
 multi-module projects or dependant projects.  For these I still cannot get
 hot-code replacement for classes since they  are bundled as JARs even if
 the dependant projects are open in eclipsed and  wirkspace resolution is
 active um the Maven Eclise Plugin.   Has anyone gotten further with this
 approuch or a similar one?   Thanks, On Fri, Jul 11, 2008 at
 11:21 AM, Pedro Viegas [EMAIL PROTECTED]wrote:   Hi David, 
  Sorry for to confusing post.  I'll try to explain better.   I
 have hot deployment in place. It is working, just not in the best way. 
 What I have suceeded so far:   I have setup JBoss deploy URLs to
 search my  ${maven.project}/target/{projectWAR}  I deploy using mvn
 war:exploded so I don't have to wait for the  compression phase.  For
 JBoss to accept a dir like a WAR (that does not end in .war - maven's 
 notation), I have configured the war plugin to create the exploded dir with
  .war sufix. Like so...   !-- Configure the deploy dir as a
 exploded war file. For JBoss to use it!  --  plugin 
 artifactIdmaven-war-plugin/artifactId  configuration 
 webappDirectory 
 ${project.build.directory}/${project.build.finalName}.war/ 
 webappDirectory  /configuration  /plugin  And this is what I
 have.  All java classes get hot replaced by JBoss Eclipse plugin OK. 
 JSP's are not!  To refresh JSP after I change them I issue a mvn
 war:exploded each time I  want to.   This is the best I got so far.
 It's not a bad solution. It takes only a  few seconds for the projecto to
 refresh the JSP. BUT this is a bit  workarround and having to set this up
 for each project...   Anyone has a better aprouch?   Thanks,
On Fri, Jul 11, 2008 at 12:35 AM, David Brown 
 [EMAIL PROTECTED]  wrote:   Hello Pedro, I'm not sure by
 your statements if you are using a HOT  deploy or not. In the case you
 are using a hot deploy try using an exploded  war under
 server/default/deploy and see if you see any difference. The JSPs  are
 compiled by the container once they are invoked at the browser. As an 
 experiment: create a second virtual JBoss (4.2.1/4.2.2) server on a port
  like 8989

Re: How to configure a JBoss to link to the webapp folder of a WAR project

2008-09-02 Thread Pedro Viegas
I think I know the reason...
Not Maven or Eclipse related!
My other projects were AspectJ ones. They have many aspects and these
classes are not hot replaced. I guess this is a limitation/feature of
AspectJ. :-(

On Tue, Sep 2, 2008 at 2:50 PM, Pedro Viegas [EMAIL PROTECTED] wrote:

 Martin... THANKS!

 I tried the antiJARLocking=true like you said and the inner modules began
 to work.
 I now have all classes hot-code replacing fine, as long as they are of the
 same eclipse project (in it's build path).

 Only one little detail is missing, and it would be very handy.
 Dependent projects.
 Maven dependencies are linked to other projects in the workspace. It knows
 it can browse the sources when in debug for instance. But, these classes are
 not hot-deployed, even with the antiJARLocking set to true. Any clue? Been
 trying several things to try to figure out without sucess so far...

 Ragards,


 On Tue, Sep 2, 2008 at 1:59 AM, Martin Gainty [EMAIL PROTECTED] wrote:


 did you look at antiJARLocking=true

 http://www.jboss.org/file-access/default/members/jbossweb/freezone/docs/2.1.0/config/context.html
 otherwise the classloader locks the jar and no other process can deploy on
 top of itMartin__ Disclaimer and
 confidentiality note Everything in this e-mail and any attachments relates
 to the official business of Sender. This transmission is of a confidential
 nature and Sender does not endorse distribution to any party other than
 intended recipient. Sender does not necessarily endorse content contained
 within this transmission.  Date: Mon, 1 Sep 2008 18:30:35 +0100 From:
 [EMAIL PROTECTED] To: users@maven.apache.org Subject: Re: How to
 configure a JBoss to link to the webapp folder of a WAR project  Many
 apologies! My previous post had so many tipos I had to repost it here...
 Will be more careful in the future... and type slower too! :-D  Hi
 again,  Following a tip from John Newman I used this Eclipse plugin...
 http://andrei.gmxhome.de/filesync/  This allows us to configure an
 automated file copy operation for specific project folders to whatever
 folder we want to. So I configured the plugin to copy the webapp folder to
 the exploded war target folder and got the JSP/CSS/Images and JS files hot
 code replace working! (Thanks John!)  This is fine except for
 multi-module projects or dependent projects. For these I still cannot get
 hot-code replacement for classes since they are bundled as JARs even if the
 dependent projects are open in eclipse and workspace resolution is active
 im the Maven Eclipse Plugin.  Has anyone gotten further with this approach
 or a similar one?  Thanks,  On Mon, Sep 1, 2008 at 6:09 PM, Pedro Viegas
 [EMAIL PROTECTED] wrote:   Hi again,   Following a tip from
 John Newman I used this Eclipse plugin... 
 http://andrei.gmxhome.de/filesync/   This allows us to configure an
 automaed file copy operation for specific  project folders to whateve
 folder we want to.  So I configured the plugin to copy the webapp folder
 to the exploded wr  target folder ad got the JSP/CS/Images/JS files hot
 code replace working!  (Thans John!)   This is fine except for
 multi-module projects or dependant projects.  For these I still cannot get
 hot-code replacement for classes since they  are bundled as JARs even if
 the dependant projects are open in eclipsed and  wirkspace resolution is
 active um the Maven Eclise Plugin.   Has anyone gotten further with this
 approuch or a similar one?   Thanks, On Fri, Jul 11, 2008 at
 11:21 AM, Pedro Viegas [EMAIL PROTECTED]wrote:   Hi David, 
  Sorry for to confusing post.  I'll try to explain better.   I
 have hot deployment in place. It is working, just not in the best way. 
 What I have suceeded so far:   I have setup JBoss deploy URLs to
 search my  ${maven.project}/target/{projectWAR}  I deploy using mvn
 war:exploded so I don't have to wait for the  compression phase.  For
 JBoss to accept a dir like a WAR (that does not end in .war - maven's 
 notation), I have configured the war plugin to create the exploded dir with
  .war sufix. Like so...   !-- Configure the deploy dir as a
 exploded war file. For JBoss to use it!  --  plugin 
 artifactIdmaven-war-plugin/artifactId  configuration 
 webappDirectory 
 ${project.build.directory}/${project.build.finalName}.war/ 
 webappDirectory  /configuration  /plugin  And this is what I
 have.  All java classes get hot replaced by JBoss Eclipse plugin OK. 
 JSP's are not!  To refresh JSP after I change them I issue a mvn
 war:exploded each time I  want to.   This is the best I got so far.
 It's not a bad solution. It takes only a  few seconds for the projecto to
 refresh the JSP. BUT this is a bit  workarround and having to set this up
 for each project...   Anyone has a better aprouch?   Thanks,
On Fri, Jul 11, 2008 at 12:35 AM, David Brown 
 [EMAIL PROTECTED]  wrote:   Hello Pedro, I'm not sure by
 your statements if you are using a HOT  deploy

Re: How to configure a JBoss to link to the webapp folder of a WAR project

2008-09-01 Thread Pedro Viegas
Hi again,

Following a tip from John Newman I used this Eclipse plugin...
http://andrei.gmxhome.de/filesync/

This allows us to configure an automaed file copy operation for specific
project folders to whateve folder we want to.
So I configured the plugin to copy the webapp folder to the exploded wr
target folder ad got the JSP/CS/Images/JS files hot code replace working!
(Thans John!)

This is fine except for multi-module projects or dependant projects.
For these I still cannot get hot-code replacement for classes since they are
bundled as JARs even if the dependant projects are open in eclipsed and
wirkspace resolution is active um the Maven Eclise Plugin.

Has anyone gotten further with this approuch or a similar one?

Thanks,


On Fri, Jul 11, 2008 at 11:21 AM, Pedro Viegas [EMAIL PROTECTED] wrote:

 Hi David,

 Sorry for to confusing post.
 I'll try to explain better.

 I have hot deployment in place. It is working, just not in the best way.
 What I have suceeded so far:

 I have setup JBoss deploy URLs to search my
 ${maven.project}/target/{projectWAR}
 I deploy using mvn war:exploded so I don't have to wait for the compression
 phase.
 For JBoss to accept a dir like a WAR (that does not end in .war - maven's
 notation), I have configured the war plugin to create the exploded dir with
 .war sufix. Like so...

 !-- Configure the deploy dir as a exploded war file. For JBoss to use it!
 --
 plugin
 artifactIdmaven-war-plugin/artifactId
 configuration
 webappDirectory${project.build.directory}/${project.build.finalName}.war
 /webappDirectory
 /configuration
 /plugin
 And this is what I have.
 All java classes get hot replaced by JBoss Eclipse plugin OK.
 JSP's are not!
 To refresh JSP after I change them I issue a mvn war:exploded each time I
 want to.

 This is the best I got so far. It's not a bad solution. It takes only a few
 seconds for the projecto to refresh the JSP. BUT this is a bit workarround
 and having to set this up for each project...

 Anyone has a better aprouch?

 Thanks,


 On Fri, Jul 11, 2008 at 12:35 AM, David Brown [EMAIL PROTECTED]
 wrote:

 Hello Pedro, I'm not sure by your statements if you are using a HOT deploy
 or not. In the case you are using a hot deploy try using an exploded war
 under server/default/deploy and see if you see any difference. The JSPs are
 compiled by the container once they are invoked at the browser. As an
 experiment: create a second virtual JBoss (4.2.1/4.2.2) server on a port
 like 8989 that deploys a single JSP and see if you can get it to recompile.
 There are instructions int the JBoss /examples directory on how to do this.
 HTH, David.
 Pedro Viegas wrote ..
   Hi all,
 
  I've been trying to build an environment for developing web applications
  that generate WAR files with a productive debug/development process.
  I'm using JBoss as the application server. Tomcat is a no go and Jetty
 has
  issues with some bytecode APIs I use.
 
  All is working fine in the traditional way. I package the WAR, deploy it
 to
  the server with the cargo plugin and test it.
  Through JBoss Eclipse Plugin I have debug and hotcode replacement for
 java
  classes, BUT not for JSPs!
  How can I make JBoss aware of JSP/CSS/JS changes?
 
  I have seen a bunch of examples for Tomcat and Jetty to indicate a path
 to
  the webapp folder.
  For JBoss the only solution so far has always included building an
 exploded
  WAR somewhere and point JBoss deploy URLs to it so it deploys them.
  Even the solution of using the war:inplace is not functional since JBoss
  deployer only scans WAR/JAR/EAR/etc files. A directory like
  src/main/webapp is simply ignored.
 
  All I wanted to do was deploy the application through Maven a Eclipse
  lanched debug JBoss instance and be able to change my JSP files and
 refresh
  them on the browser.
  As anyone been able to do this?
 
  Thanks,
 
  --
  Pedro Viegas
 
  
  Walking on water and developing software
  from a specification are easy if both are
  frozen.
  - Edward V. Berard
 Yet some, not wise, go to the other side of the globe, to barbarous and
 unhealthy regions, and devote ten or twenty years, in that they may
 live,-that is, keep comfortably warm,- and die in New England at last.

 Henry David Thoreau - Walden - 1845


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




 --
 Pedro Viegas

 
 Walking on water and developing software
 from a specification are easy if both are
 frozen.
 - Edward V. Berard




-- 
Pedro Viegas


Walking on water and developing software
from a specification are easy if both are
frozen.
- Edward V. Berard


Re: How to configure a JBoss to link to the webapp folder of a WAR project

2008-09-01 Thread Pedro Viegas
Hi Siarhei,

Thanks for the tip. I haven't explored the WTP project before, only read
about it very briefly.
I will try this approach, even though it will surely force me to change a
bit of my deployment and modules to comply to some rules I have read on the
site.

One question though, why did it put the m2eclipse plug in aside?
Woudn't it help in the process?
Are they incompatible? WTP projects and M2Projects projects I mean?

I've been using the m2eclipse for some time and aside for a few bugs i got
used to work arround i'm quite happy with it.
Your experience (good or bad) would be appreciated to help me weight my
options.

Thanks,

On Fri, Jul 11, 2008 at 10:05 PM, Siarhei Dudzin
[EMAIL PROTECTED]wrote:

 Hi,

 It pretty much 'just works'. I have a multi module eclipse (Eclipse Europa
 version) projects with WTP 2 enabled in the maven-eclipse-plugin
 configuration.
 No m2eclipse plugin (tried it - but put it aside) - just
 maven-eclipse-plugin.

 Just download sources of maven-eclipse-plugin - it has several test
 projects
 that can give you an idea for configuring your projects.

 JBoss Tools is built on top of WTP 2 and does exploded deployment right to
 JBoss hot deploy directory.

 Regards,
 Siarhei

 On Fri, Jul 11, 2008 at 12:14 PM, Pedro Viegas [EMAIL PROTECTED]
 wrote:

  Hi Siarhei,
 
  I too use JBoss tools and Eclipse Plugin.
  How did you set this up?
 
  Thanks,
 
  On Thu, Jul 10, 2008 at 8:08 PM, Siarhei Dudzin 
 [EMAIL PROTECTED]
  wrote:
 
   What's wrong with JBoss Tools? We use maven-eclipse-plugin + JBoss
 Tools,
   works well so far...
  
   Siarhei
  
   On Thu, Jul 10, 2008 at 7:37 PM, Pedro Viegas [EMAIL PROTECTED]
   wrote:
  
Hi all,
   
I've been trying to build an environment for developing web
  applications
that generate WAR files with a productive debug/development process.
I'm using JBoss as the application server. Tomcat is a no go and
 Jetty
   has
issues with some bytecode APIs I use.
   
All is working fine in the traditional way. I package the WAR, deploy
  it
   to
the server with the cargo plugin and test it.
Through JBoss Eclipse Plugin I have debug and hotcode replacement for
   java
classes, BUT not for JSPs!
How can I make JBoss aware of JSP/CSS/JS changes?
   
I have seen a bunch of examples for Tomcat and Jetty to indicate a
 path
   to
the webapp folder.
For JBoss the only solution so far has always included building an
   exploded
WAR somewhere and point JBoss deploy URLs to it so it deploys them.
Even the solution of using the war:inplace is not functional since
  JBoss
deployer only scans WAR/JAR/EAR/etc files. A directory like
src/main/webapp is simply ignored.
   
All I wanted to do was deploy the application through Maven a Eclipse
lanched debug JBoss instance and be able to change my JSP files and
   refresh
them on the browser.
As anyone been able to do this?
   
Thanks,
   
--
Pedro Viegas
   

Walking on water and developing software
from a specification are easy if both are
frozen.
- Edward V. Berard
   
  
 
 
 
  --
  Pedro Viegas
 
  
  Walking on water and developing software
  from a specification are easy if both are
  frozen.
  - Edward V. Berard
 




-- 
Pedro Viegas


Walking on water and developing software
from a specification are easy if both are
frozen.
- Edward V. Berard


Re: How to configure a JBoss to link to the webapp folder of a WAR project

2008-09-01 Thread Pedro Viegas
Many apologies!
My previous post had so many tipos I had to repost it here... Will be more
careful in the future... and type slower too! :-D

Hi again,

Following a tip from John Newman I used this Eclipse plugin...
http://andrei.gmxhome.de/filesync/

This allows us to configure an automated file copy operation for specific
project folders to whatever folder we want to.
So I configured the plugin to copy the webapp folder to the exploded war
target folder and got the JSP/CSS/Images and JS files hot code replace
working! (Thanks John!)

This is fine except for multi-module projects or dependent projects.
For these I still cannot get hot-code replacement for classes since they are
bundled as JARs even if the dependent projects are open in eclipse and
workspace resolution is active im the Maven Eclipse Plugin.

Has anyone gotten further with this approach or a similar one?

Thanks,

On Mon, Sep 1, 2008 at 6:09 PM, Pedro Viegas [EMAIL PROTECTED] wrote:

 Hi again,

 Following a tip from John Newman I used this Eclipse plugin...
 http://andrei.gmxhome.de/filesync/

 This allows us to configure an automaed file copy operation for specific
 project folders to whateve folder we want to.
 So I configured the plugin to copy the webapp folder to the exploded wr
 target folder ad got the JSP/CS/Images/JS files hot code replace working!
 (Thans John!)

 This is fine except for multi-module projects or dependant projects.
 For these I still cannot get hot-code replacement for classes since they
 are bundled as JARs even if the dependant projects are open in eclipsed and
 wirkspace resolution is active um the Maven Eclise Plugin.

 Has anyone gotten further with this approuch or a similar one?

 Thanks,



 On Fri, Jul 11, 2008 at 11:21 AM, Pedro Viegas [EMAIL PROTECTED]wrote:

 Hi David,

 Sorry for to confusing post.
 I'll try to explain better.

 I have hot deployment in place. It is working, just not in the best way.
 What I have suceeded so far:

 I have setup JBoss deploy URLs to search my
 ${maven.project}/target/{projectWAR}
 I deploy using mvn war:exploded so I don't have to wait for the
 compression phase.
 For JBoss to accept a dir like a WAR (that does not end in .war - maven's
 notation), I have configured the war plugin to create the exploded dir with
 .war sufix. Like so...

 !-- Configure the deploy dir as a exploded war file. For JBoss to use it!
 --
 plugin
 artifactIdmaven-war-plugin/artifactId
 configuration
 webappDirectory
 ${project.build.directory}/${project.build.finalName}.war/
 webappDirectory
 /configuration
 /plugin
 And this is what I have.
 All java classes get hot replaced by JBoss Eclipse plugin OK.
 JSP's are not!
 To refresh JSP after I change them I issue a mvn war:exploded each time I
 want to.

 This is the best I got so far. It's not a bad solution. It takes only a
 few seconds for the projecto to refresh the JSP. BUT this is a bit
 workarround and having to set this up for each project...

 Anyone has a better aprouch?

 Thanks,


 On Fri, Jul 11, 2008 at 12:35 AM, David Brown [EMAIL PROTECTED]
 wrote:

 Hello Pedro, I'm not sure by your statements if you are using a HOT
 deploy or not. In the case you are using a hot deploy try using an exploded
 war under server/default/deploy and see if you see any difference. The JSPs
 are compiled by the container once they are invoked at the browser. As an
 experiment: create a second virtual JBoss (4.2.1/4.2.2) server on a port
 like 8989 that deploys a single JSP and see if you can get it to recompile.
 There are instructions int the JBoss /examples directory on how to do this.
 HTH, David.
 Pedro Viegas wrote ..
   Hi all,
 
  I've been trying to build an environment for developing web
 applications
  that generate WAR files with a productive debug/development process.
  I'm using JBoss as the application server. Tomcat is a no go and Jetty
 has
  issues with some bytecode APIs I use.
 
  All is working fine in the traditional way. I package the WAR, deploy
 it to
  the server with the cargo plugin and test it.
  Through JBoss Eclipse Plugin I have debug and hotcode replacement for
 java
  classes, BUT not for JSPs!
  How can I make JBoss aware of JSP/CSS/JS changes?
 
  I have seen a bunch of examples for Tomcat and Jetty to indicate a path
 to
  the webapp folder.
  For JBoss the only solution so far has always included building an
 exploded
  WAR somewhere and point JBoss deploy URLs to it so it deploys them.
  Even the solution of using the war:inplace is not functional since
 JBoss
  deployer only scans WAR/JAR/EAR/etc files. A directory like
  src/main/webapp is simply ignored.
 
  All I wanted to do was deploy the application through Maven a Eclipse
  lanched debug JBoss instance and be able to change my JSP files and
 refresh
  them on the browser.
  As anyone been able to do this?
 
  Thanks,
 
  --
  Pedro Viegas
 
  
  Walking on water and developing software
  from a 

RE: How to configure a JBoss to link to the webapp folder of a WAR project

2008-09-01 Thread Martin Gainty

did you look at antiJARLocking=true
http://www.jboss.org/file-access/default/members/jbossweb/freezone/docs/2.1.0/config/context.html
otherwise the classloader locks the jar and no other process can deploy on top 
of itMartin__ Disclaimer and 
confidentiality note Everything in this e-mail and any attachments relates to 
the official business of Sender. This transmission is of a confidential nature 
and Sender does not endorse distribution to any party other than intended 
recipient. Sender does not necessarily endorse content contained within this 
transmission.  Date: Mon, 1 Sep 2008 18:30:35 +0100 From: [EMAIL PROTECTED] 
To: users@maven.apache.org Subject: Re: How to configure a JBoss to link to 
the webapp folder of a WAR project  Many apologies! My previous post had so 
many tipos I had to repost it here... Will be more careful in the future... 
and type slower too! :-D  Hi again,  Following a tip from John Newman I 
used this Eclipse plugin... http://andrei.gmxhome.de/filesync/  This allows 
us to configure an automated file copy operation for specific project folders 
to whatever folder we want to. So I configured the plugin to copy the webapp 
folder to the exploded war target folder and got the JSP/CSS/Images and JS 
files hot code replace working! (Thanks John!)  This is fine except for 
multi-module projects or dependent projects. For these I still cannot get 
hot-code replacement for classes since they are bundled as JARs even if the 
dependent projects are open in eclipse and workspace resolution is active im 
the Maven Eclipse Plugin.  Has anyone gotten further with this approach or a 
similar one?  Thanks,  On Mon, Sep 1, 2008 at 6:09 PM, Pedro Viegas [EMAIL 
PROTECTED] wrote:   Hi again,   Following a tip from John Newman I used 
this Eclipse plugin...  http://andrei.gmxhome.de/filesync/   This allows 
us to configure an automaed file copy operation for specific  project folders 
to whateve folder we want to.  So I configured the plugin to copy the webapp 
folder to the exploded wr  target folder ad got the JSP/CS/Images/JS files 
hot code replace working!  (Thans John!)   This is fine except for 
multi-module projects or dependant projects.  For these I still cannot get 
hot-code replacement for classes since they  are bundled as JARs even if the 
dependant projects are open in eclipsed and  wirkspace resolution is active 
um the Maven Eclise Plugin.   Has anyone gotten further with this approuch 
or a similar one?   Thanks, On Fri, Jul 11, 2008 at 11:21 AM, 
Pedro Viegas [EMAIL PROTECTED]wrote:   Hi David,   Sorry for to 
confusing post.  I'll try to explain better.   I have hot deployment 
in place. It is working, just not in the best way.  What I have suceeded so 
far:   I have setup JBoss deploy URLs to search my  
${maven.project}/target/{projectWAR}  I deploy using mvn war:exploded so I 
don't have to wait for the  compression phase.  For JBoss to accept a dir 
like a WAR (that does not end in .war - maven's  notation), I have 
configured the war plugin to create the exploded dir with  .war sufix. 
Like so...   !-- Configure the deploy dir as a exploded war file. For 
JBoss to use it!  --  plugin  
artifactIdmaven-war-plugin/artifactId  configuration  
webappDirectory  
${project.build.directory}/${project.build.finalName}.war/  
webappDirectory  /configuration  /plugin  And this is what I 
have.  All java classes get hot replaced by JBoss Eclipse plugin OK.  
JSP's are not!  To refresh JSP after I change them I issue a mvn 
war:exploded each time I  want to.   This is the best I got so far. 
It's not a bad solution. It takes only a  few seconds for the projecto to 
refresh the JSP. BUT this is a bit  workarround and having to set this up 
for each project...   Anyone has a better aprouch?   Thanks,  
  On Fri, Jul 11, 2008 at 12:35 AM, David Brown [EMAIL PROTECTED]  
wrote:   Hello Pedro, I'm not sure by your statements if you are using a 
HOT  deploy or not. In the case you are using a hot deploy try using an 
exploded  war under server/default/deploy and see if you see any 
difference. The JSPs  are compiled by the container once they are invoked 
at the browser. As an  experiment: create a second virtual JBoss 
(4.2.1/4.2.2) server on a port  like 8989 that deploys a single JSP and see 
if you can get it to recompile.  There are instructions int the JBoss 
/examples directory on how to do this.  HTH, David.  Pedro Viegas wrote 
..   Hi all, I've been trying to build an environment for 
developing web  applications   that generate WAR files with a 
productive debug/development process.   I'm using JBoss as the application 
server. Tomcat is a no go and Jetty  has   issues with some bytecode 
APIs I use. All is working fine in the traditional way. I package 
the WAR, deploy  it to   the server with the cargo plugin and test 
it.   Through JBoss Eclipse Plugin I have debug and hotcode replacement 
for  java   classes

Re: How to configure a JBoss to link to the webapp folder of a WAR project

2008-07-11 Thread Pedro Viegas
Hi Siarhei,

I too use JBoss tools and Eclipse Plugin.
How did you set this up?

Thanks,

On Thu, Jul 10, 2008 at 8:08 PM, Siarhei Dudzin [EMAIL PROTECTED]
wrote:

 What's wrong with JBoss Tools? We use maven-eclipse-plugin + JBoss Tools,
 works well so far...

 Siarhei

 On Thu, Jul 10, 2008 at 7:37 PM, Pedro Viegas [EMAIL PROTECTED]
 wrote:

  Hi all,
 
  I've been trying to build an environment for developing web applications
  that generate WAR files with a productive debug/development process.
  I'm using JBoss as the application server. Tomcat is a no go and Jetty
 has
  issues with some bytecode APIs I use.
 
  All is working fine in the traditional way. I package the WAR, deploy it
 to
  the server with the cargo plugin and test it.
  Through JBoss Eclipse Plugin I have debug and hotcode replacement for
 java
  classes, BUT not for JSPs!
  How can I make JBoss aware of JSP/CSS/JS changes?
 
  I have seen a bunch of examples for Tomcat and Jetty to indicate a path
 to
  the webapp folder.
  For JBoss the only solution so far has always included building an
 exploded
  WAR somewhere and point JBoss deploy URLs to it so it deploys them.
  Even the solution of using the war:inplace is not functional since JBoss
  deployer only scans WAR/JAR/EAR/etc files. A directory like
  src/main/webapp is simply ignored.
 
  All I wanted to do was deploy the application through Maven a Eclipse
  lanched debug JBoss instance and be able to change my JSP files and
 refresh
  them on the browser.
  As anyone been able to do this?
 
  Thanks,
 
  --
  Pedro Viegas
 
  
  Walking on water and developing software
  from a specification are easy if both are
  frozen.
  - Edward V. Berard
 




-- 
Pedro Viegas


Walking on water and developing software
from a specification are easy if both are
frozen.
- Edward V. Berard


Re: How to configure a JBoss to link to the webapp folder of a WAR project

2008-07-11 Thread Pedro Viegas
Hi David,

Sorry for to confusing post.
I'll try to explain better.

I have hot deployment in place. It is working, just not in the best way.
What I have suceeded so far:

I have setup JBoss deploy URLs to search my
${maven.project}/target/{projectWAR}
I deploy using mvn war:exploded so I don't have to wait for the compression
phase.
For JBoss to accept a dir like a WAR (that does not end in .war - maven's
notation), I have configured the war plugin to create the exploded dir with
.war sufix. Like so...

!-- Configure the deploy dir as a exploded war file. For JBoss to use it!
--
plugin
artifactIdmaven-war-plugin/artifactId
configuration
webappDirectory${project.build.directory}/${project.build.finalName}.war/
webappDirectory
/configuration
/plugin
And this is what I have.
All java classes get hot replaced by JBoss Eclipse plugin OK.
JSP's are not!
To refresh JSP after I change them I issue a mvn war:exploded each time I
want to.

This is the best I got so far. It's not a bad solution. It takes only a few
seconds for the projecto to refresh the JSP. BUT this is a bit workarround
and having to set this up for each project...

Anyone has a better aprouch?

Thanks,


On Fri, Jul 11, 2008 at 12:35 AM, David Brown [EMAIL PROTECTED]
wrote:

 Hello Pedro, I'm not sure by your statements if you are using a HOT deploy
 or not. In the case you are using a hot deploy try using an exploded war
 under server/default/deploy and see if you see any difference. The JSPs are
 compiled by the container once they are invoked at the browser. As an
 experiment: create a second virtual JBoss (4.2.1/4.2.2) server on a port
 like 8989 that deploys a single JSP and see if you can get it to recompile.
 There are instructions int the JBoss /examples directory on how to do this.
 HTH, David.
 Pedro Viegas wrote ..
   Hi all,
 
  I've been trying to build an environment for developing web applications
  that generate WAR files with a productive debug/development process.
  I'm using JBoss as the application server. Tomcat is a no go and Jetty
 has
  issues with some bytecode APIs I use.
 
  All is working fine in the traditional way. I package the WAR, deploy it
 to
  the server with the cargo plugin and test it.
  Through JBoss Eclipse Plugin I have debug and hotcode replacement for
 java
  classes, BUT not for JSPs!
  How can I make JBoss aware of JSP/CSS/JS changes?
 
  I have seen a bunch of examples for Tomcat and Jetty to indicate a path
 to
  the webapp folder.
  For JBoss the only solution so far has always included building an
 exploded
  WAR somewhere and point JBoss deploy URLs to it so it deploys them.
  Even the solution of using the war:inplace is not functional since JBoss
  deployer only scans WAR/JAR/EAR/etc files. A directory like
  src/main/webapp is simply ignored.
 
  All I wanted to do was deploy the application through Maven a Eclipse
  lanched debug JBoss instance and be able to change my JSP files and
 refresh
  them on the browser.
  As anyone been able to do this?
 
  Thanks,
 
  --
  Pedro Viegas
 
  
  Walking on water and developing software
  from a specification are easy if both are
  frozen.
  - Edward V. Berard
 Yet some, not wise, go to the other side of the globe, to barbarous and
 unhealthy regions, and devote ten or twenty years, in that they may
 live,-that is, keep comfortably warm,- and die in New England at last.

 Henry David Thoreau - Walden - 1845


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




-- 
Pedro Viegas


Walking on water and developing software
from a specification are easy if both are
frozen.
- Edward V. Berard


Re: How to configure a JBoss to link to the webapp folder of a WAR project

2008-07-11 Thread Pedro Viegas
By the way... one more thing...

There is also the option of using the:
mvn war:inplace

This should solve all my problems... except that I cannot change the webapp
folder to webapp.war! And since the webapp folder does not terminate with a
.war extension JBoss does not deploy it. Tries to but issues a
deployer: null error message, since it does not have a deployer for null
extension files.

Am I barking at the wrong tree here?

Thanks,

On Fri, Jul 11, 2008 at 11:21 AM, Pedro Viegas [EMAIL PROTECTED] wrote:

 Hi David,

 Sorry for to confusing post.
 I'll try to explain better.

 I have hot deployment in place. It is working, just not in the best way.
 What I have suceeded so far:

 I have setup JBoss deploy URLs to search my
 ${maven.project}/target/{projectWAR}
 I deploy using mvn war:exploded so I don't have to wait for the compression
 phase.
 For JBoss to accept a dir like a WAR (that does not end in .war - maven's
 notation), I have configured the war plugin to create the exploded dir with
 .war sufix. Like so...

 !-- Configure the deploy dir as a exploded war file. For JBoss to use it!
 --
 plugin
 artifactIdmaven-war-plugin/artifactId
 configuration
 webappDirectory${project.build.directory}/${project.build.finalName}.war
 /webappDirectory
 /configuration
 /plugin
 And this is what I have.
 All java classes get hot replaced by JBoss Eclipse plugin OK.
 JSP's are not!
 To refresh JSP after I change them I issue a mvn war:exploded each time I
 want to.

 This is the best I got so far. It's not a bad solution. It takes only a few
 seconds for the projecto to refresh the JSP. BUT this is a bit workarround
 and having to set this up for each project...

 Anyone has a better aprouch?

 Thanks,


   On Fri, Jul 11, 2008 at 12:35 AM, David Brown [EMAIL PROTECTED]
 wrote:

 Hello Pedro, I'm not sure by your statements if you are using a HOT deploy
 or not. In the case you are using a hot deploy try using an exploded war
 under server/default/deploy and see if you see any difference. The JSPs are
 compiled by the container once they are invoked at the browser. As an
 experiment: create a second virtual JBoss (4.2.1/4.2.2) server on a port
 like 8989 that deploys a single JSP and see if you can get it to recompile.
 There are instructions int the JBoss /examples directory on how to do this.
 HTH, David.
 Pedro Viegas wrote ..
   Hi all,
 
  I've been trying to build an environment for developing web applications
  that generate WAR files with a productive debug/development process.
  I'm using JBoss as the application server. Tomcat is a no go and Jetty
 has
  issues with some bytecode APIs I use.
 
  All is working fine in the traditional way. I package the WAR, deploy it
 to
  the server with the cargo plugin and test it.
  Through JBoss Eclipse Plugin I have debug and hotcode replacement for
 java
  classes, BUT not for JSPs!
  How can I make JBoss aware of JSP/CSS/JS changes?
 
  I have seen a bunch of examples for Tomcat and Jetty to indicate a path
 to
  the webapp folder.
  For JBoss the only solution so far has always included building an
 exploded
  WAR somewhere and point JBoss deploy URLs to it so it deploys them.
  Even the solution of using the war:inplace is not functional since JBoss
  deployer only scans WAR/JAR/EAR/etc files. A directory like
  src/main/webapp is simply ignored.
 
  All I wanted to do was deploy the application through Maven a Eclipse
  lanched debug JBoss instance and be able to change my JSP files and
 refresh
  them on the browser.
  As anyone been able to do this?
 
  Thanks,
 
  --
  Pedro Viegas
 
  
  Walking on water and developing software
  from a specification are easy if both are
  frozen.
  - Edward V. Berard
 Yet some, not wise, go to the other side of the globe, to barbarous and
 unhealthy regions, and devote ten or twenty years, in that they may
 live,-that is, keep comfortably warm,- and die in New England at last.

 Henry David Thoreau - Walden - 1845


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




 --
 Pedro Viegas

 
 Walking on water and developing software
 from a specification are easy if both are
 frozen.
 - Edward V. Berard




-- 
Pedro Viegas


Walking on water and developing software
from a specification are easy if both are
frozen.
- Edward V. Berard


Re: How to configure a JBoss to link to the webapp folder of a WAR project

2008-07-11 Thread Siarhei Dudzin
Hi,

It pretty much 'just works'. I have a multi module eclipse (Eclipse Europa
version) projects with WTP 2 enabled in the maven-eclipse-plugin
configuration.
No m2eclipse plugin (tried it - but put it aside) - just
maven-eclipse-plugin.

Just download sources of maven-eclipse-plugin - it has several test projects
that can give you an idea for configuring your projects.

JBoss Tools is built on top of WTP 2 and does exploded deployment right to
JBoss hot deploy directory.

Regards,
Siarhei

On Fri, Jul 11, 2008 at 12:14 PM, Pedro Viegas [EMAIL PROTECTED] wrote:

 Hi Siarhei,

 I too use JBoss tools and Eclipse Plugin.
 How did you set this up?

 Thanks,

 On Thu, Jul 10, 2008 at 8:08 PM, Siarhei Dudzin [EMAIL PROTECTED]
 wrote:

  What's wrong with JBoss Tools? We use maven-eclipse-plugin + JBoss Tools,
  works well so far...
 
  Siarhei
 
  On Thu, Jul 10, 2008 at 7:37 PM, Pedro Viegas [EMAIL PROTECTED]
  wrote:
 
   Hi all,
  
   I've been trying to build an environment for developing web
 applications
   that generate WAR files with a productive debug/development process.
   I'm using JBoss as the application server. Tomcat is a no go and Jetty
  has
   issues with some bytecode APIs I use.
  
   All is working fine in the traditional way. I package the WAR, deploy
 it
  to
   the server with the cargo plugin and test it.
   Through JBoss Eclipse Plugin I have debug and hotcode replacement for
  java
   classes, BUT not for JSPs!
   How can I make JBoss aware of JSP/CSS/JS changes?
  
   I have seen a bunch of examples for Tomcat and Jetty to indicate a path
  to
   the webapp folder.
   For JBoss the only solution so far has always included building an
  exploded
   WAR somewhere and point JBoss deploy URLs to it so it deploys them.
   Even the solution of using the war:inplace is not functional since
 JBoss
   deployer only scans WAR/JAR/EAR/etc files. A directory like
   src/main/webapp is simply ignored.
  
   All I wanted to do was deploy the application through Maven a Eclipse
   lanched debug JBoss instance and be able to change my JSP files and
  refresh
   them on the browser.
   As anyone been able to do this?
  
   Thanks,
  
   --
   Pedro Viegas
  
   
   Walking on water and developing software
   from a specification are easy if both are
   frozen.
   - Edward V. Berard
  
 



 --
 Pedro Viegas

 
 Walking on water and developing software
 from a specification are easy if both are
 frozen.
 - Edward V. Berard



Re: How to configure a JBoss to link to the webapp folder of a WAR project

2008-07-10 Thread Siarhei Dudzin
What's wrong with JBoss Tools? We use maven-eclipse-plugin + JBoss Tools,
works well so far...

Siarhei

On Thu, Jul 10, 2008 at 7:37 PM, Pedro Viegas [EMAIL PROTECTED] wrote:

 Hi all,

 I've been trying to build an environment for developing web applications
 that generate WAR files with a productive debug/development process.
 I'm using JBoss as the application server. Tomcat is a no go and Jetty has
 issues with some bytecode APIs I use.

 All is working fine in the traditional way. I package the WAR, deploy it to
 the server with the cargo plugin and test it.
 Through JBoss Eclipse Plugin I have debug and hotcode replacement for java
 classes, BUT not for JSPs!
 How can I make JBoss aware of JSP/CSS/JS changes?

 I have seen a bunch of examples for Tomcat and Jetty to indicate a path to
 the webapp folder.
 For JBoss the only solution so far has always included building an exploded
 WAR somewhere and point JBoss deploy URLs to it so it deploys them.
 Even the solution of using the war:inplace is not functional since JBoss
 deployer only scans WAR/JAR/EAR/etc files. A directory like
 src/main/webapp is simply ignored.

 All I wanted to do was deploy the application through Maven a Eclipse
 lanched debug JBoss instance and be able to change my JSP files and refresh
 them on the browser.
 As anyone been able to do this?

 Thanks,

 --
 Pedro Viegas

 
 Walking on water and developing software
 from a specification are easy if both are
 frozen.
 - Edward V. Berard



Re: How to configure a JBoss to link to the webapp folder of a WAR project

2008-07-10 Thread David Brown
Hello Pedro, I'm not sure by your statements if you are using a HOT deploy or 
not. In the case you are using a hot deploy try using an exploded war under 
server/default/deploy and see if you see any difference. The JSPs are compiled 
by the container once they are invoked at the browser. As an experiment: create 
a second virtual JBoss (4.2.1/4.2.2) server on a port like 8989 that deploys a 
single JSP and see if you can get it to recompile. There are instructions int 
the JBoss /examples directory on how to do this. HTH, David.
Pedro Viegas wrote ..
 Hi all,
 
 I've been trying to build an environment for developing web applications
 that generate WAR files with a productive debug/development process.
 I'm using JBoss as the application server. Tomcat is a no go and Jetty has
 issues with some bytecode APIs I use.
 
 All is working fine in the traditional way. I package the WAR, deploy it to
 the server with the cargo plugin and test it.
 Through JBoss Eclipse Plugin I have debug and hotcode replacement for java
 classes, BUT not for JSPs!
 How can I make JBoss aware of JSP/CSS/JS changes?
 
 I have seen a bunch of examples for Tomcat and Jetty to indicate a path to
 the webapp folder.
 For JBoss the only solution so far has always included building an exploded
 WAR somewhere and point JBoss deploy URLs to it so it deploys them.
 Even the solution of using the war:inplace is not functional since JBoss
 deployer only scans WAR/JAR/EAR/etc files. A directory like
 src/main/webapp is simply ignored.
 
 All I wanted to do was deploy the application through Maven a Eclipse
 lanched debug JBoss instance and be able to change my JSP files and refresh
 them on the browser.
 As anyone been able to do this?
 
 Thanks,
 
 -- 
 Pedro Viegas
 
 
 Walking on water and developing software
 from a specification are easy if both are
 frozen.
 - Edward V. Berard
Yet some, not wise, go to the other side of the globe, to barbarous and 
unhealthy regions, and devote ten or twenty years, in that they may live,-that 
is, keep comfortably warm,- and die in New England at last. 

Henry David Thoreau - Walden - 1845


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



RE: how to configure a mirror?

2008-04-04 Thread Brian E. Fox
You might try to avoid the mirror all together. Instead of mirroring central, 
change the url in a profile to be what you want it to be. There's no good way 
to change the mirror url if the property didn't work.

-Original Message-
From: Stephane Nicoll [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 04, 2008 7:25 AM
To: Maven Users List
Subject: how to configure a mirror?

Hi,

I am trying to configure a mirror. We have development teams around
the world so I would like to be able to configure the central mirror
with a property that would be define in a profile for instance
(developers may travel around so they need to use the closest mirror).

We can't set a mirror in a profile.

I tried to do something like

mirrors
mirror
idinternal/id
nameReleases - Liege repository/name
url${internal.url}/url
mirrorOfcentral/mirrorOf
/mirror
/mirrors

And define internal.url in a profile that is in the activeProfiles
section of the settings but it did not replaced the value.

Any solution to this problem?

Thanks,
Stéphane

-- 
Large Systems Suck: This rule is 100% transitive. If you build one,
you suck -- S.Yegge

-
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 configure the location of settings.xml?

2008-01-02 Thread Erez Nahir
you can use mvn -s  Alternate path for the user settings file 

Erez.

On Jan 2, 2008 5:05 PM, Thomas Chang [EMAIL PROTECTED] wrote:

 Hi all,

  Normally the settings.xml is located under /m2_home/conf. Is it
 possible to move this file anywhere for example /myproject/conf? If yes,
 how?

  Regards

  Thomas


 -
 Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s
 mit dem  neuen Yahoo! Mail.



Re: How to configure the location of settings.xml?

2008-01-02 Thread Wayne Fay
It sounds like you should probably be using a profiles.xml file in
your project root directory (same dir as pom.xml), rather than
configuring a new location for your settings.xml file etc.

Wayne

On 1/2/08, Erez Nahir [EMAIL PROTECTED] wrote:
 you can use mvn -s  Alternate path for the user settings file 

 Erez.

 On Jan 2, 2008 5:05 PM, Thomas Chang [EMAIL PROTECTED] wrote:

  Hi all,
 
   Normally the settings.xml is located under /m2_home/conf. Is it
  possible to move this file anywhere for example /myproject/conf? If yes,
  how?
 
   Regards
 
   Thomas
 
 
  -
  Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie´s
  mit dem  neuen Yahoo! Mail.
 


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



Re: How to configure the location of settings.xml?

2008-01-02 Thread Thomas Chang
Thanks for the reply. But I think this way is a little bit complecated since 
everytime you run mvn you have to type the alternate path.
   
   
  **
  you can use mvn -s  Alternate path for the user settings file 

Erez.

On Jan 2, 2008 5:05 PM, Thomas Chang [EMAIL PROTECTED] wrote:

 Hi all,

  Normally the settings.xml is located under /m2_home/conf. Is it
 possible to move this file anywhere for example /myproject/conf? If
 yes,
 how?

  Regards

  Thomas



   
-
Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker. 

Re: How to configure the location of settings.xml?

2008-01-02 Thread Thomas Chang
Your answer sounds good. But could the profile.xml be called? Have you an 
example?
   
   
  **
  It sounds like you should probably be using a profiles.xml file in
your project root directory (same dir as pom.xml), rather than
configuring a new location for your settings.xml file etc.

Wayne

On 1/2/08, Erez Nahir [EMAIL PROTECTED] wrote:
 you can use mvn -s  Alternate path for the user settings file 

 Erez.

 On Jan 2, 2008 5:05 PM, Thomas Chang [EMAIL PROTECTED] wrote:

  Hi all,
 
   Normally the settings.xml is located under /m2_home/conf. Is it
  possible to move this file anywhere for example /myproject/conf? If
 yes,
  how?
 
   Regards
 
   Thomas
 
 
  -
  Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen
 Sie´s
  mit dem  neuen Yahoo! Mail.
 


   
-
Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern.

RE: How to configure the location of settings.xml?

2008-01-02 Thread Brian E. Fox
I've been following these threads and I think you're going way outside of what 
should be needed. You originally wanted to define a group and version as a 
property, presumably because you want to centrally control it rather than it 
would actually change it.

The proper way to control the version is via a dependencyManagement section in 
a parent pom that is centrally controlled (and shared by all your projects). 
You could also define the properties in a parent pom as well. 

You do have the option of defining profiles in the pom.xml (again most likely 
from a commonly inherited one) or with the profiles.xml, but I don't think this 
is what you really need.

--Brian

-Original Message-
From: Thomas Chang [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, January 02, 2008 10:26 AM
To: Maven Users List
Subject: Re: How to configure the location of settings.xml?

Your answer sounds good. But could the profile.xml be called? Have you an 
example?
   
   
  **
  It sounds like you should probably be using a profiles.xml file in
your project root directory (same dir as pom.xml), rather than
configuring a new location for your settings.xml file etc.

Wayne

On 1/2/08, Erez Nahir [EMAIL PROTECTED] wrote:
 you can use mvn -s  Alternate path for the user settings file 

 Erez.

 On Jan 2, 2008 5:05 PM, Thomas Chang [EMAIL PROTECTED] wrote:

  Hi all,
 
   Normally the settings.xml is located under /m2_home/conf. Is it
  possible to move this file anywhere for example /myproject/conf? If
 yes,
  how?
 
   Regards
 
   Thomas
 
 
  -
  Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen
 Sie´s
  mit dem  neuen Yahoo! Mail.
 


   
-
Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern.

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



Re: How to configure the location of settings.xml?

2008-01-02 Thread Andrew Robinson
assuming bash, add this to your .bashrc (substitute mvn absolute path
as needed):

alias mvn=/usr/bin/mvn -s your file here $*

If you are using windows or not using bash you can create a bat file
or a mvn shell script that occurs earlier in your PATH so that it gets
picked up first.

just make sure that the mvn in your file is fully qualified or else
you get a nice infinite loop.

-Andrew


On Jan 2, 2008 8:19 AM, Thomas Chang [EMAIL PROTECTED] wrote:
 Thanks for the reply. But I think this way is a little bit complecated since 
 everytime you run mvn you have to type the alternate path.


   **
   you can use mvn -s  Alternate path for the user settings file 

 Erez.

 On Jan 2, 2008 5:05 PM, Thomas Chang [EMAIL PROTECTED] wrote:

  Hi all,
 
   Normally the settings.xml is located under /m2_home/conf. Is it
  possible to move this file anywhere for example /myproject/conf? If
  yes,
  how?
 
   Regards
 
   Thomas
 



 -
 Ihre erste Baustelle? Wissenswertes für Bastler und Hobby Handwerker.

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



Re: How to configure the location of settings.xml?

2008-01-02 Thread Wayne Fay
I replied to your other thread. Please go read the documentation.

Wayne

On 1/2/08, Thomas Chang [EMAIL PROTECTED] wrote:
 Your answer sounds good. But could the profile.xml be called? Have you an 
 example?


  **
  It sounds like you should probably be using a profiles.xml file in
 your project root directory (same dir as pom.xml), rather than
 configuring a new location for your settings.xml file etc.

 Wayne

 On 1/2/08, Erez Nahir [EMAIL PROTECTED] wrote:
  you can use mvn -s  Alternate path for the user settings file 
 
  Erez.
 
  On Jan 2, 2008 5:05 PM, Thomas Chang [EMAIL PROTECTED] wrote:
 
   Hi all,
  
Normally the settings.xml is located under /m2_home/conf. Is it
   possible to move this file anywhere for example /myproject/conf? If
  yes,
   how?
  
Regards
  
Thomas
  
  
   -
   Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen
  Sie´s
   mit dem  neuen Yahoo! Mail.
  



 -
 Ihr erstes Baby? Holen Sie sich Tipps von anderen Eltern.

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



Re: how to configure module site report?

2007-09-28 Thread Dennis Lundberg

You can see the various options for the site:stage on this page:

http://maven.apache.org/plugins/maven-site-plugin/stage-mojo.html

Yan Huang wrote:

let me rephrase my 1st question: is there a way to configure the generated
directory name when I run mvn site:stage? It seems to me that it uses the
name tag in pom.xml from the top directory. For example, if I have this
defined in the top level:

  groupIdmycompany/groupId
  artifactIdmyexample-pom/artifactId
  version1.0-SNAPSHOT/version
  nameExample POM/name
  packagingpom/packaging

When I run mv site:stage, it create Example POM directory under the
specified stageDirectory location. Is there a way to use different name in
the run?

Thanks

On 9/25/07, Jim Sellers [EMAIL PROTECTED] wrote:

1) auto generate and modify it manually later?  Isn't the point not to
manually edit any generated artifacts?  I'm assuming that I'm not
understanding that question so I'm going to skip that...

2) I don't believe that you can skip any phases of the lifecycle.  I don't
see how maven could use data from a previous run... I think that maven
assumes any data from a previous run is stale data, if it exists.

HTH
Jim


On 9/25/07, Yan Huang [EMAIL PROTECTED] wrote:

Thanks, That works.

Two more questions:)
1. is there a way to auto-generate a site descriptor based on the info

in

pom.xml? later, I can just alter that descriptor if needed.
2. is there a way (on the command line) to skip all previous phases but
just
site one when I just want to get the report after previous successful
run?

Thanks
Yan

On 9/25/07, Dennis Lundberg [EMAIL PROTECTED] wrote:

Yan Huang wrote:

Hello,

I have a bunch of modules under the top project. When I run the site

report,

the report link to the modules are defined as
target/site/module1/index.html. How do I configure project-info

plug-in to

generate the link to module1/target/site/index.html instead?

The short answer is: You can't.

The slightly longer answer is: In a normal of the site-plugin, i.e.

'mvn

site:site' the plugin will not try to create links between the

different

modules' target directories. When you deploy your site with 'mvn
site:deploy' the links will be correct. If you want to check the links
prior to deployment, you can use 'mvn site:stage' which deploys the
complete site to a (local) staging place.


Thanks
Yan



--
Dennis Lundberg

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







--
Dennis Lundberg

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



Re: how to configure module site report?

2007-09-25 Thread Dennis Lundberg

Yan Huang wrote:

Hello,

I have a bunch of modules under the top project. When I run the site report,
the report link to the modules are defined as
target/site/module1/index.html. How do I configure project-info plug-in to
generate the link to module1/target/site/index.html instead?


The short answer is: You can't.

The slightly longer answer is: In a normal of the site-plugin, i.e. 'mvn 
site:site' the plugin will not try to create links between the different 
modules' target directories. When you deploy your site with 'mvn 
site:deploy' the links will be correct. If you want to check the links 
prior to deployment, you can use 'mvn site:stage' which deploys the 
complete site to a (local) staging place.




Thanks
Yan




--
Dennis Lundberg

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



Re: how to configure module site report?

2007-09-25 Thread Yan Huang
Thanks, That works.

Two more questions:)
1. is there a way to auto-generate a site descriptor based on the info in
pom.xml? later, I can just alter that descriptor if needed.
2. is there a way (on the command line) to skip all previous phases but just
site one when I just want to get the report after previous successful run?

Thanks
Yan

On 9/25/07, Dennis Lundberg [EMAIL PROTECTED] wrote:

 Yan Huang wrote:
  Hello,
 
  I have a bunch of modules under the top project. When I run the site
 report,
  the report link to the modules are defined as
  target/site/module1/index.html. How do I configure project-info
 plug-in to
  generate the link to module1/target/site/index.html instead?

 The short answer is: You can't.

 The slightly longer answer is: In a normal of the site-plugin, i.e. 'mvn
 site:site' the plugin will not try to create links between the different
 modules' target directories. When you deploy your site with 'mvn
 site:deploy' the links will be correct. If you want to check the links
 prior to deployment, you can use 'mvn site:stage' which deploys the
 complete site to a (local) staging place.

 
  Thanks
  Yan
 


 --
 Dennis Lundberg

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




Re: how to configure module site report?

2007-09-25 Thread Jim Sellers
1) auto generate and modify it manually later?  Isn't the point not to
manually edit any generated artifacts?  I'm assuming that I'm not
understanding that question so I'm going to skip that...

2) I don't believe that you can skip any phases of the lifecycle.  I don't
see how maven could use data from a previous run... I think that maven
assumes any data from a previous run is stale data, if it exists.

HTH
Jim


On 9/25/07, Yan Huang [EMAIL PROTECTED] wrote:

 Thanks, That works.

 Two more questions:)
 1. is there a way to auto-generate a site descriptor based on the info in
 pom.xml? later, I can just alter that descriptor if needed.
 2. is there a way (on the command line) to skip all previous phases but
 just
 site one when I just want to get the report after previous successful
 run?

 Thanks
 Yan

 On 9/25/07, Dennis Lundberg [EMAIL PROTECTED] wrote:
 
  Yan Huang wrote:
   Hello,
  
   I have a bunch of modules under the top project. When I run the site
  report,
   the report link to the modules are defined as
   target/site/module1/index.html. How do I configure project-info
  plug-in to
   generate the link to module1/target/site/index.html instead?
 
  The short answer is: You can't.
 
  The slightly longer answer is: In a normal of the site-plugin, i.e. 'mvn
  site:site' the plugin will not try to create links between the different
  modules' target directories. When you deploy your site with 'mvn
  site:deploy' the links will be correct. If you want to check the links
  prior to deployment, you can use 'mvn site:stage' which deploys the
  complete site to a (local) staging place.
 
  
   Thanks
   Yan
  
 
 
  --
  Dennis Lundberg
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



Re: how to configure module site report?

2007-09-25 Thread Yan Huang
let me rephrase my 1st question: is there a way to configure the generated
directory name when I run mvn site:stage? It seems to me that it uses the
name tag in pom.xml from the top directory. For example, if I have this
defined in the top level:

  groupIdmycompany/groupId
  artifactIdmyexample-pom/artifactId
  version1.0-SNAPSHOT/version
  nameExample POM/name
  packagingpom/packaging

When I run mv site:stage, it create Example POM directory under the
specified stageDirectory location. Is there a way to use different name in
the run?

Thanks

On 9/25/07, Jim Sellers [EMAIL PROTECTED] wrote:

 1) auto generate and modify it manually later?  Isn't the point not to
 manually edit any generated artifacts?  I'm assuming that I'm not
 understanding that question so I'm going to skip that...

 2) I don't believe that you can skip any phases of the lifecycle.  I don't
 see how maven could use data from a previous run... I think that maven
 assumes any data from a previous run is stale data, if it exists.

 HTH
 Jim


 On 9/25/07, Yan Huang [EMAIL PROTECTED] wrote:
 
  Thanks, That works.
 
  Two more questions:)
  1. is there a way to auto-generate a site descriptor based on the info
 in
  pom.xml? later, I can just alter that descriptor if needed.
  2. is there a way (on the command line) to skip all previous phases but
  just
  site one when I just want to get the report after previous successful
  run?
 
  Thanks
  Yan
 
  On 9/25/07, Dennis Lundberg [EMAIL PROTECTED] wrote:
  
   Yan Huang wrote:
Hello,
   
I have a bunch of modules under the top project. When I run the site
   report,
the report link to the modules are defined as
target/site/module1/index.html. How do I configure project-info
   plug-in to
generate the link to module1/target/site/index.html instead?
  
   The short answer is: You can't.
  
   The slightly longer answer is: In a normal of the site-plugin, i.e.
 'mvn
   site:site' the plugin will not try to create links between the
 different
   modules' target directories. When you deploy your site with 'mvn
   site:deploy' the links will be correct. If you want to check the links
   prior to deployment, you can use 'mvn site:stage' which deploys the
   complete site to a (local) staging place.
  
   
Thanks
Yan
   
  
  
   --
   Dennis Lundberg
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
 



Re: how to configure continuum to trigger a build after a commit / ignore

2007-09-16 Thread Marco Mistroni
hello,
 i spoke too soon... continuum did a build hwile i was writing this
email
apologize for bothering

regards
 marco

On 9/16/07, Marco Mistroni [EMAIL PROTECTED] wrote:

 hi all,
  i have been running continuum since yesterday.. (i come from CControl
 background)

 somehow, i cannot trigger continuum todo a build when i do a commit in my
 project.
 only way to build projects is to force ab uild from the userinterface..

 could anyone help me out? am i missing config parameters?

 thank sin advance and regards
  marco



Re: how to configure Default Repository Layout for local repository

2007-07-04 Thread Andrew Williams
Using install:install-file or deploy:deploy-file will enable you to  
install your legacy named jars into the repository format by  
passing metadata on the command line.
Though jars may not have the version in their name they still have  
metadata or a release number associated with them where this  
information will be available.


Andy

On 3 Jul 2007, at 20:56, Harish Kachoria wrote:



I understand.. But the bad thing is backward compatiablty.
Maven 1.0 support  tag by which we can avoid version number. and  
Maven 2.0

not.

and renaming of legacy jar is not a good idea. Because they are  
provided by
third party. and because Maven don't like the name of jar, so  
rename the jar


Maven designer should consider the fact that Many of Legacy jars do  
not have
version numbers. and Mangement always afraid to touch such jars.  
even if it

is a small change.

I think I have to convince for renaming jar on development env.



Wayne Fay wrote:


Your only option (if you want to continue using Maven) is to starting
using versions.

Even if you use scope=system you still need to set a version in the
 node. And system scope is just a bad idea in the first
place, generally.

Wayne

On 7/3/07, Harish Kachoria  wrote:


OK it works from me.. I created remote repo on my local machine.
and maven downloded the jars stored them in the way he likes.

still I have one problem, my libraries does not have any version  
number.

and
version number is mandatory for maven 2.0. ( tag had been removed in
maven 2.0)
so now I have two solution -
- rename all jar with some fake version(may be 1.0) and then  
convince

management for this. which I know won't happen
- forget maven. which I don't prefer. (this was my idea to use  
maven in

this
project)

so can you find any other solution.





Carlos Sanchez-4 wrote:


you can't change the local repository layout, it's a cache for  
maven

and it shouldn't matter how it's stored

you can change the remote repositories layout, so just create a  
remote

repo for your projects in whatever style you want, although not a
great idea

On 7/3/07, Harish Kachoria  wrote:


It would be better if I can explain my problem then you can  
suggest me

some
solution

Currently I have one project which has around 30+sub projects  
(Which I

can
say modules)
Each sub project has its own ear which contains 1 war module  
and 1 ejb

module.

There are some common libraries also which are shared accros the
projects.

In development env we copy this library at local location and  
use them

from
JBuilder.

In production env, many ears are deployed (this project as well as

other

projects) and all common libraries are in server lib folder.

now I want to build one sub project using maven. and I need to  
refer

all

common libraries just for compilations (as we never include common
library
in EAR)

To use maven I need to define dependancy and needs to copy common

library

in
repo.

I wants to copy all jars in one folder of repo and trying to  
use it

but

with
Maven 2.0 it seems to be not possible.

If you have any alternate way then please let me know

--
View this message in context:

http://www.nabble.com/how-to-configure-Default-Repository-Layout- 
for-local-repository-tf4018468s177.html#a11417704

Sent from the Maven - Users mailing list archive at Nabble.com.


-- 
---

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





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

--- 
--

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





--
View this message in context:
http://www.nabble.com/how-to-configure-Default-Repository-Layout- 
for-local-repository-tf4018468s177.html#a11418660

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]




:arguing::arguing::arguing::arguing::arguing::arguing::arguing:
--
View this message in context: http://www.nabble.com/how-to- 
configure-Default-Repository-Layout-for-local-repository- 
tf4018468s177.html#a11419527

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 configure Default Repository Layout for local repository

2007-07-03 Thread Thorsten Heit
Hi,

 Default layout of maven 2.0 is a burden for me. as I have many jar with
 same
 group and if I need to use default layour of Maven 2.0 then I need to
 create
 seprate directory for each jar. 
 
 So please help me to configure legacy layout for local repository.
 
 I tried to configure it but could not suceed.
 
 IT would be very help fule if you can give me pom/setting configuration.

Why don't you just use mvn deploy:deploy-file or mvn install:install-file? 
Maven automatically creates the necessary directory structure for you.


http://maven.apache.org/plugins/maven-install-plugin/
http://maven.apache.org/plugins/maven-deploy-plugin/
http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html


HTH

Thorsten

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



Re: how to configure Default Repository Layout for local repository

2007-07-03 Thread Harish Kachoria

I can use that command but presently I have almost more then 30 jar files.
and 
First It is bad idea to run same command for all this jar.
Second this structure will create 30 different folder in my repository which
I think a burden to maintain.
I like the maven 1.0 layout in which I can put all my jar (belongs to a
logical group) in single folder.
which I feel very easy to maintain. 


Thorsten Heit-3 wrote:
 
 Hi,
 
 Default layout of maven 2.0 is a burden for me. as I have many jar with
 same
 group and if I need to use default layour of Maven 2.0 then I need to
 create
 seprate directory for each jar. 
 
 So please help me to configure legacy layout for local repository.
 
 I tried to configure it but could not suceed.
 
 IT would be very help fule if you can give me pom/setting configuration.
 
 Why don't you just use mvn deploy:deploy-file or mvn
 install:install-file? Maven automatically creates the necessary directory
 structure for you.
 
 
 http://maven.apache.org/plugins/maven-install-plugin/
 http://maven.apache.org/plugins/maven-deploy-plugin/
 http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
 
 
 HTH
 
 Thorsten
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11414400
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 configure Default Repository Layout for local repository

2007-07-03 Thread Thorsten Heit
 I can use that command but presently I have almost more then 30 jar files.

If you don't want to do this by hand, let a short shell script do this for you, 
so what?

for i in *.jar; do
  file=`'echo $i | sed -e 's:\.jar::g'`
  mvn deploy:deploy-file -DgroupId=your group Id -DartifactId=$file 
-Dpackaging=jar -Dfile=$i ...
done


 and 
 First It is bad idea to run same command for all this jar.
 Second this structure will create 30 different folder in my repository
 which
 I think a burden to maintain.

Erm, just for curiosity: What do you mean by maintaining a folder that is 
accessed by Maven? Normally you just let Maven put stuff into its repository, 
and that's it. There's no need for manually interaction...


 I like the maven 1.0 layout in which I can put all my jar (belongs to a
 logical group) in single folder.
 which I feel very easy to maintain.

See above: What do you want to do manually in such a folder instead of letting 
Maven manage it?


Cheers

Thorsten

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



Re: how to configure Default Repository Layout for local repository

2007-07-03 Thread Wayne Fay

You can always access your M1 style repo with layoutlegacy/layout.
And you deploy to legacy as well with mvn deploy:deploy-file
-DrepositoryLayout=legacy.

So if you really believe the M1 layout is better, you can keep using it.

Wayne

On 7/3/07, Harish Kachoria [EMAIL PROTECTED] wrote:


I can use that command but presently I have almost more then 30 jar files.
and
First It is bad idea to run same command for all this jar.
Second this structure will create 30 different folder in my repository which
I think a burden to maintain.
I like the maven 1.0 layout in which I can put all my jar (belongs to a
logical group) in single folder.
which I feel very easy to maintain.


Thorsten Heit-3 wrote:

 Hi,

 Default layout of maven 2.0 is a burden for me. as I have many jar with
 same
 group and if I need to use default layour of Maven 2.0 then I need to
 create
 seprate directory for each jar.

 So please help me to configure legacy layout for local repository.

 I tried to configure it but could not suceed.

 IT would be very help fule if you can give me pom/setting configuration.

 Why don't you just use mvn deploy:deploy-file or mvn
 install:install-file? Maven automatically creates the necessary directory
 structure for you.


 http://maven.apache.org/plugins/maven-install-plugin/
 http://maven.apache.org/plugins/maven-deploy-plugin/
 http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html


 HTH

 Thorsten

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




--
View this message in context: 
http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11414400
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



Re: how to configure Default Repository Layout for local repository

2007-07-03 Thread Harish Kachoria

Thanks,
But still is there any way in maven 2.0 by which I can put all jar of a
group at one place. (not in different different directory)

I don't like directory structure which is just over burden for maintaince.
As of now we do not have any problems to maintain version of our jars.
But because maven thinks that we have problems in maintaing versions so we
should adopt maven directory structure is stupid idea.





Thorsten Heit-3 wrote:
 
 I can use that command but presently I have almost more then 30 jar
 files.
 
 If you don't want to do this by hand, let a short shell script do this for
 you, so what?
 
 for i in *.jar; do
   file=`'echo $i | sed -e 's:\.jar::g'`
   mvn deploy:deploy-file -DgroupId=your group Id -DartifactId=$file
 -Dpackaging=jar -Dfile=$i ...
 done
 
 
 and 
 First It is bad idea to run same command for all this jar.
 Second this structure will create 30 different folder in my repository
 which
 I think a burden to maintain.
 
 Erm, just for curiosity: What do you mean by maintaining a folder that is
 accessed by Maven? Normally you just let Maven put stuff into its
 repository, and that's it. There's no need for manually interaction...
 
 
 I like the maven 1.0 layout in which I can put all my jar (belongs to a
 logical group) in single folder.
 which I feel very easy to maintain.
 
 See above: What do you want to do manually in such a folder instead of
 letting Maven manage it?
 
 
 Cheers
 
 Thorsten
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11414810
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 configure Default Repository Layout for local repository

2007-07-03 Thread Harish Kachoria

Thanks Wayne

Can you please give me the sytax for this. I tried various systax but it
did't worked.
please paste your Setting file which contains this setting it would be very
helpful



Wayne Fay wrote:
 
 You can always access your M1 style repo with layoutlegacy/layout.
 And you deploy to legacy as well with mvn deploy:deploy-file
 -DrepositoryLayout=legacy.
 
 So if you really believe the M1 layout is better, you can keep using it.
 
 Wayne
 
 On 7/3/07, Harish Kachoria [EMAIL PROTECTED] wrote:

 I can use that command but presently I have almost more then 30 jar
 files.
 and
 First It is bad idea to run same command for all this jar.
 Second this structure will create 30 different folder in my repository
 which
 I think a burden to maintain.
 I like the maven 1.0 layout in which I can put all my jar (belongs to a
 logical group) in single folder.
 which I feel very easy to maintain.


 Thorsten Heit-3 wrote:
 
  Hi,
 
  Default layout of maven 2.0 is a burden for me. as I have many jar
 with
  same
  group and if I need to use default layour of Maven 2.0 then I need to
  create
  seprate directory for each jar.
 
  So please help me to configure legacy layout for local repository.
 
  I tried to configure it but could not suceed.
 
  IT would be very help fule if you can give me pom/setting
 configuration.
 
  Why don't you just use mvn deploy:deploy-file or mvn
  install:install-file? Maven automatically creates the necessary
 directory
  structure for you.
 
 
  http://maven.apache.org/plugins/maven-install-plugin/
  http://maven.apache.org/plugins/maven-deploy-plugin/
  http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
 
 
  HTH
 
  Thorsten
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11414400
 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-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11414813
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 configure Default Repository Layout for local repository

2007-07-03 Thread Wayne Fay

I don't use this legacy layout myself, so no, I can't paste my setting
file. But if you search Google for maven repository legacy layout
you will find all the documentation you could possibly need.

Wayne

On 7/3/07, Harish Kachoria [EMAIL PROTECTED] wrote:


Thanks Wayne

Can you please give me the sytax for this. I tried various systax but it
did't worked.
please paste your Setting file which contains this setting it would be very
helpful



Wayne Fay wrote:

 You can always access your M1 style repo with layoutlegacy/layout.
 And you deploy to legacy as well with mvn deploy:deploy-file
 -DrepositoryLayout=legacy.

 So if you really believe the M1 layout is better, you can keep using it.

 Wayne

 On 7/3/07, Harish Kachoria [EMAIL PROTECTED] wrote:

 I can use that command but presently I have almost more then 30 jar
 files.
 and
 First It is bad idea to run same command for all this jar.
 Second this structure will create 30 different folder in my repository
 which
 I think a burden to maintain.
 I like the maven 1.0 layout in which I can put all my jar (belongs to a
 logical group) in single folder.
 which I feel very easy to maintain.


 Thorsten Heit-3 wrote:
 
  Hi,
 
  Default layout of maven 2.0 is a burden for me. as I have many jar
 with
  same
  group and if I need to use default layour of Maven 2.0 then I need to
  create
  seprate directory for each jar.
 
  So please help me to configure legacy layout for local repository.
 
  I tried to configure it but could not suceed.
 
  IT would be very help fule if you can give me pom/setting
 configuration.
 
  Why don't you just use mvn deploy:deploy-file or mvn
  install:install-file? Maven automatically creates the necessary
 directory
  structure for you.
 
 
  http://maven.apache.org/plugins/maven-install-plugin/
  http://maven.apache.org/plugins/maven-deploy-plugin/
  http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
 
 
  HTH
 
  Thorsten
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 
http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11414400
 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-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11414813
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



Re: how to configure Default Repository Layout for local repository

2007-07-03 Thread Thorsten Heit
 I don't like directory structure which is just over burden for maintaince.
 As of now we do not have any problems to maintain version of our jars.
 But because maven thinks that we have problems in maintaing versions so we
 should adopt maven directory structure is stupid idea.

Sorry, but I don't understand what you mean by Maven thinks that we have 
problems Can you explain that?


Regards

Thorsten

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



Re: how to configure Default Repository Layout for local repository

2007-07-03 Thread Wayne Fay

He means the Maven dev group is pushing a particular agenda which my
organization disagrees with.

Wayne

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

 I don't like directory structure which is just over burden for maintaince.
 As of now we do not have any problems to maintain version of our jars.
 But because maven thinks that we have problems in maintaing versions so we
 should adopt maven directory structure is stupid idea.

Sorry, but I don't understand what you mean by Maven thinks that we have 
problems Can you explain that?


Regards

Thorsten

-
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 configure Default Repository Layout for local repository

2007-07-03 Thread Harish Kachoria

ps
actually before posting here, I search all possible solution and tried it
but some how not working.
in setting.xml I can only define localRepository and It won't allow me to
define layout.
I tried to define layout in my pom.xml (by giving name,id as localRepository
in repositries section) but maven is always reffering to default layout.

So if some can paste me configuration then it would be cery help



Wayne Fay wrote:
 
 I don't use this legacy layout myself, so no, I can't paste my setting
 file. But if you search Google for maven repository legacy layout
 you will find all the documentation you could possibly need.
 
 Wayne
 
 On 7/3/07, Harish Kachoria [EMAIL PROTECTED] wrote:

 Thanks Wayne

 Can you please give me the sytax for this. I tried various systax but it
 did't worked.
 please paste your Setting file which contains this setting it would be
 very
 helpful



 Wayne Fay wrote:
 
  You can always access your M1 style repo with layoutlegacy/layout.
  And you deploy to legacy as well with mvn deploy:deploy-file
  -DrepositoryLayout=legacy.
 
  So if you really believe the M1 layout is better, you can keep using
 it.
 
  Wayne
 
  On 7/3/07, Harish Kachoria [EMAIL PROTECTED] wrote:
 
  I can use that command but presently I have almost more then 30 jar
  files.
  and
  First It is bad idea to run same command for all this jar.
  Second this structure will create 30 different folder in my repository
  which
  I think a burden to maintain.
  I like the maven 1.0 layout in which I can put all my jar (belongs to
 a
  logical group) in single folder.
  which I feel very easy to maintain.
 
 
  Thorsten Heit-3 wrote:
  
   Hi,
  
   Default layout of maven 2.0 is a burden for me. as I have many jar
  with
   same
   group and if I need to use default layour of Maven 2.0 then I need
 to
   create
   seprate directory for each jar.
  
   So please help me to configure legacy layout for local repository.
  
   I tried to configure it but could not suceed.
  
   IT would be very help fule if you can give me pom/setting
  configuration.
  
   Why don't you just use mvn deploy:deploy-file or mvn
   install:install-file? Maven automatically creates the necessary
  directory
   structure for you.
  
  
   http://maven.apache.org/plugins/maven-install-plugin/
   http://maven.apache.org/plugins/maven-deploy-plugin/
   http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
  
  
   HTH
  
   Thorsten
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  --
  View this message in context:
 
 http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11414400
  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-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11414813
 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-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11416083
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 configure Default Repository Layout for local repository

2007-07-03 Thread Wayne Fay

Wait a minute... You're asking about changing the default layout of
the LOCAL (ie c:\...\.m2\repository) repository??

I take back everything I said before -- this is NOT possible, and
probably will NEVER be possible. (As far as I know.) If you insist on
using this old layout, you must continue using Maven1. But I really
don't know why you care how Maven internally handles its own local
repository.

You can only configure the layout for legacy when dealing with
remote repos ie corporate repo, snapshot repo, etc.

Wayne

On 7/3/07, Harish Kachoria [EMAIL PROTECTED] wrote:


ps
actually before posting here, I search all possible solution and tried it
but some how not working.
in setting.xml I can only define localRepository and It won't allow me to
define layout.
I tried to define layout in my pom.xml (by giving name,id as localRepository
in repositries section) but maven is always reffering to default layout.

So if some can paste me configuration then it would be cery help



Wayne Fay wrote:

 I don't use this legacy layout myself, so no, I can't paste my setting
 file. But if you search Google for maven repository legacy layout
 you will find all the documentation you could possibly need.

 Wayne

 On 7/3/07, Harish Kachoria [EMAIL PROTECTED] wrote:

 Thanks Wayne

 Can you please give me the sytax for this. I tried various systax but it
 did't worked.
 please paste your Setting file which contains this setting it would be
 very
 helpful



 Wayne Fay wrote:
 
  You can always access your M1 style repo with layoutlegacy/layout.
  And you deploy to legacy as well with mvn deploy:deploy-file
  -DrepositoryLayout=legacy.
 
  So if you really believe the M1 layout is better, you can keep using
 it.
 
  Wayne
 
  On 7/3/07, Harish Kachoria [EMAIL PROTECTED] wrote:
 
  I can use that command but presently I have almost more then 30 jar
  files.
  and
  First It is bad idea to run same command for all this jar.
  Second this structure will create 30 different folder in my repository
  which
  I think a burden to maintain.
  I like the maven 1.0 layout in which I can put all my jar (belongs to
 a
  logical group) in single folder.
  which I feel very easy to maintain.
 
 
  Thorsten Heit-3 wrote:
  
   Hi,
  
   Default layout of maven 2.0 is a burden for me. as I have many jar
  with
   same
   group and if I need to use default layour of Maven 2.0 then I need
 to
   create
   seprate directory for each jar.
  
   So please help me to configure legacy layout for local repository.
  
   I tried to configure it but could not suceed.
  
   IT would be very help fule if you can give me pom/setting
  configuration.
  
   Why don't you just use mvn deploy:deploy-file or mvn
   install:install-file? Maven automatically creates the necessary
  directory
   structure for you.
  
  
   http://maven.apache.org/plugins/maven-install-plugin/
   http://maven.apache.org/plugins/maven-deploy-plugin/
   http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
  
  
   HTH
  
   Thorsten
  
  
 -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
  --
  View this message in context:
 
 
http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11414400
  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-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11414813
 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-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11416083
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



Re: how to configure Default Repository Layout for local repository

2007-07-03 Thread Harish Kachoria

I mean to say, If I wants to use maven then I have to use in this way, I have
to maintain version,  but for my project maintaing of version is not a
problem. and Management won't like Idea to have directory for each module. 
So if Maven is enough flexible then adoptation in any project becomes very
easy.

I was using maven 1.0 in my past project and was quite comfertable and
because of this as a System designer I propose to use Maven in my current
project.
But with Maven 2.0 I'm trying to fit all my requirements from past 1 week
but not suceed.
now I'm very much frustrated. 




Wayne Fay wrote:
 
 He means the Maven dev group is pushing a particular agenda which my
 organization disagrees with.
 
 Wayne
 
 On 7/3/07, Thorsten Heit [EMAIL PROTECTED] wrote:
  I don't like directory structure which is just over burden for
 maintaince.
  As of now we do not have any problems to maintain version of our jars.
  But because maven thinks that we have problems in maintaing versions so
 we
  should adopt maven directory structure is stupid idea.

 Sorry, but I don't understand what you mean by Maven thinks that we have
 problems Can you explain that?


 Regards

 Thorsten

 -
 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-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11416350
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 configure Default Repository Layout for local repository

2007-07-03 Thread Harish Kachoria

Ok
Do you mean to say, Can I define seprate repository for all my dependant
jars ??
How ?? and can I define legacy layout for this repository ??
How to confugure this on my local machine
can I give repo name in my dependancy section ??



Wayne Fay wrote:
 
 Wait a minute... You're asking about changing the default layout of
 the LOCAL (ie c:\...\.m2\repository) repository??
 
 I take back everything I said before -- this is NOT possible, and
 probably will NEVER be possible. (As far as I know.) If you insist on
 using this old layout, you must continue using Maven1. But I really
 don't know why you care how Maven internally handles its own local
 repository.
 
 You can only configure the layout for legacy when dealing with
 remote repos ie corporate repo, snapshot repo, etc.
 
 Wayne
 
 On 7/3/07, Harish Kachoria [EMAIL PROTECTED] wrote:

 ps
 actually before posting here, I search all possible solution and tried it
 but some how not working.
 in setting.xml I can only define localRepository and It won't allow me to
 define layout.
 I tried to define layout in my pom.xml (by giving name,id as
 localRepository
 in repositries section) but maven is always reffering to default layout.

 So if some can paste me configuration then it would be cery help



 Wayne Fay wrote:
 
  I don't use this legacy layout myself, so no, I can't paste my setting
  file. But if you search Google for maven repository legacy layout
  you will find all the documentation you could possibly need.
 
  Wayne
 
  On 7/3/07, Harish Kachoria [EMAIL PROTECTED] wrote:
 
  Thanks Wayne
 
  Can you please give me the sytax for this. I tried various systax but
 it
  did't worked.
  please paste your Setting file which contains this setting it would be
  very
  helpful
 
 
 
  Wayne Fay wrote:
  
   You can always access your M1 style repo with
 layoutlegacy/layout.
   And you deploy to legacy as well with mvn deploy:deploy-file
   -DrepositoryLayout=legacy.
  
   So if you really believe the M1 layout is better, you can keep using
  it.
  
   Wayne
  
   On 7/3/07, Harish Kachoria [EMAIL PROTECTED] wrote:
  
   I can use that command but presently I have almost more then 30 jar
   files.
   and
   First It is bad idea to run same command for all this jar.
   Second this structure will create 30 different folder in my
 repository
   which
   I think a burden to maintain.
   I like the maven 1.0 layout in which I can put all my jar (belongs
 to
  a
   logical group) in single folder.
   which I feel very easy to maintain.
  
  
   Thorsten Heit-3 wrote:
   
Hi,
   
Default layout of maven 2.0 is a burden for me. as I have many
 jar
   with
same
group and if I need to use default layour of Maven 2.0 then I
 need
  to
create
seprate directory for each jar.
   
So please help me to configure legacy layout for local
 repository.
   
I tried to configure it but could not suceed.
   
IT would be very help fule if you can give me pom/setting
   configuration.
   
Why don't you just use mvn deploy:deploy-file or mvn
install:install-file? Maven automatically creates the necessary
   directory
structure for you.
   
   
http://maven.apache.org/plugins/maven-install-plugin/
http://maven.apache.org/plugins/maven-deploy-plugin/
   
 http://maven.apache.org/guides/mini/guide-3rd-party-jars-local.html
   
   
HTH
   
Thorsten
   
   
  -
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
   
   
   
  
   --
   View this message in context:
  
 
 http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11414400
   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-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11414813
  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-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11416083
 Sent from the Maven - Users mailing list archive at Nabble.com.


 

Re: how to configure Default Repository Layout for local repository

2007-07-03 Thread Max Bowsher
Harish Kachoria wrote:
 I mean to say, If I wants to use maven then I have to use in this way, I have
 to maintain version,  but for my project maintaing of version is not a
 problem. and Management won't like Idea to have directory for each module. 
 So if Maven is enough flexible then adoptation in any project becomes very
 easy.
 
 I was using maven 1.0 in my past project and was quite comfertable and
 because of this as a System designer I propose to use Maven in my current
 project.
 But with Maven 2.0 I'm trying to fit all my requirements from past 1 week
 but not suceed.
 now I'm very much frustrated. 


The local repository is simply a cache, maintained by Maven. It's layout
should not influence your project in any way.

Please explain why the layout of the local repository matters to you, or
is part of your requirements.


Max.



signature.asc
Description: OpenPGP digital signature


Re: how to configure Default Repository Layout for local repository

2007-07-03 Thread Harish Kachoria

Where will I put dependnacy jars ?? which are required in my project.
In Maven 1.0 we used to put all jar in local repository.
in maven 2.0 is there any differene ??
so to refer any jar I need to put some where in repository correct ..
and to use that I need to define group/artifact/version

Lets say I have 30 external jars in my project. so I need to create 30
folders and need to put each jar in seprate folder.

In maven 1.0 we simply have one folder in repo and then we put all jars in
jars folder.
and maven understand dependancy using artificate name.
that was more prefarable for me. I can see all jar of group in one
directory. 



Max O Bowsher wrote:
 
 Harish Kachoria wrote:
 I mean to say, If I wants to use maven then I have to use in this way, I
 have
 to maintain version,  but for my project maintaing of version is not a
 problem. and Management won't like Idea to have directory for each
 module. 
 So if Maven is enough flexible then adoptation in any project becomes
 very
 easy.
 
 I was using maven 1.0 in my past project and was quite comfertable and
 because of this as a System designer I propose to use Maven in my current
 project.
 But with Maven 2.0 I'm trying to fit all my requirements from past 1 week
 but not suceed.
 now I'm very much frustrated. 
 
 
 The local repository is simply a cache, maintained by Maven. It's layout
 should not influence your project in any way.
 
 Please explain why the layout of the local repository matters to you, or
 is part of your requirements.
 
 
 Max.
 
 
  
 

-- 
View this message in context: 
http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11416853
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 configure Default Repository Layout for local repository

2007-07-03 Thread Harish Kachoria

It would be better if I can explain my problem then you can suggest me some
solution

Currently I have one project which has around 30+sub projects (Which I can
say modules)
Each sub project has its own ear which contains 1 war module and 1 ejb
module.

There are some common libraries also which are shared accros the projects. 

In development env we copy this library at local location and use them from
JBuilder.

In production env, many ears are deployed (this project as well as other
projects) and all common libraries are in server lib folder.

now I want to build one sub project using maven. and I need to refer all
common libraries just for compilations (as we never include common library
in EAR)

To use maven I need to define dependancy and needs to copy common library in
repo.

I wants to copy all jars in one folder of repo and trying to use it but with
Maven 2.0 it seems to be not possible. 

If you have any alternate way then please let me know

-- 
View this message in context: 
http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11417704
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 configure Default Repository Layout for local repository

2007-07-03 Thread Carlos Sanchez

you can't change the local repository layout, it's a cache for maven
and it shouldn't matter how it's stored

you can change the remote repositories layout, so just create a remote
repo for your projects in whatever style you want, although not a
great idea

On 7/3/07, Harish Kachoria [EMAIL PROTECTED] wrote:


It would be better if I can explain my problem then you can suggest me some
solution

Currently I have one project which has around 30+sub projects (Which I can
say modules)
Each sub project has its own ear which contains 1 war module and 1 ejb
module.

There are some common libraries also which are shared accros the projects.

In development env we copy this library at local location and use them from
JBuilder.

In production env, many ears are deployed (this project as well as other
projects) and all common libraries are in server lib folder.

now I want to build one sub project using maven. and I need to refer all
common libraries just for compilations (as we never include common library
in EAR)

To use maven I need to define dependancy and needs to copy common library in
repo.

I wants to copy all jars in one folder of repo and trying to use it but with
Maven 2.0 it seems to be not possible.

If you have any alternate way then please let me know

--
View this message in context: 
http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11417704
Sent from the Maven - Users mailing list archive at Nabble.com.


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





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

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



Re: how to configure Default Repository Layout for local repository

2007-07-03 Thread Harish Kachoria

OK it works from me.. I created remote repo on my local machine.
and maven downloded the jars stored them in the way he likes.

still I have one problem, my libraries does not have any version number. and
version number is mandatory for maven 2.0. (jar tag had been removed in
maven 2.0)
so now I have two solution -
- rename all jar with some fake version(may be 1.0) and then convince
management for this. which I know won't happen
- forget maven. which I don't prefer. (this was my idea to use maven in this
project)

so can you find any other solution.





Carlos Sanchez-4 wrote:
 
 you can't change the local repository layout, it's a cache for maven
 and it shouldn't matter how it's stored
 
 you can change the remote repositories layout, so just create a remote
 repo for your projects in whatever style you want, although not a
 great idea
 
 On 7/3/07, Harish Kachoria [EMAIL PROTECTED] wrote:

 It would be better if I can explain my problem then you can suggest me
 some
 solution

 Currently I have one project which has around 30+sub projects (Which I
 can
 say modules)
 Each sub project has its own ear which contains 1 war module and 1 ejb
 module.

 There are some common libraries also which are shared accros the
 projects.

 In development env we copy this library at local location and use them
 from
 JBuilder.

 In production env, many ears are deployed (this project as well as other
 projects) and all common libraries are in server lib folder.

 now I want to build one sub project using maven. and I need to refer all
 common libraries just for compilations (as we never include common
 library
 in EAR)

 To use maven I need to define dependancy and needs to copy common library
 in
 repo.

 I wants to copy all jars in one folder of repo and trying to use it but
 with
 Maven 2.0 it seems to be not possible.

 If you have any alternate way then please let me know

 --
 View this message in context:
 http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11417704
 Sent from the Maven - Users mailing list archive at Nabble.com.


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


 
 
 -- 
 I could give you my word as a Spaniard.
 No good. I've known too many Spaniards.
  -- The Princess Bride
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11418660
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 configure Default Repository Layout for local repository

2007-07-03 Thread Wayne Fay

Your only option (if you want to continue using Maven) is to starting
using versions.

Even if you use scope=system you still need to set a version in the
dependency node. And system scope is just a bad idea in the first
place, generally.

Wayne

On 7/3/07, Harish Kachoria [EMAIL PROTECTED] wrote:


OK it works from me.. I created remote repo on my local machine.
and maven downloded the jars stored them in the way he likes.

still I have one problem, my libraries does not have any version number. and
version number is mandatory for maven 2.0. (jar tag had been removed in
maven 2.0)
so now I have two solution -
- rename all jar with some fake version(may be 1.0) and then convince
management for this. which I know won't happen
- forget maven. which I don't prefer. (this was my idea to use maven in this
project)

so can you find any other solution.





Carlos Sanchez-4 wrote:

 you can't change the local repository layout, it's a cache for maven
 and it shouldn't matter how it's stored

 you can change the remote repositories layout, so just create a remote
 repo for your projects in whatever style you want, although not a
 great idea

 On 7/3/07, Harish Kachoria [EMAIL PROTECTED] wrote:

 It would be better if I can explain my problem then you can suggest me
 some
 solution

 Currently I have one project which has around 30+sub projects (Which I
 can
 say modules)
 Each sub project has its own ear which contains 1 war module and 1 ejb
 module.

 There are some common libraries also which are shared accros the
 projects.

 In development env we copy this library at local location and use them
 from
 JBuilder.

 In production env, many ears are deployed (this project as well as other
 projects) and all common libraries are in server lib folder.

 now I want to build one sub project using maven. and I need to refer all
 common libraries just for compilations (as we never include common
 library
 in EAR)

 To use maven I need to define dependancy and needs to copy common library
 in
 repo.

 I wants to copy all jars in one folder of repo and trying to use it but
 with
 Maven 2.0 it seems to be not possible.

 If you have any alternate way then please let me know

 --
 View this message in context:
 
http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11417704
 Sent from the Maven - Users mailing list archive at Nabble.com.


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




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

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




--
View this message in context: 
http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11418660
Sent from the Maven - Users mailing list archive at Nabble.com.


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




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



Re: how to configure Default Repository Layout for local repository

2007-07-03 Thread Harish Kachoria

I understand.. But the bad thing is backward compatiablty.
Maven 1.0 support  tag by which we can avoid version number. and Maven 2.0
not.

and renaming of legacy jar is not a good idea. Because they are provided by
third party. and because Maven don't like the name of jar, so rename the jar 

Maven designer should consider the fact that Many of Legacy jars do not have
version numbers. and Mangement always afraid to touch such jars. even if it
is a small change.

I think I have to convince for renaming jar on development env. 



Wayne Fay wrote:
 
 Your only option (if you want to continue using Maven) is to starting
 using versions.
 
 Even if you use scope=system you still need to set a version in the
  node. And system scope is just a bad idea in the first
 place, generally.
 
 Wayne
 
 On 7/3/07, Harish Kachoria  wrote:

 OK it works from me.. I created remote repo on my local machine.
 and maven downloded the jars stored them in the way he likes.

 still I have one problem, my libraries does not have any version number.
 and
 version number is mandatory for maven 2.0. ( tag had been removed in
 maven 2.0)
 so now I have two solution -
 - rename all jar with some fake version(may be 1.0) and then convince
 management for this. which I know won't happen
 - forget maven. which I don't prefer. (this was my idea to use maven in
 this
 project)

 so can you find any other solution.





 Carlos Sanchez-4 wrote:
 
  you can't change the local repository layout, it's a cache for maven
  and it shouldn't matter how it's stored
 
  you can change the remote repositories layout, so just create a remote
  repo for your projects in whatever style you want, although not a
  great idea
 
  On 7/3/07, Harish Kachoria  wrote:
 
  It would be better if I can explain my problem then you can suggest me
  some
  solution
 
  Currently I have one project which has around 30+sub projects (Which I
  can
  say modules)
  Each sub project has its own ear which contains 1 war module and 1 ejb
  module.
 
  There are some common libraries also which are shared accros the
  projects.
 
  In development env we copy this library at local location and use them
  from
  JBuilder.
 
  In production env, many ears are deployed (this project as well as
 other
  projects) and all common libraries are in server lib folder.
 
  now I want to build one sub project using maven. and I need to refer
 all
  common libraries just for compilations (as we never include common
  library
  in EAR)
 
  To use maven I need to define dependancy and needs to copy common
 library
  in
  repo.
 
  I wants to copy all jars in one folder of repo and trying to use it
 but
  with
  Maven 2.0 it seems to be not possible.
 
  If you have any alternate way then please let me know
 
  --
  View this message in context:
 
 http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11417704
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  I could give you my word as a Spaniard.
  No good. I've known too many Spaniards.
   -- The Princess Bride
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:
 http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11418660
 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]
 
 
 
:arguing::arguing::arguing::arguing::arguing::arguing::arguing:
-- 
View this message in context: 
http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11419527
Sent from the Maven - Users mailing list archive at Nabble.com.


RE: how to configure Default Repository Layout for local repository

2007-07-03 Thread Timothy Reilly

[Harish wrote:]
 so can you find any other solution.

Here is how we are managing our application server libraries and server
shared libraries on my current project.

We have internal corporate repositories (several - one per environment.
E.g. unit, dev, test, release, etc.)
We have an additional repository (third-party)
We load the third-party jars using a script in the same manner posted to
this thread earlier.
We define the artifact version in the script to match the product
version.
There is no maintanance here (which I think you objected to) - leave
that version in place indefinitely.
When a new third-party product version is released, then run the script
again with the new version.
Projects declare their dependencies on a particular third-party
dependency version and scope is provided.
When you migrate an application to the next version (update the
dependency declarations in your pom files.)
This works for us.

Our only nit right now is how to build for multiple target product
versions and reduce some maintenance. 
We are beginning to wrap these third-party dependencies into profiles so
we can build for varying 
target appservers, content management systems, or whatever the set of
third-party dependencies is for.)

hth



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



RE: how to configure Default Repository Layout for local repository

2007-07-03 Thread Jeff Jensen
If Maven 1.x behavior is that important to you, then use Maven 1.1.  It is
an excellent product.


-Original Message-
From: Harish Kachoria [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 03, 2007 2:56 PM
To: users@maven.apache.org
Subject: Re: how to configure Default Repository Layout for local repository


I understand.. But the bad thing is backward compatiablty.
Maven 1.0 support  tag by which we can avoid version number. and Maven 2.0
not.

and renaming of legacy jar is not a good idea. Because they are provided by
third party. and because Maven don't like the name of jar, so rename the jar


Maven designer should consider the fact that Many of Legacy jars do not have
version numbers. and Mangement always afraid to touch such jars. even if it
is a small change.

I think I have to convince for renaming jar on development env. 



Wayne Fay wrote:
 
 Your only option (if you want to continue using Maven) is to starting
 using versions.
 
 Even if you use scope=system you still need to set a version in the
  node. And system scope is just a bad idea in the first
 place, generally.
 
 Wayne
 
 On 7/3/07, Harish Kachoria  wrote:

 OK it works from me.. I created remote repo on my local machine.
 and maven downloded the jars stored them in the way he likes.

 still I have one problem, my libraries does not have any version number.
 and
 version number is mandatory for maven 2.0. ( tag had been removed in
 maven 2.0)
 so now I have two solution -
 - rename all jar with some fake version(may be 1.0) and then convince
 management for this. which I know won't happen
 - forget maven. which I don't prefer. (this was my idea to use maven in
 this
 project)

 so can you find any other solution.





 Carlos Sanchez-4 wrote:
 
  you can't change the local repository layout, it's a cache for maven
  and it shouldn't matter how it's stored
 
  you can change the remote repositories layout, so just create a remote
  repo for your projects in whatever style you want, although not a
  great idea
 
  On 7/3/07, Harish Kachoria  wrote:
 
  It would be better if I can explain my problem then you can suggest me
  some
  solution
 
  Currently I have one project which has around 30+sub projects (Which I
  can
  say modules)
  Each sub project has its own ear which contains 1 war module and 1 ejb
  module.
 
  There are some common libraries also which are shared accros the
  projects.
 
  In development env we copy this library at local location and use them
  from
  JBuilder.
 
  In production env, many ears are deployed (this project as well as
 other
  projects) and all common libraries are in server lib folder.
 
  now I want to build one sub project using maven. and I need to refer
 all
  common libraries just for compilations (as we never include common
  library
  in EAR)
 
  To use maven I need to define dependancy and needs to copy common
 library
  in
  repo.
 
  I wants to copy all jars in one folder of repo and trying to use it
 but
  with
  Maven 2.0 it seems to be not possible.
 
  If you have any alternate way then please let me know
 
  --
  View this message in context:
 

http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-r
epository-tf4018468s177.html#a11417704
  Sent from the Maven - Users mailing list archive at Nabble.com.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  --
  I could give you my word as a Spaniard.
  No good. I've known too many Spaniards.
   -- The Princess Bride
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

 --
 View this message in context:

http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-r
epository-tf4018468s177.html#a11418660
 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]
 
 
 
:arguing::arguing::arguing::arguing::arguing::arguing::arguing:
-- 
View this message in context:
http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-r
epository-tf4018468s177.html#a11419527
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 configure Default Repository Layout for local repository

2007-07-03 Thread Harish Kachoria

ya I think we also need to manage our dependdancy in same way.
But one thing worried me the Version number.

Some of my third party jars do not have version number. and I think I have
to rename them by some version number.

That I can do on development env but for production I need to convince many
peoples.

other wise I need to maintain 2 copy of such jars. one orignal and one with
version num post fix.
We wants to make thing more easier rather then introducing complications.



Timothy Reilly-2 wrote:
 
 
 [Harish wrote:]
 so can you find any other solution.
 
 Here is how we are managing our application server libraries and server
 shared libraries on my current project.
 
 We have internal corporate repositories (several - one per environment.
 E.g. unit, dev, test, release, etc.)
 We have an additional repository (third-party)
 We load the third-party jars using a script in the same manner posted to
 this thread earlier.
 We define the artifact version in the script to match the product
 version.
 There is no maintanance here (which I think you objected to) - leave
 that version in place indefinitely.
 When a new third-party product version is released, then run the script
 again with the new version.
 Projects declare their dependencies on a particular third-party
 dependency version and scope is provided.
 When you migrate an application to the next version (update the
 dependency declarations in your pom files.)
 This works for us.
 
 Our only nit right now is how to build for multiple target product
 versions and reduce some maintenance. 
 We are beginning to wrap these third-party dependencies into profiles so
 we can build for varying 
 target appservers, content management systems, or whatever the set of
 third-party dependencies is for.)
 
 hth
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/how-to-configure-Default-Repository-Layout-for-local-repository-tf4018468s177.html#a11423503
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 configure 2 projects in the same group to use different build definitions in 1.1-SNAPSHOT?

2007-04-04 Thread Maria Odea Ching

Hi,

Have you tried doing this in the project build definition instead of at the
project group level?

Thanks,
Deng


L. J. wrote:

Hi,

Can anyone suggest me how to configure this? I have 2 M2 projects that 
use 2

different arguments which referring to it's own build directory, but they
are in the same group. I create 2 build definitions but I can't change 
the
Is this default? option in the build definitions as it affects one 
and the

other.
Example below:
In the same group name/id
Project1 clean deploy -batch-mode --non-recursive -
Dproject.path=/apps/continuum/working-directory/20
Proejct2 clean deploy -batch-mode --non-recursive -
Dproject.path=/apps/continuum/working-directory/9


Thanks.

LJ


!DSPAM:602,4612cf0e8561722577945!





Re: How to configure 2 projects in the same group to use different build definitions in 1.1-SNAPSHOT?

2007-04-04 Thread L. J.

Thanks, I thought I have tried that, but looks like I did not :) Yes, now I
have a build definition for the project level not the group level.

Thanks.

LJ

On 4/3/07, Maria Odea Ching [EMAIL PROTECTED] wrote:


Hi,

Have you tried doing this in the project build definition instead of at
the
project group level?

Thanks,
Deng


L. J. wrote:
 Hi,

 Can anyone suggest me how to configure this? I have 2 M2 projects that
 use 2
 different arguments which referring to it's own build directory, but
they
 are in the same group. I create 2 build definitions but I can't change
 the
 Is this default? option in the build definitions as it affects one
 and the
 other.
 Example below:
 In the same group name/id
 Project1 clean deploy -batch-mode --non-recursive -
 Dproject.path=/apps/continuum/working-directory/20
 Proejct2 clean deploy -batch-mode --non-recursive -
 Dproject.path=/apps/continuum/working-directory/9


 Thanks.

 LJ


 !DSPAM:602,4612cf0e8561722577945!





Re: How to configure ArchiveManager

2007-03-26 Thread shinsato

No response?  I've not found any enlightenment about this topic, is this a
bug in the documentation - because there is no ArchiveManager that can be
configured?
-- 
View this message in context: 
http://www.nabble.com/How-to-configure-ArchiveManager-tf2600362s177.html#a9684778
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 configure a checksumPolicy ?

2006-10-26 Thread Ryan, Scott D
Any status on this one?  I would love to make the change or use the change.  It 
appears that about 25-30% of what I need has bad checksums including most of 
the native plugins such as clean, deploy etc.   This means that I can't do much 
without being able to turn off the checksum feature.

Any ideas would be appreciated.  Is there a way to turn this off temporarily so 
I can at least move forward with some testing by manually modifying the XML 
files?

Thanks 


Scott D. Ryan
Senior Java Developer/Architect

-Original Message-
From: Nicolas DE LOOF [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 23, 2006 6:57 AM
To: archiva-users@maven.apache.org
Subject: Re: How to configure a checksumPolicy ?


I have something that may work but can't build archiva for now due to network 
errors accessing http://people.apache.org/repo/m2-snapshot-repository

My patch will require to add a boolean attribute to 
ProxiedRepositoryConfiguration, that is generated by modelo. Is there some 
design / formatting rules to know for editing mdo files, or can I consider them 
just beeing XML files ?

Nico.

Brett Porter a écrit :
 We could add it to the proxy configuration page. Did you want to take 
 a look at providing a patch? Should be quite straightforward.

 On 20/10/2006, at 10:13 PM, Nicolas DE LOOF wrote:


 I have errors using archiva as a proxy due to bad checksums on ibiblio.
 Is there any way to set the checksumPolicy to WARNING in archiva ?

 Nico.


 This message contains information that may be privileged or 
 confidential and is the property of the Capgemini Group. It is 
 intended only for the person to whom it is addressed. If you are not 
 the intended recipient,  you are not authorized to read, print, 
 retain, copy, disseminate,  distribute, or use this message or any 
 part thereof. If you receive this  message in error, please notify 
 the sender immediately and delete all  copies of this message.


This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.




--
This message is intended only for the personal and confidential use of the 
designated recipient(s) named. If you are not the intended recipient of this 
message, you are hereby notified that any review, dissemination, distribution 
or copying of this message is strictly prohibited. This communication is for 
information purposes only and should not be regarded as an offer to sell or as 
a solicitation of an offer to buy any financial product, an official 
confirmation of any transaction, or as an official statement of Aurora Loan 
Services. Email transmission cannot be guaranteed to be secure or error-free. 
Therefore, we do not represent that this information is complete or accurate 
and it should not be relied upon as such. All information is subject to change 
without notice.



Re: How to configure a checksumPolicy ?

2006-10-23 Thread Nicolas DE LOOF


I have something that may work but can't build archiva for now due to 
network errors accessing 
http://people.apache.org/repo/m2-snapshot-repository


My patch will require to add a boolean attribute to 
ProxiedRepositoryConfiguration, that is generated by modelo. Is there 
some design / formatting rules to know for editing mdo files, or can I 
consider them just beeing XML files ?


Nico.

Brett Porter a écrit :
We could add it to the proxy configuration page. Did you want to take 
a look at providing a patch? Should be quite straightforward.


On 20/10/2006, at 10:13 PM, Nicolas DE LOOF wrote:



I have errors using archiva as a proxy due to bad checksums on ibiblio.
Is there any way to set the checksumPolicy to WARNING in archiva ?

Nico.


This message contains information that may be privileged or 
confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not 
the intended recipient,  you are not authorized to read, print, 
retain, copy, disseminate,  distribute, or use this message or any 
part thereof. If you receive this  message in error, please notify 
the sender immediately and delete all  copies of this message.




This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.



Re: How to configure a checksumPolicy ?

2006-10-23 Thread Nicolas DE LOOF


I'll take a look
MRM-212 created for this.

Nico.

Brett Porter a écrit :
We could add it to the proxy configuration page. Did you want to take 
a look at providing a patch? Should be quite straightforward.


On 20/10/2006, at 10:13 PM, Nicolas DE LOOF wrote:



I have errors using archiva as a proxy due to bad checksums on ibiblio.
Is there any way to set the checksumPolicy to WARNING in archiva ?

Nico.


This message contains information that may be privileged or 
confidential and is the property of the Capgemini Group. It is 
intended only for the person to whom it is addressed. If you are not 
the intended recipient,  you are not authorized to read, print, 
retain, copy, disseminate,  distribute, or use this message or any 
part thereof. If you receive this  message in error, please notify 
the sender immediately and delete all  copies of this message.




This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.



Re: How to configure a checksumPolicy ?

2006-10-20 Thread Brett Porter
We could add it to the proxy configuration page. Did you want to take  
a look at providing a patch? Should be quite straightforward.


On 20/10/2006, at 10:13 PM, Nicolas DE LOOF wrote:



I have errors using archiva as a proxy due to bad checksums on  
ibiblio.

Is there any way to set the checksumPolicy to WARNING in archiva ?

Nico.


This message contains information that may be privileged or  
confidential and is the property of the Capgemini Group. It is  
intended only for the person to whom it is addressed. If you are  
not the intended recipient,  you are not authorized to read, print,  
retain, copy, disseminate,  distribute, or use this message or any  
part thereof. If you receive this  message in error, please notify  
the sender immediately and delete all  copies of this message.


Re: How to configure Maven2 changelog plugin

2006-07-25 Thread Denis Cabasson


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

(section Configuring Reports)


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

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


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



Re: How to configure Maven2 changelog plugin

2006-07-25 Thread Dennis Lundberg

Alexander Kriegisch wrote:

Hi,

this is really a newbie's question: I am trying to configure the changelog
plugin in Maven 2, but I don't even know where to put the plugin section
in my pom.xml. I tried to stuff it directly into build, into reporting
and a few others. I am always getting parse errors.

The thing is, that the plugin project page shows sample config snippets,
but without any context. So I would appreciate a full sample pom.xml and
also a sample command line, as I don't even know which goal to specify. I
never used Maven 1.x and am still a Maven 2 newbie, as I said. So I
apologise to everybody who thinks this should be crystal-clear. It is not
to me, unfortunately.


We are working on improving the documentation for all plugins. There is 
a work-in-progress page that you can check out until it has been 
published officially:


  http://people.apache.org/~dennisl/maven-changes-plugin/

--
Dennis Lundberg

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



Re: How to configure Maven2 changelog plugin

2006-07-25 Thread Alexander Kriegisch
Thanks for those hints. I think I got the POM stuff right now, but the
next problem is already there. 'mvn site' says:

The plugin 'org.apache.maven.plugins:maven-changelog-plugin' does not
exist or no valid version could be found

 Alexander Kriegisch wrote:

 this is really a newbie's question: I am trying to configure the
 changelog
 plugin in Maven 2, but I don't even know where to put the plugin
 section
 in my pom.xml. I tried to stuff it directly into build, into
 reporting
 and a few others. I am always getting parse errors.

 The configuration should go in the reporting/plugins part. Have a look at
 http://maven.apache.org/guides/mini/guide-site.html

 (section Configuring Reports)


 Alexander Kriegisch wrote:

 The thing is, that the plugin project page shows sample config snippets,
 but without any context. So I would appreciate a full sample pom.xml and
 also a sample command line, as I don't even know which goal to specify.
 I
 never used Maven 1.x and am still a Maven 2 newbie, as I said. So I
 apologise to everybody who thinks this should be crystal-clear. It is
 not
 to me, unfortunately.

 You're right, documentation isn't clear at the moment, but I guess you
 should read the documentation above, and things would get more clear for
 you.
 The maven team is at the moment putting a lot of work on the plugin
 documentation:
 http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Documentation?showComments=trueshowCommentArea=true

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


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






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



Re: How to configure Maven2 changelog plugin

2006-07-25 Thread Dennis Lundberg

See
http://mail-archives.apache.org/mod_mbox/maven-users/200607.mbox/[EMAIL 
PROTECTED]
and
http://maven.apache.org/guides/development/guide-testing-development-plugins.html

--
Dennis Lundberg

Alexander Kriegisch wrote:

Thanks for those hints. I think I got the POM stuff right now, but the
next problem is already there. 'mvn site' says:

The plugin 'org.apache.maven.plugins:maven-changelog-plugin' does not
exist or no valid version could be found


Alexander Kriegisch wrote:

this is really a newbie's question: I am trying to configure the
changelog
plugin in Maven 2, but I don't even know where to put the plugin
section
in my pom.xml. I tried to stuff it directly into build, into
reporting
and a few others. I am always getting parse errors.


The configuration should go in the reporting/plugins part. Have a look at
http://maven.apache.org/guides/mini/guide-site.html

(section Configuring Reports)


Alexander Kriegisch wrote:

The thing is, that the plugin project page shows sample config snippets,
but without any context. So I would appreciate a full sample pom.xml and
also a sample command line, as I don't even know which goal to specify.
I
never used Maven 1.x and am still a Maven 2 newbie, as I said. So I
apologise to everybody who thinks this should be crystal-clear. It is
not
to me, unfortunately.


You're right, documentation isn't clear at the moment, but I guess you
should read the documentation above, and things would get more clear for
you.
The maven team is at the moment putting a lot of work on the plugin
documentation:
http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Documentation?showComments=trueshowCommentArea=true

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


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







-
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 configure Maven2 changelog plugin

2006-07-25 Thread Alexander Kriegisch
Thanks again. This is also helpful.

Forgive me for asking another dumb question: I was talking about the
changelog plugin (maven-changelog-plugin). Is it the same as the changes
plugin? I want a CVS changelog, not a Jira report.

Regards
Alexander Kriegisch



 See
 http://mail-archives.apache.org/mod_mbox/maven-users/200607.mbox/[EMAIL 
 PROTECTED]
 and
 http://maven.apache.org/guides/development/guide-testing-development-plugins.html

 --
 Dennis Lundberg

 Alexander Kriegisch wrote:
 Thanks for those hints. I think I got the POM stuff right now, but the
 next problem is already there. 'mvn site' says:

 The plugin 'org.apache.maven.plugins:maven-changelog-plugin' does not
 exist or no valid version could be found

 Alexander Kriegisch wrote:
 this is really a newbie's question: I am trying to configure the
 changelog
 plugin in Maven 2, but I don't even know where to put the plugin
 section
 in my pom.xml. I tried to stuff it directly into build, into
 reporting
 and a few others. I am always getting parse errors.

 The configuration should go in the reporting/plugins part. Have a look
 at
 http://maven.apache.org/guides/mini/guide-site.html

 (section Configuring Reports)


 Alexander Kriegisch wrote:
 The thing is, that the plugin project page shows sample config
 snippets,
 but without any context. So I would appreciate a full sample pom.xml
 and
 also a sample command line, as I don't even know which goal to
 specify.
 I
 never used Maven 1.x and am still a Maven 2 newbie, as I said. So I
 apologise to everybody who thinks this should be crystal-clear. It is
 not
 to me, unfortunately.

 You're right, documentation isn't clear at the moment, but I guess you
 should read the documentation above, and things would get more clear
 for
 you.
 The maven team is at the moment putting a lot of work on the plugin
 documentation:
 http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Documentation?showComments=trueshowCommentArea=true

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


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






 -
 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 configure Maven2 changelog plugin

2006-07-25 Thread Dennis Lundberg

/me Slaps palm to forehead

Doh. Of course you were, my bad.

Here's a link to the docs for that plugin.
  http://maven.apache.org/plugins/maven-changelog-plugin/

They are in the process of being rewritten. Is you want to track that 
check this issue in JIRA:

  http://jira.codehaus.org/browse/MCHANGELOG-40

Alexander Kriegisch wrote:

Thanks again. This is also helpful.

Forgive me for asking another dumb question: I was talking about the
changelog plugin (maven-changelog-plugin). Is it the same as the changes
plugin? I want a CVS changelog, not a Jira report.

Regards
Alexander Kriegisch




See
http://mail-archives.apache.org/mod_mbox/maven-users/200607.mbox/[EMAIL 
PROTECTED]
and
http://maven.apache.org/guides/development/guide-testing-development-plugins.html

--
Dennis Lundberg

Alexander Kriegisch wrote:

Thanks for those hints. I think I got the POM stuff right now, but the
next problem is already there. 'mvn site' says:

The plugin 'org.apache.maven.plugins:maven-changelog-plugin' does not
exist or no valid version could be found


Alexander Kriegisch wrote:

this is really a newbie's question: I am trying to configure the
changelog
plugin in Maven 2, but I don't even know where to put the plugin
section
in my pom.xml. I tried to stuff it directly into build, into
reporting
and a few others. I am always getting parse errors.


The configuration should go in the reporting/plugins part. Have a look
at
http://maven.apache.org/guides/mini/guide-site.html

(section Configuring Reports)


Alexander Kriegisch wrote:

The thing is, that the plugin project page shows sample config
snippets,
but without any context. So I would appreciate a full sample pom.xml
and
also a sample command line, as I don't even know which goal to
specify.
I
never used Maven 1.x and am still a Maven 2 newbie, as I said. So I
apologise to everybody who thinks this should be crystal-clear. It is
not
to me, unfortunately.


You're right, documentation isn't clear at the moment, but I guess you
should read the documentation above, and things would get more clear
for
you.
The maven team is at the moment putting a lot of work on the plugin
documentation:
http://docs.codehaus.org/display/MAVEN/Maven+Plugin+Documentation?showComments=trueshowCommentArea=true

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


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






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




--
Dennis Lundberg

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



Re: How to configure attached tests?

2006-07-08 Thread Arnaud Bailly
Paul Spencer [EMAIL PROTECTED] writes:

 Arnaud,



 I am not using a Suite class.  Can you explain how to implement a
 Suite class?

TestSuite is a class of junit 3.8 that implements composite pattern
for tests. Once again, I am not sure this is suitable for your use
case but here is what I would do:
 1. Create TestCase subclasses as needed in the API module. These test
 classes are parameterized by an implementation type instance used
 as recepient for testing
 2. create an abstract TestSuite subclass that parameterizes the  test
 cases. You may need to override addTest so that each test runs on the
 right instance
 3. extends this testsuite once for each implementation that needs to
 be tested with the same set of tests overriding the OUT instanciation code.

Your API test suite may provide access to several implementation
classes if needed. 

This is sketchy but I did not have time to provide details. If you can
wait, I will try to do a POC  next week.

regards,
-- 
OQube  software engineering \ génie logiciel 
Arnaud Bailly, Dr.
\web http://www.oqube.com


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



Re: How to configure attached tests?

2006-07-07 Thread Paul Spencer

Arnaud,
1) I have several test, 100+, and the number grows, so from a management 
perspective extending each abstract test in each implementation is not 
practical.


2) I believe a testing project can be created the will use profiles to 
test each implementation individually.  This is a manageable workaround, 
although it requires an additional step to prevent a failing 
implementation from being deployed to the repository.


3) Ideally a mvn deploy would:
 o Build the implementation
 o Test the implementation, including implementation specific unit
   tests and the attached test.
 o Only deploy an artifact into the repository that has passed
   the testing.

#3 can be done by Continuum. To prevent #1 and #2 from deploying an 
artifact that as not passed the attached test, require 3 passes through 
Maven:

o install the implementation.
o Run the implementation through the attached test.
o Only deploy implementation artifacts that pass all testing.

I do not believe this easily can be done in Continuum.

I suspect the result of this thread will be:
 o Corrections to the attached test documentation then include
   the requirement of creating an class in the project's testing source
   directory that extends a test located in the attached test jar.

 o A better understanding on how attached test can be used.

 o A better understanding on how attached test would like to be
   used.  Thus prompting enhancements in Maven.

Paul Spencer

Arnaud Bailly wrote:

Paul Spencer [EMAIL PROTECTED] writes:



Arnaud,
In my case, I have an interface with several implementations.  The
intent is it to have an attached test which verifies that the
implementation conforms to the interface.  So each implementation will
include the interface's attached test in addition to it's own unit
test. By including the attached test in each implementation, then
anytime an implementation is successfully built, by Continuum for
example, you can me assured it also confirms to the interface.

Paul Spencer



Paul,
That's nice and I think I would do the same. But then, why don't you
make four interfaces tests abstract and extends them in each module
for concrete implementations ?

abstract class ITest extends TestCase {

   abstract void setImplem(I i0);

  ITest(STring n) { super(n); }

  public void testXXX() ...

}

class ImplemTest extends ITest {

  ImplemTest(String n) {
   super(n);
   setImplem(this);
  }

  ...
}

Your attached tests will not be considered for execution, which is ok.

Regards,



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



Re: How to configure attached tests?

2006-07-07 Thread Paul Spencer

Arnaud,
1) I have several test, 100+, and the number grows, so from a management 
perspective extending each abstract test in each implementation is not 
practical.


2) I believe a testing project can be created the will use profiles to 
test each implementation individually.  This is a manageable workaround, 
although it requires an additional step to prevent a failing 
implementation from being deployed to the repository.


3) Ideally a mvn deploy would:
 o Build the implementation
 o Test the implementation, including implementation specific unit
   tests and the attached test.
 o Only deploy an artifact into the repository that has passed
   the testing.

#3 can be done by Continuum. To prevent #1 and #2 from deploying an 
artifact that as not passed the attached test, require 3 passes through 
Maven:

o install the implementation.
o Run the implementation through the attached test.
o Only deploy implementation artifacts that pass all testing.

I do not believe this easily can be done in Continuum.

I suspect the result of this thread will be:
 o Corrections to the attached test documentation then include
   the requirement of creating an class in the project's testing source
   directory that extends a test located in the attached test jar.

 o A better understanding on how attached test can be used.

 o A better understanding on how attached test would like to be
   used.  Thus prompting enhancements in Maven.

Paul Spencer

Arnaud Bailly wrote:

Paul Spencer [EMAIL PROTECTED] writes:



Arnaud,
In my case, I have an interface with several implementations.  The
intent is it to have an attached test which verifies that the
implementation conforms to the interface.  So each implementation will
include the interface's attached test in addition to it's own unit
test. By including the attached test in each implementation, then
anytime an implementation is successfully built, by Continuum for
example, you can me assured it also confirms to the interface.

Paul Spencer



Paul,
That's nice and I think I would do the same. But then, why don't you
make four interfaces tests abstract and extends them in each module
for concrete implementations ?

abstract class ITest extends TestCase {

   abstract void setImplem(I i0);

  ITest(STring n) { super(n); }

  public void testXXX() ...

}

class ImplemTest extends ITest {

  ImplemTest(String n) {
   super(n);
   setImplem(this);
  }

  ...
}

Your attached tests will not be considered for execution, which is ok.

Regards,



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



  1   2   >