Home > Back-end >  Visual interface can't find SpringApplication rocketmq configuration
Visual interface can't find SpringApplication rocketmq configuration

Time:12-14

1. Download the open source rocketmq, own changed under pom file, generate the zip package of running after packaging,
This is a picture which the zip decompression after

Through start. Sh start jars, operating under the Windows
An error prompt the Exception in the thread "is the main" Java. Lang. NoClassDefFoundError: org/springframework/boot/SpringApplication,
This is a jar package decompression after screenshots

File contains the class start


2. This is my modified pom, the main change is the content of the build TAB under



The SRC/main/resources
The ${project. Build. Directory}/config


The SRC/main/resources
The ${project. Build. Directory}/classes





Org, apache maven. Plugins
Maven dependency - plugin
2.5 & lt;/version>


Copy - dependencies
Package

Copy - dependencies


The ${project. Build. Directory}/lib





Org, apache maven. Plugins
Maven - resources - plugin

Utf-8 & lt;/encoding>



Org, apache maven. Plugins
Maven - jar - plugin



True
Lib/& lt;/classpathPrefix>
Org. Apache. Rocketmq. Console. App



*. Properties
*. Xml
*. Txt
The static/* * & lt;/exclude>
Templates/* * & lt;/exclude>




Org, apache maven. Plugins
Maven - assembly - plugin


Zip. Xml




The make - assembly
Package

Single





Maven - compiler - plugin
3.5.1 track of & lt;/version>

Piler ${maven.com. Source} & lt;/source>
The ${maven.com piler. Target} & lt;/target>
Piler ${maven.com. Source} & lt;/compilerVersion>
True
True



Org. Springframework. Boot
Spring - the boot - maven - plugin
2.3.2. RELEASE


Org. Codehaus. Mojo
Findbugs maven - plugin
3.0.4 & lt;/version>



3. Just downloaded, compiled into a jar package without any problems, compiled into zip bags have this problem, this is my target to zip format file screenshot, who can give me some ideas, thank you,
The
reference
  • Related