Open findaway007 opened 6 years ago
Figured out the access to library issue...MOSTLY. For those that don't know the maven process in Eclipse, here's it is:
Originally Developed the program in Java Project and used static files for my process
Convert the Java project to a Maven Project (Right click project --> Configure --> Convert to Maven)
Copied the targeted dependency identified in the README.md file
Compiled the project which generated a pom.xml file
Updated the pom.xml file to include the above dependency
inserted above the bottom of the file's end tag
Note: To update the pom.xml file in eclipse, double click on the pom.xml file. Then select the pom.xml file tab found at the bottom on the far right.
Added the vsts-authentication-library-for-java import statements found in the sample java programapp.java
The below imports could not be resolved, so I'm currently trying to find jar files for them import com.microsoft.alm.sourcecontrol.webapi.GitHttpClient; import com.microsoft.alm.sourcecontrol.webapi.model.GitRepository; import com.microsoft.alm.storage.StorageProvider; import com.microsoft.alm.storage.StorageProvider.SecureOption; import com.microsoft.visualstudio.services.account.Account; import com.microsoft.visualstudio.services.account.AccountHttpClient;
STATUS: ...trying to find the JAR file(s) for the above 6 imports.
Able to find 2 more imports to resolve in the app.java sample code by including all of the maven dependencies found in the README.md: import com.microsoft.alm.storage.StorageProvider; import com.microsoft.alm.storage.StorageProvider.SecureOption;
Now searching for the remaining 4 jar file(s) for the remaining 4 imports statements: import com.microsoft.alm.sourcecontrol.webapi.GitHttpClient; import com.microsoft.alm.sourcecontrol.webapi.model.GitRepository; import com.microsoft.visualstudio.services.account.Account; import com.microsoft.visualstudio.services.account.AccountHttpClient;
Conclusion:
Upgraded both eclipse and IntelliJ to the latest version and STILL the above 4 imports still didn't resolve. Scoured the internet for the JAR files for these and didn't find them. My conclusion is that this library DOES NOT support Java being authenticated to access VSTS as promised. It's missing key JAR files needed that should be included in the POM.xml file dependencies section.
It's interesting that the C# version DOES resolve the imports with lots of documentation. I wonder if AWS supports java applications accessing their platform tools...
You need to check out the repository "vsts-authentication-library-for-java" to build everything, including the example. If you want to run the Test App in Eclipse, you can import the mentioned repository as a Maven project.
This might be a user issue as opposed to your library.
I'm new to Eclipse and Git and have been attempting to run a call from a java application to connect and run a rest API call. Unfortunately, I haven't been successful for over 2 weeks. Here's what I have done so far:
On step 4, I'm not sure if the process above is incorrect in Eclipse. Our team is excited about using Java to extract information from VSTS via rest-API calls. At this point, your library looks like the key. If you have a procedure or step by step information, it would be greatly appreciated.