smtpapi-java SMTPAPI class in Maven Central is in the wrong package
kurtroy opened this issue · 8 comments
Created a maven project to try out the sendgrid example (found here: https://github.com/sendgrid/sendgrid-java).
When I tried to run the program, I got a class not found error for SMTPAPI.
I found I had to include smtpapi-java. I added this dependency to my pom.xml:
com.sendgrid smtpapi-java 0.0.1and recompiled. When I ran the program again, the SMTPAPI class still was not found. Examining the jar downloaded from maven central to my local repository, I found the SMTPAPI class is in a package with name:
com.github.sendgrid.smtpapi.
The com.sendgrid.SendGrid class expects SMTPAPI class to be in:
com.sendgrid.smtpapi
I downloaded the jar at https://sendgrid-open-source.s3.amazonaws.com/smtpapi-java/smtpapi-java.jar
and indeed, it has the class com.sendgrid.smtpapi.SMTPAPI. I inserted this class into my smtpapi-java-0.0.1.jar in my local repository, and my sample SendGrid program then worked.
Is it possible to get the smtpapi-java jar in maven central to have the right package name?
Thank you very much for catching this. Will get this fixed up
np.
I just inserted the class into the jar, and installed to our local Artifactory.
It is ridiculously easy to use!
From: Scott Motte [mailto:notifications@github.com]
Sent: Thursday, June 12, 2014 12:04 PM
To: sendgrid/smtpapi-java
Cc: Kurt Roy
Subject: Re: [smtpapi-java] smtpapi-java SMTPAPI class in Maven Central is in the wrong package (#3)
Thank you very much for catching this. Will get this fixed up
—
Reply to this email directly or view it on GitHubhttp://cp.mcafee.com/d/k-Kr6jqb5QTPhOCUUyrKrhKyYMehhp76QrELc3AhPwUSzt5VZVAQsCzAQsCQrECzBUsOOO-raNGm1iQqQmzaQE4undHhHhqcHiwhVsS-qek43hOqemn-LOrWb2r7nKnjjhvVwttxctORQr8EGEThVkffGhBrwqrhdECXCXCOsVHkiP2cFASO7bVjU84oOgOyIRJmAn4tcXAGkr-CcwpaB6_nl-4OX3VEVhd7b5SjsaNZoYI2ycFASO7bCQNNEVjdwLQzh0qmWaPmRqhshQPFFtd455pHqJ8K8WpQQg30S2gI81odd45zZFgQgiwq81LjfMd40BY9NQYQgiEq89gd44OvCy0N6I29EwmSNnifCy0Qk0oOqajpEVhdyO95-Orx.
good to hear :)
this is halfway done. 0.0.2 of smtpapi is pushed up to maven.
I'm waiting on maven to make it fully available - write now it's not resolving into sendgrid-java. once that is ready - likely in a couple hours. then I can push up what will be 0.3.1 of sendgrid-java to maven.
Cool. It would be nice if you let me know when its done, and what version numbers I need for sendgrid and smpt. Is it 0.3.1 and 0.0.2 respectively?
Thanks,
Kurt
From: Scott Motte [mailto:notifications@github.com]
Sent: Thursday, June 12, 2014 5:12 PM
To: sendgrid/smtpapi-java
Cc: Kurt Roy
Subject: Re: [smtpapi-java] smtpapi-java SMTPAPI class in Maven Central is in the wrong package (#3)
good to hear :)
this is halfway done. 0.0.2 of smtpapi is pushed up to maven.
I'm waiting on maven to make it fully available - write now it's not resolving into sendgrid-java. once that is ready - likely in a couple hours. then I can push up what will be 0.3.1 of sendgrid-java to maven.
—
Reply to this email directly or view it on GitHubhttp://cp.mcafee.com/d/2DRPoOd2hJ5yWryaab9EVdTdEThuo78EIzzqdQnC1O8VMsrhKyY-YOqejhOqejqdQjhOYepppvdBoRb0FqdqbhBqk2fbCREREJ6lFg8YKrjI-DFEVpvW_fc6zBxO_nKnhusoV5Z-WpEVpVqWtAklrKesG7DR8OJMddECQjtPtPpesRG9px6kOrp3BYFY42cp8phmqSHibyeCtOlad_j6gcBizvHG_2ptxYQsLIe6zAQsCUlzWNVo54pj9JAendIFzDPobZ8Qg6BKyIRJmAn4tcWqnjh1hmqSHibyeCtd40MdwAb20m3jh1o_qkd44E6y0rQPY3h09v2stfd44G6y2k3h1cDVEwchH0yq85JIlQzVEwd506cCyASqekjuTA4lvnx.
it is. and yes, I'll ping you when it's done. I have to head to a graduation ceremony for a family member so it might not be till tomorrow morning.
No worries. Congrats to your family member on their graduation!
From: Scott Motte [mailto:notifications@github.com]
Sent: Thursday, June 12, 2014 5:15 PM
To: sendgrid/smtpapi-java
Cc: Kurt Roy
Subject: Re: [smtpapi-java] smtpapi-java SMTPAPI class in Maven Central is in the wrong package (#3)
it is. and yes, I'll ping you when it's done. I have to head to a graduation ceremony for a family member so it might not be till tomorrow morning.
—
Reply to this email directly or view it on GitHubhttp://cp.mcafee.com/d/5fHCMUgdEInjshhj76zATsSzt5VwsyyOedEThuo78zD1NJ6WbPXP9EVd79EVdEThd7bMVBBBYSlzkI2BEREJ6lFg8YKrmzmyQpmB0zOVJRxNfjhOO_R-hssuhs7tuVtd5xXCrETvppVqWdAklrK9YG7DR8OJMddECQjtPtPpesRG9px6kOrp3BYFY42cp8phmqSHibyeCtOlad_j6gcBizvHG_2ptxYQsLIff3zsaNZoYI2ycFASO7bCQPhOeKr1vF6y0QJQlCJGQyUzFDjiWq8aaPmRqhshQPFEw61I4xog2Mqq8b7XixEwB0Qg3uCvwq81bUjzFVEwBgQgiwq89A_d41ydo4jh0JJyKAvd41EE0NAQkCPhOyrp82JVhWHcbBv.
Ok, this is live now. I'm doing a double check myself, but things look good. Please let me know if you run into any other issues.
0.3.1 for sendgrid-java
0.0.2 for smtpapi-java
Tested.
It works!
Thanks!
From: Scott Motte [mailto:notifications@github.com]
Sent: Friday, June 13, 2014 10:33 AM
To: sendgrid/smtpapi-java
Cc: Kurt Roy
Subject: Re: [smtpapi-java] smtpapi-java SMTPAPI class in Maven Central is in the wrong package (#3)
Ok, this is live now. I'm doing a double check myself, but things look good. Please let me know if you run into any other issues.
0.3.1 for sendgrid-java
0.0.2 for smtpapi-java
—
Reply to this email directly or view it on GitHubhttp://cp.mcafee.com/d/avndxMwd20QrhoKCUepvssdTdEThuo78EIzzqdQnC1O8VMsrhKyY-YOqejhOqejqdQjhOYepppvdBoRb0FqdqbhBqk2fbCREREJ6lFg8YKrYQsCzB4wqemn-LPPZXLcZuVtddd_AnQkrKfsJteOaqJNPDaxVZicHs3jqpJcTsTsSjDdqymohBcCSgVvav10z6i6klCJGQyUzFDsBizvQNA39kETWWLMCnosKC-MOqejsaNZoYI2ycFASO7bCSkQPhOr1vF6y0QJQlCJGQyUzFDjiWq8aaPmRqhshQPFEw61I4xog2Mqq8b7XixEwB0Qg3uCvwq81bUjzFVEwBgQgiwq89A_d41ydo4jh0JJyKAvd41EE0NAQkCPhOyrqxXy.