title: package annotations should be in file package-info.java
body: <p>I am getting the above compilation error when trying to build a multi-modules Maven project in a Cygwin environment. The specific module that is breaking the build is a web service API that depends on the jaxb-api binding to perform the mapping of Java objects to XML elements. This is the specific error that is being generated:</p>
  
  <p><strong>[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project ASRB2CServices: Compilation failure: Compilation failure:
  [ERROR] C:/IBM/RAD/workspace/XForm_Maven/XForm_Maven_20130610/ASRB2CServices/src/main/java/com/rccl/pcp/api/v1/pricetypes/package-info.java:[1,146] package annotations should be in file package-info.java</strong></p>
  
  <p>Here is the contents of the file that it's complaining about:</p>
  
  <pre><code>@javax.xml.bind.annotation.XmlSchema(namespace = "http://api.pcp.rccl.com/v1/priceTypes", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED)
  package com.rccl.pcp.api.v1.pricetypes;
  </code></pre>
  
  <p>I am using the 3.1 version of the maven java compiler plugin:</p>
  
  <pre><code>&lt;plugin&gt;
      &lt;groupId&gt;org.apache.maven.plugins&lt;/groupId&gt;
      &lt;artifactId&gt;maven-compiler-plugin&lt;/artifactId&gt;
      &lt;version&gt;3.1&lt;/version&gt;
      &lt;configuration&gt;
          &lt;source&gt;1.5&lt;/source&gt;
          &lt;target&gt;1.5&lt;/target&gt;
          &lt;fork&gt;true&lt;/fork&gt;
          &lt;executable&gt;${java.home}/bin/javac&lt;/executable&gt;
      &lt;/configuration&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>And I'm using the 2.2.6 version of jaxb-api and 2.2.5 version of jaxb-impl:</p>
  
  <pre><code>&lt;dependency&gt;
      &lt;groupId&gt;javax.xml.bind&lt;/groupId&gt;
      &lt;artifactId&gt;jaxb-api&lt;/artifactId&gt;
      &lt;version&gt;2.2.6&lt;/version&gt;
  &lt;/dependency&gt;
  &lt;dependency&gt;
      &lt;groupId&gt;com.sun.xml.bind&lt;/groupId&gt;
      &lt;artifactId&gt;jaxb-impl&lt;/artifactId&gt;
      &lt;version&gt;2.2.5&lt;/version&gt;
   &lt;/dependency&gt;
  </code></pre>
  
  <p>I am at a loss as to why I'm getting this error.  I did some googling, and I saw mention of a possible compiler bug, but I believe I'm using the latest version of the maven compiler plugin. Any insights that anyone can provide would be <em>greatly</em> appreciated</p>