タイトルどおりです。
Mavenビルドでjarを作成しコマンドプロンプトから実行すると、springのロゴが出て実行はされるのですが
エラーになってしまいます。
発生している問題・エラーメッセージ
コマンドプロンプトの画面を表記します
2019-03-28 08:23:49.991 WARN 12500 --- [ restartedMain] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to parse configuration class [springbootapp.App]; nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class org.springframework.boot.web.support.SpringBootServletInitializer
2019-03-28 08:23:50.008 ERROR 12500 --- [ restartedMain] o.s.boot.SpringApplication : Application startup failed
pom
1<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 2xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 3 <modelVersion>4.0.0</modelVersion> 4 <groupId>springbootapp</groupId> 5 <artifactId>machine_management_system</artifactId> 6 <version>0.0.1-SNAPSHOT</version> 7 <packaging>jar</packaging> 8 <name>machine_management_system</name> 9 10 11 <build> 12 <plugins> 13 14 <plugin> 15 <groupId>org.apache.maven.plugins</groupId> 16 <artifactId>maven-compiler-plugin</artifactId> 17 <configuration> 18 <verbose>true</verbose> 19 <source>${java.version}</source> 20 <target>${java.version}</target> 21 <encoding>${project.build.sourceEncoding}</encoding> 22 </configuration> 23 </plugin> 24 25 <plugin> 26 <groupId>org.codehaus.mojo</groupId> 27 <artifactId>versions-maven-plugin</artifactId> 28 </plugin> 29 30 <plugin> 31 <groupId>org.apache.maven.plugins</groupId> 32 <artifactId>maven-jar-plugin</artifactId> 33 <configuration> 34 <archive> 35 <manifest> 36 <addClasspath>true</addClasspath> 37 <addExtensions>true</addExtensions> 38 <mainClass>springbootapp.App</mainClass> 39 <classpathPrefix>lib</classpathPrefix> 40 </manifest> 41 </archive> 42 </configuration> 43 </plugin> 44 45 <plugin> 46 <groupId>org.apache.maven.plugins</groupId> 47 <artifactId>maven-shade-plugin</artifactId> 48 </plugin> 49 50 </plugins> 51 </build> 52 53 54 <parent> 55 <groupId>org.springframework.boot</groupId> 56 <artifactId>spring-boot-starter-parent</artifactId> 57 <version>1.4.1.RELEASE</version> 58 </parent> 59 60 <properties> 61 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> 62 <java.version>1.8</java.version> 63 <thymeleaf.version>3.0.9.RELEASE</thymeleaf.version> 64 <thymeleaf-layout-dialect.version>2.0.5</thymeleaf-layout-dialect.version> 65 <thymeleaf-extras-springsecurity4.version>3.0.2.RELEASE</thymeleaf-extras-springsecurity4.version> 66 <thymeleaf-extras-data-attribute.version>2.0.5</thymeleaf-extras-data-attribute.version> 67 <thymeleaf-extras-java8time.version>3.0.0.RELEASE</thymeleaf-extras-java8time.version> 68 <org.springframework.security.version>4.1.2.RELEASE</org.springframework.security.version> 69 </properties> 70 71 72 <dependencies> 73 74 <dependency> 75 <groupId>org.springframework.boot</groupId> 76 <artifactId>spring-boot-starter-tomcat</artifactId> 77 <scope>provided</scope> 78 </dependency> 79 80 81 <dependency> 82 <groupId>org.springframework.boot</groupId> 83 <artifactId>spring-boot-starter-web</artifactId> 84 </dependency> 85 86 87 <dependency> 88 <groupId>org.springframework.boot</groupId> 89 <artifactId>spring-boot-starter-thymeleaf</artifactId> 90 </dependency> 91 92 93 <dependency> 94 <groupId>org.springframework.boot</groupId> 95 <artifactId>spring-boot-starter-tomcat</artifactId> 96 <scope>provided</scope> 97 </dependency> 98 99 100 <dependency> 101 <groupId>org.projectlombok</groupId> 102 <artifactId>lombok</artifactId> 103 </dependency> 104 105 106 <dependency> 107 <groupId>org.springframework.boot</groupId> 108 <artifactId>spring-boot-configuration-processor</artifactId> 109 <optional>true</optional> 110 </dependency> 111 112 113 <dependency> 114 <groupId>org.springframework.boot</groupId> 115 <artifactId>spring-boot-starter-data-jpa</artifactId> 116 </dependency> 117 118 119 <!-- SQLiteの設定 ここから--> 120 <dependency> 121 <groupId>org.xerial</groupId> 122 <artifactId>sqlite-jdbc</artifactId> 123 </dependency> 124 125 <dependency> 126 <groupId>com.enigmabridge</groupId> 127 <artifactId>hibernate4-sqlite-dialect</artifactId> 128 <version>0.1.2</version> 129 </dependency> 130 <!-- SQLiteの設定 ここまで--> 131 132 <dependency> 133 <groupId>org.webjars</groupId> 134 <artifactId>jquery</artifactId> 135 <version>2.1.1</version> 136 </dependency> 137 138 <dependency> 139 <groupId>com.fasterxml.jackson.datatype</groupId> 140 <artifactId>jackson-datatype-jsr310</artifactId> 141 </dependency> 142 143 <dependency> 144 <groupId>com.fasterxml.jackson.core</groupId> 145 <artifactId>jackson-databind</artifactId> 146 </dependency> 147 148 <dependency> 149 <groupId>org.springframework.boot</groupId> 150 <artifactId>spring-boot-devtools</artifactId> 151 </dependency> 152 153 <dependency> 154 <groupId>org.thymeleaf.extras</groupId> 155 <artifactId>thymeleaf-extras-java8time</artifactId> 156 </dependency> 157 158 159 <dependency> 160 <groupId>org.springframework.boot</groupId> 161 <artifactId>spring-boot-actuator</artifactId> 162 </dependency> 163 164 <dependency> 165 <groupId>org.apache.commons</groupId> 166 <artifactId>commons-lang3</artifactId> 167 <version>3.4</version> 168 </dependency> 169 170 <dependency> 171 <groupId>org.springframework</groupId> 172 <artifactId>spring-context</artifactId> 173 </dependency> 174 175 <dependency> 176 <groupId>org.springframework</groupId> 177 <artifactId>spring-jdbc</artifactId> 178 </dependency> 179 180 181 <!-- POI --> 182 <dependency> 183 <groupId>org.apache.poi</groupId> 184 <artifactId>poi</artifactId> 185 <version>3.13</version> 186 </dependency> 187 188 <dependency> 189 <groupId>org.apache.poi</groupId> 190 <artifactId>poi-ooxml</artifactId> 191 <version>3.13</version> 192 </dependency> 193 194 195 <!-- Security --> 196 <dependency> 197 <groupId>org.springframework.security</groupId> 198 <artifactId>spring-security-web</artifactId> 199 </dependency> 200 201 <dependency> 202 <groupId>org.springframework.security</groupId> 203 <artifactId>spring-security-config</artifactId> 204 </dependency> 205 206 <dependency> 207 <groupId>org.springframework.security</groupId> 208 <artifactId>spring-security-taglibs</artifactId> 209 </dependency> 210 211 <dependency> 212 <groupId>org.thymeleaf.extras</groupId> 213 <artifactId>thymeleaf-extras-springsecurity4</artifactId> 214 </dependency> 215 216 </dependencies> 217 218 219</project>
試したこと
他サイトを参考にpomにプラグインの追記をしました。がだめでした
他に足りない情報があれば追記しますのでお願いいたします。

回答2件
あなたの回答
tips
プレビュー