Re: Maven plugin to replace text in file

2020-11-09 Thread Oliver B. Fischer
+1

Am 10.11.20 um 08:15 schrieb Christofer Dutz:
> I recently tend to use the groovy plugin to do stuff like at in a
> portable way. 
>
> Chris
> 
>
-- 
N Oliver B. Fischer
A Schönhauser Allee 64, 10437 Berlin, Deutschland/Germany
P +49 30 44793251
M +49 178 7903538 
E o.b.fisc...@swe-blog.net 
S oliver.b.fischer
J oliver.b.fisc...@jabber.org
X http://xing.to/obf



u...@mamen.apache.org

2020-11-09 Thread trai_chuavo5...@yahoo.com.INVALID


Được gửi từ Yahoo Mail trên Android

Re: Maven plugin to replace text in file

2020-11-09 Thread Christofer Dutz
I recently tend to use the groovy plugin to do stuff like at in a portable way.

Chris

Von: Oliver B. Fischer 
Gesendet: Montag, 9. November 2020 22:42
An: Maven Users List ; Arnaud bourree 

Betreff: Re: Maven plugin to replace text in file

IMHO not very portable, as jq is an external dependency and maybe not
available on every machine.

Am 09.11.20 um 18:03 schrieb Arnaud bourree:
> You want to reformat json file ... why not using jq in exec-maven-plugin ?
>
> Arnaud
>
--
N Oliver B. Fischer
A Schönhauser Allee 64, 10437 Berlin, Deutschland/Germany
P +49 30 44793251
M +49 178 7903538
E o.b.fisc...@swe-blog.net
S oliver.b.fischer
J oliver.b.fisc...@jabber.org
X http://xing.to/obf


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



Re: Maven plugin to replace text in file

2020-11-09 Thread Oliver B. Fischer
IMHO not very portable, as jq is an external dependency and maybe not
available on every machine.

Am 09.11.20 um 18:03 schrieb Arnaud bourree:
> You want to reformat json file ... why not using jq in exec-maven-plugin ?
>
> Arnaud
>
-- 
N Oliver B. Fischer
A Schönhauser Allee 64, 10437 Berlin, Deutschland/Germany
P +49 30 44793251
M +49 178 7903538 
E o.b.fisc...@swe-blog.net 
S oliver.b.fischer
J oliver.b.fisc...@jabber.org
X http://xing.to/obf


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



Re: HTTP/2 support in Maven

2020-11-09 Thread Benjamin Marwell
Hi Michael,

I do not think it is necessary to download ALL of them serially. H2
Server push might become a big advantage as already mentioned.
e.g. if requesting a pom, it might push the jar and its dependencies
right away with it.
THAT would probably save a lot of connections (and time).

The only problem is that we would need server support for this (h2 push) first.

Am Mo., 9. Nov. 2020 um 16:35 Uhr schrieb Michael Osipov :
>
> Am 2020-11-05 um 16:49 schrieb Jakub Bartecek:
> > Hi,
> > I did a performance test of HTTP/2 and its comparison with HTTP/1.1 and I
> > would like to share my results with you.
> >
> > I wrote a Python script [1] to download 100 artifacts in parallel using
> > asynchronous HTTP client supporting both HTTP/1.1 and HTTP/2. I chose 100
> > artifacts [2] from Maven Central, which were downloaded when I did a clean
> > build of one of my projects.
> >
> > All 100 artifacts were downloaded using HTTP/1.1 and also HTTP/2 and I
> > stored the results in this file [3]. I did 10 experiments and measured its
> > performance. In the middle I switch the order of HTTP/1.1 and HTTP/2
> > requests to avoid a possible bias. I run it from my laptop connected to 160
> > Mbit/s network.
> >
> > The experiments showed massive performance improvements when using HTTP/2
> > instead of HTTP/1.1
> > *:*
> >
> > - *The average download time using HTTP/1.1 was 3753.7 ms and using
> > HTTP/2 971.8 ms* [4]
> >
> >
> > - *In average the artifacts were downloaded 3.86 times faster using
> > HTTP/2 than using HTTP/1.1* [5]
> >
> >
> > Kuba
> >
> > [1]: https://github.com/jbartece/http2performance/blob/main/http2PerfTest.py
> > [2]: https://github.com/jbartece/http2performance/blob/main/centralUrls.txt
> > [3]: https://github.com/jbartece/http2performance/blob/main/testResults.txt
> > [4]:
> > https://github.com/jbartece/http2performance/blob/main/finalResults.txt#L26
> > [5]:
> > https://github.com/jbartece/http2performance/blob/main/finalResults.txt#L32
>
> This testing is logically wrong/incomplete. You have to download
> serially maven-metadata.xml, its checksum files, POM, its checkfiles and
> artifact itself and its checksum files. Please redo, I would to to test
> this too then. Enable HttpClient debug logging to see that more than
> just the JAR is downloaded.
>
> Michael
>
> -
> 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: Maven plugin to replace text in file

2020-11-09 Thread Arnaud bourree
You want to reformat json file ... why not using jq in exec-maven-plugin ?

Arnaud

Le dim. 8 nov. 2020 à 19:14, David Hoffer  a écrit :

> Yeah I was trying to use com.google.code.maven-replacer-plugin but I don't
> think that can replace with the variable content found in what is to be
> removed.
>
> I'm not familiar with Ant ReplaceRegExp can anyone suggest how to do the
> replacement?
>
> -Dave
>
> On Sun, Nov 8, 2020 at 10:19 AM Bernd Eckenfels 
> wrote:
>
> > You can use the antrun plugin to run a ant search and replace, or you an
> > call a jruby or groovy script. Or is the exec plugin to run a java class.
> > The resources plugin can replace placeholders, but that does not sound
> like
> > the right tool for your case.
> >
> > Gruss
> > Bernd
> > --
> > http://bernd.eckenfels.net
> > 
> > Von: David Hoffer 
> > Gesendet: Sunday, November 8, 2020 6:00:41 PM
> > An: Maven Users List 
> > Betreff: Maven plugin to replace text in file
> >
> > Hi,
> >
> > I need to process a file during the build to replace constructs like
> this:
> >
> > "allOf": [
> >   {
> > "$ref": "#/definitions/Eligibility"
> >   }
> > ],
> >
> > to be:
> >
> > "$ref": "#/definitions/Eligibility",
> >
> > Where the $ref can point to anything.  How can I do this sort of writing
> > custom code?
> >
> > -Dave
> >
>


Re: HTTP/2 support in Maven

2020-11-09 Thread Michael Osipov

Am 2020-11-05 um 16:49 schrieb Jakub Bartecek:

Hi,
I did a performance test of HTTP/2 and its comparison with HTTP/1.1 and I
would like to share my results with you.

I wrote a Python script [1] to download 100 artifacts in parallel using
asynchronous HTTP client supporting both HTTP/1.1 and HTTP/2. I chose 100
artifacts [2] from Maven Central, which were downloaded when I did a clean
build of one of my projects.

All 100 artifacts were downloaded using HTTP/1.1 and also HTTP/2 and I
stored the results in this file [3]. I did 10 experiments and measured its
performance. In the middle I switch the order of HTTP/1.1 and HTTP/2
requests to avoid a possible bias. I run it from my laptop connected to 160
Mbit/s network.

The experiments showed massive performance improvements when using HTTP/2
instead of HTTP/1.1
*:*

- *The average download time using HTTP/1.1 was 3753.7 ms and using
HTTP/2 971.8 ms* [4]


- *In average the artifacts were downloaded 3.86 times faster using
HTTP/2 than using HTTP/1.1* [5]


Kuba

[1]: https://github.com/jbartece/http2performance/blob/main/http2PerfTest.py
[2]: https://github.com/jbartece/http2performance/blob/main/centralUrls.txt
[3]: https://github.com/jbartece/http2performance/blob/main/testResults.txt
[4]:
https://github.com/jbartece/http2performance/blob/main/finalResults.txt#L26
[5]:
https://github.com/jbartece/http2performance/blob/main/finalResults.txt#L32


This testing is logically wrong/incomplete. You have to download 
serially maven-metadata.xml, its checksum files, POM, its checkfiles and 
artifact itself and its checksum files. Please redo, I would to to test 
this too then. Enable HttpClient debug logging to see that more than 
just the JAR is downloaded.


Michael

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