You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Steinar Bang (JIRA)" <ji...@apache.org> on 2019/04/01 21:30:02 UTC

[jira] [Created] (MJAVADOC-594) aggregate-jar fails on attached artifacts created by projects in the reactor build

Steinar Bang created MJAVADOC-594:
-------------------------------------

             Summary: aggregate-jar fails on attached artifacts created by projects in the reactor build
                 Key: MJAVADOC-594
                 URL: https://issues.apache.org/jira/browse/MJAVADOC-594
             Project: Maven Javadoc Plugin
          Issue Type: Bug
          Components: jar
    Affects Versions: 3.1.0
         Environment: debian 9.8 "stretch", amd64, openjdk 8u212-b01-1~deb9u1, maven 3.6.0
            Reporter: Steinar Bang


I have a multi-module project that have modules with attachments of type "xml" and classifier "features".

When modules in the reactor build have dependencies to xml features attachments of other modules like e.g. this:
{code:xml}
        <dependency>
            <groupId>no.priv.bang.authservice</groupId>
            <artifactId>authservice.definitions</artifactId>
            <version>${project.version}</version>
            <type>xml</type>
            <classifier>features</classifier>
        </dependency>
{code}
and an aggregate-jar configuration like this:
{code:xml}
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-javadoc-plugin</artifactId>
                <configuration>
                    <show>private</show>
                </configuration>
                <executions>
                    <execution>
                        <id>attach-javadocs</id>
                        <goals>
                            <goal>jar</goal>
                        </goals>
                    </execution>
                    <execution>
                        <id>aggregate-javadocs</id>
                        <goals>
                            <goal>aggregate-jar</goal>
                        </goals>
                        <phase>prepare-package</phase>
                        <configuration>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
{code}
the build fails early with the following error message:
{noformat}
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Authentication webapp 1.0.0-SNAPSHOT:
[INFO] 
[INFO] Authentication webapp .............................. FAILURE [  2.753 s]
[INFO] Authentication webapp definitions bundle ........... SKIPPED
[INFO] Authentication webapp Liquibase DB schema .......... SKIPPED
[INFO] Authentication webapp derby database for use in development and testing SKIPPED
[INFO] Authentication webapp PostgreSQL database .......... SKIPPED
[INFO] Authentication webapp DB-based Shiro realm service component SKIPPED
[INFO] Authentication webapp memory based Shiro SessionDAO realm service component SKIPPED
[INFO] Authentication webapp web whiteboard Shiro filter .. SKIPPED
[INFO] Authentication webapp user admin service ........... SKIPPED
[INFO] Authentication webapp user admin web API ........... SKIPPED
[INFO] Authentication webapp user admin frontend .......... SKIPPED
[INFO] Authentication webapp integration tests ............ SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  3.911 s
[INFO] Finished at: 2019-04-01T23:00:10+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project authservice.db.derby.test: Could not resolve dependencies for project no.priv.bang.authservice:authservice.db.derby.test:jar:1.0.0-SNAPSHOT: The following artifacts could not be resolved: no.priv.bang.authservice:authservice.definitions:xml:features:1.0.0-SNAPSHOT, no.priv.bang.authservice:authservice.db.liquibase:xml:features:1.0.0-SNAPSHOT: Could not find artifact no.priv.bang.authservice:authservice.definitions:xml:features:1.0.0-SNAPSHOT in snapshots-repo (https://oss.sonatype.org/content/repositories/snapshots) -> [Help 1]
{noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)