java - IntelliJ IDEA: How can I make sources of dependent libraries to be available in classpath on compilation? -


how can make sources of dependent libraries available in classpath on compilation ?

i'm using intellij idea 11.

when add global library module , artifact ide never copies sources , javadocs. makes sense because not needed in runtime. need them in compile time.

interestingly though idea makes sources available if add dependency folder. guess in case doesn't differentiate sits in folder. odd.

thoughts ?

i solved issue in maven config specifying dependency hibernate-validator 1 sources , 1 without.

the 1 sources defined:

classifier: sources scope: provided

ex:

    <dependency>         <groupid>org.hibernate</groupid>         <artifactid>hibernate-validator</artifactid>         <version>4.1.0.final</version>         <exclusions>             <exclusion>                 <groupid>javax.xml.bind</groupid>                 <artifactid>jaxb-api</artifactid>             </exclusion>             <exclusion>                 <groupid>com.sun.xml.bind</groupid>                 <artifactid>jaxb-impl</artifactid>             </exclusion>         </exclusions>     </dependency>     <dependency>         <groupid>org.hibernate</groupid>         <artifactid>hibernate-validator</artifactid>         <version>4.1.0.final</version>         <classifier>sources</classifier>         <scope>provided</scope>     </dependency> 

Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -