Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: OpenCMIS 0.4.0
    • Component/s: build&release
    • Labels:
      None

      Description

      Maven 3.0.2 is out and offers more control over the build and supposedly improved performances.

      Could make sense to give it a try.

        Issue Links

          Activity

          Hide
          Stephan Klevenz added a comment -

          I'm building OpenCMIS with Maven 3.0.2 since a while. It works fine. I have changed Hudson job to Maven latest.

          https://hudson.apache.org/hudson/job/Chemistry%20-%20OpenCMIS%20-%20install/

          Show
          Stephan Klevenz added a comment - I'm building OpenCMIS with Maven 3.0.2 since a while. It works fine. I have changed Hudson job to Maven latest. https://hudson.apache.org/hudson/job/Chemistry%20-%20OpenCMIS%20-%20install/
          Hide
          Gabriele Columbro added a comment -

          Nice to know...I will try it out today, maybe also the -Papache-release mvn release and site procedures (those actually worry me the most).

          Also, do we have some OSGI enabled modules? And if so, are bundles produced fine with Maven3 or we should consider upgrading to Tycho [1] (not backward compatible and maybe too Eclipse specific)?

          [1] http://tycho.sonatype.org/

          Show
          Gabriele Columbro added a comment - Nice to know...I will try it out today, maybe also the -Papache-release mvn release and site procedures (those actually worry me the most). Also, do we have some OSGI enabled modules? And if so, are bundles produced fine with Maven3 or we should consider upgrading to Tycho [1] (not backward compatible and maybe too Eclipse specific)? [1] http://tycho.sonatype.org/
          Hide
          Stephan Klevenz added a comment -

          All OpenCMIS modules should be OSGi enabled by the Felix plugin currently. I have started to use OpenCMIS within an OSGi environment based on Tycho and I would be interessted to get better OpenCMIS support for Eclipse (including P2 repositories, updatesite and target definition).

          I don't know if such a support can be provided by Felix, too. If yes then I do not see a need for Tycho. In any case the support should be somehow optional.

          Show
          Stephan Klevenz added a comment - All OpenCMIS modules should be OSGi enabled by the Felix plugin currently. I have started to use OpenCMIS within an OSGi environment based on Tycho and I would be interessted to get better OpenCMIS support for Eclipse (including P2 repositories, updatesite and target definition). I don't know if such a support can be provided by Felix, too. If yes then I do not see a need for Tycho. In any case the support should be somehow optional.
          Hide
          Gabriele Columbro added a comment -

          How do you get the javaws-rt JAR?

          My Maven3 build is failing with:

          Could not transfer artifact com.sun.xml.ws:jaxws-rt:pom:2.1.7 from/to maven-repository.dev.java.net (http://download.java.net/maven/1/): No connector available to access repository maven-repository.dev.java.net (http://download.java.net/maven/1/) of type legacy using the available factories WagonRepositoryConnectorFactory -> [Help 1]

          Where is this to be found on a maven2 repository? (since maven3 deprecated maven1 repos)

          I found the JBoss one: shall we depend on this one?

          http://repository.jboss.org/maven2/sun-jaxws/jaxws-rt/2.1.7/

          Show
          Gabriele Columbro added a comment - How do you get the javaws-rt JAR? My Maven3 build is failing with: Could not transfer artifact com.sun.xml.ws:jaxws-rt:pom:2.1.7 from/to maven-repository.dev.java.net ( http://download.java.net/maven/1/): No connector available to access repository maven-repository.dev.java.net ( http://download.java.net/maven/1/ ) of type legacy using the available factories WagonRepositoryConnectorFactory -> [Help 1] Where is this to be found on a maven2 repository? (since maven3 deprecated maven1 repos) I found the JBoss one: shall we depend on this one? http://repository.jboss.org/maven2/sun-jaxws/jaxws-rt/2.1.7/
          Hide
          Stephan Klevenz added a comment -

          Did you realy build with Maven 3.0.2? I had this problem with previous Maven releases.

          Show
          Stephan Klevenz added a comment - Did you realy build with Maven 3.0.2? I had this problem with previous Maven releases.
          Hide
          Gabriele Columbro added a comment -

          I believe so, see below. (maven 3 should remove support for legacy repos, see https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html#Maven3.xCompatibilityNotes-LegacystyleRepositories). Isn't that maybe you had that JAR downloaded from another version of maven? Can you try with clean repo?

          ~~o0o~~

          rezion:chemistry-opencmis mindthegab$ mvn --version
          Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100)
          Java version: 1.6.0_17, vendor: Apple Inc.
          Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home
          Default locale: en_US, platform encoding: MacRoman
          OS name: "mac os x", version: "10.6.4", arch: "x86_64", family: "mac"
          rezion:chemistry-opencmis mindthegab$ mvn clean install site -Papache-release -rf :chemistry-opencmis-commons-impl
          [INFO] Scanning for projects...

          rezion:chemistry-opencmis mindthegab$ mvn clean install site -Papache-release -rf :chemistry-opencmis-commons-impl
          [INFO] Scanning for projects...

          ...

          [WARNING] Could not transfer metadata org.apache.chemistry.opencmis:chemistry-opencmis-commons-api:0.3.0-SNAPSHOT/maven-metadata.xml from/to maven-repository.dev.java.net (http://download.java.net/maven/1/): No connector available to access repository maven-repository.dev.java.net (http://download.java.net/maven/1/) of type legacy using the available factories WagonRepositoryConnectorFactory
          Downloading: http://download.java.net/maven/2/com/sun/xml/ws/jaxws-rt/2.1.7/jaxws-rt-2.1.7.pom
          Downloading: http://repo1.maven.org/maven2/com/sun/xml/ws/jaxws-rt/2.1.7/jaxws-rt-2.1.7.pom
          [INFO] ------------------------------------------------------------------------
          [INFO] Reactor Summary:
          [INFO]
          [INFO] OpenCMIS Commons Implementation ................... FAILURE [3.690s]
          [INFO] OpenCMIS Client API ............................... SKIPPED
          [INFO] OpenCMIS Client Bindings Implementation ........... SKIPPED
          [INFO] OpenCMIS Test Utilities ........................... SKIPPED
          [INFO] OpenCMIS Client Implementation .................... SKIPPED
          [INFO] OpenCMIS Server Implementation .................... SKIPPED
          [INFO] OpenCMIS Server Support ........................... SKIPPED
          [INFO] OpenCMIS InMemory Server Implementation ........... SKIPPED
          [INFO] OpenCMIS FileShare Server Implementation .......... SKIPPED
          [INFO] OpenCMIS JCR Server Implementation ................ SKIPPED
          [INFO] OpenCMIS Full Integration Tests ................... SKIPPED
          [INFO] OpenCMIS Test Compatibility Kit ................... SKIPPED
          [INFO] OpenCMIS Tools .................................... SKIPPED
          [INFO] OpenCMIS Browser .................................. SKIPPED
          [INFO] OpenCMIS Browser Application ...................... SKIPPED
          [INFO] OpenCMIS Workbench ................................ SKIPPED
          [INFO] OpenCMIS Assemblies Distribution .................. SKIPPED
          [INFO] ------------------------------------------------------------------------
          [INFO] BUILD FAILURE
          [INFO] ------------------------------------------------------------------------
          [INFO] Total time: 4.950s
          [INFO] Finished at: Mon Feb 28 15:02:10 CET 2011
          [INFO] Final Memory: 16M/1013M
          [INFO] ------------------------------------------------------------------------
          [ERROR] Failed to execute goal on project chemistry-opencmis-commons-impl: Could not resolve dependencies for project org.apache.chemistry.opencmis:chemistry-opencmis-commons-impl:jar:0.3.0-SNAPSHOT: Failed to collect dependencies for [org.apache.chemistry.opencmis:chemistry-opencmis-commons-api:jar:0.3.0-SNAPSHOT (compile), com.sun.xml.ws:jaxws-rt:jar:2.1.7 (compile), commons-codec:commons-codec:jar:1.4 (compile), commons-logging:commons-logging:jar:1.1.1 (compile), log4j:log4j:jar:1.2.16 (test), junit:junit:jar:4.7 (test)]: Failed to read artifact descriptor for com.sun.xml.ws:jaxws-rt:jar:2.1.7: Could not transfer artifact com.sun.xml.ws:jaxws-rt:pom:2.1.7 from/to maven-repository.dev.java.net (http://download.java.net/maven/1/): No connector available to access repository maven-repository.dev.java.net (http://download.java.net/maven/1/) of type legacy using the available factories WagonRepositoryConnectorFactory -> [Help 1]

          Show
          Gabriele Columbro added a comment - I believe so, see below. (maven 3 should remove support for legacy repos, see https://cwiki.apache.org/MAVEN/maven-3x-compatibility-notes.html#Maven3.xCompatibilityNotes-LegacystyleRepositories ). Isn't that maybe you had that JAR downloaded from another version of maven? Can you try with clean repo? ~~ o0o ~~ rezion:chemistry-opencmis mindthegab$ mvn --version Apache Maven 3.0.2 (r1056850; 2011-01-09 01:58:10+0100) Java version: 1.6.0_17, vendor: Apple Inc. Java home: /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home Default locale: en_US, platform encoding: MacRoman OS name: "mac os x", version: "10.6.4", arch: "x86_64", family: "mac" rezion:chemistry-opencmis mindthegab$ mvn clean install site -Papache-release -rf :chemistry-opencmis-commons-impl [INFO] Scanning for projects... rezion:chemistry-opencmis mindthegab$ mvn clean install site -Papache-release -rf :chemistry-opencmis-commons-impl [INFO] Scanning for projects... ... [WARNING] Could not transfer metadata org.apache.chemistry.opencmis:chemistry-opencmis-commons-api:0.3.0-SNAPSHOT/maven-metadata.xml from/to maven-repository.dev.java.net ( http://download.java.net/maven/1/): No connector available to access repository maven-repository.dev.java.net ( http://download.java.net/maven/1/ ) of type legacy using the available factories WagonRepositoryConnectorFactory Downloading: http://download.java.net/maven/2/com/sun/xml/ws/jaxws-rt/2.1.7/jaxws-rt-2.1.7.pom Downloading: http://repo1.maven.org/maven2/com/sun/xml/ws/jaxws-rt/2.1.7/jaxws-rt-2.1.7.pom [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] OpenCMIS Commons Implementation ................... FAILURE [3.690s] [INFO] OpenCMIS Client API ............................... SKIPPED [INFO] OpenCMIS Client Bindings Implementation ........... SKIPPED [INFO] OpenCMIS Test Utilities ........................... SKIPPED [INFO] OpenCMIS Client Implementation .................... SKIPPED [INFO] OpenCMIS Server Implementation .................... SKIPPED [INFO] OpenCMIS Server Support ........................... SKIPPED [INFO] OpenCMIS InMemory Server Implementation ........... SKIPPED [INFO] OpenCMIS FileShare Server Implementation .......... SKIPPED [INFO] OpenCMIS JCR Server Implementation ................ SKIPPED [INFO] OpenCMIS Full Integration Tests ................... SKIPPED [INFO] OpenCMIS Test Compatibility Kit ................... SKIPPED [INFO] OpenCMIS Tools .................................... SKIPPED [INFO] OpenCMIS Browser .................................. SKIPPED [INFO] OpenCMIS Browser Application ...................... SKIPPED [INFO] OpenCMIS Workbench ................................ SKIPPED [INFO] OpenCMIS Assemblies Distribution .................. SKIPPED [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 4.950s [INFO] Finished at: Mon Feb 28 15:02:10 CET 2011 [INFO] Final Memory: 16M/1013M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project chemistry-opencmis-commons-impl: Could not resolve dependencies for project org.apache.chemistry.opencmis:chemistry-opencmis-commons-impl:jar:0.3.0-SNAPSHOT: Failed to collect dependencies for [org.apache.chemistry.opencmis:chemistry-opencmis-commons-api:jar:0.3.0-SNAPSHOT (compile), com.sun.xml.ws:jaxws-rt:jar:2.1.7 (compile), commons-codec:commons-codec:jar:1.4 (compile), commons-logging:commons-logging:jar:1.1.1 (compile), log4j:log4j:jar:1.2.16 (test), junit:junit:jar:4.7 (test)] : Failed to read artifact descriptor for com.sun.xml.ws:jaxws-rt:jar:2.1.7: Could not transfer artifact com.sun.xml.ws:jaxws-rt:pom:2.1.7 from/to maven-repository.dev.java.net ( http://download.java.net/maven/1/): No connector available to access repository maven-repository.dev.java.net ( http://download.java.net/maven/1/ ) of type legacy using the available factories WagonRepositoryConnectorFactory -> [Help 1]
          Hide
          Gabriele Columbro added a comment -

          Adding this snippet fixes the issue, but the question is: do we have any problems in depending on the JBoss repo?
          (I don't see any as this is the whole purpose of maven allowing you to download from many repo)

          An alternative would be asking @infra to proxy http://download.java.net/maven/1/ onto a maven2 repository on repository.apache.org.

          WDYT?

          Show
          Gabriele Columbro added a comment - Adding this snippet fixes the issue, but the question is: do we have any problems in depending on the JBoss repo? (I don't see any as this is the whole purpose of maven allowing you to download from many repo) An alternative would be asking @infra to proxy http://download.java.net/maven/1/ onto a maven2 repository on repository.apache.org. WDYT?
          Hide
          Florent Guillaume added a comment -

          FYI we're interested in the OSGi aspects as well, but could the discussion about it please be moved to a separate issue or to the mailing-list?

          Show
          Florent Guillaume added a comment - FYI we're interested in the OSGi aspects as well, but could the discussion about it please be moved to a separate issue or to the mailing-list?
          Hide
          Nick Burch added a comment -

          I believe that Apache releases aren't supposed to depend on artifacts not in the main central repo, and aren't supposed to explicitly include other servers

          (I think you can do that for a little while when developing, if needed, but not for a final release)

          Show
          Nick Burch added a comment - I believe that Apache releases aren't supposed to depend on artifacts not in the main central repo, and aren't supposed to explicitly include other servers (I think you can do that for a little while when developing, if needed, but not for a final release)
          Hide
          Gabriele Columbro added a comment - - edited

          @Florian: here it is, forked a separate issue for the OSGI discussion. We'll proceed with general Maven 3 upgrade discussions here.

          Show
          Gabriele Columbro added a comment - - edited @Florian: here it is, forked a separate issue for the OSGI discussion. We'll proceed with general Maven 3 upgrade discussions here.
          Hide
          Gabriele Columbro added a comment -

          @Nick: do you think I can just mail @infra to ask for a proxy on repository.apache.org pointing to the maven 1 Java.net repo?

          All in all that's what Maven3 upgrade notes seem to suggest:

          "Maven 3.x no longer supports repositories using <layout>legacy</layout>. Users that need to access repositories created with Maven 1.x are advised to use a repository manager that is capable of providing a Maven 2.x compatible view of the legacy repository"

          Show
          Gabriele Columbro added a comment - @Nick: do you think I can just mail @infra to ask for a proxy on repository.apache.org pointing to the maven 1 Java.net repo? All in all that's what Maven3 upgrade notes seem to suggest: "Maven 3.x no longer supports repositories using <layout>legacy</layout>. Users that need to access repositories created with Maven 1.x are advised to use a repository manager that is capable of providing a Maven 2.x compatible view of the legacy repository"
          Hide
          Gabriele Columbro added a comment -

          @Nick: Actually I just subscribed and will write to repository@apache.org , which seems to me the most appropriate list. Agreed?

          http://mail-archives.apache.org/mod_mbox/www-repository/201102.mbox/browser

          Show
          Gabriele Columbro added a comment - @Nick: Actually I just subscribed and will write to repository@apache.org , which seems to me the most appropriate list. Agreed? http://mail-archives.apache.org/mod_mbox/www-repository/201102.mbox/browser
          Hide
          Nick Burch added a comment -

          repository@ is likely to be your best bet for help and advice on this, so see what they have to recommend!

          Show
          Nick Burch added a comment - repository@ is likely to be your best bet for help and advice on this, so see what they have to recommend!
          Hide
          Stephan Klevenz added a comment -

          @Gab: I tried a build with clean repository. No problem. There seems be some M2 compliant repository within my environment. BTW.: Hudson builds also fine with M3:

          https://hudson.apache.org/hudson/job/Chemistry%20-%20OpenCMIS%20-%20install/

          Show
          Stephan Klevenz added a comment - @Gab: I tried a build with clean repository. No problem. There seems be some M2 compliant repository within my environment. BTW.: Hudson builds also fine with M3: https://hudson.apache.org/hudson/job/Chemistry%20-%20OpenCMIS%20-%20install/
          Hide
          Gabriele Columbro added a comment -

          This is the (very quick) answer I got from repository@:

          >Gary Gregory to repository, Gabriele
          > 4:11 PM (1 minute ago)
          > Will you not have to upgrade eventually?
          >
          > Gary

          What guys do you think the effort would be to upgrade the lib? Can we think to do it before 0.3.0 release or schedule it otherwise?

          Show
          Gabriele Columbro added a comment - This is the (very quick) answer I got from repository@: >Gary Gregory to repository, Gabriele > 4:11 PM (1 minute ago) > Will you not have to upgrade eventually? > > Gary What guys do you think the effort would be to upgrade the lib? Can we think to do it before 0.3.0 release or schedule it otherwise?
          Hide
          Florian Müller added a comment -

          Well, no, upgrading is not really an option. We are now using JAX-WS 2.1.7, the last version of the 2.1.x series. It can be deployed by just dropping it into the classpath. JAX-WS 2.2.x has to be deployed into an endorsed directory. That would make the OpenCMIS deployment a pain (on the client and the server) and in some environments impossible.

          Show
          Florian Müller added a comment - Well, no, upgrading is not really an option. We are now using JAX-WS 2.1.7, the last version of the 2.1.x series. It can be deployed by just dropping it into the classpath. JAX-WS 2.2.x has to be deployed into an endorsed directory. That would make the OpenCMIS deployment a pain (on the client and the server) and in some environments impossible.
          Show
          Gabriele Columbro added a comment - You can follow the discuss at repository@ here: http://mail-archives.apache.org/mod_mbox/www-repository/201102.mbox/%3CAANLkTikzY5XUFQfCYL=dS9-YAGJmicO35201nyyuJOis@mail.gmail.com%3E
          Hide
          Gabriele Columbro added a comment -
          Show
          Gabriele Columbro added a comment - And BTW, seems that someone else is having our troubles: http://www.sonatype.com/people/2010/02/java-net-maven-repository-rescue-mission-on-march-5th/
          Hide
          Peter Monks added a comment -

          Any update on this issue? It's preventing me from building OpenCMIS too.

          Gabriele, in comment-13000291 you indicated that you had a "snippet" that fixed the issue - can you provide details on the workaround you found for this issue? Thanks!

          Show
          Peter Monks added a comment - Any update on this issue? It's preventing me from building OpenCMIS too. Gabriele, in comment-13000291 you indicated that you had a "snippet" that fixed the issue - can you provide details on the workaround you found for this issue? Thanks!

            People

            • Assignee:
              Gabriele Columbro
              Reporter:
              Gabriele Columbro
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development