Closed nowakowski closed 8 years ago
What happens after you execute mvn clean package
?
development
branch?Same response every time:
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Error building POM (may not be this project's POM).
Project ID: pl.ismop:web:jar:0.6.2-SNAPSHOT
Reason: Cannot find parent: org.springframework.boot:spring-boot-starter-parent for project: pl.ismop:web:jar:0.6.2-SNAPSHOT for project pl.ismop:web:jar:0.6.2-SNAPSHOT
[INFO] ------------------------------------------------------------------------
socom@socom:~/RubymineProjects/eitwid$ java -version
java version "1.7.0_101"
OpenJDK Runtime Environment (IcedTea 2.6.6) (7u101-2.6.6-0ubuntu0.14.04.1)
OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode)
@mkasztelnik Yes, using development
and I'm up to date.
java 8 is required
And please use oracle java not openjdk
Okay, I'll try. You may want to mention this in readme.md
.
Btw., do I need jdk or is jre sufficient?
use jdk
Updated java. Still no luck. Same exact error.
socom@socom:~/RubymineProjects/eitwid$ java -version
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
Any more hints?
Maven should have downloaded all the necessary dependencies. Are you able to create a fresh maven project with the following command: mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
. Look for lines beginning with Downloading
. BTW, which version of maven are you using?
Yeah, no problem with generating a fresh project.
[INFO] ----------------------------------------------------------------------------
[INFO] Using following parameters for creating project from Old (1.x) Archetype: maven-archetype-quickstart:1.0
[INFO] ----------------------------------------------------------------------------
[INFO] Parameter: basedir, Value: /home/socom/tmp/maven
[INFO] Parameter: package, Value: com.mycompany.app
[INFO] Parameter: groupId, Value: com.mycompany.app
[INFO] Parameter: artifactId, Value: my-app
[INFO] Parameter: packageName, Value: com.mycompany.app
[INFO] Parameter: version, Value: 1.0-SNAPSHOT
[INFO] project created from Old (1.x) Archetype in dir: /home/socom/tmp/maven/my-app
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2 minutes 55 seconds
[INFO] Finished at: Tue Jul 26 16:40:00 CEST 2016
[INFO] Final Memory: 25M/189M
[INFO] ------------------------------------------------------------------------
I'm using maven 2.2.1 which I installed with apt-get (apt-get install maven2
) under 14.04.
Maven 3.2 or newer is required, so I guess one more install is keeping you from running the project.
There is no official mvn 3 release for my OS but I'll try to work around the problem...
More good news:
socom@socom:~/RubymineProjects/eitwid$ mvn3 gwt:run
[INFO] Scanning for projects...
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR] The project pl.ismop:web:0.6.2-SNAPSHOT (/home/socom/RubymineProjects/eitwid/pom.xml) has 1 error
[ERROR] Non-parseable POM /home/socom/.m2/repository/org/springframework/boot/spring-boot-starter-parent/1.3.3.RELEASE/spring-boot-starter-parent-1.3.3.RELEASE.pom: Expected root element 'project' but found 'html' (position: START_TAG seen <html>... @1:6) @ /home/socom/.m2/repository/org/springframework/boot/spring-boot-starter-parent/1.3.3.RELEASE/spring-boot-starter-parent-1.3.3.RELEASE.pom, line 1, column 6 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/ModelParseException
socom@socom:~/RubymineProjects/eitwid$ mvn3 -version
Apache Maven 3.2.1 (ea8b2b07643dbb1b84b6d16e1f08391b666bc1e9; 2014-02-14T18:37:52+01:00)
Maven home: /usr/share/maven3
Java version: 1.8.0_102, vendor: Oracle Corporation
Java home: /home/socom/programs/jdk1.8.0_102/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.16.0-76-generic", arch: "amd64", family: "unix"
Try to remove /home/socom/.m2/repository
and run maven again.
Sec, I'll try to manually install 3.3.9 (latest available) just in case...
Okay, now it's downloading. :)
@nowakowski can we close it already?
Yes; I've committed an updated version of README.md. Closing.
I'm trying to build and run a local instance of the project for testing purposes. Unfortunately, all commands listed in
readme.md
produce the following error:Cannot find parent: org.springframework.boot:spring-boot-starter-parent for project: pl.ismop:web:jar:0.6.2-SNAPSHOT for project pl.ismop:web:jar:0.6.2-SNAPSHOT
I suppose I'm missing some dependency, but the readme file does not provide any information regarding eitwid dependencies. Please assist.