Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using WagonTransporter (or configure aether) #542

Open
ca-stefan-cordes opened this issue Feb 1, 2022 · 0 comments
Open

Allow using WagonTransporter (or configure aether) #542

ca-stefan-cordes opened this issue Feb 1, 2022 · 0 comments

Comments

@ca-stefan-cordes
Copy link
Contributor

By default the mule-maven-plugin is using aether-transport-http but that cannot be configured via settings.xml
with .m2/settings.xml//servers/server/configuration/httpConfiguration
(see references to org.eclipse.aether.transport.http.GlobalState.setExpectContinue(CompoundKey, boolean) and org.eclipse.aether.transport.http.HttpTransporterFactory)

What we need is for example a configuration for our nexus: preemptive + http-continue:

<configuration>
	<httpConfiguration>
		<all>
			<params>
				<property>
					<name>http.authentication.preemptive</name>
					<value>%b,true</value>
				</property>
				<property>
					<name>http.protocol.expect-continue</name>
					<value>%b,false</value>
				</property>
			</params>
		</all>
	</httpConfiguration>
</configuration>

and that can be achieved with wagon transport only.

Workaround is to exclude the aether-transport-http from mule-maven-client-impl

<pluginManagement>
	<plugins>
		<plugin>
			<groupId>org.mule.tools.maven</groupId>
			<artifactId>mule-maven-plugin</artifactId>
			<dependencies>
				<dependency>
					<groupId>org.mule</groupId>
					<artifactId>mule-maven-client-impl</artifactId>
					<version>${mule-maven-client-impl.version}</version>
					<exclusions>
						<exclusion>
							<groupId>org.eclipse.aether</groupId>
							<artifactId>aether-transport-http</artifactId>
						</exclusion>
					</exclusions>
				</dependency>
			</dependencies>
		</plugin>
	</plugins>
</pluginManagement>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant