Ivy
  1. Ivy
  2. IVY-968

FileSystem resolver with m2compatible=true throws error when publishing modules with dotted organisation names

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-RC2, 2.1.0
    • Fix Version/s: 2.2.0-RC1
    • Component/s: Core
    • Labels:
      None
    • Environment:

      Windows XP, JDK 1.6

      Description

      When you try to publish an artifact with a "." (dot) in its organisationname to a maven2 compatible file system resolver you get:

      Ant Output
      install-local:
      :: delivering :: org.test#testlib;working@kebap :: 0.0-dev-20081114110649 :: integration :: Fri Nov 14 11:06:53 CET 2008
      	delivering ivy file to D:\workspace\testlib\dist\ivys\ivy.xml
      :: publishing :: org.test#testlib
      	published testlib to C:\Dokumente und Einstellungen\kebe\.ivy2/local/org/test/testlib/0.0-dev-20081114110649.part/testlib-0.0-dev-20081114110649.jar
      	published ivy to C:\Dokumente und Einstellungen\kebe\.ivy2/local/org/test/testlib/0.0-dev-20081114110649.part/ivy.xml
      
      BUILD FAILED
      XXXXXXXXXXXXXXXXXx-common.ant:459: impossible to publish artifacts for org.test#testlib;working@kebap: java.lang.IllegalStateException: no current transaction!

      Here is the settings snippet:

      From ivysettings.xml
      <filesystem name="local" m2compatible="true">
        <ivy pattern="${repository.local.path}/[organisation]/[module]/[revision]/ivy.xml" />
        <artifact pattern="${repository.local.path}/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
      </filesystem>
      

      Publishing with organisation without a "." works. If you set transactional of the filesystem resolver to false it works, too.

        Activity

        Michael Kebe created issue -
        Jason Trump made changes -
        Field Original Value New Value
        Attachment ivy-968-test_r885277.patch [ 12426371 ]
        Maarten Coene made changes -
        Summary IllegalStateException: no current transaction! when publishing to m2compatible file FileSystem resolver with m2compatible=true throws error when publishing modules with dotted organisation names
        Assignee Maarten Coene [ maartenc ]
        Affects Version/s 2.1.0 [ 12313842 ]
        Component/s Core [ 12311511 ]
        Maarten Coene made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s trunk [ 12313426 ]
        Resolution Fixed [ 1 ]
        Maarten Coene made changes -
        Fix Version/s 2.2.0-RC1 [ 12315013 ]
        Fix Version/s trunk [ 12313426 ]

          People

          • Assignee:
            Maarten Coene
            Reporter:
            Michael Kebe
          • Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development