adobe / adobe/aem-test-samples
ui-selenium-webdriver: The packaging plugin for this project did not assign a main file to the project but it has attachments. Change packaging to 'pom'
- Dominant language
- Java
- Stars
- 36
- Forks
- 42
- PR merge metrics
- No merged PRs in 30d
Description
When executing the first step from https://github.com/adobe/aem-test-samples/blob/aem-cloud/ui-selenium-webdriver/README.md#all-in-one with Maven 3.9.6 you run into the following error:
`[ERROR] Failed to execute goal org.apache.maven.plugins:maven-install-plugin:3.1.1:install (default-install) on project com.adobe.cq.cloud.testing.ui.java.ui.tests: The packaging plugin for this project did not assign a main file to the project but it has attachments. Change packaging to 'pom'. -> [Help 1]`
This is a new error in introduced with `maven-install-plugin 3.0` (https://issues.apache.org/jira/browse/MINSTALL-118). The fix is to convert the `packaging` to `pom`.
In addition it is probably never useful to deploy anything for this project to a Maven repository therefore it would be useful to disable it with
```
maven-deploy-plugin
true
maven-install-plugin
true
.....
```
Contributor guide
Research direction
Start with the all-in-one instructions in ui-selenium-webdriver/README.md and reproduce the first Maven step using Maven 3.9.6. Inspect the project's Maven packaging configuration, apply the requested pom packaging and install/deploy settings, then rerun that step and confirm the installation error is gone.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- Half a day
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100