File tree Expand file tree Collapse file tree 6 files changed +58
-1
lines changed 
test/java/org/codehaus/plexus/testing Expand file tree Collapse file tree 6 files changed +58
-1
lines changed Original file line number Diff line number Diff line change 1212  <version >1.6.1-SNAPSHOT</version >
1313
1414  <name >Plexus Testing</name >
15+   <url >https://codehaus-plexus.github.io/plexus-testing/</url >
1516
1617  <scm >
1718    <connection >scm:git:https://github.com/codehaus-plexus/plexus-testing.git</connection >
1819    <developerConnection >${project.scm.connection} </developerConnection >
1920    <tag >HEAD</tag >
2021    <url >https://github.com/codehaus-plexus/plexus-testing</url >
2122  </scm >
23+ 
2224  <issueManagement >
2325    <system >github</system >
2426    <url >https://github.com/codehaus-plexus/plexus-testing/issues</url >
2527  </issueManagement >
28+ 
2629  <distributionManagement >
2730    <site >
2831      <id >github:gh-pages</id >
7073    </dependency >
7174  </dependencies >
7275
76+   <build >
77+     <plugins >
78+       <plugin >
79+         <groupId >org.apache.maven.plugins</groupId >
80+         <artifactId >maven-scm-publish-plugin</artifactId >
81+         <configuration >
82+           <content >${project.reporting.outputDirectory} </content >
83+           <!--  mono-module doesn't require site:stage --> 
84+         </configuration >
85+         <executions >
86+           <execution >
87+             <id >scm-publish</id >
88+             <!--  deploy site with maven-scm-publish-plugin --> 
89+             <goals >
90+               <goal >publish-scm</goal >
91+             </goals >
92+             <phase >site-deploy</phase >
93+           </execution >
94+         </executions >
95+       </plugin >
96+     </plugins >
97+   </build >
7398</project >
Original file line number Diff line number Diff line change 1+ # Plexus Testing  
2+ 
3+ ## Example usage  
4+ 
5+ ### Test class  
6+ 
7+ <!--  MACRO{snippet|id=test-class|file=src/test/java/org/codehaus/plexus/testing/PlexusTestJavaxTest.java} --> 
8+ 
9+ ### Used classes in test  
10+ 
11+ <!--  MACRO{snippet|id=test-component|file=src/test/java/org/codehaus/plexus/testing/TestJavaxComponent.java} --> 
12+ <!--  MACRO{snippet|id=test-component2|file=src/test/java/org/codehaus/plexus/testing/TestJavaxComponent2.java} --> 
Original file line number Diff line number Diff line change 1+ <?xml  version =" 1.0"  encoding =" UTF-8" 
2+ 
3+ <site  xmlns =" http://maven.apache.org/SITE/2.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" 
4+       xsi : schemaLocation =" http://maven.apache.org/SITE/2.0.0 https://maven.apache.org/xsd/site-2.0.0.xsd" 
5+ 
6+   <body >
7+     <menu  name =" Overview" 
8+       <item  name =" Introduction" href =" index.html" 
9+       <item  name =" Javadoc" href =" apidocs/index.html" 
10+     </menu >
11+ 
12+     <menu  ref =" parent" 
13+     <menu  ref =" reports" 
14+   </body >
15+ </site >
Original file line number Diff line number Diff line change 1818 * specific language governing permissions and limitations 
1919 * under the License. 
2020 */ 
21- 
21+ // START SNIPPET: test-class 
2222import  javax .inject .Inject ;
2323
2424import  org .junit .jupiter .api .Test ;
@@ -37,3 +37,4 @@ void dependencyShouldBeInjected() {
3737        assertNotNull (testJavaxComponent .getTestComponent2 ());
3838    }
3939}
40+ // END SNIPPET: test-class 
Original file line number Diff line number Diff line change 1919 * under the License. 
2020 */ 
2121
22+ // START SNIPPET: test-component 
2223import  javax .inject .Inject ;
2324import  javax .inject .Named ;
2425
@@ -31,3 +32,4 @@ public TestJavaxComponent2 getTestComponent2() {
3132        return  testJavaxComponent2 ;
3233    }
3334}
35+ // END SNIPPET: test-component 
Original file line number Diff line number Diff line change 1919 * under the License. 
2020 */ 
2121
22+ // START SNIPPET: test-component2 
2223import  javax .inject .Named ;
2324
2425@ Named 
2526public  class  TestJavaxComponent2  {}
27+ // END SNIPPET: test-component2 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments