Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build Failure (tboot dependency) #101

Open
lukehinds opened this issue Jul 24, 2018 · 4 comments
Open

Build Failure (tboot dependency) #101

lukehinds opened this issue Jul 24, 2018 · 4 comments

Comments

@lukehinds
Copy link

lukehinds commented Jul 24, 2018

Issue

When building opencit-contrib (after a successful build of opencit-external-artifacts) the following failure occurs:

clean:
     [exec] OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=1024m; support was removed in 8.0
     [exec] [INFO] Scanning for projects...
     [exec] [ERROR] [ERROR] Some problems were encountered while processing the POMs:
     [exec] [FATAL] 'dependencies.dependency net.sourceforge.tboot:tboot:1.9.5' for net.sourceforge.tboot:tboot:1.9.5 is referencing itself. @ line 80, column 21
     [exec]  @ 
     [exec] [ERROR] The build could not read 1 project -> [Help 1]
     [exec] [ERROR]   
     [exec] [ERROR]   The project net.sourceforge.tboot:tboot:1.9.5 (/root/opencit-contrib/features/tboot/pom.xml) has 1 error
     [exec] [ERROR]     'dependencies.dependency net.sourceforge.tboot:tboot:1.9.5' for net.sourceforge.tboot:tboot:1.9.5 is referencing itself. @ line 80, column 21
     [exec] [ERROR] 
     [exec] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
     [exec] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
     [exec] [ERROR] 
     [exec] [ERROR] For more information about the errors and possible solutions, please read the following articles:
     [exec] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
     [exec] Result: 1

BUILD FAILED
/root/opencit-contrib/build.xml:74: Failed to clean project

Parameters

[root@opencit opencit-contrib]# git branch
* (detached from v1.0+cit-3.2.1)
  release-cit-2.2
[root@opencit opencit-contrib]# java -version
openjdk version "1.8.0_171"
OpenJDK Runtime Environment (build 1.8.0_171-b10)
OpenJDK 64-Bit Server VM (build 25.171-b10, mixed mode)
[root@opencit opencit-contrib]# mvn -version
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=1024m; support was removed in 8.0
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T18:33:14Z)
Maven home: /usr/local/apache-maven-3.5.4
Java version: 1.8.0_171, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.171-8.b10.el7_5.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-862.2.3.el7.x86_64", arch: "amd64", family: "unix"
[root@opencit opencit-contrib]# cat /etc/os-release 
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"
@lukehinds
Copy link
Author

lukehinds commented Jul 24, 2018

I think its due to self dependencies now being flagged as an error in maven:

https://issues.apache.org/jira/browse/MNG-6123

Removing lines 80 to 86 in opencit-contrib/features/tboot/pom.xml resolves the issue:

<dependency>
            <groupId>net.sourceforge.tboot</groupId>
            <artifactId>tboot</artifactId>
            <version>1.9.5</version>
            <classifier>sources</classifier>
            <type>tgz</type>
</dependency>

@lukehinds
Copy link
Author

lukehinds commented Jul 24, 2018

scratch the above out, removing the dependency results in error: File /root/opencit-contrib/features/tboot/target/tboot-1.9.5.tar.gz: No such file or directory

@lukehinds
Copy link
Author

lukehinds commented Jul 24, 2018

I have reverted back to maven 3.5.1 until we work out the circular dependency issue

@ryansavino
Copy link
Contributor

Yes. In later versions of our product, we changed the artifact name we build here to "tboot-dist" to prevent the error that is thrown in the latest maven version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants