File tree 9 files changed +88
-59
lines changed 9 files changed +88
-59
lines changed Original file line number Diff line number Diff line change @@ -6,15 +6,14 @@ Main-Class: org.eclipse.sisu.launch.Main
6
6
org.sonatype.inject;x-internal:=true
7
7
# remove annotation processor dependencies (never used at runtime)
8
8
# mark all optional dependencies as optional
9
- # although ASM is required at runtime, mark as optional to reuse the relocated manifest header for the embedded ASM bundle version
10
9
Import-Package: javax.inject,\
10
+ org.objectweb.asm.*,\
11
11
com.google.inject.servlet;resolution:=optional,\
12
12
javax.servlet.*;resolution:=optional,\
13
13
org.slf4j.*;resolution:=optional,\
14
14
org.junit.*;resolution:=optional,\
15
15
junit.framework.*;resolution:=optional,\
16
16
org.testng.*;resolution:=optional,\
17
- org.objectweb.asm.*;resolution:=optional,\
18
17
!javax.annotation.processing.*,\
19
18
!javax.lang.model.*,\
20
19
!javax.tools.*,\
Original file line number Diff line number Diff line change 38
38
<artifactId >guice</artifactId >
39
39
<scope >provided</scope >
40
40
</dependency >
41
+
42
+ <!--
43
+ | ASM is required
44
+ -->
41
45
<dependency >
42
46
<groupId >org.ow2.asm</groupId >
43
47
<artifactId >asm</artifactId >
44
- <version >${asmVersion} </version >
45
- <scope >provided</scope >
46
- <optional >true</optional >
47
48
</dependency >
49
+
48
50
<!--
49
51
| Optional support dependencies
50
52
-->
440
442
</plugin >
441
443
</plugins >
442
444
</reporting >
443
-
444
- <profiles >
445
- <profile >
446
- <id >sisu-release</id >
447
- <build >
448
- <plugins >
449
- <plugin >
450
- <groupId >org.apache.maven.plugins</groupId >
451
- <artifactId >maven-shade-plugin</artifactId >
452
- <executions >
453
- <execution >
454
- <phase >package</phase >
455
- <goals >
456
- <goal >shade</goal >
457
- </goals >
458
- <configuration >
459
- <!--
460
- | Create 'embedded_asm' jar which embeds and relocates ASM to package org.eclipse.sisu.space.asm.
461
- -->
462
- <shadedArtifactAttached >true</shadedArtifactAttached >
463
- <shadedClassifierName >embedded_asm</shadedClassifierName >
464
- <filters >
465
- <filter >
466
- <artifact >org.eclipse.sisu:org.eclipse.sisu.inject</artifact >
467
- <excludes >
468
- <exclude >org/eclipse/sisu/space/asm/**</exclude >
469
- </excludes >
470
- </filter >
471
- </filters >
472
- <relocations >
473
- <relocation >
474
- <pattern >org.objectweb.asm</pattern >
475
- <shadedPattern >org.eclipse.sisu.space.asm</shadedPattern >
476
- </relocation >
477
- </relocations >
478
- <transformers >
479
- <transformer implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
480
- </transformer >
481
- </transformers >
482
- </configuration >
483
- </execution >
484
- </executions >
485
- </plugin >
486
- </plugins >
487
- </build >
488
- </profile >
489
- </profiles >
490
445
</project >
Original file line number Diff line number Diff line change 121
121
</execution >
122
122
</executions >
123
123
</plugin >
124
+ <plugin >
125
+ <groupId >org.apache.maven.plugins</groupId >
126
+ <artifactId >maven-invoker-plugin</artifactId >
127
+ <configuration >
128
+ <cloneProjectsTo >${project.build.directory} /it</cloneProjectsTo >
129
+ <settingsFile >src/it/settings.xml</settingsFile >
130
+ <localRepositoryPath >${project.build.directory} /local-repo</localRepositoryPath >
131
+ <postBuildHookScript >verify</postBuildHookScript >
132
+ </configuration >
133
+ <executions >
134
+ <execution >
135
+ <id >integration-test</id >
136
+ <goals >
137
+ <goal >install</goal >
138
+ <goal >run</goal >
139
+ </goals >
140
+ </execution >
141
+ </executions >
142
+ </plugin >
124
143
</plugins >
125
144
</build >
126
145
Original file line number Diff line number Diff line change
1
+ <settings xmlns =" http://maven.apache.org/SETTINGS/1.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
2
+ xsi : schemaLocation =" http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd" >
3
+
4
+ </settings >
Original file line number Diff line number Diff line change
1
+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
2
+ <modelVersion >4.0.0</modelVersion >
3
+ <groupId >org.eclipse.sisu.mojos.it</groupId >
4
+ <artifactId >simple</artifactId >
5
+ <version >1.0.0-SNAPSHOT</version >
6
+
7
+ <dependencies >
8
+ <dependency >
9
+ <groupId >javax.inject</groupId >
10
+ <artifactId >javax.inject</artifactId >
11
+ <version >1</version >
12
+ </dependency >
13
+ </dependencies >
14
+
15
+ <build >
16
+ <plugins >
17
+ <plugin >
18
+ <groupId >org.eclipse.sisu</groupId >
19
+ <artifactId >sisu-maven-plugin</artifactId >
20
+ <version >@project.version@</version >
21
+ <executions >
22
+ <execution >
23
+ <id >index-project</id >
24
+ <goals >
25
+ <goal >main-index</goal >
26
+ <goal >test-index</goal >
27
+ </goals >
28
+ </execution >
29
+ </executions >
30
+ </plugin >
31
+ </plugins >
32
+ </build >
33
+ </project >
Original file line number Diff line number Diff line change
1
+ package simple ;
2
+
3
+ import javax .inject .Named ;
4
+
5
+ @ Named
6
+ public class Test {
7
+
8
+ }
Original file line number Diff line number Diff line change
1
+ // Basic IT: index is created and contains one class FQN
2
+
3
+ File index = new File (basedir, ' target/classes/META-INF/sisu/javax.inject.Named' );
4
+ assert index. isFile()
5
+ assert index. text. contains(' simple.Test' )
6
+
Original file line number Diff line number Diff line change 83
83
<artifactId >plexus-xml</artifactId >
84
84
</dependency >
85
85
86
- <dependency >
87
- <groupId >org.ow2.asm</groupId >
88
- <artifactId >asm</artifactId >
89
- <version >${asmVersion} </version >
90
- <scope >test</scope >
91
- </dependency >
92
86
<dependency >
93
87
<groupId >org.slf4j</groupId >
94
88
<artifactId >slf4j-api</artifactId >
Original file line number Diff line number Diff line change 164
164
<version >4.0</version >
165
165
</dependency >
166
166
167
+ <dependency >
168
+ <groupId >org.ow2.asm</groupId >
169
+ <artifactId >asm</artifactId >
170
+ <version >${asmVersion} </version >
171
+ </dependency >
172
+
167
173
<!--
168
174
| Plexus classloading/utilities
169
175
-->
@@ -494,6 +500,11 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
494
500
<scmBranch >gh-pages</scmBranch >
495
501
</configuration >
496
502
</plugin >
503
+ <plugin >
504
+ <groupId >org.apache.maven.plugins</groupId >
505
+ <artifactId >maven-invoker-plugin</artifactId >
506
+ <version >3.9.0</version >
507
+ </plugin >
497
508
<plugin >
498
509
<groupId >org.apache.maven.plugins</groupId >
499
510
<artifactId >maven-source-plugin</artifactId >
@@ -558,7 +569,7 @@ Bundle-DocURL: http://www.eclipse.org/sisu/
558
569
<plugin >
559
570
<groupId >org.eclipse.sisu</groupId >
560
571
<artifactId >sisu-maven-plugin</artifactId >
561
- <version >0.9.0.M2 </version >
572
+ <version >0.9.0.M3 </version >
562
573
<executions >
563
574
<execution >
564
575
<id >index-project</id >
You can’t perform that action at this time.
0 commit comments