aries-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joseph Chacko (Jira)" <j...@apache.org>
Subject [jira] [Commented] (ARIES-2005) Cannot build (mvn install) Aries JNDI on clean development environment
Date Thu, 24 Sep 2020 17:04:00 GMT

    [ https://issues.apache.org/jira/browse/ARIES-2005?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17201667#comment-17201667
] 

Joseph Chacko commented on ARIES-2005:
--------------------------------------

When we tied up the versions properly, the tests started failing. We tracked this down to
the BundleContextMock in the unit test support library returning empty string instead of null
for undefined properties. Once we resolved that issue, the unit tests failed because the production
code expect Bundle.adapt(SomeClass.class) to result in a valid SomeClass object, which is
not a safe assumption in the unit test mock environment. We altered the handling code to avoid
ClassCastExceptions in these cases.

> Cannot build (mvn install) Aries JNDI on clean development environment
> ----------------------------------------------------------------------
>
>                 Key: ARIES-2005
>                 URL: https://issues.apache.org/jira/browse/ARIES-2005
>             Project: Aries
>          Issue Type: Bug
>          Components: JNDI
>         Environment: $ mvn -v
> *Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 2019-04-04T20:00:29+01:00)*
> Maven home: /usr/local/Cellar/maven/3.6.1/libexec
> Java version: 1.8.0_265, vendor: Eclipse OpenJ9, runtime: /Users/chackoj/.sdkman/candidates/java/8.0.265.j9-adpt/jre
> Default locale: en_GB, platform encoding: UTF-8
> OS name: "mac os x", version: "10.15.6", arch: "x86_64", family: "mac"
>            Reporter: Joseph Chacko
>            Priority: Major
>
> Mismatched versions in the Aries pom.xml files result in some of the JNDI tests running
against non-current development versions of the JNDI libraries.
>  
> [INFO] Reactor Summary:
> [INFO]
> [INFO] Apache Aries JNDI Parent 1.0.0-SNAPSHOT ............ SUCCESS [ 2.020 s]
> [INFO] Apache Aries JNDI API 1.1.1-SNAPSHOT ............... SUCCESS [ 1.141 s]
> [INFO] Apache Aries JNDI Core 1.1.0-SNAPSHOT .............. SUCCESS [ 2.481 s]
> [INFO] Apache Aries JNDI URL Handler 1.1.1-SNAPSHOT ....... SUCCESS [ 2.962 s]
> [INFO] Apache Aries JNDI RMI Handler 1.0.1-SNAPSHOT ....... SUCCESS [ 0.428 s]
> [INFO] Apache Aries JNDI Bundle 1.1.0-SNAPSHOT ............ SUCCESS [ 1.143 s]
> [INFO] Apache Aries JNDI Support for Legacy Runtimes 1.0.1-SNAPSHOT SUCCESS [ 0.678 s]
> [INFO] Apache Aries JNDI "business logic" test bundle for Aries jndi-url iTests 1.0.1-SNAPSHOT
SUCCESS [ 0.392 s]
> [INFO] Apache Aries JNDI Test Bundle for Aries jndi-url iTests 1.0.1-SNAPSHOT SUCCESS
[ 0.674 s]
> [INFO] Apache Aries JNDI iTests for jndi-url 1.0.1-SNAPSHOT FAILURE [ 0.411 s]
> [INFO] Apache Aries JNDI 1.0.0-SNAPSHOT ................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 13.290 s
> [INFO] Finished at: 2020-09-24T17:48:21+01:00
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal on project org.apache.aries.jndi.url.itest: Could not
resolve dependencies for project org.apache.aries.jndi:org.apache.aries.jndi.url.itest:jar:1.0.1-SNAPSHOT:
Failed to collect dependencies at org.apache.aries.jndi:org.apache.aries.jndi:jar:1.0.1-SNAPSHOT:
Failed to read artifact descriptor for org.apache.aries.jndi:org.apache.aries.jndi:jar:1.0.1-SNAPSHOT:
Failure to find org.apache.aries:parent:pom:2.0.0-SNAPSHOT in http://download.eclipse.org/rt/eclipselink/maven.repo/
was cached in the local repository, resolution will not be reattempted until the update interval
of EclipseLink Repo has elapsed or updates are forced -> [Help 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project
org.apache.aries.jndi.url.itest: Could not resolve dependencies for project org.apache.aries.jndi:org.apache.aries.jndi.url.itest:jar:1.0.1-SNAPSHOT:
Failed to collect dependencies at org.apache.aries.jndi:org.apache.aries.jndi:jar:1.0.1-SNAPSHOT



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message