logo
down
shadow

Spring Initializr Basic Project Won't Build


Spring Initializr Basic Project Won't Build

By : Tafoora Pointcom Taf
Date : November 22 2020, 03:01 PM
it helps some times I am using the SPRING INITIALIZR with these settings: , I recreated your configuration with
code :
spring init --dependencies=actuator,data-jpa,h2,thymeleaf,web spring5webapp
<project>
    <properties>
        <java.version>1.9</java.version>
    </properties>
    <build>
        <plugins>
            <plugin>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.20.1</version>
                <configuration>
                    <argLine>--add-modules java.xml.bind</argLine>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-jar-plugin</artifactId>
                <version>2.6</version>
                <dependencies>
                    <dependency>
                        <groupId>org.codehaus.plexus</groupId>
                        <artifactId>plexus-archiver</artifactId>
                        <version>3.4</version>
                    </dependency>
                </dependencies>
            </plugin>
        </plugins>
    </build>
</project>
<project>
    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <jvmArguments>--add-modules java.xml.bind</jvmArguments>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>


Share : facebook icon twitter icon
Lombok in project generated by Spring Initializr (LombokProcessor could not be initialized)

Lombok in project generated by Spring Initializr (LombokProcessor could not be initialized)


By : user1461582
Date : March 29 2020, 07:55 AM
I think the issue was by ths following , To fix the fact that LombokProcessor could not be initialized you have to change dependency of Lombok in Maven (pom.xml file):
code :
<dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <optional>true</optional>
</dependency>
<dependency>
    <groupId>org.projectlombok</groupId>
    <artifactId>lombok</artifactId>
    <version>1.16.22</version>
</dependency>
Why is Spring Initializr spelled initializr instead of initializer?

Why is Spring Initializr spelled initializr instead of initializer?


By : julia estebanos
Date : March 29 2020, 07:55 AM
may help you . It was inspired by http://www.initializr.com/ (which is maybe slightly different in intent, but fills a similar niche).
Spring Initializr pane is blank in IntellJ, for both New Project and New Module

Spring Initializr pane is blank in IntellJ, for both New Project and New Module


By : vibo
Date : March 29 2020, 07:55 AM
will help you It looks like a Java bug specific to your NTLM proxy.
It may help if you use IntelliJ IDEA 2019.1 EAP version with JetBrains Runtime 11 version where this issue should be fixed.
Creating Spring Initializr Project for existing Git repository in Eclipse

Creating Spring Initializr Project for existing Git repository in Eclipse


By : nextBigIdea
Date : March 29 2020, 07:55 AM
I wish this help you Try and unzip that project elsewhere on your disk.
Then go to your local Git repository (the one with the single README) and do:
code :
cd /path/to/local/Git/repo
git --work-tree=/path/to/unzipped/project add .
git restore -- .
git commit -m "Import project"
Unable to run Spring Initializr using 2.2.1.BUILD-SNAPSHOT on IntelliJ

Unable to run Spring Initializr using 2.2.1.BUILD-SNAPSHOT on IntelliJ


By : user3361394
Date : March 29 2020, 07:55 AM
I wish did fix the issue. Given that your project is just generated from spring initializer it doesn't really do anything yet, and you'll have to add some functionality for it to not exit immediately.
If you expect it to start as a webapp you'll have to add a dependency on spring-boot-starter-web.
code :
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-web</artifactId>
    <exclusions>
        <exclusion>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-tomcat</artifactId>
        </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-jetty</artifactId>
</dependency>
  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::  (v2.2.1.BUILD-SNAPSHOT)

2019-11-04 19:38:57.796  INFO 11674 --- [           main] com.example.demo.DemoApplication         : Starting DemoApplication on hostname with PID 11674 (/tmp/demo/target/classes started by user in /tmp/demo)
2019-11-04 19:38:57.800  INFO 11674 --- [           main] com.example.demo.DemoApplication         : No active profile set, falling back to default profiles: default
2019-11-04 19:38:58.446  INFO 11674 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8080 (http)
2019-11-04 19:38:58.451  INFO 11674 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2019-11-04 19:38:58.451  INFO 11674 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.27]
2019-11-04 19:38:58.487  INFO 11674 --- [           main] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
2019-11-04 19:38:58.487  INFO 11674 --- [           main] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 641 ms
2019-11-04 19:38:58.583  INFO 11674 --- [           main] o.s.s.concurrent.ThreadPoolTaskExecutor  : Initializing ExecutorService 'applicationTaskExecutor'
2019-11-04 19:38:58.690  INFO 11674 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8080 (http) with context path ''
2019-11-04 19:38:58.692  INFO 11674 --- [           main] com.example.demo.DemoApplication         : Started DemoApplication in 1.148 seconds (JVM running for 1.714)
Related Posts Related Posts :
  • Interrupt CompletableFuture with default value
  • Eclipse - Choosing servers in "Run on server" vs setting "Target Runtime"
  • Spring JPA doesn't validate bean on update
  • How is takeWhile different from filter?
  • Spring Scheduled Cron jobs firing at wrong time
  • JFrame window resizing on every compile. Different results every time
  • Kotlin unresolved reference :add after converting from Java code
  • How to use Neo4j APOC method " apoc.export.csv.query(query,file,config)" in Java program
  • Regex to include all spanish characters and number
  • Parsing and Mapping a JSON Object with Dynamic Properties
  • Which approach to building domain objects in Spring MVC is more correct?
  • Java Long Min and Max not exact as mentioned in docs
  • Selenium opens new tab after SendKeys
  • How to sort a large array of ints?
  • FitNessse Test can not find Fixture
  • Including Signed Libraries in Executable JAR with Maven
  • If and Else statement run on second iteration of while loop
  • Change class of disabled tab on change of dropdown value
  • Junit5 @ParameterizedTest How to pass array as one of parameter
  • Text message not being sent to a list of numbers but is sent when just one number is specified
  • Spring mapped servlet not called in jetty-maven-plugin
  • How to pace the consumption of a sqs queue using spring integration
  • Autowiring Not getting disabled using xml configuration
  • Maze solve and shortest path with Java BFS
  • Spinner updating only on user actions
  • Why are Java rules for protected access such as they are?
  • Modify parameter of method by value in annotation aspectJ
  • How to send sensitive data to a Liferay portlet from outside the Liferay portal
  • Does a server connection stay open if created inside a method?
  • JAR manifest Class-Path, use folder instead of jar
  • How to do a bulk update in Firestore
  • ItemArray.checklist.add() not appending string to ArrayList
  • How to move something on screen without other picture staying there
  • SpringBoot : No matching bean found exception
  • Implementing the Clonable interface, but don't have to override the clone() method
  • how can i get this code to choose a random word once from each array to print a sentence?
  • Static class to get connections from connection pool
  • Unable to start Chrome browser with user profile in Selenium
  • How to pass a object to be created as a parameter for a method in Java?
  • How to retry with hystrix
  • Loading key to KeyStore fails on Android Oreo
  • Spring+Velocity unsuccessful attempts to save object
  • Private constructor in Kotlin
  • Jetty:run fails with NoSuchMethodError with Spring 5
  • Cannot upload my Web Applicartion in Jboss7 EAP7 EAP
  • How to load a certificate from "Credential storage"?
  • Call Genexus procedure stub in Java environment
  • JavaFX clipping produces a 'lottery scratch ticket'-Effect
  • Using DateTimeFormatter on january first cause an invalid year value
  • Get all the output from Watson conversation using java
  • Java unable to open main class and jar file
  • How to override @override method from activity into another class
  • Adding Runtime VM parameters to intellij for Java 9
  • Java IBM MQ Client connected but not getting messages from queue
  • Questions of Tomcat SSL configuration
  • Stale JNLP files for <extension> (since Java 9?)
  • Properly set (system) properties in JUnit 5
  • Spring MVC Model within POST Method is empty
  • VSTS buildagent: Java 9
  • java.lang.NumberFormatException: For input string: "id" for Hibernate
  • shadow
    Privacy Policy - Terms - Contact Us © voile276.org