cloudfoundry-community / snotel

A Java based Loggregator client.
Apache License 2.0
5 stars 5 forks source link

application build failing for snotel main project #9

Open mehrotra-prateek opened 6 years ago

mehrotra-prateek commented 6 years ago

Hello,

snotel main project build is failing with error if i try to run the project using mvn spring-boot:run

[ERROR] No plugin found for prefix 'spring-boot' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories

To fix it I had to include following code in main pom.xml

<plugin>
     <groupId>org.springframework.boot</groupId>
      <artifactId>spring-boot-maven-plugin</artifactId>
</plugin>

After including this fix it still fails with below error

ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.0.0.M7:run (default-cli) on project snotel-parent: Unable to find a suitable main class, please add a 'mainClass' property ->
mehrotra-prateek commented 6 years ago

I have tried using mvn clean package and all worked dreams so may be a simple option is to not make the change I recommended but update the README on how to build.