wagon

Why does Maven disable caching for HTTP requests?

主宰稳场 提交于 2020-01-14 08:40:17
问题 The default Maven settings for HTTP requests, such as the ones Maven uses to fetch artifacts from repositories, include the following headers: Cache-control: no-cache Cache-store: no-store Pragma: no-cache Expires: 0 Accept-Encoding: gzip This seems to be the documented behavior. The default Maven wagon for HTTP (i.e., the "lightweight" client) does not seem to allow disabling these headers. Why is Maven configured in this way by default? For artifacts that actually have versions, they should

Can Maven ref a parent POM from a private s3 bucket?

左心房为你撑大大i 提交于 2020-01-02 06:01:27
问题 When using a private AWS S3 bucket as a Maven repo, there's plenty of working s3 wagon providers that work just fine for deploying and pulling dependencies using the s3://[bucket]/folder protocol. However, when you try to do this with a parent POM reference, i.e. <parent> <groupId>com.my.company</groupId> <artifactId>my-parent-pom</artifactId> <version>1.0.0</version> </parent> Which exists only in a private S3 Maven repo, it seems that Maven only checks the HTTP based defined repositories,

Uploading a File via SCP with Maven fails

别等时光非礼了梦想. 提交于 2019-12-20 10:39:53
问题 I try to upload an ear created by maven to an application server using scp. When I tried to run mvn wagon:upload-single But I get the following error: [ERROR] Failed to execute goal org.codehaus.mojo:wagon-maven-plugin:1.0-beta-3:upload-single (default-cli) on project de.volkswagen.dps.ear: Unable to create a Wagon instance for null: url can not be null -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:wagon-maven-plugin:1.0-beta-3

Maven Wagon SCP is not able to establish a connection

☆樱花仙子☆ 提交于 2019-12-18 04:22:17
问题 I am trying to copy resources to another location. I am using maven wagon-ssh plugin to do this. It works fine locally, I am having issues when using Hudson/Jenkins. My settings.xml file looks like this: <servers> <server> <id>iq</id> <configuration> <knownHostsProvider implementation="org.apache.maven.wagon.providers.ssh.knownhost.NullKnownHostProvider"> <hostKeyChecking>no</hostKeyChecking> </knownHostsProvider> </configuration> <username>user</username> <password>pass</password> </server>

How to suppress/control logging of Wagon-FTP Maven extension?

孤人 提交于 2019-12-10 15:29:21
问题 I'm deploying Maven site by FTP, using Wagon-FTP. Works fine, but output is full of FTP connection/authentication details, which effectively expose logins and passwords to everybody (especially if the project is open source and its CI protocols are publicly accessible): [...] [INFO] [INFO] --- maven-site-plugin:3.0-beta-3:deploy (default-deploy) @ rempl --- Reply received: 220---------- Welcome to Pure-FTPd [privsep] [TLS] ---------- 220-You are user number 1 of 50 allowed. 220-Local time is

Using closed-source dependencies with Maven

荒凉一梦 提交于 2019-12-09 04:44:24
问题 I have a closed-source project that I would like to build using Maven. It has a dependency on two java libraries which are not available in any public repository that I've been able to find (libGoogleAnalytics.jar and FlurryAgent.jar in this case, but the question applies to any closed-source dependency). I would like anyone in my organization to be able to build the application using the exact same versions of the dependencies that I use to build the application. This includes my colleagues

wagon ssh / scp: No connector available to access repository … of type default using the available factories WagonRepositoryConnectorFactory

北慕城南 提交于 2019-12-07 06:05:42
问题 Is this a bug of wagon-ssh 2.10? What might work? E.g. what combination of Maven, Wagon-SSH and pom settings will get the behaviour back that was there with Maven 3.0.5 and wagon-ssh 2.4? After upgrading to wagon-ssh 2.10 in my pom.xml to check whether this would fix my problems according to https://issues.apache.org/jira/browse/MDEPLOY-177 see also How to fix or workaround wagon bug? I get the following error message: No connector available to access repository XXX-snapshot-repository (scp:/

Maven Wagon plugin: Can wagon:upload upload to multiple locations?

柔情痞子 提交于 2019-12-06 03:06:36
问题 I'm looking into the Maven Wagon Plugin to attempt uploading some artifacts to remote UNC Server shares ( \\servername\share\directory\to\put\to ), and I have gotten it configured to work like so in the POM: <build> <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-file</artifactId> <version>1.0-beta-7</version> </extension> </extensions> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>wagon-maven-plugin</artifactId> <version>1.0-beta-3<

Can Maven ref a parent POM from a private s3 bucket?

删除回忆录丶 提交于 2019-12-05 19:15:00
When using a private AWS S3 bucket as a Maven repo, there's plenty of working s3 wagon providers that work just fine for deploying and pulling dependencies using the s3://[bucket]/folder protocol. However, when you try to do this with a parent POM reference, i.e. <parent> <groupId>com.my.company</groupId> <artifactId>my-parent-pom</artifactId> <version>1.0.0</version> </parent> Which exists only in a private S3 Maven repo, it seems that Maven only checks the HTTP based defined repositories, and doesn't attempt to look in the S3 repo. The S3 wagon in this project is defined as <build>

wagon ssh / scp: No connector available to access repository … of type default using the available factories WagonRepositoryConnectorFactory

眉间皱痕 提交于 2019-12-05 10:42:05
Is this a bug of wagon-ssh 2.10? What might work? E.g. what combination of Maven, Wagon-SSH and pom settings will get the behaviour back that was there with Maven 3.0.5 and wagon-ssh 2.4? After upgrading to wagon-ssh 2.10 in my pom.xml to check whether this would fix my problems according to https://issues.apache.org/jira/browse/MDEPLOY-177 see also How to fix or workaround wagon bug? I get the following error message: No connector available to access repository XXX-snapshot-repository (scp://XXX/srv/repo/snapshots/) of type default using the available factories WagonRepositoryConnectorFactory