File tree Expand file tree Collapse file tree
src/main/java/org/snapscript/develop/maven Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050 <groupId >org.apache.maven.wagon</groupId >
5151 <artifactId >wagon-http-lightweight</artifactId >
5252 <version >2.10</version >
53- <exclusions >
54- <exclusion >
55- <groupId >org.apache.maven.wagon</groupId >
56- <artifactId >wagon-http-shared</artifactId >
57- </exclusion >
58- </exclusions >
5953 </dependency >
6054 <dependency >
6155 <groupId >org.snapscript</groupId >
Original file line number Diff line number Diff line change 22
33import org .apache .maven .wagon .Wagon ;
44import org .apache .maven .wagon .providers .http .LightweightHttpWagon ;
5+ import org .apache .maven .wagon .providers .http .LightweightHttpWagonAuthenticator ;
56import org .sonatype .aether .connector .wagon .WagonProvider ;
67
78public class ManualWagonProvider implements WagonProvider {
@@ -11,7 +12,11 @@ public class ManualWagonProvider implements WagonProvider {
1112 @ Override
1213 public Wagon lookup (String roleHint ) throws Exception {
1314 if (SCHEME .equals (roleHint )) {
14- return new LightweightHttpWagon ();
15+ LightweightHttpWagonAuthenticator authenticator = new LightweightHttpWagonAuthenticator ();
16+ LightweightHttpWagon wagon = new LightweightHttpWagon ();
17+
18+ wagon .setAuthenticator (authenticator );
19+ return wagon ;
1520 }
1621 return null ;
1722 }
Original file line number Diff line number Diff line change 1313 <location name =" central" >http://repo1.maven.org/maven2</location >
1414 </repository >
1515 <dependencies >
16- <!-- dependency>
16+ <dependency >
1717 <groupId >org.simpleframework</groupId >
1818 <artifactId >simple-http</artifactId >
1919 <version >6.0.1</version >
2727 <groupId >org.apache.commons</groupId >
2828 <artifactId >commons-lang3</artifactId >
2929 <version >3.4</version >
30- </dependency-- >
30+ </dependency >
3131 </dependencies >
3232</project >
You can’t perform that action at this time.
0 commit comments