You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hc.apache.org by Oleg Kalnichevski <ol...@apache.org> on 2012/04/15 14:29:42 UTC

Apache HttpClient 4.1.3 re-spin for Android

Folks

It is not a big secret that Google decided to continue shipping the
extremely outdated pre-BETA version of HttpClient instead of upgrading
to a newer version and to steer Android users toward HttpUrlConnection
API. I understand they must have their good reasons. At the same, those
people who may not share Google's enthusiasm about having to migrate to
HttpUrlConnection are left with no viable upgrade options as stock
versions of HttpClient cannot be used in Android. A very common
work-around to this problem is to move HttpClient code to a different
namespace in order to avoid classloader conflicts with Android code.
This can be done either using Maven Shade plugin or a script such as one
developed by Dirk Boye [1]. The downside of this work-around is that the
shaded HttpClient cannot be used with 3rd party libraries such as Spring
compiled against the standard API.  

A better approach might be to 'shade' only implementation classes only
and compile them against the API interfaces and classes shipped with
Android. This could produce a reasonably up to date version of
HttpClient which at the same time can be used as a drop-in replacement
for the outdated Android version. 

What I would like to do is to take HttpClient 4.1.3 release tag and
create an Android compatible re-spin with a distinct Maven artifact from
that tag.

If you think this is not a good idea please raise your concerns now. If
I hear no objections, I'll proceed with the development of HttpClient
version for Android and will call a release vote when ready. 

Oleg

[1] http://code.google.com/p/httpclientandroidlib/


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Apache HttpClient 4.1.3 re-spin for Android

Posted by Jon Moore <jo...@apache.org>.
I'm also supportive of this. I think this is not so much about what Google
may or may not do, but just rather that HC is a really solid codebase that
should be available to Android developers too. We might prefer that Google
adopt the interfaces we would like, but I think we should err on the side
of finding a way for as many developers to use HC as possible. So if we can
find a simple, automated way to produce Android compatible artifacts, I
think that's a Good Thing.

Jon

On Sun, Apr 15, 2012 at 8:37 AM, Asankha C. Perera <as...@apache.org>wrote:

> Hi Oleg
>
>  What I would like to do is to take HttpClient 4.1.3 release tag and
>> create an Android compatible re-spin with a distinct Maven artifact from
>> that tag.
>>
>> If you think this is not a good idea please raise your concerns now. If
>> I hear no objections, I'll proceed with the development of HttpClient
>> version for Android and will call a release vote when ready.
>>
> I have no objections, and do support this.. I believe this will somehow
> "help" in making Google re-use HC?
>
> thanks
> asankha
>
> --
> Asankha C. Perera
> AdroitLogic, http://adroitlogic.org
>
> http://esbmagic.blogspot.com
>
>
>
>
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>

Re: Apache HttpClient 4.1.3 re-spin for Android

Posted by "Asankha C. Perera" <as...@apache.org>.
Hi Oleg
> What I would like to do is to take HttpClient 4.1.3 release tag and
> create an Android compatible re-spin with a distinct Maven artifact from
> that tag.
>
> If you think this is not a good idea please raise your concerns now. If
> I hear no objections, I'll proceed with the development of HttpClient
> version for Android and will call a release vote when ready.
I have no objections, and do support this.. I believe this will somehow 
"help" in making Google re-use HC?

thanks
asankha

-- 
Asankha C. Perera
AdroitLogic, http://adroitlogic.org

http://esbmagic.blogspot.com





---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Apache HttpClient 4.1.3 re-spin for Android

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Mon, Apr 16, 2012 at 02:57:43AM +0100, sebb wrote:
> On 15 April 2012 18:26, Oleg Kalnichevski <ol...@apache.org> wrote:
> > On Sun, 2012-04-15 at 18:09 +0100, sebb wrote:
> >> On 15 April 2012 17:55, Oleg Kalnichevski <ol...@apache.org> wrote:
> >> > On Sun, 2012-04-15 at 16:38 +0100, sebb wrote:
> >> >> On 15 April 2012 13:29, Oleg Kalnichevski <ol...@apache.org> wrote:
> >> >> > Folks
> >> >> >
> >> >> > It is not a big secret that Google decided to continue shipping the
> >> >> > extremely outdated pre-BETA version of HttpClient instead of upgrading
> >> >> > to a newer version and to steer Android users toward HttpUrlConnection
> >> >> > API. I understand they must have their good reasons. At the same, those
> >> >> > people who may not share Google's enthusiasm about having to migrate to
> >> >> > HttpUrlConnection are left with no viable upgrade options as stock
> >> >> > versions of HttpClient cannot be used in Android. A very common
> >> >> > work-around to this problem is to move HttpClient code to a different
> >> >> > namespace in order to avoid classloader conflicts with Android code.
> >> >> > This can be done either using Maven Shade plugin or a script such as one
> >> >> > developed by Dirk Boye [1]. The downside of this work-around is that the
> >> >> > shaded HttpClient cannot be used with 3rd party libraries such as Spring
> >> >> > compiled against the standard API.
> >> >> >
> >> >> > A better approach might be to 'shade' only implementation classes only
> >> >> > and compile them against the API interfaces and classes shipped with
> >> >> > Android. This could produce a reasonably up to date version of
> >> >> > HttpClient which at the same time can be used as a drop-in replacement
> >> >> > for the outdated Android version.
> >> >>
> >> >> I'm not clear what exactly you are proposing to release.
> >> >>
> >> >
> >> > HttpClient 4.1.3 code sans API interfaces and classes moved to
> >> > 'org.apache.hc.android' namespace or similar.
> >>
> >> So the jar would only contain classes in its own package namespace?
> >> That would certainly avoid classpath issues and Maven coords.
> >>
> >> But I don't see how applications would pick up the different implementation.
> >>
> >
> > It will not happen automatically but at least one can still create an
> > instance of DefaultHttpClient from the
> > 'org.apache.hc.android.impl.client' package instead of
> > 'org.apache.http.impl.client' and pass it as a dependency to any
> > external library that expects an instance of
> > 'org.apache.http.client.HttpClient'.
> 
> OK, I see now. I thought you were trying for a drop-in replacement.
> 

My apologies for having used a misleading term. Drop-in in a sense of being fully compatible, parallel-deployable replacement for the outdated version shipped with Android. The users would still need to re-wire their applications to use the newer implementation, though.

Oleg


> > This may sound like a small thing but this is actually impossible when
> > HttpClient code is 'shaded' to a new namespace wholesale along with all
> > API interfaces.
> 
> Yes.
> 
> > Oleg
> >
> >> >
> >> >> > What I would like to do is to take HttpClient 4.1.3 release tag and
> >> >> > create an Android compatible re-spin with a distinct Maven artifact from
> >> >> > that tag.
> >> >>
> >> >> Maven relies on the artifactId (and groupId, i.e. the coordinates) to
> >> >> know how to build the dependency path.
> >> >> So it's important to know what packages the proposed jars will contain.
> >> >> And it's important not to mislead Maven by supplying incorrect coordinates.
> >> >>
> >> >> Otherwise, Maven could combine incompatible jars on the same classpath
> >> >> - with all the problems that can bring.
> >> >>
> >> >
> >> > I am thinking about creating a copy of HttpClient 4.1.3 in SVN rather
> >> > than trying to repackage existing binary artifacts in some clever way.
> >> > This would enable us to selectively apply changes made by Google to
> >> > their version of HttpClient for better compatibility.
> >> >
> >> >> > If you think this is not a good idea please raise your concerns now. If
> >> >> > I hear no objections, I'll proceed with the development of HttpClient
> >> >> > version for Android and will call a release vote when ready.
> >> >>
> >> >> Luckily it should be quite easy to test the behaviour on Android.
> >> >> I've been playing with Eclipse and the ADT recently, so can provide
> >> >> some feedback on that aspect.
> >> >>
> >> >
> >> > That'd be awesome.
> >> >
> >> > Oleg
> >> >
> >> >
> >> >
> >> > ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> >> > For additional commands, e-mail: dev-help@hc.apache.org
> >> >
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> >> For additional commands, e-mail: dev-help@hc.apache.org
> >>
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> > For additional commands, e-mail: dev-help@hc.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Apache HttpClient 4.1.3 re-spin for Android

Posted by sebb <se...@gmail.com>.
On 15 April 2012 18:26, Oleg Kalnichevski <ol...@apache.org> wrote:
> On Sun, 2012-04-15 at 18:09 +0100, sebb wrote:
>> On 15 April 2012 17:55, Oleg Kalnichevski <ol...@apache.org> wrote:
>> > On Sun, 2012-04-15 at 16:38 +0100, sebb wrote:
>> >> On 15 April 2012 13:29, Oleg Kalnichevski <ol...@apache.org> wrote:
>> >> > Folks
>> >> >
>> >> > It is not a big secret that Google decided to continue shipping the
>> >> > extremely outdated pre-BETA version of HttpClient instead of upgrading
>> >> > to a newer version and to steer Android users toward HttpUrlConnection
>> >> > API. I understand they must have their good reasons. At the same, those
>> >> > people who may not share Google's enthusiasm about having to migrate to
>> >> > HttpUrlConnection are left with no viable upgrade options as stock
>> >> > versions of HttpClient cannot be used in Android. A very common
>> >> > work-around to this problem is to move HttpClient code to a different
>> >> > namespace in order to avoid classloader conflicts with Android code.
>> >> > This can be done either using Maven Shade plugin or a script such as one
>> >> > developed by Dirk Boye [1]. The downside of this work-around is that the
>> >> > shaded HttpClient cannot be used with 3rd party libraries such as Spring
>> >> > compiled against the standard API.
>> >> >
>> >> > A better approach might be to 'shade' only implementation classes only
>> >> > and compile them against the API interfaces and classes shipped with
>> >> > Android. This could produce a reasonably up to date version of
>> >> > HttpClient which at the same time can be used as a drop-in replacement
>> >> > for the outdated Android version.
>> >>
>> >> I'm not clear what exactly you are proposing to release.
>> >>
>> >
>> > HttpClient 4.1.3 code sans API interfaces and classes moved to
>> > 'org.apache.hc.android' namespace or similar.
>>
>> So the jar would only contain classes in its own package namespace?
>> That would certainly avoid classpath issues and Maven coords.
>>
>> But I don't see how applications would pick up the different implementation.
>>
>
> It will not happen automatically but at least one can still create an
> instance of DefaultHttpClient from the
> 'org.apache.hc.android.impl.client' package instead of
> 'org.apache.http.impl.client' and pass it as a dependency to any
> external library that expects an instance of
> 'org.apache.http.client.HttpClient'.

OK, I see now. I thought you were trying for a drop-in replacement.

> This may sound like a small thing but this is actually impossible when
> HttpClient code is 'shaded' to a new namespace wholesale along with all
> API interfaces.

Yes.

> Oleg
>
>> >
>> >> > What I would like to do is to take HttpClient 4.1.3 release tag and
>> >> > create an Android compatible re-spin with a distinct Maven artifact from
>> >> > that tag.
>> >>
>> >> Maven relies on the artifactId (and groupId, i.e. the coordinates) to
>> >> know how to build the dependency path.
>> >> So it's important to know what packages the proposed jars will contain.
>> >> And it's important not to mislead Maven by supplying incorrect coordinates.
>> >>
>> >> Otherwise, Maven could combine incompatible jars on the same classpath
>> >> - with all the problems that can bring.
>> >>
>> >
>> > I am thinking about creating a copy of HttpClient 4.1.3 in SVN rather
>> > than trying to repackage existing binary artifacts in some clever way.
>> > This would enable us to selectively apply changes made by Google to
>> > their version of HttpClient for better compatibility.
>> >
>> >> > If you think this is not a good idea please raise your concerns now. If
>> >> > I hear no objections, I'll proceed with the development of HttpClient
>> >> > version for Android and will call a release vote when ready.
>> >>
>> >> Luckily it should be quite easy to test the behaviour on Android.
>> >> I've been playing with Eclipse and the ADT recently, so can provide
>> >> some feedback on that aspect.
>> >>
>> >
>> > That'd be awesome.
>> >
>> > Oleg
>> >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
>> > For additional commands, e-mail: dev-help@hc.apache.org
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
>> For additional commands, e-mail: dev-help@hc.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Apache HttpClient 4.1.3 re-spin for Android

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Sun, 2012-04-15 at 18:09 +0100, sebb wrote:
> On 15 April 2012 17:55, Oleg Kalnichevski <ol...@apache.org> wrote:
> > On Sun, 2012-04-15 at 16:38 +0100, sebb wrote:
> >> On 15 April 2012 13:29, Oleg Kalnichevski <ol...@apache.org> wrote:
> >> > Folks
> >> >
> >> > It is not a big secret that Google decided to continue shipping the
> >> > extremely outdated pre-BETA version of HttpClient instead of upgrading
> >> > to a newer version and to steer Android users toward HttpUrlConnection
> >> > API. I understand they must have their good reasons. At the same, those
> >> > people who may not share Google's enthusiasm about having to migrate to
> >> > HttpUrlConnection are left with no viable upgrade options as stock
> >> > versions of HttpClient cannot be used in Android. A very common
> >> > work-around to this problem is to move HttpClient code to a different
> >> > namespace in order to avoid classloader conflicts with Android code.
> >> > This can be done either using Maven Shade plugin or a script such as one
> >> > developed by Dirk Boye [1]. The downside of this work-around is that the
> >> > shaded HttpClient cannot be used with 3rd party libraries such as Spring
> >> > compiled against the standard API.
> >> >
> >> > A better approach might be to 'shade' only implementation classes only
> >> > and compile them against the API interfaces and classes shipped with
> >> > Android. This could produce a reasonably up to date version of
> >> > HttpClient which at the same time can be used as a drop-in replacement
> >> > for the outdated Android version.
> >>
> >> I'm not clear what exactly you are proposing to release.
> >>
> >
> > HttpClient 4.1.3 code sans API interfaces and classes moved to
> > 'org.apache.hc.android' namespace or similar.
> 
> So the jar would only contain classes in its own package namespace?
> That would certainly avoid classpath issues and Maven coords.
> 
> But I don't see how applications would pick up the different implementation.
> 

It will not happen automatically but at least one can still create an
instance of DefaultHttpClient from the
'org.apache.hc.android.impl.client' package instead of
'org.apache.http.impl.client' and pass it as a dependency to any
external library that expects an instance of
'org.apache.http.client.HttpClient'.

This may sound like a small thing but this is actually impossible when
HttpClient code is 'shaded' to a new namespace wholesale along with all
API interfaces.

Oleg

> >
> >> > What I would like to do is to take HttpClient 4.1.3 release tag and
> >> > create an Android compatible re-spin with a distinct Maven artifact from
> >> > that tag.
> >>
> >> Maven relies on the artifactId (and groupId, i.e. the coordinates) to
> >> know how to build the dependency path.
> >> So it's important to know what packages the proposed jars will contain.
> >> And it's important not to mislead Maven by supplying incorrect coordinates.
> >>
> >> Otherwise, Maven could combine incompatible jars on the same classpath
> >> - with all the problems that can bring.
> >>
> >
> > I am thinking about creating a copy of HttpClient 4.1.3 in SVN rather
> > than trying to repackage existing binary artifacts in some clever way.
> > This would enable us to selectively apply changes made by Google to
> > their version of HttpClient for better compatibility.
> >
> >> > If you think this is not a good idea please raise your concerns now. If
> >> > I hear no objections, I'll proceed with the development of HttpClient
> >> > version for Android and will call a release vote when ready.
> >>
> >> Luckily it should be quite easy to test the behaviour on Android.
> >> I've been playing with Eclipse and the ADT recently, so can provide
> >> some feedback on that aspect.
> >>
> >
> > That'd be awesome.
> >
> > Oleg
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> > For additional commands, e-mail: dev-help@hc.apache.org
> >
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
> 



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Apache HttpClient 4.1.3 re-spin for Android

Posted by sebb <se...@gmail.com>.
On 15 April 2012 17:55, Oleg Kalnichevski <ol...@apache.org> wrote:
> On Sun, 2012-04-15 at 16:38 +0100, sebb wrote:
>> On 15 April 2012 13:29, Oleg Kalnichevski <ol...@apache.org> wrote:
>> > Folks
>> >
>> > It is not a big secret that Google decided to continue shipping the
>> > extremely outdated pre-BETA version of HttpClient instead of upgrading
>> > to a newer version and to steer Android users toward HttpUrlConnection
>> > API. I understand they must have their good reasons. At the same, those
>> > people who may not share Google's enthusiasm about having to migrate to
>> > HttpUrlConnection are left with no viable upgrade options as stock
>> > versions of HttpClient cannot be used in Android. A very common
>> > work-around to this problem is to move HttpClient code to a different
>> > namespace in order to avoid classloader conflicts with Android code.
>> > This can be done either using Maven Shade plugin or a script such as one
>> > developed by Dirk Boye [1]. The downside of this work-around is that the
>> > shaded HttpClient cannot be used with 3rd party libraries such as Spring
>> > compiled against the standard API.
>> >
>> > A better approach might be to 'shade' only implementation classes only
>> > and compile them against the API interfaces and classes shipped with
>> > Android. This could produce a reasonably up to date version of
>> > HttpClient which at the same time can be used as a drop-in replacement
>> > for the outdated Android version.
>>
>> I'm not clear what exactly you are proposing to release.
>>
>
> HttpClient 4.1.3 code sans API interfaces and classes moved to
> 'org.apache.hc.android' namespace or similar.

So the jar would only contain classes in its own package namespace?
That would certainly avoid classpath issues and Maven coords.

But I don't see how applications would pick up the different implementation.

>
>> > What I would like to do is to take HttpClient 4.1.3 release tag and
>> > create an Android compatible re-spin with a distinct Maven artifact from
>> > that tag.
>>
>> Maven relies on the artifactId (and groupId, i.e. the coordinates) to
>> know how to build the dependency path.
>> So it's important to know what packages the proposed jars will contain.
>> And it's important not to mislead Maven by supplying incorrect coordinates.
>>
>> Otherwise, Maven could combine incompatible jars on the same classpath
>> - with all the problems that can bring.
>>
>
> I am thinking about creating a copy of HttpClient 4.1.3 in SVN rather
> than trying to repackage existing binary artifacts in some clever way.
> This would enable us to selectively apply changes made by Google to
> their version of HttpClient for better compatibility.
>
>> > If you think this is not a good idea please raise your concerns now. If
>> > I hear no objections, I'll proceed with the development of HttpClient
>> > version for Android and will call a release vote when ready.
>>
>> Luckily it should be quite easy to test the behaviour on Android.
>> I've been playing with Eclipse and the ADT recently, so can provide
>> some feedback on that aspect.
>>
>
> That'd be awesome.
>
> Oleg
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Apache HttpClient 4.1.3 re-spin for Android

Posted by Oleg Kalnichevski <ol...@apache.org>.
On Sun, 2012-04-15 at 16:38 +0100, sebb wrote:
> On 15 April 2012 13:29, Oleg Kalnichevski <ol...@apache.org> wrote:
> > Folks
> >
> > It is not a big secret that Google decided to continue shipping the
> > extremely outdated pre-BETA version of HttpClient instead of upgrading
> > to a newer version and to steer Android users toward HttpUrlConnection
> > API. I understand they must have their good reasons. At the same, those
> > people who may not share Google's enthusiasm about having to migrate to
> > HttpUrlConnection are left with no viable upgrade options as stock
> > versions of HttpClient cannot be used in Android. A very common
> > work-around to this problem is to move HttpClient code to a different
> > namespace in order to avoid classloader conflicts with Android code.
> > This can be done either using Maven Shade plugin or a script such as one
> > developed by Dirk Boye [1]. The downside of this work-around is that the
> > shaded HttpClient cannot be used with 3rd party libraries such as Spring
> > compiled against the standard API.
> >
> > A better approach might be to 'shade' only implementation classes only
> > and compile them against the API interfaces and classes shipped with
> > Android. This could produce a reasonably up to date version of
> > HttpClient which at the same time can be used as a drop-in replacement
> > for the outdated Android version.
> 
> I'm not clear what exactly you are proposing to release.
> 

HttpClient 4.1.3 code sans API interfaces and classes moved to
'org.apache.hc.android' namespace or similar. 


> > What I would like to do is to take HttpClient 4.1.3 release tag and
> > create an Android compatible re-spin with a distinct Maven artifact from
> > that tag.
> 
> Maven relies on the artifactId (and groupId, i.e. the coordinates) to
> know how to build the dependency path.
> So it's important to know what packages the proposed jars will contain.
> And it's important not to mislead Maven by supplying incorrect coordinates.
> 
> Otherwise, Maven could combine incompatible jars on the same classpath
> - with all the problems that can bring.
> 

I am thinking about creating a copy of HttpClient 4.1.3 in SVN rather
than trying to repackage existing binary artifacts in some clever way.
This would enable us to selectively apply changes made by Google to
their version of HttpClient for better compatibility.  

> > If you think this is not a good idea please raise your concerns now. If
> > I hear no objections, I'll proceed with the development of HttpClient
> > version for Android and will call a release vote when ready.
> 
> Luckily it should be quite easy to test the behaviour on Android.
> I've been playing with Eclipse and the ADT recently, so can provide
> some feedback on that aspect.
> 

That'd be awesome.

Oleg



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org


Re: Apache HttpClient 4.1.3 re-spin for Android

Posted by sebb <se...@gmail.com>.
On 15 April 2012 13:29, Oleg Kalnichevski <ol...@apache.org> wrote:
> Folks
>
> It is not a big secret that Google decided to continue shipping the
> extremely outdated pre-BETA version of HttpClient instead of upgrading
> to a newer version and to steer Android users toward HttpUrlConnection
> API. I understand they must have their good reasons. At the same, those
> people who may not share Google's enthusiasm about having to migrate to
> HttpUrlConnection are left with no viable upgrade options as stock
> versions of HttpClient cannot be used in Android. A very common
> work-around to this problem is to move HttpClient code to a different
> namespace in order to avoid classloader conflicts with Android code.
> This can be done either using Maven Shade plugin or a script such as one
> developed by Dirk Boye [1]. The downside of this work-around is that the
> shaded HttpClient cannot be used with 3rd party libraries such as Spring
> compiled against the standard API.
>
> A better approach might be to 'shade' only implementation classes only
> and compile them against the API interfaces and classes shipped with
> Android. This could produce a reasonably up to date version of
> HttpClient which at the same time can be used as a drop-in replacement
> for the outdated Android version.

I'm not clear what exactly you are proposing to release.

> What I would like to do is to take HttpClient 4.1.3 release tag and
> create an Android compatible re-spin with a distinct Maven artifact from
> that tag.

Maven relies on the artifactId (and groupId, i.e. the coordinates) to
know how to build the dependency path.
So it's important to know what packages the proposed jars will contain.
And it's important not to mislead Maven by supplying incorrect coordinates.

Otherwise, Maven could combine incompatible jars on the same classpath
- with all the problems that can bring.

> If you think this is not a good idea please raise your concerns now. If
> I hear no objections, I'll proceed with the development of HttpClient
> version for Android and will call a release vote when ready.

Luckily it should be quite easy to test the behaviour on Android.
I've been playing with Eclipse and the ADT recently, so can provide
some feedback on that aspect.

> Oleg
>
> [1] http://code.google.com/p/httpclientandroidlib/
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org