apache / apache/maven-javadoc-plugin
[MJAVADOC-594] aggregate-jar fails on attached artifacts created by projects in the reactor build
- Dominant language
- Java
- Stars
- 107
- Forks
- 116
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 16
Description
**[Steinar Bang](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=sb@dod.no)** opened **[MJAVADOC-594](https://issues.apache.org/jira/browse/MJAVADOC-594?redirect=false)** and commented
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:
```xml
no.priv.bang.authservice
authservice.definitions
${project.version}
xml
features
```
and an aggregate-jar configuration like this:
```xml
org.apache.maven.plugins
maven-javadoc-plugin
private
attach-javadocs
jar
aggregate-javadocs
aggregate-jar
prepare-package
```
the build fails early with the following error message:
```
[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]
```
---
**Affects:** 3.1.0
**Remote Links:**
- [git branch reproducing the bug
](https://github.com/steinarb/authservice/tree/bug/mjavadoc-594)
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the failure with the linked bug/mjavadoc-594 branch and the aggregate-jar configuration shown in the issue. Trace how reactor dependencies for attached XML artifacts with the features classifier are resolved. Done means the reactor build resolves those attachments and aggregate-jar completes successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100