question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"No deployables found" error during resolve goal execution for spring-boot-thin-maven-plugin

See original GitHub issue

I am getting following error while executing resolve goal.

[ERROR] Failed to execute goal org.springframework.boot.experimental:spring-boot-thin-maven-plugin:1.0.19.RELEASE:resolve (default-cli) on project candid-platform: No deployables found. If your only deployable is the current project jar, you need to run 'mvn package' at the same time.

Corresponding pom.xml snippet:

<plugin>
            <groupId>org.springframework.boot.experimental</groupId>
            <artifactId>spring-boot-thin-maven-plugin</artifactId>
            <version>${thin.layout.version}</version>
            <dependencies>
              <dependency>
                <groupId>org.springframework.boot.experimental</groupId>
                <artifactId>spring-boot-thin-maven-plugin</artifactId>
                <version>${thin.layout.version}</version>
              </dependency>
            </dependencies>
            <executions>
              <execution>
                <id>generate-app-dependencies</id>
                <goals> 
                  <goal>resolve</goal>
                </goals>
                <phase>verify</phase>
                <configuration>
                  <outputDirectory>${microservices-output-artifacts}/thin/root</outputDirectory>
                </configuration>
              </execution>
            </executions>
          </plugin>

Running with mvn -X showed the following.

Caused by: org.apache.maven.plugin.MojoExecutionException: No deployables found. If your only deployable is the current project jar, you need to run 'mvn package' at the same time.
    at org.springframework.boot.experimental.maven.ResolveMojo.execute (ResolveMojo.java:111)

As per ResolveMojo, that happens whenever deployables is empty. But the fact as above pom.xml snippet does have dependencies defined. Can you throw some light on what scenarios can lead “No deployables found” error. It sounds like a misnomer. But may be I am missing something.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:31

github_iconTop GitHub Comments

1reaction
dantrancommented, Jan 5, 2019

cook up a demo project at github would help to analyze it

0reactions
rama-codercommented, Jan 25, 2019

Sure. Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

Exception in thread "main" java.lang.ClassNotFoundException ...
I make a new simple springboot project and package using spring-boot-thin-launcher, but get error . The project only contains one simple ...
Read more >
spring-projects/spring-boot - Gitter
[ERROR] Failed to execute goal org.springframework.boot.experimental:spring-boot-thin-maven-plugin:1.0.9.RELEASE:resolve (resolve-app-dependencies) on ...
Read more >
Failed to execute goal org.codehaus.mojo:exec-maven-plugin ...
Hey Pith, I tried deleting the duplicate entries for < groupId>org.codehaus.mojo</groupId> its still failing with same error: – Shrikant Pagar.
Read more >
How to fix failed to execute goal on project - YouTube
failed to execute goal on project eclipsemvn clean install failed to execute goal on projectfailed to execute goal on project could not ...
Read more >
How to resolve this ? [ERROR] Failed to execute g... - 129446
[ERROR] Failed to execute goal on project storm-kafka: Could not resolve ... Could not find artifact org.apache.kafka:kafka_2.10:jar:0.8 in ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found