Closed GoogleCodeExporter closed 9 years ago
Hi Liska,
That M2 REPO contains the maven plugin project that I created to use this
library as a maven plugin (mojo).
it does not contain the JAR for this library. As far as I know, this JAR is
not published in any M2 repository.
In the mean time, you can use another maven plugin that I created to pull down
external "non-
mavenized" dependencies like this one. In fact, I included the sample for this
specific JAR in my test code and online sample POM. Check out:
http://code.google.com/p/maven-external-dependency-plugin/
Thanks, Robert
Original comment by savage7....@gmail.com
on 26 Sep 2010 at 4:38
Correction, I did not create the maven plugin (mojo) for the google api
translate, I just mavenized it, published it to a public M2 repo and added a
few additional features.
Original comment by savage7....@gmail.com
on 26 Sep 2010 at 4:52
Thank you Robert,
I deployed google-api-translate-java library to my private repo manager, I had
to make some modifications for it to fit my needs, for instance an HTTP POST
message cannot have more then 5000 characters according to google-translate
ajax api conditions. So if you send such a message, you'll get an error message
back. So the arrays with text to translate must be divided into smaller ones
having 5000 characters tops.
Regards, Jakub
Original comment by liska.jakub
on 26 Sep 2010 at 5:03
I found this article discussing how to push a 3rd party artifact into the Maven
Central repository:
https://docs.sonatype.org/display/Repository/Uploading+3rd-party+Artifacts+to+Ma
ven+Central
I have gone though the steps and submitted this JAR as a maven artifact, so
hopefully in a day of so it will finally be in a public repository for all us
Maven users!
I am attaching the POM that I used to generate the artifact bundle jar in case
someone else needs to do this in the future.
Original comment by savage7....@gmail.com
on 26 Sep 2010 at 11:46
Attachments:
Version .092 is now published to Maven Central!
http://repo2.maven.org/maven2/com/googlecode/google-api-translate-java/0.92/
Original comment by savage7....@gmail.com
on 8 Oct 2010 at 5:17
Original comment by rich.mid...@gmail.com
on 6 Nov 2010 at 5:02
Original issue reported on code.google.com by
liska.jakub
on 11 Sep 2010 at 1:09