Skip to content
This repository has been archived by the owner on Apr 16, 2021. It is now read-only.

Use different build system #56

Open
justinIs opened this issue Jun 25, 2019 · 1 comment
Open

Use different build system #56

justinIs opened this issue Jun 25, 2019 · 1 comment

Comments

@justinIs
Copy link

I have an android library in which I use bazel to compile and generate an aar.
I'd like to host the aar on s3 as a maven repository.

Would it be possible to use CloudStorageMaven without maven building the aar for me? I'd like to just specify the location of my aar and have maven take it from there.

Is that possible at all?

@Pitxyoki
Copy link
Contributor

Pitxyoki commented Jun 26, 2019

Yes, use the s3-upload goal as described in the README. Note that IIUC, you'll need some properties or environment vars defined to access AWS:

<properties>
    <aws.region>yourbucket-region</aws.region>
    <aws.accessKeyid>access_key</aws.accessKeyid>
    <aws.secretKey>access_secret</aws.secretKey>
</properties>

<build>
    <plugins>
        <plugin>
            <groupId>com.gkatzioura.maven.cloud</groupId>
            <artifactId>s3-storage-wagon</artifactId>
            <version>2.0</version>
            <executions>
                <execution>
                    <id>upload-multiple-files</id>
                    <phase>package</phase>
                    <goals>
                        <goal>s3-upload</goal>
                    </goals>
                    <configuration>
                        <bucket>yourbucketname</bucket>
                        <path>/path/to/directory/with/files</path>
                        <key>prefixforfiles</key>
                    </configuration>
                </execution>
            </executions>
        </plugin>
    </plugins>
</build>

Then you can use maven only to deploy the respective module. For example, with: mvn deploy -pl :your-module.
Does this answer your question?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants