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

Spring Sample: Could not find artifact com.expediagroup:graphql-kotlin-spring-server:jar:1.1.1-SNAPSHOT #429

Closed
martinbonnin opened this issue Oct 16, 2019 · 8 comments · Fixed by #431
Labels
type: bug Something isn't working

Comments

@martinbonnin
Copy link
Contributor

From current master (d6e5718), it is not possible to build the spring sample:

~/git/graphql-kotlin/examples/spring$ mvn clean install
[INFO] Scanning for projects...
[INFO] Inspecting build with total of 1 modules...
[INFO] Installing Nexus Staging features:
[INFO]   ... total of 1 executions of maven-deploy-plugin replaced with nexus-staging-maven-plugin
[INFO] 
[INFO] ------------------< com.expediagroup:spring-example >-------------------
[INFO] Building spring-example 1.1.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.expediagroup:graphql-kotlin-spring-server:jar:1.1.1-SNAPSHOT is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  0.614 s
[INFO] Finished at: 2019-10-16T10:47:21+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project spring-example: Could not resolve dependencies for project com.expediagroup:spring-example:jar:1.1.1-SNAPSHOT: Could not find artifact com.expediagroup:graphql-kotlin-spring-server:jar:1.1.1-SNAPSHOT -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
@martinbonnin martinbonnin added the type: bug Something isn't working label Oct 16, 2019
@gscheibel
Copy link
Contributor

gscheibel commented Oct 16, 2019

Hello @martinbonnin,

We do not publish the snapshot version 1.1.1-SNAPSHOT and but the 1.1.1 is available in Maven Central: https://search.maven.org/artifact/com.expediagroup/graphql-kotlin-spring-server/1.1.0/jar

Is there anything specific you are looking for?

@martinbonnin martinbonnin changed the title Could not find artifact com.expediagroup:graphql-kotlin-spring-server:jar:1.1.1-SNAPSHOT Spring Sample: Could not find artifact com.expediagroup:graphql-kotlin-spring-server:jar:1.1.1-SNAPSHOT Oct 16, 2019
@martinbonnin
Copy link
Contributor Author

I just typed mvn clean install from the spring sample directory. I was expecting this to work out of the box. Or do I need to tweak the setup ?

@martinbonnin
Copy link
Contributor Author

Looks like running install in the root project did the trick. PR there: #430

@martinbonnin
Copy link
Contributor Author

Now I'm stuck on mvn spring-boot:run:

[ERROR] No plugin found for prefix 'spring-boot' in the current project and in the plugin groups 

@dariuszkuc
Copy link
Collaborator

dariuszkuc commented Oct 16, 2019

Now I'm stuck on mvn spring-boot:run:

[ERROR] No plugin found for prefix 'spring-boot' in the current project and in the plugin groups 

Where are you trying to run the spring-boot plugin? Both spring-example and federation apps base extend already specify the plugin in their configuration.

@martinbonnin
Copy link
Contributor Author

I'm following the steps from https://github.com/ExpediaGroup/graphql-kotlin/blob/master/examples/spring/README.md

I'm running mvn spring-boot:run from graphql-kotlin/examples/spring.

@dariuszkuc dariuszkuc added the status: wontfix This will not be worked on label Oct 16, 2019
@smyrick
Copy link
Contributor

smyrick commented Oct 16, 2019

@martinbonnin I am having the same issue locally on master branch now too. Running the Application from IntelliJ does work for me though so in the meantime can you try that. I will look in to why this is failing.

@smyrick smyrick removed the status: wontfix This will not be worked on label Oct 16, 2019
@smyrick
Copy link
Contributor

smyrick commented Oct 16, 2019

@martinbonnin Make sure you run a clean install to remove and dependencies and just verify after, that the ~/.m2/repository/com/expediagroup/graphql-kotlin-spring-server/1.1.1-SNAPSHOT directory exists and it contains the jar file.

If not I would just remove all the ~/.m2/repository/com/expediagroup/graphql-kotlin* directories and do another clean install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
4 participants