title: Maven: mvn package failure
body: <p>I am trying to create an executable .jar file from a maven project using the "mvn package" command. It had been working for a while, but now, after running the command in debugging mode, I'm getting this:</p>
  
  <pre><code>[INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 7.074s
  [INFO] Finished at: Wed Oct 02 11:25:05 CEST 2013
  [INFO] Final Memory: 17M/245M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.
  4:single (make-assembly) on project shootingmovies-java: Execution make-assembly
   of goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single failed. Illeg
  alArgumentException -&gt; [Help 1]
  org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
  rg.apache.maven.plugins:maven-assembly-plugin:2.4:single (make-assembly) on proj
  ect shootingmovies-java: Execution make-assembly of goal org.apache.maven.plugin
  s:maven-assembly-plugin:2.4:single failed.
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
  .java:225)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
  .java:153)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
  .java:145)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
  ct(LifecycleModuleBuilder.java:84)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
  ct(LifecycleModuleBuilder.java:59)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
  ild(LifecycleStarter.java:183)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
  eStarter.java:161)
          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
          at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
          at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
          at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:601)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
  cher.java:290)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
  a:230)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
  uncher.java:409)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
  352)
  Caused by: org.apache.maven.plugin.PluginExecutionException: Execution make-asse
  mbly of goal org.apache.maven.plugins:maven-assembly-plugin:2.4:single failed.
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
  BuildPluginManager.java:110)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
  .java:209)
          ... 19 more
  Caused by: java.lang.IllegalArgumentException
          at sun.net.www.ParseUtil.decode(ParseUtil.java:202)
          at java.net.JarURLConnection.parseSpecs(JarURLConnection.java:185)
          at java.net.JarURLConnection.&lt;init&gt;(JarURLConnection.java:162)
          at sun.net.www.protocol.jar.JarURLConnection.&lt;init&gt;(JarURLConnection.jav
  a:81)
          at sun.net.www.protocol.jar.Handler.openConnection(Handler.java:41)
          at java.net.URL.openConnection(URL.java:971)
          at java.net.URL.openStream(URL.java:1037)
          at org.codehaus.plexus.components.io.resources.PlexusIoURLResource.getCo
  ntents(PlexusIoURLResource.java:34)
          at org.codehaus.plexus.archiver.ArchiveEntry.getInputStream(ArchiveEntry
  .java:106)
          at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.zipFile(Abstract
  ZipArchiver.java:590)
          at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.addResources(Abs
  tractZipArchiver.java:398)
          at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.createArchiveMai
  n(AbstractZipArchiver.java:323)
          at org.codehaus.plexus.archiver.zip.AbstractZipArchiver.execute(Abstract
  ZipArchiver.java:222)
          at org.codehaus.plexus.archiver.AbstractArchiver.createArchive(AbstractA
  rchiver.java:910)
          at org.apache.maven.plugin.assembly.archive.archiver.AssemblyProxyArchiv
  er.createArchive(AssemblyProxyArchiver.java:512)
          at org.apache.maven.plugin.assembly.archive.DefaultAssemblyArchiver.crea
  teArchive(DefaultAssemblyArchiver.java:186)
          at org.apache.maven.plugin.assembly.mojos.AbstractAssemblyMojo.execute(A
  bstractAssemblyMojo.java:436)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
  BuildPluginManager.java:101)
          ... 20 more
  [ERROR]
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please rea
  d the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutio
  nException
  [ERROR]
  [ERROR] After correcting the problems, you can resume the build with the command
  
  [ERROR]   mvn &lt;goals&gt; -rf :shootingmovies-java
  </code></pre>
  
  <p>I'm not sure where to look for an error since I haven't changed anything outside of the actual code and that doesn't seem to have anything to do with this since I can execute it from the terminal just fine.
  I'm guessing it's some kind of setting or something in the pom.xml file but I don't want to just go and modify stuff in there without knowing what am I looking for.
  Any help is welcome, thanks.</p>
  
  <p>Hoping it can help, here is my pom.xml:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"&gt;
    &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
    &lt;parent&gt;
      &lt;groupId&gt;com.googlecode.shootingmovies&lt;/groupId&gt;
      &lt;artifactId&gt;shootingmovies&lt;/artifactId&gt;
      &lt;version&gt;1.0&lt;/version&gt;
    &lt;/parent&gt;
  
    &lt;artifactId&gt;shootingmovies-java&lt;/artifactId&gt;
    &lt;packaging&gt;jar&lt;/packaging&gt;
    &lt;name&gt;Hub Java&lt;/name&gt;
  
    &lt;properties&gt;
      &lt;mainClass&gt;SMpackage.java.HubJava&lt;/mainClass&gt;
    &lt;/properties&gt;
  
    &lt;dependencies&gt;
      &lt;dependency&gt;
        &lt;groupId&gt;com.googlecode.shootingmovies&lt;/groupId&gt;
        &lt;artifactId&gt;shootingmovies-core&lt;/artifactId&gt;
        &lt;version&gt;${project.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
        &lt;groupId&gt;com.googlecode.shootingmovies&lt;/groupId&gt;
        &lt;artifactId&gt;shootingmovies-assets&lt;/artifactId&gt;
        &lt;version&gt;${project.version}&lt;/version&gt;
      &lt;/dependency&gt;
  
      &lt;dependency&gt;
        &lt;groupId&gt;com.googlecode.playn&lt;/groupId&gt;
        &lt;artifactId&gt;playn-java&lt;/artifactId&gt;
        &lt;version&gt;${playn.version}&lt;/version&gt;
      &lt;/dependency&gt;
    &lt;/dependencies&gt;
  
    &lt;build&gt;
      &lt;plugins&gt;
        &lt;!-- builds a standalone jar file during 'mvn package' --&gt;
        &lt;plugin&gt;
          &lt;artifactId&gt;maven-assembly-plugin&lt;/artifactId&gt;
          &lt;version&gt;2.4&lt;/version&gt;
          &lt;configuration&gt;
            &lt;descriptorRefs&gt;
              &lt;descriptorRef&gt;jar-with-dependencies&lt;/descriptorRef&gt;
            &lt;/descriptorRefs&gt;
            &lt;archive&gt;
              &lt;manifest&gt;
                &lt;mainClass&gt;${mainClass}&lt;/mainClass&gt;
              &lt;/manifest&gt;
            &lt;/archive&gt;
          &lt;/configuration&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;make-assembly&lt;/id&gt;
              &lt;phase&gt;package&lt;/phase&gt;
              &lt;goals&gt;
                &lt;goal&gt;single&lt;/goal&gt;
              &lt;/goals&gt;
            &lt;/execution&gt;
          &lt;/executions&gt;
        &lt;/plugin&gt;
      &lt;/plugins&gt;
    &lt;/build&gt;
  
    &lt;profiles&gt;
      &lt;profile&gt;
        &lt;id&gt;java&lt;/id&gt;
        &lt;build&gt;
          &lt;plugins&gt;
            &lt;!-- allows testing of Java backend via: mvn test -Pjava --&gt;
            &lt;plugin&gt;
              &lt;groupId&gt;org.codehaus.mojo&lt;/groupId&gt;
              &lt;artifactId&gt;exec-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.2.1&lt;/version&gt;
              &lt;executions&gt;
                &lt;execution&gt;
                  &lt;phase&gt;test&lt;/phase&gt;
                  &lt;goals&gt;
                    &lt;goal&gt;java&lt;/goal&gt;
                  &lt;/goals&gt;
                &lt;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                &lt;mainClass&gt;${mainClass}&lt;/mainClass&gt;
              &lt;/configuration&gt;
            &lt;/plugin&gt;
          &lt;/plugins&gt;
        &lt;/build&gt;
      &lt;/profile&gt;
    &lt;/profiles&gt;
  &lt;/project&gt;
  </code></pre>