File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change 388
388
<phase >package</phase >
389
389
<configuration >
390
390
<createDependencyReducedPom >false</createDependencyReducedPom >
391
+ <createSourcesJar >true</createSourcesJar >
391
392
<artifactSet >
392
393
<includes >
393
394
<include >org.mybatis:mybatis</include >
419
420
<shadedPattern >org.apache.ibatis.javassist</shadedPattern >
420
421
</relocation >
421
422
</relocations >
423
+ <shadeSourcesContent >true</shadeSourcesContent >
422
424
</configuration >
423
425
</execution >
424
426
</executions >
509
511
<derby .version>10.17.1.0</derby .version>
510
512
</properties >
511
513
</profile >
514
+
515
+ <!-- We are manipulating the phase to run before package so shading will be used for building source jar
516
+ and further turning off attach here as shading will do that. This is required for ognl and javassist
517
+ for IDE's usage -->
518
+ <profile >
519
+ <id >release</id >
520
+ <build >
521
+ <plugins >
522
+ <plugin >
523
+ <groupId >org.apache.maven.plugins</groupId >
524
+ <artifactId >maven-source-plugin</artifactId >
525
+ <executions >
526
+ <execution >
527
+ <id >attach-sources</id >
528
+ <goals >
529
+ <goal >jar-no-fork</goal >
530
+ </goals >
531
+ <phase >prepare-package</phase >
532
+ <configuration >
533
+ <attach >false</attach >
534
+ </configuration >
535
+ </execution >
536
+ </executions >
537
+ </plugin >
538
+ </plugins >
539
+ </build >
540
+ </profile >
512
541
</profiles >
513
542
514
543
</project >
You can’t perform that action at this time.
0 commit comments