digitalfondue / lavagna

Lavagna: issue tracker/project management tool
http://lavagna.io
GNU General Public License v3.0
635 stars 109 forks source link

problem trying building the lavanga #122

Closed ofiramit closed 4 years ago

ofiramit commented 4 years ago

hi. i got those errors when i try to build lavanga with maven.

"Some problems were encountered while building the effective model for io.lavagna:lavagna:war:1.1.3-SNAPSHOT " "'parent.relativePath' of POM io.lavagna:lavagna:1.1.3-SNAPSHOT (/pom.xml) points at io.lavagna:lavagna instead of org.sonatype.oss:oss-parent, please verify your project structure @ line 4, column 13"

"The project io.lavagna:lavagna:war:1.1.3-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html"

syjer commented 4 years ago

hi @ofiramit , which version of maven are you using?

ofiramit commented 4 years ago

hi. i tried with maven 3.6-jdk-8

syjer commented 4 years ago

@ofiramit , ok, I guess that's the main issue. I'll try to update it on my side and check what is wrong.

You can try with a 3.2.5 version like travis as a workaround.

ofiramit commented 4 years ago

hi. maybe you have a recommend maven imgae to use?

thx

On Mon, Sep 9, 2019 at 12:39 AM Sylvain Jermini notifications@github.com wrote:

@ofiramit https://github.com/ofiramit , ok, I guess that's the main issue. I'll try to update it on my side and check what is wrong.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/digitalfondue/lavagna/issues/122?email_source=notifications&email_token=AFRU2HWHCWOEQO3GKPSQFPDQIVWIXA5CNFSM4IUU4JFKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6FZ72I#issuecomment-529244137, or mute the thread https://github.com/notifications/unsubscribe-auth/AFRU2HR6LWQBYIZRW65GWJ3QIVWIXANCNFSM4IUU4JFA .

syjer commented 4 years ago

Hi @ofiramit , I did a test with maven 3.6.2, the build work correctly.

I got the warning:

[WARNING] The project io.lavagna:lavagna:war:1.1.3-SNAPSHOT uses prerequisites which is only intended for maven-plugin projects but not for non maven-plugin projects. For such purposes you should use the maven-enforcer-plugin. See https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html

Which I will fix later.

But the build worked as expected:

[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  55.179 s
[INFO] Finished at: 2019-09-09T00:00:22+02:00
[INFO] ------------------------------------------------------------------------

Tested with:

mvn -version
Apache Maven 3.6.2 (40f52333136460af0dc0d7232c0dc0bcf0d9e117; 2019-08-27T17:06:16+02:00)
Maven home: /home/xyz/programs/apache-maven-3.6.2
Java version: 1.8.0_222, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.222.b10-0.fc30.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.2.11-200.fc30.x86_64", arch: "amd64", family: "unix"
syjer commented 4 years ago

@ofiramit , I've removed the problematic entry in the pom.xml, now it build without that warning with the latest version of maven.

SitoCH commented 4 years ago

Closed due to inactivity