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


How to configure Maven for an overloaded intranet repository?

2022-09-29 Thread David Karr
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?


how to configure maven-shade-plugin to execute using specific java version?

2019-05-17 Thread Sachin Tiwari
Hi,

My default JAVA_HOME points to java 1.6 and I am trying use
maven-shade-plugin version 3.2.1 which requires java 1.7+

So I looking for a way to configure my maven-shade-plugin to execute using
required java version and not my default JAVA_HOME version.

E.g. I had similar issue with maven-surefire-plugin and I was able to solve
it by specifying  under its  but unfortunately this
doesn't works for maven-shade-plugin:


${JAVA_8_HOME}/bin/java


Thanks,
Sachin


Re: Need help.. How to configure POM for multi-module checkout

2019-03-25 Thread garym
Yeah,  that's a good idea... 

On 2019/03/24 14:38:25, Kyle Marek  wrote: 
> You can arbitrarily switch to other tags and branches with submodules.
> It is just a simple `git checkout X` from the submodule's directory.
> 
> -Kyle
> 
> On 3/24/19 9:51 AM, ga...@oedata.com wrote:
> > Hi Nick,
> >
> > Thank you for that suggestion. That was also suggested on stackoverflow by 
> > Karl. That method is better suited for static-ish configurations.   I need 
> > a BOM type system where I can dynamically switch between tags and branches 
> > for different modules, much like clear case.  I'll be moving to a different 
> > structure and tool chain in 6 months.
> >
> > cheer
> >
> > On 2019/03/24 01:45:50, Kyle Marek  wrote: 
> >> Not sure that it will help with version number matches, but you could
> >> also use Git submodules to bring multiple repositories together in a
> >> single tree.
> >>
> >> See: https://git-scm.com/book/en/v2/Git-Tools-Submodules
> >>
> >> On 3/23/19 9:26 PM, ga...@oedata.com wrote:
> >>> Hi Karl,
> >>>
> >>> Thank you for replying on mail server. and thanks for sending me the 
> >>> links to you project poms. They look awesome.
> >>>
> >>> The is a difference between your projects and my situation. Your projects 
> >>> all the modules reside in the same repository. In my case, they reside in 
> >>> different repositories.  
> >>>
> >>> I elected to use the scm plugin because it allows me to select branches 
> >>> and tags, based on the project and development requirements. I didn't 
> >>> suspect reactor would check for poms before executing the life cycle. 
> >>>
> >>> I'm sure this has been solved  by someone in the past. I just don't know 
> >>> how to solve it using maven. I can solve it with a bunch of execute 
> >>> blocks, but that is very ugly. I'm going to look at the release plugin 
> >>> and a few others
> >>>
> >>> It's likely I'm using the wrong plugin or I'm missing a plugin. 
> >>>
> >>> BTW, I like your iterator plugin 
> >>>
> >>> cheers
> >>> gary
> >>>
> >>>
> >>>
> >>>
> >>> On 2019/03/23 23:56:48, Karl Heinz Marbaise  wrote: 
>  Hi,
> 
>  I will give you the same answer as on StackOverflow.
> 
>  The way you are going sounds wrong...
> 
>  As I already suggested is the way to go creating a multi module build
>  which comprises of several modules which is located within a single Git
>  repository. this can be build by using a single command.
> 
> 
>  mvn clean package
> 
>  from the root location..
> 
>  https://github.com/khmarbaise/javaee
>  https://github.com/khmarbaise/supose
> 
>  Kind regards
>  Karl Heinz Marbaise
> 
>  On 24.03.19 00:35, Gary M wrote:
> > Hi,
> >
> > I need some help with scm checking out multiple modules and building 
> > them.
> > I have several projects I'm consolidating into  a single jar.  Reactor
> > checks for module poms before generate-sources executes.
> >
> > How do I fix this issue ?
> >
> > thanks..
> > g
> >
> > POM sample to give you an idea of what I've done.
> >
> >  
> >org.apache.maven.plugins
> >maven-scm-plugin
> >1.9.4
> >
> >  
> >mod-1
> >generate-sources
> >
> >  ${mod-1.url}
> >  ${mod-1.versionType}
> >  ${mod-1.version}
> >  ${mod-1.directory}
> >
> >
> >  checkout
> >
> >  
> >  
> >mod-2
> >generate-sources
> >
> >  ${mod-2.url}
> >  ${mod-2.versionType}
> >  ${mod-2.version}
> >  ${mod-2.directory}
> >
> >
> >  checkout
> >
> >  
> >
> >
> > .
> >
> > 
> >
>  -
>  To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
>  For additional commands, e-mail: users-h...@maven.apache.org
> 
> 
> >>> -
> >>> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >>> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> 
> 

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



Re: Need help.. How to configure POM for multi-module checkout

2019-03-24 Thread garym
Hi Karl,

Thank you for the suggestion to use maven-shade/maven-assembly-plugin(s).

I was planning to use them, but haven't gotten around to them yet.  I was hung 
up on the checkout/build thing. :- Maybe on Tuesday.

The libraries are in 7 modules to manage the development cycle, specifically 
functional and unit testing.

The aggregate library.jar will not have test cases other than one per library 
to ensure each module was included in the library.jar.

The BOM file is the way I'm going as per your suggestion. 

cheers,
gary


On 2019/03/24 21:45:37, Karl Heinz Marbaise  wrote: 
> Hi Gary,
> 
> On 24.03.19 17:55, ga...@oedata.com wrote:
> > Hi Nick,
> >
> > Thanks for the questions, I'll try to explain.
> >
> > The parent pom aggregates a library (jar) from different and sometimes 
> > interdependent  modules. The parent pom checks out the module sources with 
> > the poms and compiles them into a single jar.
> 
> 
> Maybe I misunderstand a thing here. But it sounds as if you have a
> resulting library which results in a single jar? Let us ignore at the
> first place the checkout things etc.
> 
> Basicly I would say if your result is a single jar you usually have a
> single maven project?
> 
> If your result is a single jar which is combined from different modules
> I would reconsider the architecture cause usually it's better having
> separated modules like *-api, *-core etc. and may be a supplemental
> thing could be a shaded-jar which combines several of them...
> 
> Having seperated modules make testing easier which means you can put
> your unit tests into the appropriate module etc.
> 
> Do you use maven-shade/maven-assembly-plugin?
> 
> If you like to produce a BOM file. The usualy way is to make a separate
> module which contains simply the dependencyManagement with mentioning
> the modules it should contain.
> 
> Kind regards
> Karl Heinz Marbaise
> 
> 
> -
> 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: Need help.. How to configure POM for multi-module checkout

2019-03-24 Thread Karl Heinz Marbaise

Hi Gary,

On 24.03.19 17:55, ga...@oedata.com wrote:

Hi Nick,

Thanks for the questions, I'll try to explain.

The parent pom aggregates a library (jar) from different and sometimes 
interdependent  modules. The parent pom checks out the module sources with the 
poms and compiles them into a single jar.



Maybe I misunderstand a thing here. But it sounds as if you have a
resulting library which results in a single jar? Let us ignore at the
first place the checkout things etc.

Basicly I would say if your result is a single jar you usually have a
single maven project?

If your result is a single jar which is combined from different modules
I would reconsider the architecture cause usually it's better having
separated modules like *-api, *-core etc. and may be a supplemental
thing could be a shaded-jar which combines several of them...

Having seperated modules make testing easier which means you can put
your unit tests into the appropriate module etc.

Do you use maven-shade/maven-assembly-plugin?

If you like to produce a BOM file. The usualy way is to make a separate
module which contains simply the dependencyManagement with mentioning
the modules it should contain.

Kind regards
Karl Heinz Marbaise


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



Re: Need help.. How to configure POM for multi-module checkout

2019-03-24 Thread garym
Hi Nick,

Thanks for the questions, I'll try to explain.

The parent pom aggregates a library (jar) from different and sometimes 
interdependent  modules. The parent pom checks out the module sources with the 
poms and compiles them into a single jar.

I was using the modules pattern in in the parent pom to make the BOM easier 
(less confusing) to manage. I was also using scm plugin for multi-module 
checkouts.  Independently, multi-module builds and multi-module checkouts work 
perfectly. 

When I mix the SCM plugin with the multi-module build, reactor first checks if 
the module's poms exist prior to checkout. I was wondering whether there was a 
way to defer the pom check until after checkout. After reviewing reactor code, 
I found that is not possible without changes.

It looks like the release plugin interacts with reactor in a complimentary 
process. 


On 2019/03/24 11:31:28, Nikki Novak  wrote: 
> Gary,
> 
> Having modules residing in other repositories is not a problem...
> 
> ...but why do they not have a pom.xml ?
> 
> ...Is the POM on a different branch ?
> ...Are the modules using ANT or gradle instead ?
> ...Are you auto-generating POMs ?
> 
> Like, I'm really scratching my head trying to figure out what is going on 
> here ?
> 
> If the only thing you need to do is checkout, then you could add a git 
> submodule and add the folder to the maven aggregator ?
> The git submodule always points to a specific commit (until you update the 
> reference).
> 
> Would that be a viable option for your purpose(s) ?
> 
> Nick
> 
> 
> From: garym@ 
> Sent: Sunday, March 24, 2019 1:26 AM
> To: users@maven.apache.org
> Subject: Re: Need help.. How to configure POM for multi-module checkout
> 
> Hi Karl,
> 
> Thank you for replying on mail server. and thanks for sending me the links to 
> you project poms. They look awesome.
> 
> The is a difference between your projects and my situation. Your projects all 
> the modules reside in the same repository. In my case, they reside in 
> different repositories.
> 
> I elected to use the scm plugin because it allows me to select branches and 
> tags, based on the project and development requirements. I didn't suspect 
> reactor would check for poms before executing the life cycle.
> 
> I'm sure this has been solved  by someone in the past. I just don't know how 
> to solve it using maven. I can solve it with a bunch of execute blocks, but 
> that is very ugly. I'm going to look at the release plugin and a few others
> 
> It's likely I'm using the wrong plugin or I'm missing a plugin.
> 
> BTW, I like your iterator plugin
> 
> cheers
> gary
> 
> 
> 
> 
> On 2019/03/23 23:56:48, Karl Heinz Marbaise  wrote:
> > Hi,
> >
> > I will give you the same answer as on StackOverflow.
> >
> > The way you are going sounds wrong...
> >
> > As I already suggested is the way to go creating a multi module build
> > which comprises of several modules which is located within a single Git
> > repository. this can be build by using a single command.
> >
> >
> > mvn clean package
> >
> > from the root location..
> >
> > https://github.com/khmarbaise/javaee
> > https://github.com/khmarbaise/supose
> >
> > Kind regards
> > Karl Heinz Marbaise
> >
> > On 24.03.19 00:35, Gary M wrote:
> > > Hi,
> > >
> > > I need some help with scm checking out multiple modules and building them.
> > > I have several projects I'm consolidating into  a single jar.  Reactor
> > > checks for module poms before generate-sources executes.
> > >
> > > How do I fix this issue ?
> > >
> > > thanks..
> > > g
> > >
> > > POM sample to give you an idea of what I've done.
> > >
> > >  
> > >org.apache.maven.plugins
> > >maven-scm-plugin
> > >1.9.4
> > >
> > >  
> > >mod-1
> > >generate-sources
> > >
> > >  ${mod-1.url}
> > >  ${mod-1.versionType}
> > >  ${mod-1.version}
> > >  ${mod-1.directory}
> > >
> > >
> > >  checkout
> > >
> > >  
> > >  
> > >mod-2
> > >generate-sources
> > >
> > >  ${mod-2.url}
> > >  ${mod-2.versionType}
&g

Re: Need help.. How to configure POM for multi-module checkout

2019-03-24 Thread Kyle Marek
You can arbitrarily switch to other tags and branches with submodules.
It is just a simple `git checkout X` from the submodule's directory.

-Kyle

On 3/24/19 9:51 AM, ga...@oedata.com wrote:
> Hi Nick,
>
> Thank you for that suggestion. That was also suggested on stackoverflow by 
> Karl. That method is better suited for static-ish configurations.   I need a 
> BOM type system where I can dynamically switch between tags and branches for 
> different modules, much like clear case.  I'll be moving to a different 
> structure and tool chain in 6 months.
>
> cheer
>
> On 2019/03/24 01:45:50, Kyle Marek  wrote: 
>> Not sure that it will help with version number matches, but you could
>> also use Git submodules to bring multiple repositories together in a
>> single tree.
>>
>> See: https://git-scm.com/book/en/v2/Git-Tools-Submodules
>>
>> On 3/23/19 9:26 PM, ga...@oedata.com wrote:
>>> Hi Karl,
>>>
>>> Thank you for replying on mail server. and thanks for sending me the links 
>>> to you project poms. They look awesome.
>>>
>>> The is a difference between your projects and my situation. Your projects 
>>> all the modules reside in the same repository. In my case, they reside in 
>>> different repositories.  
>>>
>>> I elected to use the scm plugin because it allows me to select branches and 
>>> tags, based on the project and development requirements. I didn't suspect 
>>> reactor would check for poms before executing the life cycle. 
>>>
>>> I'm sure this has been solved  by someone in the past. I just don't know 
>>> how to solve it using maven. I can solve it with a bunch of execute blocks, 
>>> but that is very ugly. I'm going to look at the release plugin and a few 
>>> others
>>>
>>> It's likely I'm using the wrong plugin or I'm missing a plugin. 
>>>
>>> BTW, I like your iterator plugin 
>>>
>>> cheers
>>> gary
>>>
>>>
>>>
>>>
>>> On 2019/03/23 23:56:48, Karl Heinz Marbaise  wrote: 
 Hi,

 I will give you the same answer as on StackOverflow.

 The way you are going sounds wrong...

 As I already suggested is the way to go creating a multi module build
 which comprises of several modules which is located within a single Git
 repository. this can be build by using a single command.


 mvn clean package

 from the root location..

 https://github.com/khmarbaise/javaee
 https://github.com/khmarbaise/supose

 Kind regards
 Karl Heinz Marbaise

 On 24.03.19 00:35, Gary M wrote:
> Hi,
>
> I need some help with scm checking out multiple modules and building them.
> I have several projects I'm consolidating into  a single jar.  Reactor
> checks for module poms before generate-sources executes.
>
> How do I fix this issue ?
>
> thanks..
> g
>
> POM sample to give you an idea of what I've done.
>
>  
>org.apache.maven.plugins
>maven-scm-plugin
>1.9.4
>
>  
>mod-1
>generate-sources
>
>  ${mod-1.url}
>  ${mod-1.versionType}
>  ${mod-1.version}
>  ${mod-1.directory}
>
>
>  checkout
>
>  
>  
>mod-2
>generate-sources
>
>  ${mod-2.url}
>  ${mod-2.versionType}
>  ${mod-2.version}
>  ${mod-2.directory}
>
>
>  checkout
>
>  
>
>
> .
>
> 
>
 -
 To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
 For additional commands, e-mail: users-h...@maven.apache.org


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



signature.asc
Description: OpenPGP digital signature


Re: Need help.. How to configure POM for multi-module checkout

2019-03-24 Thread garym
Hi Nick,

Thank you for that suggestion. That was also suggested on stackoverflow by 
Karl. That method is better suited for static-ish configurations.   I need a 
BOM type system where I can dynamically switch between tags and branches for 
different modules, much like clear case.  I'll be moving to a different 
structure and tool chain in 6 months.

cheer

On 2019/03/24 01:45:50, Kyle Marek  wrote: 
> Not sure that it will help with version number matches, but you could
> also use Git submodules to bring multiple repositories together in a
> single tree.
> 
> See: https://git-scm.com/book/en/v2/Git-Tools-Submodules
> 
> On 3/23/19 9:26 PM, ga...@oedata.com wrote:
> > Hi Karl,
> >
> > Thank you for replying on mail server. and thanks for sending me the links 
> > to you project poms. They look awesome.
> >
> > The is a difference between your projects and my situation. Your projects 
> > all the modules reside in the same repository. In my case, they reside in 
> > different repositories.  
> >
> > I elected to use the scm plugin because it allows me to select branches and 
> > tags, based on the project and development requirements. I didn't suspect 
> > reactor would check for poms before executing the life cycle. 
> >
> > I'm sure this has been solved  by someone in the past. I just don't know 
> > how to solve it using maven. I can solve it with a bunch of execute blocks, 
> > but that is very ugly. I'm going to look at the release plugin and a few 
> > others
> >
> > It's likely I'm using the wrong plugin or I'm missing a plugin. 
> >
> > BTW, I like your iterator plugin 
> >
> > cheers
> > gary
> >
> >
> >
> >
> > On 2019/03/23 23:56:48, Karl Heinz Marbaise  wrote: 
> >> Hi,
> >>
> >> I will give you the same answer as on StackOverflow.
> >>
> >> The way you are going sounds wrong...
> >>
> >> As I already suggested is the way to go creating a multi module build
> >> which comprises of several modules which is located within a single Git
> >> repository. this can be build by using a single command.
> >>
> >>
> >> mvn clean package
> >>
> >> from the root location..
> >>
> >> https://github.com/khmarbaise/javaee
> >> https://github.com/khmarbaise/supose
> >>
> >> Kind regards
> >> Karl Heinz Marbaise
> >>
> >> On 24.03.19 00:35, Gary M wrote:
> >>> Hi,
> >>>
> >>> I need some help with scm checking out multiple modules and building them.
> >>> I have several projects I'm consolidating into  a single jar.  Reactor
> >>> checks for module poms before generate-sources executes.
> >>>
> >>> How do I fix this issue ?
> >>>
> >>> thanks..
> >>> g
> >>>
> >>> POM sample to give you an idea of what I've done.
> >>>
> >>>  
> >>>org.apache.maven.plugins
> >>>maven-scm-plugin
> >>>1.9.4
> >>>
> >>>  
> >>>mod-1
> >>>generate-sources
> >>>
> >>>  ${mod-1.url}
> >>>  ${mod-1.versionType}
> >>>  ${mod-1.version}
> >>>  ${mod-1.directory}
> >>>
> >>>
> >>>  checkout
> >>>
> >>>  
> >>>  
> >>>mod-2
> >>>generate-sources
> >>>
> >>>  ${mod-2.url}
> >>>  ${mod-2.versionType}
> >>>  ${mod-2.version}
> >>>  ${mod-2.directory}
> >>>
> >>>
> >>>  checkout
> >>>
> >>>  
> >>>
> >>>
> >>> .
> >>>
> >>> 
> >>>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> >> For additional commands, e-mail: users-h...@maven.apache.org
> >>
> >>
> > -
> > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> > For additional commands, e-mail: users-h...@maven.apache.org
> 
> 

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



Re: Need help.. How to configure POM for multi-module checkout

2019-03-24 Thread Nikki Novak
Gary,

Having modules residing in other repositories is not a problem...

...but why do they not have a pom.xml ?

...Is the POM on a different branch ?
...Are the modules using ANT or gradle instead ?
...Are you auto-generating POMs ?

Like, I'm really scratching my head trying to figure out what is going on here ?

If the only thing you need to do is checkout, then you could add a git 
submodule and add the folder to the maven aggregator ?
The git submodule always points to a specific commit (until you update the 
reference).

Would that be a viable option for your purpose(s) ?

Nick


From: garym@ 
Sent: Sunday, March 24, 2019 1:26 AM
To: users@maven.apache.org
Subject: Re: Need help.. How to configure POM for multi-module checkout

Hi Karl,

Thank you for replying on mail server. and thanks for sending me the links to 
you project poms. They look awesome.

The is a difference between your projects and my situation. Your projects all 
the modules reside in the same repository. In my case, they reside in different 
repositories.

I elected to use the scm plugin because it allows me to select branches and 
tags, based on the project and development requirements. I didn't suspect 
reactor would check for poms before executing the life cycle.

I'm sure this has been solved  by someone in the past. I just don't know how to 
solve it using maven. I can solve it with a bunch of execute blocks, but that 
is very ugly. I'm going to look at the release plugin and a few others

It's likely I'm using the wrong plugin or I'm missing a plugin.

BTW, I like your iterator plugin

cheers
gary




On 2019/03/23 23:56:48, Karl Heinz Marbaise  wrote:
> Hi,
>
> I will give you the same answer as on StackOverflow.
>
> The way you are going sounds wrong...
>
> As I already suggested is the way to go creating a multi module build
> which comprises of several modules which is located within a single Git
> repository. this can be build by using a single command.
>
>
> mvn clean package
>
> from the root location..
>
> https://github.com/khmarbaise/javaee
> https://github.com/khmarbaise/supose
>
> Kind regards
> Karl Heinz Marbaise
>
> On 24.03.19 00:35, Gary M wrote:
> > Hi,
> >
> > I need some help with scm checking out multiple modules and building them.
> > I have several projects I'm consolidating into  a single jar.  Reactor
> > checks for module poms before generate-sources executes.
> >
> > How do I fix this issue ?
> >
> > thanks..
> > g
> >
> > POM sample to give you an idea of what I've done.
> >
> >  
> >org.apache.maven.plugins
> >maven-scm-plugin
> >1.9.4
> >
> >  
> >mod-1
> >generate-sources
> >
> >  ${mod-1.url}
> >  ${mod-1.versionType}
> >  ${mod-1.version}
> >  ${mod-1.directory}
> >
> >
> >  checkout
> >
> >  
> >  
> >mod-2
> >generate-sources
> >
> >  ${mod-2.url}
> >  ${mod-2.versionType}
> >  ${mod-2.version}
> >  ${mod-2.directory}
> >
> >
> >  checkout
> >
> >  
> >
> >
> > .
> >
> > 
> >
>
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>
>

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



How to configure maven to checkout multiple modules before module reactor fails

2019-03-23 Thread garym
How should I configure maven parent pom to checkout code before Module list
fails because the pom cannot be found.

It seems the maven's reactor test for a module's pom occurs before the
generate-sources phase when scm checkouts the projects with the projects'
pom.

How can I fix this ?  

thanks


  target/mod-1
  target/mod-2



  

  org.apache.maven.plugins
  maven-scm-plugin
  1.9.4
  

  mod-1
  generate-sources
  
${mod-1.url}
${mod-1.versionType}
${mod-1.version}
${mod-1.directory}
  
  
checkout
  


  mod-2
  generate-sources
  
${mod-2.url}
${mod-2.versionType}
${mod-2.version}
${mod-2.directory}
  
  
checkout
  

  

.





--
Sent from: http://maven.40175.n5.nabble.com/Maven-Users-f40176.html

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



Re: Need help.. How to configure POM for multi-module checkout

2019-03-23 Thread Kyle Marek
Not sure that it will help with version number matches, but you could
also use Git submodules to bring multiple repositories together in a
single tree.

See: https://git-scm.com/book/en/v2/Git-Tools-Submodules

On 3/23/19 9:26 PM, ga...@oedata.com wrote:
> Hi Karl,
>
> Thank you for replying on mail server. and thanks for sending me the links to 
> you project poms. They look awesome.
>
> The is a difference between your projects and my situation. Your projects all 
> the modules reside in the same repository. In my case, they reside in 
> different repositories.  
>
> I elected to use the scm plugin because it allows me to select branches and 
> tags, based on the project and development requirements. I didn't suspect 
> reactor would check for poms before executing the life cycle. 
>
> I'm sure this has been solved  by someone in the past. I just don't know how 
> to solve it using maven. I can solve it with a bunch of execute blocks, but 
> that is very ugly. I'm going to look at the release plugin and a few others
>
> It's likely I'm using the wrong plugin or I'm missing a plugin. 
>
> BTW, I like your iterator plugin 
>
> cheers
> gary
>
>
>
>
> On 2019/03/23 23:56:48, Karl Heinz Marbaise  wrote: 
>> Hi,
>>
>> I will give you the same answer as on StackOverflow.
>>
>> The way you are going sounds wrong...
>>
>> As I already suggested is the way to go creating a multi module build
>> which comprises of several modules which is located within a single Git
>> repository. this can be build by using a single command.
>>
>>
>> mvn clean package
>>
>> from the root location..
>>
>> https://github.com/khmarbaise/javaee
>> https://github.com/khmarbaise/supose
>>
>> Kind regards
>> Karl Heinz Marbaise
>>
>> On 24.03.19 00:35, Gary M wrote:
>>> Hi,
>>>
>>> I need some help with scm checking out multiple modules and building them.
>>> I have several projects I'm consolidating into  a single jar.  Reactor
>>> checks for module poms before generate-sources executes.
>>>
>>> How do I fix this issue ?
>>>
>>> thanks..
>>> g
>>>
>>> POM sample to give you an idea of what I've done.
>>>
>>>  
>>>org.apache.maven.plugins
>>>maven-scm-plugin
>>>1.9.4
>>>
>>>  
>>>mod-1
>>>generate-sources
>>>
>>>  ${mod-1.url}
>>>  ${mod-1.versionType}
>>>  ${mod-1.version}
>>>  ${mod-1.directory}
>>>
>>>
>>>  checkout
>>>
>>>  
>>>  
>>>mod-2
>>>generate-sources
>>>
>>>  ${mod-2.url}
>>>  ${mod-2.versionType}
>>>  ${mod-2.version}
>>>  ${mod-2.directory}
>>>
>>>
>>>  checkout
>>>
>>>  
>>>
>>>
>>> .
>>>
>>> 
>>>
>> -
>> 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



signature.asc
Description: OpenPGP digital signature


Re: Need help.. How to configure POM for multi-module checkout

2019-03-23 Thread garym
Hi Karl,

Thank you for replying on mail server. and thanks for sending me the links to 
you project poms. They look awesome.

The is a difference between your projects and my situation. Your projects all 
the modules reside in the same repository. In my case, they reside in different 
repositories.  

I elected to use the scm plugin because it allows me to select branches and 
tags, based on the project and development requirements. I didn't suspect 
reactor would check for poms before executing the life cycle. 

I'm sure this has been solved  by someone in the past. I just don't know how to 
solve it using maven. I can solve it with a bunch of execute blocks, but that 
is very ugly. I'm going to look at the release plugin and a few others

It's likely I'm using the wrong plugin or I'm missing a plugin. 

BTW, I like your iterator plugin 

cheers
gary




On 2019/03/23 23:56:48, Karl Heinz Marbaise  wrote: 
> Hi,
> 
> I will give you the same answer as on StackOverflow.
> 
> The way you are going sounds wrong...
> 
> As I already suggested is the way to go creating a multi module build
> which comprises of several modules which is located within a single Git
> repository. this can be build by using a single command.
> 
> 
> mvn clean package
> 
> from the root location..
> 
> https://github.com/khmarbaise/javaee
> https://github.com/khmarbaise/supose
> 
> Kind regards
> Karl Heinz Marbaise
> 
> On 24.03.19 00:35, Gary M wrote:
> > Hi,
> >
> > I need some help with scm checking out multiple modules and building them.
> > I have several projects I'm consolidating into  a single jar.  Reactor
> > checks for module poms before generate-sources executes.
> >
> > How do I fix this issue ?
> >
> > thanks..
> > g
> >
> > POM sample to give you an idea of what I've done.
> >
> >  
> >org.apache.maven.plugins
> >maven-scm-plugin
> >1.9.4
> >
> >  
> >mod-1
> >generate-sources
> >
> >  ${mod-1.url}
> >  ${mod-1.versionType}
> >  ${mod-1.version}
> >  ${mod-1.directory}
> >
> >
> >  checkout
> >
> >  
> >  
> >mod-2
> >generate-sources
> >
> >  ${mod-2.url}
> >  ${mod-2.versionType}
> >  ${mod-2.version}
> >  ${mod-2.directory}
> >
> >
> >  checkout
> >
> >  
> >
> >
> > .
> >
> > 
> >
> 
> -
> 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: Need help.. How to configure POM for multi-module checkout

2019-03-23 Thread Karl Heinz Marbaise

Hi,

I will give you the same answer as on StackOverflow.

The way you are going sounds wrong...

As I already suggested is the way to go creating a multi module build
which comprises of several modules which is located within a single Git
repository. this can be build by using a single command.


mvn clean package

from the root location..

https://github.com/khmarbaise/javaee
https://github.com/khmarbaise/supose

Kind regards
Karl Heinz Marbaise

On 24.03.19 00:35, Gary M wrote:

Hi,

I need some help with scm checking out multiple modules and building them.
I have several projects I'm consolidating into  a single jar.  Reactor
checks for module poms before generate-sources executes.

How do I fix this issue ?

thanks..
g

POM sample to give you an idea of what I've done.
   
 
   org.apache.maven.plugins
   maven-scm-plugin
   1.9.4
   
 
   mod-1
   generate-sources
   
 ${mod-1.url}
 ${mod-1.versionType}
 ${mod-1.version}
 ${mod-1.directory}
   
   
 checkout
   
 
 
   mod-2
   generate-sources
   
 ${mod-2.url}
 ${mod-2.versionType}
 ${mod-2.version}
 ${mod-2.directory}
   
   
 checkout
   
 
   

.





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



Need help.. How to configure POM for multi-module checkout

2019-03-23 Thread Gary M
Hi,

I need some help with scm checking out multiple modules and building them.
I have several projects I'm consolidating into  a single jar.  Reactor
checks for module poms before generate-sources executes.

How do I fix this issue ?

thanks..
g

POM sample to give you an idea of what I've done.
  

  org.apache.maven.plugins
  maven-scm-plugin
  1.9.4
  

  mod-1
  generate-sources
  
${mod-1.url}
${mod-1.versionType}
${mod-1.version}
${mod-1.directory}
  
  
checkout
  


  mod-2
  generate-sources
  
${mod-2.url}
${mod-2.versionType}
${mod-2.version}
${mod-2.directory}
  
  
checkout
  

  

.




How to configure java.util.logging for a forked failsafe invocation?

2018-07-24 Thread Scott Kurz
 Hi,

As suggested here:  https://stackoverflow.com/a/12276898/634324  I'm simply
doing this (using the updated rather than deprecated prop name) which forks
a JVM (the default):


maven-failsafe-plugin
2.22.0



${project.basedir}/src/test/resources/logging.properties




default-integration-test
integration-test

integration-test






But it doesn't seem to be having any effect.

I stepped through it a bit in the debugger... enough to see that it seems
to be that this sequence:


https://github.com/apache/maven-surefire/blob/19ea21e3d7681c33a158dd7e06e8b5a993a33d85/surefire-booter/src/main/java/org/apache/maven/surefire/booter/ForkedBooter.java#L91-L95

ends up initializing the LogManager before a system prop
like java.util.logging.config.file can be set.



If this sounds like it'd be worth capturing in an issue/JIRA, I could add
more detail, but first wanted to check this wasn't a known problem or a
usage error... (or if the "solution" is just not to fork which I wasn't
hoping to resort to yet).

Thanks,
Scott Kurz


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

2015-03-18 Thread Markus Karg
No I have never heard of vfs-maven-plugin before, and I doubt it will be an 
easy solution, as the download address is not known in the POM -- it is a 
DEPENDENCY, hence the dependency resolution mechanism has to be used.

-Ursprüngliche Nachricht-
Von: Andreas Gudian [mailto:andreas.gud...@gmail.com] 
Gesendet: Dienstag, 17. März 2015 20:20
An: Maven Users List
Betreff: Re: How to configure maven-dependency-plugin's encoding used for 
unpack?

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

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

2015-03-17 Thread Markus Karg
My posting was an example why non-UTF-8-ZIPs are needed to be supported by 
maven-dependency-plugin. It was definitively not intended as a claim that all 
Windows editions exactly need CP850. Sorry for the misunderstanding.


-Ursprüngliche Nachricht-
Von: bmat...@gmail.com [mailto:bmat...@gmail.com] Im Auftrag von Baptiste Mathus
Gesendet: Dienstag, 17. März 2015 06:40
An: Maven Users List
Betreff: Re: How to configure maven-dependency-plugin's encoding used for 
unpack?

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 !

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


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

2015-03-17 Thread Markus Karg
The ASSEMBLY plugin forwards its own encoding to the Plexus Archiver 
internally. That way you can create ZIPs with CP850. :-)

The DEPENDENCY plugin intenrally uses the Plexus ZipUnarchiver. The Plexus 
ZipUnarchiver is a special form of the AbstractUnarchiver, which has a method 
setEncoding(String) 
(http://plexus.codehaus.org/plexus-components/plexus-archiver/apidocs/org/codehaus/plexus/archiver/zip/AbstractZipUnArchiver.html#setEncoding(java.lang.String)
 ). But the dependency plugin has no encoding to forwards to the Plexus 
ZipArchiver to make use it this. :-(


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

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
 


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


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
  
 





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

2015-03-17 Thread Markus Karg
Hervé,

can you please elaborate for non-committers like me:

(a) Why shall I open another issue that contains essentially the same text as 
the already-existing and non-fixed-but-marked-as-resolved one 
http://jira.codehaus.org/browse/MDEP-436 ? The result would be the same: 
Kristian assumes it is fixed, and again closes it. So what do we gain ?

(b) Why adding a new configuration property encoding to 
maven-dependency-plugin's configuration would (even hypothetically) break 
anything ?

(c) What you assume how anybody should be able to use maven-dependency-plugin's 
unpack target on CP850-ZIPs ?

Just to make me understand. :-)

Thanks
-Markus


-Ursprüngliche Nachricht-
Von: Hervé BOUTEMY [mailto:herve.bout...@free.fr] 
Gesendet: Dienstag, 17. März 2015 08:36
An: Maven Users List
Betreff: Re: AW: How to configure maven-dependency-plugin's encoding used for 
unpack?

Le mardi 17 mars 2015 08:19:20 Markus Karg a écrit :
 (1) Normal users (non-comitters) do not have permission to reopen 
 issues so I really beg for your kind help to reopen this issue for me! 
 :-)
no, please don't reopen the issue: open another issue
 
 (2) Despite all the quirks of Windows, the ZIP specification does not 
 say a word about encoding,
we had the discussion on dev@ mailing list in october and we based our decision 
partly on PKWARE's old documentation

see 
http://mail-archives.apache.org/mod_mbox/maven-dev/201410.mbox/%3C1632789.Hzz1ElkyQm%40herve-desktop%3E

 so it is pretty correct to use any decoding in ZIPs.
 As a consequence, maven-dependency-plugin MUST either be able to 
 detect the encoding OR MUST have configurable encoding (plexus 
 unarchiver already provides setEncoding BTW).
 
 I actually do not understand the discussion about this. I have such 
 ZIPs, these are compliant with the ZIP specification,
please provide the Zip specifications you're referring to: having a common 
reference is the first problem we faced, ie we could not find any shared 
reference

 and maven-dependency-plugin
 cannot handle it. So instead of complaining about Windows being quirky 
 wouldn't it make more sense to simply provide maven-dependency-plugin 
 the same encoding option that maven-assembly-plugin already has? I 
 mean, that would be straightforward, simple to implement, pragmatic 
 and would actually help us (we are stuck with this!) while discussions about 
 Windows do not.
 ;-)
I suppose there are multiple zip encoders and decoders on every platform: the 
problem is with some decoders, IIUC, not the whole platform that executes it

 
 Maybe there is a trick so one can configure plexus unarchiver's 
 setEncoding via the POM, but we simply don't know how to do that. So 
 if you know that trick, then please share your knowledge with us. We 
 do not insist on a fix for the plugin, but we really need a solution 
 ASAP! :-)
given the problem on shared zip structure reference, we really fear that fixing 
the issue for one user will break the other one, using another zip decoder

Regards,

Hervé
 
 Thanks a lot!
 -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 07:06
 An: Maven Users List
 Betreff: Re: How to configure maven-dependency-plugin's encoding used 
 for unpack?
 
 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

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

2015-03-17 Thread Markus Karg
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: AW: How to configure maven-dependency-plugin's encoding used for unpack?

2015-03-17 Thread Hervé BOUTEMY
Le mardi 17 mars 2015 08:19:20 Markus Karg a écrit :
 (1) Normal users (non-comitters) do not have permission to reopen issues
 so I really beg for your kind help to reopen this issue for me! :-)
no, please don't reopen the issue: open another issue
 
 (2) Despite all the quirks of Windows, the ZIP specification does not say a
 word about encoding,
we had the discussion on dev@ mailing list in october
and we based our decision partly on PKWARE's old documentation

see 
http://mail-archives.apache.org/mod_mbox/maven-dev/201410.mbox/%3C1632789.Hzz1ElkyQm%40herve-desktop%3E

 so it is pretty correct to use any decoding in ZIPs.
 As a consequence, maven-dependency-plugin MUST either be able to detect the
 encoding OR MUST have configurable encoding (plexus unarchiver already
 provides setEncoding BTW).
 
 I actually do not understand the discussion about this. I have such ZIPs,
 these are compliant with the ZIP specification,
please provide the Zip specifications you're referring to: having a common 
reference is the first problem we faced, ie we could not find any shared 
reference

 and maven-dependency-plugin
 cannot handle it. So instead of complaining about Windows being quirky
 wouldn't it make more sense to simply provide maven-dependency-plugin the
 same encoding option that maven-assembly-plugin already has? I mean, that
 would be straightforward, simple to implement, pragmatic and would actually
 help us (we are stuck with this!) while discussions about Windows do not.
 ;-)
I suppose there are multiple zip encoders and decoders on every platform: the 
problem is with some decoders, IIUC, not the whole platform that executes it

 
 Maybe there is a trick so one can configure plexus unarchiver's setEncoding
 via the POM, but we simply don't know how to do that. So if you know that
 trick, then please share your knowledge with us. We do not insist on a fix
 for the plugin, but we really need a solution ASAP! :-)
given the problem on shared zip structure reference, we really fear that fixing 
the issue for one user will break the other one, using another zip decoder

Regards,

Hervé
 
 Thanks a lot!
 -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 07:06
 An: Maven Users List
 Betreff: Re: How to configure maven-dependency-plugin's encoding used for
 unpack?
 
 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

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

2015-03-17 Thread Markus Karg
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:
 
   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

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
 



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

2015-03-16 Thread Markus Karg
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


How to configure maven

2014-01-22 Thread Walters, Jay
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, 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



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

2012-11-03 Thread carlos.a.de.la.paz
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



This message is for the designated recipient only and may contain privileged, 
proprietary, or otherwise private information. If you have received it in 
error, please notify the sender immediately and delete the original. Any other 
use of the e-mail by you is prohibited. Where allowed by local law, electronic 
communications with Accenture and its affiliates, including e-mail and instant 
messaging (including content), may be scanned by our systems for the purposes 
of information security and assessment of internal compliance with Accenture 
policy. .
__

www.accenture.com


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



how to configure maven plugins using compony repository with nexus

2012-01-12 Thread chandrasheker
Hi,

How to configure maven plugins to company repository with nexus ui.i
download the jar from  internal company repository 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



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

2012-01-03 Thread David Hoffer
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



How to configure plugin with default values

2011-08-18 Thread David Hoffer
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
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?

-Dave

-
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


Fwd: how to configure maven-test-plugin

2010-10-28 Thread mounir sabour
hello all,
i want to mock a final class, for that i need to use jdave
to do so i need  to

launch your tests with the following vm parameter:
-javaagent:/path/to/workspace/jdave-unfinalizer/target/jdave-unfinalizer-jar-name.jar


i did a search and the  maven-test-plugin can do this  ( i dont understand
why it is a dependency not a plugin !)
how to configure this plugin in the pom.xml
to modify properties lik

maven.junit.jvmand
maven.junit.jvmargs


thanks in advance



-- 
--
الله المعين
منير الصبور







-- 
--
الله المعين
منير الصبور


how to configure maven-test-plugin

2010-10-28 Thread mounir sabour
hello all,
i want to mock a final class, for that i need to use jdave
to do so i need  to

launch your tests with the following vm parameter:
-javaagent:/path/to/workspace/jdave-unfinalizer/target/jdave-unfinalizer-jar-name.jar


i did a search and the  maven-test-plugin can do this  ( i dont understand
why it is a dependency not a plugin !)
how to configure this plugin in the pom.xml
to modify properties lik

maven.junit.jvmand
maven.junit.jvmargs


thanks in advance



-- 
--
الله المعين
منير الصبور


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.



how to configure build processes with mavn

2010-06-21 Thread Mariyan Nenchev
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.


AW: how to configure build processes with mavn

2010-06-21 Thread Bernhard Neuhauser
Hi,

I think, there are 2 features available supporting your requirement.
1) /profiles/profile
2) /build/plugins/plugin/executions/execution 

I know that 1) can be triggered via mvn -Pconf1,conf2 but for the ability to 
execute more than one profile at once, the profile need to contain a execution 
with a unique execution id.

This leads me to the following question:
Is it possible to enable/disable an execution using a mvn parameter? 
(Alternative: is it possible to enable/disable an execution based on a profile 
property?

Regards,
Bernhard

-Ursprüngliche Nachricht-
Von: Mariyan Nenchev [mailto:mnenc...@trinitascapital.com] 
Gesendet: Montag, 21. Juni 2010 14:59
An: users@maven.apache.org
Betreff: how to configure build processes with mavn

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.

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



maven-javadoc-plugin how to configure both aggregate and non-appregate reports

2009-11-02 Thread David Hoffer
I'm using the latest version of maven-javadoc-plugin using its new
reportSets options,  Since I have a multi module project I'd like the top
level to have aggregate javadoc reports and then at the java child projects
have javadocs for that module too.

However I never get any javadocs reports at the top level.  Here is how my
project is configured.

Top level pom:
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
version${maven-javadoc-plugin.version}/version
configuration
!-- Default configuration for all reports --
/configuration
reportSets
reportSet
idaggregate/id
configuration
!-- Specific configuration for the aggregate
report --
/configuration
reports
reportaggregate/report
/reports
/reportSet
/reportSets
/plugin

Java Child pom:
plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-javadoc-plugin/artifactId
version${maven-javadoc-plugin.version}/version
configuration
!-- Default configuration for all reports --
/configuration
reportSets
reportSet
idnon-aggregate/id
configuration
!-- Specific configuration for the non
aggregate report --
/configuration
reports
reportjavadoc/report
/reports
/reportSet
/reportSets
/plugin

Flex child pom:
plugin
groupIdorg.sonatype.flexmojos/groupId
artifactIdflexmojos-maven-plugin/artifactId
version${flexmojos-maven-plugin.version}/version
configuration
headlessServertrue/headlessServer
/configuration
/plugin

How am I supposed to do this to get reports at the top level too?

-Dave


Re: maven-javadoc-plugin how to configure both aggregate and non-appregate reports

2009-11-02 Thread Stephen Connolly
reportSet
inheritedfalse/inherited
!-- parent only config goes here --
/reportSet


2009/11/2 David Hoffer dhoff...@gmail.com:
 I'm using the latest version of maven-javadoc-plugin using its new
 reportSets options,  Since I have a multi module project I'd like the top
 level to have aggregate javadoc reports and then at the java child projects
 have javadocs for that module too.

 However I never get any javadocs reports at the top level.  Here is how my
 project is configured.

 Top level pom:
 plugin
                groupIdorg.apache.maven.plugins/groupId
                artifactIdmaven-javadoc-plugin/artifactId
                version${maven-javadoc-plugin.version}/version
                configuration
                    !-- Default configuration for all reports --
                /configuration
                reportSets
                    reportSet
                        idaggregate/id
                        configuration
                            !-- Specific configuration for the aggregate
 report --
                        /configuration
                        reports
                            reportaggregate/report
                        /reports
                    /reportSet
                /reportSets
            /plugin

 Java Child pom:
 plugin
                groupIdorg.apache.maven.plugins/groupId
                artifactIdmaven-javadoc-plugin/artifactId
                version${maven-javadoc-plugin.version}/version
                configuration
                    !-- Default configuration for all reports --
                /configuration
                reportSets
                    reportSet
                        idnon-aggregate/id
                        configuration
                            !-- Specific configuration for the non
 aggregate report --
                        /configuration
                        reports
                            reportjavadoc/report
                        /reports
                    /reportSet
                /reportSets
            /plugin

 Flex child pom:
 plugin
                groupIdorg.sonatype.flexmojos/groupId
                artifactIdflexmojos-maven-plugin/artifactId
                version${flexmojos-maven-plugin.version}/version
                configuration
                    headlessServertrue/headlessServer
                /configuration
            /plugin

 How am I supposed to do this to get reports at the top level too?

 -Dave


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



How to configure proxy for multiple protocols

2009-10-14 Thread Hugo Palma
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 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.
 





Maven Resource Plugin - Filtering: How to configure custom Token to be filtered

2009-09-24 Thread Torsten Krah
Hi,

i want to migrate from antmod to maven.
I wonder if it is possible to configure additional tokens to replace my 
property placeholders ( not only @...@ and ${} ).

I want to replace $$ ones.

I've read http://maven.apache.org/shared/maven-filtering/usage.html but 
looking at latest trunk or beta3 of the maven shared component the docs 
mention MavenProjectValueSource which is gone already and does only exist in 
beta2 anymore (exists only up to revision 806645).

So what would be the best way to get my custom token filtered?
Is it configurable or have i have to write my own resource mojo (against trunk 
version or beta3, what must be done as the example is outdated, isn't it?).

thx for help

Torsten


-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect.
-- Linus Torvalds


smime.p7s
Description: S/MIME cryptographic signature


Re: Maven Resource Plugin - Filtering: How to configure custom Token to be filtered

2009-09-24 Thread Olivier Lamy
Hi,
Have a look at delimiters [1] parameters in the resources mojo

HTH,
--
Olivier
http://maven.apache.org/plugins/maven-resources-plugin/resources-mojo.html#delimiters

2009/9/24 Torsten Krah tk...@fachschaft.imn.htwk-leipzig.de:
 Hi,

 i want to migrate from antmod to maven.
 I wonder if it is possible to configure additional tokens to replace my
 property placeholders ( not only @...@ and ${} ).

 I want to replace $$ ones.

 I've read http://maven.apache.org/shared/maven-filtering/usage.html but
 looking at latest trunk or beta3 of the maven shared component the docs
 mention MavenProjectValueSource which is gone already and does only exist in
 beta2 anymore (exists only up to revision 806645).

 So what would be the best way to get my custom token filtered?
 Is it configurable or have i have to write my own resource mojo (against trunk
 version or beta3, what must be done as the example is outdated, isn't it?).

 thx for help

 Torsten


 --
 Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
 Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

 Really, I'm not out to destroy Microsoft. That will just be a
 completely unintentional side effect.
        -- Linus Torvalds




-- 
Olivier

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



Re: Maven Resource Plugin - Filtering: How to configure custom Token to be filtered

2009-09-24 Thread Torsten Krah
Am Donnerstag, 24. September 2009 13:55:08 schrieb Olivier Lamy:
 Have a look at delimiters [1] parameters in the resources mojo

Hi, thx for this hint.
Did have a look there - delimiters does sounds nice (i need to turn off 
useDefaultDelimiters to get them respected), however its not working as 
expected (at least expected by me ;-)).


plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-resources-plugin/artifactId
version2.4/version
configuration
useDefaultDelimitersfalse/useDefaultDelimiters
delimiters
delimiter$/delimiter
delimiter@/delimiter
delimiter#/delimiter
delimiter${*}/delimiter
/delimiters
encodingUTF-8/encoding
/configuration
/plugin

Using this i get a NullPointerException:
java.lang.NullPointerException
at 
org.codehaus.plexus.interpolation.multi.DelimiterSpecification.parse(DelimiterSpecification.java:54)
at 
org.codehaus.plexus.interpolation.multi.MultiDelimiterStringSearchInterpolator.setDelimiterSpecs(MultiDelimiterStringSearchInterpolator.java:394)


Removing the ${*} (although the docs does mention it as valid and i would like 
to use it too) it runs but not working like expected:

Some exampled i tried:

mvn clean resources:resource -Dtest.value=true

As example using this property file:

test.value=$test.value$
test.value=#test.value#
test.val...@test.value@
test.value=${test.value}

Using only:

delimiter$/delimiter
delimiter@/delimiter

i get this result:

test.value=true
test.value=#test.value#
test.value=true
test.value=${test.value}

Using this one:

delimiter$/delimiter
delimiter@/delimiter
delimiter#/delimiter

the result is:

test.value=true
test.value=#test.value#
test.val...@test.value@
test.value=${test.value}


Whats wrong here? Did i miss something or is my plugin configuration 
incorrect? Might this be a bug?


Torsten

-- 
Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

Really, I'm not out to destroy Microsoft. That will just be a 
completely unintentional side effect.
-- Linus Torvalds


smime.p7s
Description: S/MIME cryptographic signature


Re: Maven Resource Plugin - Filtering: How to configure custom Token to be filtered

2009-09-24 Thread Olivier Lamy
probably a bug. (I have to investigate more)
Can you create a issue [1] and attach a simple project to reproduce the issue.

Thanks !
--
Olivier
[1] http://jira.codehaus.org/browse/MRESOURCES

2009/9/24 Torsten Krah tk...@fachschaft.imn.htwk-leipzig.de:
 Am Donnerstag, 24. September 2009 13:55:08 schrieb Olivier Lamy:
 Have a look at delimiters [1] parameters in the resources mojo

 Hi, thx for this hint.
 Did have a look there - delimiters does sounds nice (i need to turn off
 useDefaultDelimiters to get them respected), however its not working as
 expected (at least expected by me ;-)).


 plugin
        groupIdorg.apache.maven.plugins/groupId
        artifactIdmaven-resources-plugin/artifactId
        version2.4/version
        configuration
                useDefaultDelimitersfalse/useDefaultDelimiters
                delimiters
                        delimiter$/delimiter
                        delimiter@/delimiter
                        delimiter#/delimiter
                        delimiter${*}/delimiter
                /delimiters
                encodingUTF-8/encoding
        /configuration
 /plugin

 Using this i get a NullPointerException:
 java.lang.NullPointerException
        at
 org.codehaus.plexus.interpolation.multi.DelimiterSpecification.parse(DelimiterSpecification.java:54)
        at
 org.codehaus.plexus.interpolation.multi.MultiDelimiterStringSearchInterpolator.setDelimiterSpecs(MultiDelimiterStringSearchInterpolator.java:394)


 Removing the ${*} (although the docs does mention it as valid and i would like
 to use it too) it runs but not working like expected:

 Some exampled i tried:

 mvn clean resources:resource -Dtest.value=true

 As example using this property file:

 test.value=$test.value$
 test.value=#test.value#
 test.val...@test.value@
 test.value=${test.value}

 Using only:

 delimiter$/delimiter
 delimiter@/delimiter

 i get this result:

 test.value=true
 test.value=#test.value#
 test.value=true
 test.value=${test.value}

 Using this one:

 delimiter$/delimiter
 delimiter@/delimiter
 delimiter#/delimiter

 the result is:

 test.value=true
 test.value=#test.value#
 test.val...@test.value@
 test.value=${test.value}


 Whats wrong here? Did i miss something or is my plugin configuration
 incorrect? Might this be a bug?


 Torsten

 --
 Bitte senden Sie mir keine Word- oder PowerPoint-Anhänge.
 Siehe http://www.gnu.org/philosophy/no-word-attachments.de.html

 Really, I'm not out to destroy Microsoft. That will just be a
 completely unintentional side effect.
        -- Linus Torvalds




-- 
Olivier

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



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



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

2009-04-13 Thread David Hoffer
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


how to configure existing project for maven2

2009-04-10 Thread rohan chauhan


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



How to configure maven-idea-plugin to include/exclude directories?

2009-04-01 Thread David Hoffer
How can I configure maven-idea-plugin to allow
target/generated-sources as IDEA source but disallow all others?
Having target included by default seriously slows down IDEA when it
finds new javadocs, etc.

-Dave

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



How to configure resources plugin to copy extra files

2008-12-17 Thread zorro2b

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



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



How to configure..

2008-12-11 Thread radha c
Hi,

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.

Thanks,
Radha.C


  

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



how to configure hibernate3-maven-plugin

2008-12-06 Thread dahoffer

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
-- 
View this message in context: 
http://www.nabble.com/how-to-configure-hibernate3-maven-plugin-tp20876624p20876624.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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



Netbeans plugin: how to configure repository location?

2008-10-20 Thread Dmitry S. Kravchenko
Hi!

I'm a Maven newbie.

I found a way to configure repository location in standalone version
of Maven. Is it a way to do the same with Maven plugin for Netbeans?
It is still placing repository in .m2 folder within %HOME%.

Thanks.

Dims.


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



Re: Netbeans plugin: how to configure repository location?

2008-10-20 Thread Milos Kleint
the Tools/Options shall have a panel where you can set the local
repository. That will write in your ~/.m2/settings.xml file the
appropriate settings entry..

Milos


On Mon, Oct 20, 2008 at 5:33 PM, Dmitry S. Kravchenko [EMAIL PROTECTED] wrote:
 Hi!

 I'm a Maven newbie.

 I found a way to configure repository location in standalone version
 of Maven. Is it a way to do the same with Maven plugin for Netbeans?
 It is still placing repository in .m2 folder within %HOME%.

 Thanks.

 Dims.


 -
 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[2]: Netbeans plugin: how to configure repository location?

2008-10-20 Thread Dmitry S. Kravchenko
Hi, Milos!

I can't locate it. Tools/Options has the common buttons at the top:
General, Editor, Java Code, Fonts  Colors, Keymap, C/C++,
Miscelaneous.

 the Tools/Options shall have a panel where you can set the local
 repository. That will write in your ~/.m2/settings.xml file the
 appropriate settings entry..

 I found a way to configure repository location in standalone version
 of Maven. Is it a way to do the same with Maven plugin for Netbeans?
 It is still placing repository in .m2 folder within %HOME%.


Dims.



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



Re: Re[2]: Netbeans plugin: how to configure repository location?

2008-10-20 Thread Milos Kleint
Under miscelaneous is maven.
Alternatively you can edit the settings.xml file manually.

Milos

On Mon, Oct 20, 2008 at 6:18 PM, Dmitry S. Kravchenko [EMAIL PROTECTED] wrote:
 Hi, Milos!

 I can't locate it. Tools/Options has the common buttons at the top:
 General, Editor, Java Code, Fonts  Colors, Keymap, C/C++,
 Miscelaneous.

 the Tools/Options shall have a panel where you can set the local
 repository. That will write in your ~/.m2/settings.xml file the
 appropriate settings entry..

 I found a way to configure repository location in standalone version
 of Maven. Is it a way to do the same with Maven plugin for Netbeans?
 It is still placing repository in .m2 folder within %HOME%.


 Dims.



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



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

2008-07-10 Thread Pedro Viegas
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 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]



how to configure a mirror?

2008-04-04 Thread Stephane Nicoll
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]



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]



How to configure the location of settings.xml?

2008-01-02 Thread Thomas Chang
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 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.



  1   2   3   >