Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample doesn't build because of SDK #1

Closed
baywet opened this issue Mar 16, 2020 · 5 comments
Closed

Sample doesn't build because of SDK #1

baywet opened this issue Mar 16, 2020 · 5 comments
Assignees

Comments

@baywet
Copy link
Member

baywet commented Mar 16, 2020

As long as microsoftgraph/msgraph-sdk-java-auth#29 is not merged and the newer version isn't published, people will run into an issue when trying to build the sample.

NotificationController.java:[69,29] cannot access com.microsoft.graph.httpcore.IAuthenticationProvider

Here is the workaround (in a separate folder)

git clone https://github.com/baywet/msgraph-sdk-java-auth.git
git checkout patch-1
gradle build

Then in the current folder

mvn install:install-file -Dfile=<PathToRepoPreviouslyCloned>\build\libs\msgraph-sdk-java-auth.jar -DgroupId=com.microsoft.graph -DartifactId=microsoft-graph-auth -Dversion=0.1.0-SNAPSHOT -Dpackaging=jar -DgeneratePom=true
@baywet baywet self-assigned this Mar 31, 2020
@kernelogic
Copy link

kernelogic commented May 9, 2020

There is no pom.xml so your mvn install/package does not work. I had to use gradlew install.

@baywet
Copy link
Member Author

baywet commented May 10, 2020

@kernelogic thanks for your comment. Are you saying this file is missing or are you talking about something else? https://www.github.com/microsoftgraph/java-spring-webhooks-sample/tree/master/pom.xml

@kernelogic
Copy link

Oh sorry I should've been more clear. I'm talking about your work-around repository you mentioned in this thread:

git clone https://github.com/baywet/msgraph-sdk-java-auth.git
git checkout patch-1
mvn install

@baywet
Copy link
Member Author

baywet commented May 11, 2020

You are right, small confusion on my side. Thanks for calling it out! I updated the commands to

git clone https://github.com/baywet/msgraph-sdk-java-auth.git
git checkout patch-1
gradle build

Can you try on your end and let me know please?

@baywet
Copy link
Member Author

baywet commented Jun 5, 2020

The dependency has been updated which fixes this issue!

@baywet baywet closed this as completed Jun 5, 2020
@microsoftgraph microsoftgraph locked as resolved and limited conversation to collaborators Jan 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants