将Java插件发布为Repo错误

时间:2016-02-04 16:15:05

标签: java maven

我正在尝试将我的插件发布到OSS-SonaType上的pluginrepository。他们已经为快照和完整版本配置了我的命名空间。我正努力让我的第一次初步承诺回购。我似乎找不到正确的Maven配置来将插件推送到repo而不是尝试更新repo。下面找到我的pom.xml和maven配置代码。任何帮助将不胜感激!

的pom.xml:

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.companynamehere.dmweb</groupId>
  <artifactId>DMWeb</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <name>DMWeb</name>
  <build>
    <sourceDirectory>src</sourceDirectory>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.3</version>
        <configuration>
          <source>1.8</source>
          <target>1.8</target>
        </configuration>
      </plugin>
    </plugins>
  </build>
    <dependencies>
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-web</artifactId>
        <version>4.0.2.RELEASE</version>
    </dependency>
  </dependencies>
  <pluginRepositories>
        <pluginRepository>
            <id>OSS-Repo</id>
            <name>oss-repo</name>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
            <releases>
                <enabled>false</enabled>
            </releases>
            <snapshots>
                <enabled>true</enabled>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>
</project>

Maven配置:

Goals: com.companynamehere:DMWeb:validate

错误:

Error resolving version for plugin 'com.companynamehere:DMWeb' from the repositories [local (C:\Users\kylec\.m2\repository), OSS-Repo (https://oss.sonatype.org/content/repositories/snapshots), central (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository -> [Help 1]

0 个答案:

没有答案