Giter VIP home page Giter VIP logo

Comments (13)

Shusshu avatar Shusshu commented on August 22, 2024

Done 20 days ago

from android-switch-backport.

BoD avatar BoD commented on August 22, 2024

Actually I think the request is that this library should be available on
Maven central. I'll look into it.

BoD
On Feb 14, 2013 5:02 PM, "Benoit Billington" [email protected]
wrote:

Done 20 days ago


Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-13559109.

from android-switch-backport.

donnfelker avatar donnfelker commented on August 22, 2024

Yup, exactly :)

from android-switch-backport.

Shusshu avatar Shusshu commented on August 22, 2024

oups sorry ;)

Benoit Billington

On Thu, Feb 14, 2013 at 10:32 PM, Donn Felker [email protected]:

Yup, exactly :)


Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-13579841.

from android-switch-backport.

AkashJ avatar AkashJ commented on August 22, 2024

Yes, adding the dependency on maven central will be a great help.

On a side note:

I tried the following steps (which did not work) to get it added to my local repository

I cloned the project and ran the maven package goal. That gave me an .apklib file and a .jar file

I used the following command to deploy the apklib to my repo

mvn deploy:deploy-file -Durl=file:///tmp/mvn
-DrepositoryId={MY REPO ID}
-Dfile=android-switch-backport-1.0.apklib
-DgroupId=org.jraf
-DartifactId=android-switch-backport
-Dversion=1.0
-DgeneratePom=true
-Dpackaging=apklib

But it seems to not work.....

Any ideas in the meantime on what I am doing wrong?

from android-switch-backport.

Shusshu avatar Shusshu commented on August 22, 2024

Running mvn clean install will install it in your local repository.
If you want then to upload it to your company repository you can use the
pom and apklib located in your local rep.
On 15 Feb 2013 21:27, "AkashJ" [email protected] wrote:

Yes, adding the dependency on maven central will be a great help.

On a side note:

I tried the following steps (which did not work) to get it added to my
local repository

I cloned the project and ran the maven package goal. That gave me an
.apklib file and a .jar file

I used the following command to deploy the apklib to my repo

mvn deploy:deploy-file -Durl=file:///tmp/mvn
-DrepositoryId={MY REPO ID}
-Dfile=android-switch-backport-1.0.apklib
-DgroupId=org.jraf
-DartifactId=android-switch-backport
-Dversion=1.0
-DgeneratePom=true
-Dpackaging=apklib

But it seems to not work.....

Any ideas in the meantime on what I am doing wrong?


Reply to this email directly or view it on GitHubhttps://github.com//issues/13#issuecomment-13626336.

from android-switch-backport.

AkashJ avatar AkashJ commented on August 22, 2024

Got it! Thanks.

from android-switch-backport.

BoD avatar BoD commented on August 22, 2024

I started the formalities to publish the artifact to Maven Central - waiting for their reply now. I'll keep you posted.

from android-switch-backport.

BoD avatar BoD commented on August 22, 2024

The artifact should now be available in Maven Central. Can you guys check that it works as expected? Thanks.

from android-switch-backport.

BoD avatar BoD commented on August 22, 2024

Anyone? :)

from android-switch-backport.

AkashJ avatar AkashJ commented on August 22, 2024

Just tried it out.

Using the dependency from the information available here : http://search.maven.org/#artifactdetails|org.jraf|android-switch-backport|1.0|apklib results in the following error

Could not find artifact org.jraf:android-switch-backport:jar:1.0 in central (http://repo1.maven.org/maven2) -> [Help 1]

I think the issue arises because dependency is an apklib
So adding a type tag resolves the issue. So the dependency should look like

<dependency>
     <groupId>org.jraf</groupId>
    <artifactId>android-switch-backport</artifactId>
    <version>1.0</version>
    <type>apklib</type>
</dependency>

Which results in a successful download ad follows

Downloaded: http://repo1.maven.org/maven2/org/jraf/android-switch-backport/1.0/android-switch-backport-1.0.apklib (67 KB at 850.8 KB/sec)

After maven downloads the dependency the android maven plugin will expand that and add the dependency as a generated external library in the gen-external-apklibs directory.

I tested this using the following.
maven 3.0.3
Intellij Idea 12

#UPDATE : using proper github markdowns for mentioning the dependency

from android-switch-backport.

BoD avatar BoD commented on August 22, 2024

Thanks a lot for the feedback! :)
I'll see if I can do something about the incorrect info on this maven.org page but I'm guessing it is just automatically (incorrectly) generated.
I'll then update the readme file and close this issue.

from android-switch-backport.

BoD avatar BoD commented on August 22, 2024

Finally updated the readme :)

from android-switch-backport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.