WARNING Cannot find 'region' in class com.allogy.build.maven.S3Wagon
rcoelho6 opened this issue · comments
rcoelho6 commented
I am getting this warning when maven upload or download a jar from S3.
Maven pom.xml:
<project>
.....
<build>
<extensions>
<extension>
<groupId>com.allogy.maven.wagon</groupId>
<artifactId>maven-s3-wagon</artifactId>
<version>1.2.0</version>
</extension>
</extensions>
</build>
<distributionManagement>
<repository>
<id>bucket-id</id>
<url>s3://[BUCKET]/release</url>
</repository>
</distributionManagement>
....
</project>
Maven settings.xml
<servers>
...
<server>
<id>bucket-id</id>
<username>[Access key ID]</username>
<password>[Secret access key]</password>
<configuration>
<region>us-east-1</region>
</configuration>
</server>
...
</servers>
David Venable commented
What warning do you see?
Serhii Pukhov commented
@dlvenable the warning is in the title of the issue.
btw, I am also seeing this issue right now.
Mohinish commented
We are also seeing this issue when run via github actions, here is the error:
Warning: Could not apply configuration for deltastream-s3-snapshot to Wagon com.allogy.build.maven.S3Wagon
org.codehaus.plexus.component.configurator.ComponentConfigurationException: Cannot find 'region' in class com.allogy.build.maven.S3Wagon
at org.eclipse.sisu.plexus.CompositeBeanHelper.setProperty (CompositeBeanHelper.java:252)
at org.codehaus.plexus.component.configurator.converters.composite.ObjectWithFieldsConverter.processConfiguration (ObjectWithFieldsConverter.java:101)
at org.eclipse.aether.internal.transport.wagon.PlexusWagonConfigurator$WagonComponentConfigurator.configureComponent (PlexusWagonConfigurator.java:101)
at org.codehaus.plexus.component.configurator.AbstractComponentConfigurator.configureComponent (AbstractComponentConfigurator.java:44)
at org.codehaus.plexus.component.configurator.AbstractComponentConfigurator.configureComponent (AbstractComponentConfigurator.java:37)
at org.eclipse.aether.internal.transport.wagon.PlexusWagonConfigurator.configure (PlexusWagonConfigurator.java:86)
at org.eclipse.aether.transport.wagon.WagonTransporter.connectWagon (WagonTransporter.java:328)
at org.eclipse.aether.transport.wagon.WagonTransporter.pollWagon (WagonTransporter.java:377)
at org.eclipse.aether.transport.wagon.WagonTransporter.execute (WagonTransporter.java:426)
at org.eclipse.aether.transport.wagon.WagonTransporter.get (WagonTransporter.java:407)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$GetTaskRunner.runTask (BasicRepositoryConnector.java:457)
at org.eclipse.aether.connector.basic.BasicRepositoryConnector$TaskRunner.run (BasicRepositoryConnector.java:364)
at org.eclipse.aether.util.concurrency.RunnableErrorForwarder$1.run (RunnableErrorForwarder.java:75)
a
Minh Dao commented
@mohnishbasha just remove <configuration>...</configuration>
the warning will gone