You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Viktor Ransmayr <vi...@gmail.com> on 2009/12/30 16:21:20 UTC

Problems building Felix - Take 2

Hi everyone,

     a couple of days ago I sent an initial inquiry to this list. - I 
did get helpfull input, but
it became clear to me, that I had to learn a bit more about Maven. - So 
I did and I
now tried to create a repository for 'all' subprojects of Apache Felix 
locally ...

I'm attaching the findings (as Log1), as well as a preliminary summary 
about my findings
(as Log2). - Please provide your feedback on any errors in this summary.

Thanks in advance! - I'm using it as an opporunity to learn more about 
the Apache
Felix build-infrastructure as well as Maven ...

Viktor

<Log1>

Summarize the findings from the 'local' Maven-Build-Session.

* Ensure that the trunk is really up to date.  - Local snapshot is now 
on rev 894428. - See 'Log-005'.
* Leave out 'bundleplugin' for the moment ...
* Execute 'mvn clean install' on 'bundlerepository'. - OK. - See 'Log-006'.
* Execute 'mvn clean install' on 'commons'. - Not OK. - See 'Log-007'.

::

     ...

     [ERROR] Error building bundle 
org.apache.felix.commons:org.apache.felix.commons.jline:bundle:0.9.91-0001-SNAPSHOT 
: Unresolved references to [javax.swing] by class(es) on the 
Bundle-Classpath[Jar:dot]: [jline/ClassNameCompletor.class]
     [ERROR] Error(s) found in bundle configuration
     [INFO] 
------------------------------------------------------------------------
     [ERROR] BUILD ERROR
     [INFO] 
------------------------------------------------------------------------
     [INFO] Error(s) found in bundle configuration

     [INFO] 
------------------------------------------------------------------------
     [INFO] For more information, run Maven with the -e switch
     [INFO] 
------------------------------------------------------------------------
     [INFO] Total time: 5 minutes 4 seconds
     [INFO] Finished at: Tue Dec 29 17:02:24 CET 2009
     [INFO] Final Memory: 19M/35M
     [INFO] 
------------------------------------------------------------------------
     C:\Snapshots\Felix\commons>

* Execute 'mvn clean install' on 'configadmin'. - Not OK, manually 
cancelled. - See 'Log-008'.

::

     ...

     -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running org.apache.felix.cm.integration.ConfigurationBindingTest
          ______  ________  __  __
         / __  / /  __   / / / / /
        /  ___/ /  __   / _\ \ _/
       /  /    /  / /  / / _\ \
      /__/    /__/ /__/ /_/ /_/

     Pax Exam 0.6.0 from OPS4J - http://www.ops4j.org
     ------------------------------------------------

     [              JUnit4TestMethod] - Starting test 
test_configuration_unbound_on_uninstall(org.apache.felix.cm.integration.ConfigurationBindingTest)
     [        PaxRunnerTestContainer] - Starting up the test container 
(Pax Runner 0.20.0 )
     [             ConfigurationImpl] - Using config 
[classpath:META-INF/runner.properties]
     [                           Run] - Using only arguments from 
command line
     [          ProvisionServiceImpl] - Scan bundles from 
[scan-bundle:mvn:org.ops4j.pax.exam/pax-exam/0.6.0@1]
     [          ProvisionServiceImpl] - Scan bundles from 
[scan-bundle:mvn:org.ops4j.pax.exam/pax-exam-junit-extender/0.6.0@1]
     [          ProvisionServiceImpl] - Scan bundles from 
[scan-bundle:mvn:org.ops4j.pax.exam/pax-exam-junit-extender-impl/0.6.0@1]
     [          ProvisionServiceImpl] - Scan bundles from 
[scan-bundle:mvn:org.ops4j.pax.url/pax-url-dir/0.5.2@1]
     [          ProvisionServiceImpl] - Scan bundles from 
[scan-bundle:file:/C:/Snapshots/Felix/configadmin/target/configadmin.jar@update]
     [          ProvisionServiceImpl] - Scan bundles from 
[scan-bundle:mvn:org.ops4j.pax.swissbox/pax-swissbox-tinybundles/1.0.0]
     [          ProvisionServiceImpl] - Scan bundles from 
[scan-bundle:mvn:org.junit/com.springsource.org.junit/4.4.0@1]
     [          ProvisionServiceImpl] - Scan bundles from 
[scan-bundle:mvn:org.ops4j.pax.exam/pax-exam-container-rbc/0.6.0@1]
     [                           Run] - Provision bundle 
[mvn:org.ops4j.pax.exam/pax-exam/0.6.0, at start level 1, bundle will be 
started, bundle will be loaded from the cache]
     [                           Run] - Provision bundle 
[mvn:org.ops4j.pax.exam/pax-exam-junit-extender/0.6.0, at start level 1, 
bundle will be started, bundle will be loaded from the cache]
     [                           Run] - Provision bundle 
[mvn:org.ops4j.pax.exam/pax-exam-junit-extender-impl/0.6.0, at start 
level 1, bundle will be started, bundle will be loaded from the cache]
     [                           Run] - Provision bundle 
[mvn:org.ops4j.pax.url/pax-url-dir/0.5.2, at start level 1, bundle will 
be started, bundle will be loaded from the cache]
     [                           Run] - Provision bundle 
[file:/C:/Snapshots/Felix/configadmin/target/configadmin.jar, at default 
start level, bundle will be started, bundle will be re-downloaded]
     [                           Run] - Provision bundle 
[mvn:org.ops4j.pax.swissbox/pax-swissbox-tinybundles/1.0.0, at default 
start level, bundle will be started, bundle will be loaded from the cache]
     [                           Run] - Provision bundle 
[mvn:org.junit/com.springsource.org.junit/4.4.0, at start level 1, 
bundle will be started, bundle will be loaded from the cache]
     [                           Run] - Provision bundle 
[mvn:org.ops4j.pax.exam/pax-exam-container-rbc/0.6.0, at start level 1, 
bundle will be started, bundle will be loaded from the cache]
     [                  PlatformImpl] - Preparing framework [Felix 1.8.0]
     [                  PlatformImpl] - Downloading bundles...
     [                   StreamUtils] - 
file:/C:/Snapshots/Felix/configadmin/target/configadmin.jar : downloading...
     [                   StreamUtils] - 
file:/C:/Snapshots/Felix/configadmin/target/configadmin.jar : 91635 
bytes @ [ 3054kBps ]
     [          ExecutionEnvironment] - Using execution environment 
[J2SE-1.6]
     [             DefaultJavaRunner] - Runner has successfully finished 
his job!

     [        PaxRunnerTestContainer] - Test container (Pax Runner 
0.20.0) started in 1302 millis
     [        PaxRunnerTestContainer] - Wait for test container to 
finish its initialization without timing out

     Welcome to Felix.
     =================

* Execute 'mvn clean install' on 'dependencymanager'. - Not OK. - See 
'Log-009'.

::

     ...

     Tests run: 17, Failures: 0, Errors: 1, Skipped: 0

     [INFO] 
------------------------------------------------------------------------
     [ERROR] BUILD FAILURE
     [INFO] 
------------------------------------------------------------------------
     [INFO] There are test failures.

     Please refer to 
C:\Snapshots\Felix\dependencymanager\test\target\surefire-reports for 
the individual test results.
     [INFO] 
------------------------------------------------------------------------
     [INFO] For more information, run Maven with the -e switch
     [INFO] 
------------------------------------------------------------------------
     [INFO] Total time: 2 minutes 48 seconds
     [INFO] Finished at: Tue Dec 29 17:12:41 CET 2009
     [INFO] Final Memory: 22M/40M
     [INFO] 
------------------------------------------------------------------------
     C:\Snapshots\Felix\dependencymanager>

* Execute 'mvn clean install' on 'deploymentadmin'. - OK. - See 'Log-010'.
* Execute 'mvn clean install' on 'deviceaccess'. - Not OK. - See 'Log-011'.

::

     C:\Snapshots\Felix\deviceaccess>mvn clean install
     [INFO] Scanning for projects...
     [INFO] 
------------------------------------------------------------------------
     [ERROR] FATAL ERROR
     [INFO] 
------------------------------------------------------------------------
     [INFO] Error building POM (may not be this project's POM).


     Project ID: null:org.apache.felix.devicemanager:bundle:0.9.0-SNAPSHOT

     Reason: Cannot find parent: org.apache.felix:felix for project: 
null:org.apache.felix.devicemanager:bundle:0.9.0-SNAPSHOT for project 
null:org.apache.felix.devicemanager:bundle:0.9.0-SNAPSHOT

     ...

* Execute 'mvn clean install' on 'eventadmin'. - OK. - See 'Log-012'.
* Execute 'mvn clean install' on 'examples'. - OK. - See 'Log-013'.

     * Unclear if anything happened at all.

* Execute 'mvn clean install' on 'fileinstall'. - OK. - See 'Log-014'.
* Execute 'mvn clean install' on 'framework'. - OK. - See 'Log-015'.
* Leave out 'framework.security' for the moment ...
* Execute 'mvn clean install' on 'gogo'. - OK. - See 'Log-016'.
* Execute 'mvn clean install' on 'http'. - OK. - See 'Log-017'.
* Execute 'mvn clean install' on 'http.jetty'. - OK. - See 'Log-018'.
* Execute 'mvn clean install' on 'installers'. - Not OK. - See 'Log-019'.

::

     ...

     5 required artifacts are missing.

     for artifact:
       org.apache.felix:installers:jar:0.9.0-SNAPSHOT

     from the specified remote repositories:
       apache.snapshots 
(http://people.apache.org/repo/m2-snapshot-repository),
       central (http://repo1.maven.org/maven2)

     [INFO] 
------------------------------------------------------------------------
     [INFO] For more information, run Maven with the -e switch
     [INFO] 
------------------------------------------------------------------------
     [INFO] Total time: 10 seconds
     [INFO] Finished at: Tue Dec 29 18:25:12 CET 2009
     [INFO] Final Memory: 9M/17M
     [INFO] 
------------------------------------------------------------------------
     C:\Snapshots\Felix\installers>

* Execute 'mvn clean install' on 'io'. - OK. - See 'Log-020'.
* Execute 'mvn clean install' on 'ipojo'. - OK. - See 'Log-021'.
* Execute 'mvn clean install' on 'javax.servlet'. - OK. - See 'Log-022'.
* Execute 'mvn clean install' on 'jmood'. - OK. - See 'Log-023'.
* Execute 'mvn clean install' on 'jmxintrospector'. - OK. - See 'Log-024'.
* Execute 'mvn clean install' on 'karaf'. - OK. - See 'Log-025'.
* Execute 'mvn clean install' on 'log'. - OK. - See 'Log-026'.
* Execute 'mvn clean install' on 'main'. - OK. - See 'Log-027'.
* Leave out 'maven-obr-plugin' for the moment ...
* Execute 'mvn clean install' on 'metatype'. - OK. - See 'Log-028'.
* Execute 'mvn clean install' on 'mishell'. - Not OK. - See 'Log-029'.

::

     ...

     2 required artifacts are missing.

     for artifact:
       org.apache.felix:org.apache.felix.mishell:osgi-bundle:0.9.0-SNAPSHOT

     from the specified remote repositories:
       apache.snapshots 
(http://people.apache.org/repo/m2-snapshot-repository),
       central (http://repo1.maven.org/maven2)

     [INFO] 
------------------------------------------------------------------------
     [INFO] For more information, run Maven with the -e switch
     [INFO] 
------------------------------------------------------------------------
     [INFO] Total time: 7 seconds
     [INFO] Finished at: Tue Dec 29 19:11:29 CET 2009
     [INFO] Final Memory: 8M/17M
     [INFO] 
------------------------------------------------------------------------
     C:\Snapshots\Felix\mishell>

* Execute 'mvn clean install' on 'mosgi'. - OK. - See 'Log-030'.
* Execute 'mvn clean install' on 'o.a.f.daemon'. - Not OK. - See 'Log-031'.

::

     ...

     1 required artifact is missing.

     for artifact:
       org.apache.felix:org.apache.felix.daemon:jar:0.9.0-SNAPSHOT

     from the specified remote repositories:
       apache.snapshots 
(http://people.apache.org/repo/m2-snapshot-repository),
       central (http://repo1.maven.org/maven2)

     [INFO] 
------------------------------------------------------------------------
     [INFO] For more information, run Maven with the -e switch
     [INFO] 
------------------------------------------------------------------------
     [INFO] Total time: 6 seconds
     [INFO] Finished at: Tue Dec 29 19:19:07 CET 2009
     [INFO] Final Memory: 9M/16M
     [INFO] 
------------------------------------------------------------------------
     C:\Snapshots\Felix\org.apache.felix.daemon>

* Execute 'mvn clean install' on 'o.o.compendium'. - OK. - See 'Log-032'.
* Execute 'mvn clean install' on 'o.o.core'. - OK. - See 'Log-033'.
* Execute 'mvn clean install' on 'o.o.foundationj'. - OK. - See 'Log-034'.
* Execute 'mvn clean install' on 'o.o.service.obr'. - OK. - See 'Log-035'.
* Leave out 'pom' for the moment ...
* Execute 'mvn clean install' on 'prefs'. - OK. - See 'Log-036'.
* Execute 'mvn clean install' on 'scr'. - Not OK, manually cancelled. - 
See 'Log-037'.

::

     ...

     -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running org.apache.felix.scr.integration.ComponentDisposeTest
          ______  ________  __  __
        / __  / /  __   / / / / /
       /  ___/ /  __   / _\ \ _/
      /  /    /  / /  / / _\ \
     /__/    /__/ /__/ /_/ /_/

     Pax Exam 0.6.0 from OPS4J - http://www.ops4j.org
     ------------------------------------------------

     [              JUnit4TestMethod] - Starting test 
test_SimpleComponent_factory_configuration(org.apache.felix.scr.integration.ComponentDisposeTest)
     [        PaxRunnerTestContainer] - Starting up the test container 
(Pax Runner 0.20.0 )
     [             ConfigurationImpl] - Using config 
[classpath:META-INF/runner.properties]
     [                           Run] - Using only arguments from 
command line
     [          ProvisionServiceImpl] - Scan bundles from 
[scan-bundle:mvn:org.ops4j.pax.exam/pax-exam/0.6.0@1]
     [          ProvisionServiceImpl] - Scan bundles from 
[scan-bundle:mvn:org.ops4j.pax.exam/pax-exam-junit-extender/0.6.0@1]
     [          ProvisionServiceImpl] - Scan bundles from 
[scan-bundle:mvn:org.ops4j.pax.exam/pax-exam-junit-extender-impl/0.6.0@1]
     [          ProvisionServiceImpl] - Scan bundles from 
[scan-bundle:mvn:org.ops4j.pax.url/pax-url-dir/0.5.2@1]
     [          ProvisionServiceImpl] - Scan bundles from 
[scan-bundle:file:/C:/Snapshots/Felix/scr/target/org.apache.felix.scr-1.4.1-SNAPSHOT.jar@update]
     [          ProvisionServiceImpl] - Scan bundles from 
[scan-bundle:mvn:org.ops4j.pax.swissbox/pax-swissbox-tinybundles/1.0.0]
     [          ProvisionServiceImpl] - Scan bundles from 
[scan-bundle:mvn:org.apache.felix/org.apache.felix.configadmin/1.0.10]
     [          ProvisionServiceImpl] - Scan bundles from 
[scan-bundle:mvn:org.junit/com.springsource.org.junit/4.4.0@1]
     [          ProvisionServiceImpl] - Scan bundles from 
[scan-bundle:mvn:org.ops4j.pax.exam/pax-exam-container-rbc/0.6.0@1]
     [                           Run] - Provision bundle 
[mvn:org.ops4j.pax.exam/pax-exam/0.6.0, at start level 1, bundle will be 
started, bundle will be loaded from the cache]
     [                           Run] - Provision bundle 
[mvn:org.ops4j.pax.exam/pax-exam-junit-extender/0.6.0, at start level 1, 
bundle will be started, bundle will be loaded from the cache]
     [                           Run] - Provision bundle 
[mvn:org.ops4j.pax.exam/pax-exam-junit-extender-impl/0.6.0, at start 
level 1, bundle will be started, bundle will be loaded from the cache]
     [                           Run] - Provision bundle 
[mvn:org.ops4j.pax.url/pax-url-dir/0.5.2, at start level 1, bundle will 
be started, bundle will be loaded from the cache]
     [                           Run] - Provision bundle 
[file:/C:/Snapshots/Felix/scr/target/org.apache.felix.scr-1.4.1-SNAPSHOT.jar, 
at default start level, bundle will be started, bundle will be 
re-downloaded]
     [                           Run] - Provision bundle 
[mvn:org.ops4j.pax.swissbox/pax-swissbox-tinybundles/1.0.0, at default 
start level, bundle will be started, bundle will be loaded from the cache]
     [                           Run] - Provision bundle 
[mvn:org.apache.felix/org.apache.felix.configadmin/1.0.10, at default 
start level, bundle will be started, bundle will be loaded from the cache]
     [                           Run] - Provision bundle 
[mvn:org.junit/com.springsource.org.junit/4.4.0, at start level 1, 
bundle will be started, bundle will be loaded from the cache]
     [                           Run] - Provision bundle 
[mvn:org.ops4j.pax.exam/pax-exam-container-rbc/0.6.0, at start level 1, 
bundle will be started, bundle will be loaded from the cache]
     [                  PlatformImpl] - Preparing framework [Felix 1.8.0]
     [                  PlatformImpl] - Downloading bundles...
     [                   StreamUtils] - 
file:/C:/Snapshots/Felix/scr/target/org.apache.felix.scr-1.4.1-SNAPSHOT.jar 
: downloading...
     [                   StreamUtils] - 
file:/C:/Snapshots/Felix/scr/target/org.apache.felix.scr-1.4.1-SNAPSHOT.jar 
: 186974 bytes @ [ 6232kBps ]
     [          ExecutionEnvironment] - Using execution environment 
[J2SE-1.6]
     [             DefaultJavaRunner] - Runner has successfully finished 
his job!

     [        PaxRunnerTestContainer] - Test container (Pax Runner 
0.20.0) started in 811 millis
     [        PaxRunnerTestContainer] - Wait for test container to 
finish its initialization without timing out

     Welcome to Felix.
     =================

* Execute 'mvn clean install' on 'scr-annotations'. - OK. - See 'Log-038'.
* Execute 'mvn clean install' on 'scrplugin'. - OK. - See 'Log-039'.
* Execute 'mvn clean install' on 'servicebinder'. - OK. - See 'Log-040'.
* Execute 'mvn clean install' on 'shell'. - OK. - See 'Log-041'.
* Execute 'mvn clean install' on 'shell.gui'. - OK. - See 'Log-042'.
* Execute 'mvn clean install' on 'shell.gui.plugin'. - OK. - See 'Log-043'.
* Execute 'mvn clean install' on 'shell.remote'. - OK. - See 'Log-044'.
* Execute 'mvn clean install' on 'shell.tui'. - OK. - See 'Log-045'.
* Execute 'mvn clean install' on 'sigil'. - Not OK. - See 'Log-046'.

::

     C:\Snapshots\Felix\sigil>mvn clean install
     [INFO] Scanning for projects...
     [INFO] 
------------------------------------------------------------------------
     [INFO] Building Maven Default Project
     [INFO]    task-segment: [clean, install]
     [INFO] 
------------------------------------------------------------------------
     [INFO] 
------------------------------------------------------------------------
     [ERROR] BUILD ERROR
     [INFO] 
------------------------------------------------------------------------
     [INFO] Cannot execute mojo: clean. It requires a project with an 
existing pom.xml, but the build is not using one.
     [INFO] 
------------------------------------------------------------------------
     [INFO] For more information, run Maven with the -e switch
     [INFO] 
------------------------------------------------------------------------
     [INFO] Total time: < 1 second
     [INFO] Finished at: Tue Dec 29 20:44:14 CET 2009
     [INFO] Final Memory: 1M/4M
     [INFO] 
------------------------------------------------------------------------
     C:\Snapshots\Felix\sigil>

* Leave out 'src' for the moment ...
* Leave out 'tools' for the moment ...
* Execute 'mvn clean install' on 'transactions'. - OK. - See 'Log-047'.
* Execute 'mvn clean install' on 'upnp'. - OK. - See 'Log-048'.
* Execute 'mvn clean install' on 'useradmin'. - OK. - See 'Log-049'.
* Execute 'mvn clean install' on 'webconsole'. - OK. - See 'Log-050'.
* Execute 'mvn clean install' on 'webconsole-plugin'. - Not OK. - See 
'Log-051'.

::

     C:\Snapshots\Felix\webconsole-plugins>mvn clean install
     [INFO] Scanning for projects...
     [INFO] 
------------------------------------------------------------------------
     [INFO] Building Maven Default Project
     [INFO]    task-segment: [clean, install]
     [INFO] 
------------------------------------------------------------------------
     [INFO] 
------------------------------------------------------------------------
     [ERROR] BUILD ERROR
     [INFO] 
------------------------------------------------------------------------
     [INFO] Cannot execute mojo: clean. It requires a project with an 
existing pom.xml, but the build is not using one.
     [INFO] 
------------------------------------------------------------------------
     [INFO] For more information, run Maven with the -e switch
     [INFO] 
------------------------------------------------------------------------
     [INFO] Total time: < 1 second
     [INFO] Finished at: Tue Dec 29 21:01:38 CET 2009
     [INFO] Final Memory: 1M/4M
     [INFO] 
------------------------------------------------------------------------
     C:\Snapshots\Felix\webconsole-plugins>

* Execute 'mvn clean install' on 'wireadmin'. - OK. - See 'Log-052'.

</Log1>

<Log2>

* Execute 'mvn clean install' on 'commons'. - Not OK. - See 'Log-007'.

     * Statement: Ignore it for the moment. - Why? - It is not strictly 
related to the Felix-SP ...

* Execute 'mvn clean install' on 'configadmin'. - Not OK, manually 
cancelled. - See 'Log-008'.

     * Statment: Ignore it for the moment. - It does at least build ...

* Execute 'mvn clean install' on 'dependencymanager'. - Not OK. - See 
'Log-009'.

     * Statement: Ignore it for the moment. - It does at least build ...

* Execute 'mvn clean install' on 'deviceaccess'. - Not OK. - See 'Log-011'.

     * Statement: Ignore it for the moment. - It is not a 'released' 
sub-project!

* Execute 'mvn clean install' on 'installers'. - Not OK. - See 'Log-019'.

     * Statement: Ignore it for the moment. - It is not a 'released' 
sub-project!

* Execute 'mvn clean install' on 'mishell'. - Not OK. - See 'Log-029'.

     * Statement: Ignore it for the moment. - It is not a 'released' 
sub-project!

* Execute 'mvn clean install' on 'o.a.f.daemon'. - Not OK. - See 'Log-031'.

     * Statement: Ignore it for the moment. - It is not a 'released' 
sub-project!

* Execute 'mvn clean install' on 'scr'. - Not OK, manually cancelled. - 
See 'Log-037'.

     * Statment: Ignore it for the moment. - It does at least build ...

* Execute 'mvn clean install' on 'sigil'. - Not OK. - See 'Log-046'.

     * Statement: Should not have been done in the first place. - It 
does not provide a POM.

* * Execute 'mvn clean install' on 'webconsole-plugin'. - Not OK. - See 
'Log-051'.

     * Statement: Should not have been done in the first place. - It 
does not provide a POM
       at this level.

</Log2>