首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Maven发行版:缺少开发人员信息

Maven发行版:缺少开发人员信息
EN

Stack Overflow用户
提问于 2018-09-02 09:08:33
回答 2查看 1K关注 0票数 0

mvn release:perform上获取此错误

代码语言:javascript
复制
[ERROR] Repository "comconvertapi-1002" failures
[ERROR]   Rule "pom-staging" failures
[ERROR]     * Invalid POM: /com/convertapi/client/convertapi/1.7/convertapi-1.7.pom: Developer information missing

从分支释放:https://github.com/ConvertAPI/convertapi-java/tree/feature/maven (此错误与此相关吗?)

这是POM文件:

代码语言:javascript
复制
<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.convertapi.client</groupId>
    <artifactId>convertapi</artifactId>
    <packaging>jar</packaging>

    <version>1.8-SNAPSHOT</version>
    <name>ConvertAPI Java Client</name>
    <description>
        The ConvertAPI helps converting various file formats.
        Creating PDF and Images from various sources like Word, Excel, Powerpoint, images, web pages or raw HTML codes.
        Merge, Encrypt, Split, Repair and Decrypt PDF files.
        And many others files manipulations.
        In just few minutes you can integrate it into your application and use it easily.
        The ConvertAPI client library makes it easier to use the Convert API from your Java 8 projects without having to
        build your own API calls.
    </description>
    <url>https://www.convertapi.com/</url>

    <licenses>
        <license>
            <name>The MIT License</name>
            <url>https://raw.githubusercontent.com/ConvertAPI/convertapi-java/master/LICENSE.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>

    <developers>
        <developer>
            <id>jonas</id>
            <name>Jonas Jasas</name>
            <email>jonas@baltsoft.com</email>
            <organization>Baltsoft</organization>
            <organizationUrl>http://www.baltsoft.com/</organizationUrl>
            <roles>
                <role>architect</role>
                <role>developer</role>
            </roles>
            <timezone>+3</timezone>

            <properties>
                <picUrl>https://avatars3.githubusercontent.com/u/16254748</picUrl>
            </properties>
        </developer>
    </developers>

    <scm>
        <connection>scm:git:git://github.com/ConvertAPI/convertapi-java.git</connection>
        <developerConnection>scm:git:git://github.com/ConvertAPI/convertapi-java.git</developerConnection>
        <url>https://github.com/ConvertAPI/convertapi-java</url>
        <tag>HEAD</tag>
    </scm>

    <distributionManagement>
        <snapshotRepository>
            <id>ossrh</id>
            <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        </snapshotRepository>
        <repository>
            <id>ossrh</id>
            <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
        </repository>
    </distributionManagement>

    <properties>
        <maven.compiler.source>1.8</maven.compiler.source>
        <maven.compiler.target>1.8</maven.compiler.target>
    </properties>

    <dependencies>
        <dependency>
            <groupId>com.google.code.gson</groupId>
            <artifactId>gson</artifactId>
            <version>2.8.5</version>
        </dependency>
        <dependency>
            <groupId>com.squareup.okhttp3</groupId>
            <artifactId>okhttp</artifactId>
            <version>3.10.0</version>
        </dependency>
    </dependencies>

    <build>
        <resources>
            <resource>
                <directory>src/main/resources</directory>
                <excludes>
                    <exclude>**/examples/*</exclude>
                </excludes>
                <filtering>false</filtering>
            </resource>
        </resources>

        <plugins>
            <plugin>
                <artifactId>maven-deploy-plugin</artifactId>
                <version>2.8.2</version>
                <executions>
                    <execution>
                        <id>default-deploy</id>
                        <phase>deploy</phase>
                        <goals>
                            <goal>deploy</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-release-plugin</artifactId>
                <version>2.5.3</version>
                <configuration>
                    <localCheckout>true</localCheckout>
                    <pushChanges>false</pushChanges>
                    <mavenExecutorId>forked-path</mavenExecutorId>
                    <arguments>-Dgpg.passphrase=${gpg.passphrase}</arguments>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.apache.maven.scm</groupId>
                        <artifactId>maven-scm-provider-gitexe</artifactId>
                        <version>1.9.5</version>
                    </dependency>
                </dependencies>
            </plugin>

            <plugin>
                <groupId>org.sonatype.plugins</groupId>
                <artifactId>nexus-staging-maven-plugin</artifactId>
                <version>1.6.7</version>
                <extensions>true</extensions>
                <configuration>
                    <serverId>ossrh</serverId>
                    <nexusUrl>https://oss.sonatype.org/</nexusUrl>
                    <autoReleaseAfterClose>true</autoReleaseAfterClose>
                </configuration>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-source-plugin</artifactId>
                <version>3.0.1</version>
                <executions>
                    <execution>
                        <id>attach-sources</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

        </plugins>

    </build>


    <profiles>
        <!-- GPG Signature on release -->
        <profile>
            <id>release-sign-artifacts</id>
            <activation>
                <property>
                    <name>performRelease</name>
                    <value>true</value>
                </property>
            </activation>
            <build>
                <plugins>
                    <plugin>
                        <groupId>org.apache.maven.plugins</groupId>
                        <artifactId>maven-gpg-plugin</artifactId>
                        <version>1.6</version>
                        <executions>
                            <execution>
                                <id>sign-artifacts</id>
                                <phase>verify</phase>
                                <goals>
                                    <goal>sign</goal>
                                </goals>
                            </execution>
                        </executions>
                    </plugin>
                </plugins>
            </build>
        </profile>
    </profiles>

</project>
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2019-10-23 10:47:15

看起来不错,但有时maven插件会使用缓存获取一些信息。尝试通过以下命令序列清除缓存:

代码语言:javascript
复制
mvn clean
mvn release:prepare -Dresume=false
mvn release:perform

如果没有帮助,请尽量简化开发人员部分(不包括顺序属性、时区等)。

票数 1
EN

Stack Overflow用户

发布于 2021-11-12 13:48:33

发布需求请检查您是否完成了所有发布要求。

  • 提供Javadoc和源⚓︎
  • 用GPG/PGP签署文件
  • 充分元数据
  • 正确坐标
  • 项目名称、描述和URL
  • 许可证信息
  • 开发人员信息
  • SCM信息
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52135504

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档