</archive>
</configuration>
</plugin>
+ <plugin>
+ <artifactId>maven-source-plugin</artifactId>
+ <version>2.0.3</version>
+ <executions>
+ <execution>
+ <id>attach-sources</id>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ <inherited>true</inherited>
+ </plugin>
</plugins>
</build>
<profiles>
private static String convertFromArray(String classname)
{
-// int index = classname.indexOf("[]");
-// if (index != -1)
-// {
-// String rawType = classname.substring(0, index);
-// StringBuffer sb = new StringBuffer(Descriptor.of(rawType));
-// while (index != -1)
-// {
-// sb.insert(0, "[");
-// index = classname.indexOf("[]", index + 1);
-// }
-// return sb.toString().replace('/', '.');
-// }
+ int index = classname.indexOf("[]");
+ if (index != -1)
+ {
+ String rawType = classname.substring(0, index);
+ StringBuffer sb = new StringBuffer(Descriptor.of(rawType));
+ while (index != -1)
+ {
+ sb.insert(0, "[");
+ index = classname.indexOf("[]", index + 1);
+ }
+ return sb.toString().replace('/', '.');
+ }
return classname;
}