Codota Uploader Maven Plugin

Maven plugin for uploading artifacts to Codota directly from Maven build

License

License

GroupId

GroupId

com.codota
ArtifactId

ArtifactId

codota-uploader
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Codota Uploader Maven Plugin
Maven plugin for uploading artifacts to Codota directly from Maven build
Project URL

Project URL

http://github.com/codota/codota-maven-plugin
Source Code Management

Source Code Management

http://github.com/codota/codota-maven-plugin/tree/master

Download codota-uploader

How to add to project

<plugin>
    <groupId>com.codota</groupId>
    <artifactId>codota-uploader</artifactId>
    <version>1.1.0</version>
</plugin>

Dependencies

compile (4)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 2.0
org.apache.httpcomponents : httpmime jar 4.5
com.google.code.gson : gson jar 2.3.1
org.apache.commons : commons-lang3 jar 3.4

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

Codota maven plugin

Maven plugin for indexing java/scala code in Codota

You can easily send your Java code for indexing by adding this simple maven plugin which collects your artifacts and uploads them to your secure private Codota account.

Uploading your artifacts for analysis

To submit your code follow these simple steps:

  • Create your private account at Codota

  • Build your project including sources and send to Codota for indexing by running the following command in your project directory

    mvn clean source:jar source:test-jar jar:test-jar package com.codota:codota-uploader:1.1.0:upload -Dcodota.token={your_token_here} -Dcodota.endpoint=https://upload.codota.com/artifacts -DskipAssembly -DskipTests -Dmaven.javadoc.skip=true -Dgpg.skip
    

    Also, you have the following optional parameter:

    -Dcodota.projectPrefix={prefix}
    

    Make sure to use the secure token you receive from Codota. Please make sure to keep your token private and secure. Indexing usually takes less than an hour - you'll get an email once it's ready

  • To permanently add upload to Codota in your build, paste the following in your pom.xml under - make sure to use the secure token you receive from Codota. Please make sure to keep your token private and secure.

    <plugin>    
         <groupId>com.codota</groupId>
         <artifactId>uploader</artifactId>
         <version>1.1.0</version>
         <configuration>
             <endpoint>https://upload.codota.com/artifacts</endpoint>
             <token>----------- *put your secure token here* -----------</token>       
         </configuration>      
         <executions>      
             <execution>       
                 <id>codota-upload</id>        
                 <phase>package</phase>        
                 <!-- bind to the packaging phase -->      
                 <goals>       
                     <goal>upload</goal>       
                 </goals>      
             </execution>      
         </executions>     
     </plugin>
    

    Build your project including sources and send to Codota for indexing by running the following command in your project directory

    mvn clean source:jar source:test-jar jar:test-jar package -DskipAssembly -DskipTests
    
com.codota

Codota

Codota - AI for Code

Versions

Version
1.1.0
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0