Heim > Fragen und Antworten > Hauptteil
迷茫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