Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-4757

"java.lang.IllegalStateException" error when use install-plugin goal

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.4, 2.1.5, 2.2
    • 2.1.7, 2.2.2, 3.0.0
    • geronimo-maven-plugin
    • Security Level: public (Regular issues)
    • None
    • os:windows

    • Patch Available

    Description

      1.Maven repository is c::\Documents and Settings\Administrator.IBM-B92C72F1CB7\.m2\repository,
      Build plugin-farm-it plugin under plugins/clustering/pluin-farm-it
      there is an execution in its pom.xml which install this plugin-farm-it plugin to maven repository
      <execution>
      <id>install-plugin</id>
      <phase>install</phase>
      <goals>
      <goal>install-plugin</goal>
      </goals>
      <!-<configuration>->
      <!-<defaultGeronimoRepository>http://geronimo.apache.org/plugins/geronimo-${version}/</defaultGeronimoRepository>->
      <!-</configuration>->
      </execution>

      2.But when it execute install-plugin goal, there is an error:
      2009-07-21 10:40:20,859 ERROR [PluginRepositoryDownloader] Unable to format plugin repository URL C:\Documents and Settings\Administrator.IBM-B92C72F1CB7\.m2\repository/
      java.net.URISyntaxException: Illegal character in opaque part at index 2: C:\Documents and Settings\Administrator.IBM-B92C72F1CB7\.m2\repository/
      at java.net.URI$Parser.fail(URI.java:2821)
      at java.net.URI$Parser.checkChars(URI.java:2994)
      at java.net.URI$Parser.parse(URI.java:3031)
      at java.net.URI.<init>(URI.java:590)
      at org.apache.geronimo.system.plugin.PluginRepositoryDownloader.resolveRepository(PluginRepositoryDownloader.java:231)
      at org.apache.geronimo.system.plugin.PluginRepositoryDownloader.getSourceRepository(PluginRepositoryDownloader.java:202)
      at org.apache.geronimo.system.plugin.PluginInstallerGBean.getDefaultSourceRepository(PluginInstallerGBean.java:670)
      at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:713)
      at org.apache.geronimo.system.plugin.PluginInstallerGBean$3.run(PluginInstallerGBean.java:885)
      at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)
      at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
      at java.lang.Thread.run(Thread.java:810)
      Exception in thread "DefaultThreadPool 0" java.lang.IllegalStateException: Can't locate repo C:\Documents and Settings\Administrator.IBM-B92C72F1CB7\.m2\repository
      at org.apache.geronimo.system.plugin.PluginRepositoryDownloader.getSourceRepository(PluginRepositoryDownloader.java:204)
      at org.apache.geronimo.system.plugin.PluginInstallerGBean.getDefaultSourceRepository(PluginInstallerGBean.java:670)
      at org.apache.geronimo.system.plugin.PluginInstallerGBean.install(PluginInstallerGBean.java:713)
      at org.apache.geronimo.system.plugin.PluginInstallerGBean$3.run(PluginInstallerGBean.java:885)
      at org.apache.geronimo.pool.ThreadPool$1.run(ThreadPool.java:214)
      at org.apache.geronimo.pool.ThreadPool$ContextClassLoaderRunnable.run(ThreadPool.java:344)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
      at java.lang.Thread.run(Thread.java:810)

      It's cozed by maven repositry path containing space, which is forbidden in URI.

      Attachments

        1. GERONIMO-4757.patch
          2 kB
          viola.lu

        Activity

          People

            xuhaihong Haihong Xu
            viola.lu viola.lu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: