kongchen / swagger-maven-plugin

JAX-RS & SpringMVC supported maven build plugin, helps you generate Swagger JSON and API document in build phase.
http://kongchen.github.io/swagger-maven-plugin/
Apache License 2.0
759 stars 448 forks source link

Maven plugin not found #1

Closed lquerel closed 11 years ago

lquerel commented 11 years ago

Hi,

Maven doesn't find the swagger-maven-plugin in the repo specified in your tutorial (https://raw.github.com/kongchen/swagger-maven-plugin/mvn-repo/).

Thanks

Laurent

gscheibel commented 11 years ago

I confirm.

Guillaume

leewin12 commented 11 years ago

+1

volkermobilab commented 11 years ago

+1

NMichas commented 11 years ago

+1

gaffa commented 11 years ago

+1

carlossg commented 11 years ago

Could you cut a 1.0 release and push it to the central repo? http://maven.apache.org/guides/mini/guide-central-repository-upload.html https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide

Thanks!

kongchen commented 11 years ago

This issue due to a mistake in README, we should configurate <pluginRepositories> rather than <repositories> in POM: https://github.com/kongchen/swagger-maven-plugin#21-add-plugin-repository

    <pluginRepositories>
        <pluginRepository>
            <id>swagger-maven-plugin-mvn-repo</id>
            <url>https://github.com/kongchen/swagger-maven-plugin/raw/mvn-repo/</url>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>always</updatePolicy>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>
kongchen commented 11 years ago

Thanks to @carlossg 's suggestion, I've push 1.0 release to central repo, no need to configure any repositories now!

<groupId>com.github.kongchen</groupId>
<artifactId>swagger-maven-plugin</artifactId>
<version>1.0</version>