迷茫2017-04-18 10:47:34
這是idea 對.class反編譯的結果。想看完整源碼,可以使用maven-source-plugin
,在pom.xml裡設定:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
然後:
mvn clean package
在target目錄下會看到:
xx.jar
xx-sources.jar
sources.jar就是可讀的源碼jar