Re: Build Failure on Linux - EnforcerRuleException
Posted: Tue May 16, 2017 2:12 am
@Nadahar Exactly, a configuration one. A simple command line should fix it, but i prefer wait for user feedback first.
A short text to describe your forum
https://www.universalmediaserver.com/forum/
https://www.universalmediaserver.com/forum/viewtopic.php?t=9588
I am not able to check out any of the suggested builds.Sami32 wrote:@J.L.C. In your case, a safer workaround, until this issue found a real solution, should be:Do any of these builds work for you without workaround ?Code: Select all
mvn -Dtest=\!UMSUtilsTest.setUp package
If not, do building under Java 7 make any difference ?Code: Select all
git checkout dcbec3f && mvn package git checkout a3aa8b7 && mvn package git checkout f2c1099 && mvn package git checkout 556f4eb && mvn package git checkout 9372945 && mvn package
Code: Select all
Error: Could not find or load main class ”-Xms256m
Code: Select all
[WARNING] The POM for sevenzip-allplatforms:jbinding-allplatforms:jar:4.65-1.04-RC is missing, no dependency information available
Code: Select all
mvn -v
Code: Select all
mvn external:install
I have tried:Sami32 wrote:J.L.C. It seem to me that your environment and directory are a total mess.
Could post the result of this command line:could you post the exact full command line you type when building with Maven ?Code: Select all
mvn -v
Code: Select all
sudo mvn package
Code: Select all
sudo mvn clean package
Code: Select all
sudo mvn package -DskipTests
Code: Select all
mvn -v
Apache Maven 3.5.0 (ff8f5e7444045639af65f6095c62210b5713f426; 2017-04-03T15:39:06-04:00)
Maven home: /usr/local/apache-maven/apache-maven-3.5.0
Java version: 1.8.0_131, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.131-1.b12.fc24.x86_64/jre
Default locale: en_CA, platform encoding: UTF-8
OS name: "linux", version: "4.10.11-100.fc24.x86_64", arch: "amd64", family: "unix"
I have started each attempt at building withNadahar wrote:@J.L.C. You get the above error because you don't have that artifact in your local Maven repository. When Maven downloads artifacts, it stores them in the local repo, found under a folder named "m2" or ".m2" somewhere, usually in your home folder. Usually you should already have those artifacts there from previous builds. Maven download most of the dependencies automatically, but we have some dependencies which isn't available in an online Maven repository. Everybody must run this command once before building UMS (and again if any of those dependencies change versions):Once that is done, given that your Maven installation is operational, jbinding and a couple of other artifacts is installed to your local Maven repo and the build should proceed.Code: Select all
mvn external:install
Code: Select all
sudo mvn external:install
Code: Select all
sudo mvn external:install
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for net.pms:ums:jar:6.6.1-SNAPSHOT
[WARNING] Reporting configuration should be done in <reporting> section, not in maven-site-plugin <configuration> as reportPlugins parameter. @ line 770, column 20
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[WARNING] The project net.pms:ums:jar:6.6.1-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
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Universal Media Server 6.6.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- external-maven-plugin:0.2:install (default-cli) @ ums ---
[INFO] Installing external dependencies into local repository..
[INFO] Downloading artifact sevenzip:jbinding:4.65-1.04-RC:jar from URL http://www.spirton.com/uploads/7-Zip-JBinding/7-Zip-JBinding-4.65-1.04-RC.jar
[INFO] Copying downloaded artifact file to staging path: /usr/local/UMS/ums-latest/universalmediaserver/target/dependencies/jbinding-4.65-1.04-RC.jar
[INFO] Downloading artifact sevenzip-allplatforms:jbinding-allplatforms:4.65-1.04-RC:jar from URL http://www.spirton.com/uploads/7-Zip-JBinding/7-Zip-JBinding-AllPlatforms-4.65-1.04-RC.jar
[INFO] Copying downloaded artifact file to staging path: /usr/local/UMS/ums-latest/universalmediaserver/target/dependencies/jbinding-allplatforms-4.65-1.04-RC.jar
[INFO] Downloading artifact jwbroek.cuelib:cuelib:1.2.1-2008-06-13:jar from URL http://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/cuelib/cuelib-1.2.1-2008-06-13.jar
[INFO] Verifying checksum on downloaded file cuelib-1.2.1-2008-06-13.jar3893079864942770850.jar: d03b6b960b3b83a2a419e8b5f07b6ba4bd18387b
[INFO] Verification passed on SHA1 checksum for artifact: jwbroek.cuelib:cuelib:1.2.1-2008-06-13:jar
[INFO] Copying downloaded artifact file to staging path: /usr/local/UMS/ums-latest/universalmediaserver/target/dependencies/cuelib-1.2.1-2008-06-13.jar
[INFO] Verifying checksum on downloaded file cuelib-1.2.1-2008-06-13.jar: d03b6b960b3b83a2a419e8b5f07b6ba4bd18387b
[INFO] Verification passed on SHA1 checksum for artifact: jwbroek.cuelib:cuelib:1.2.1-2008-06-13:jar
[INFO] Deleting temporary download files
[INFO] Finished installing all external dependencies into local repository
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.750 s
[INFO] Finished at: 2017-05-15T23:45:21-04:00
[INFO] Final Memory: 14M/217M
[INFO] ------------------------------------------------------------------------
Code: Select all
Running net.pms.util.UMSUtilsTest
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.296 sec <<< FAILURE! - in net.pms.util.UMSUtilsTest
testPlayedDurationStr(net.pms.util.UMSUtilsTest) Time elapsed: 0.296 sec <<< ERROR!
java.lang.ExceptionInInitializerError
at net.pms.util.UMSUtilsTest.setUp(UMSUtilsTest.java:24)
Caused by: java.lang.NullPointerException
at net.pms.util.UMSUtilsTest.setUp(UMSUtilsTest.java:24)