New requirements and some eclipse issues when using Eclipse #6

Manually merged
luca.frosini merged 5 commits from resolve-eclipse-requirements into master 4 years ago

The branch addresses and fixes the following:

  • manage custom files to then store into WEB-INF and META-INF
  • some files were not copied anymore into WEB-INF/META-INF
  • warning from plugins without an explicit version in Eclipse
  • bring make-uberjar back
The branch addresses and fixes the following: * manage custom files to then store into WEB-INF and META-INF * some files were not copied anymore into WEB-INF/META-INF * warning from plugins without an explicit version in Eclipse * bring make-uberjar back
luca.frosini was assigned by manuele.simi 4 years ago
luca.frosini was unassigned by manuele.simi 4 years ago
luca.frosini was assigned by manuele.simi 4 years ago
luca.frosini was unassigned by manuele.simi 4 years ago
luca.frosini was assigned by manuele.simi 4 years ago
Owner

I still have the following error on eclipse:

Cannot parse lifecycle mapping metadata for maven project MavenProject: org.gcube.tools:maven-parent:1.1.0 @ /home/lucafrosini/.m2/repository/org/gcube/tools/maven-parent/1.1.0/maven-parent-1.1.0.pom Cause: Unrecognised tag: 'version' (position: START_TAG seen ...</artifactId>\n        <version>... @8:18) 

The error was get for document-store-lib branch feature/19115 but it is the same on all projects.

I still have the following error on eclipse: ``` Cannot parse lifecycle mapping metadata for maven project MavenProject: org.gcube.tools:maven-parent:1.1.0 @ /home/lucafrosini/.m2/repository/org/gcube/tools/maven-parent/1.1.0/maven-parent-1.1.0.pom Cause: Unrecognised tag: 'version' (position: START_TAG seen ...</artifactId>\n <version>... @8:18) ``` The error was get for document-store-lib branch feature/19115 but it is the same on all projects.
Owner

I found that at row 814 there is tag in place of

As indicated here, the issue affect many other users. Moreover seems that versione range is the correct tag to use.
https://stackoverflow.com/questions/7409823/m2e-lifecycle-mapping-not-found

Using versionRange solve the issue.
I'll reject this pull request and fix the branch with this tag.

Now, it has been emerged another issue:

Plugin execution not covered by lifecycle configuration: org.codehaus.gmaven:groovy-maven-plugin:2.0:execute (execution: default, phase: process-classes)

Commenting the following section I have no issues:

			<plugin>
				<groupId>org.codehaus.gmaven</groupId>
				<artifactId>groovy-maven-plugin</artifactId>
				<version>2.0</version>
				<executions>
					<execution>
						<phase>process-classes</phase>
						<goals>
							<goal>execute</goal>
						</goals>
						<configuration>
							<defaults>
								<name>tag</name>
							</defaults>
							<source>
								def fileContents = new File("${project.basedir}/CHANGELOG.md").getText('UTF-8')
								matcher = (fileContents =~ /(?s).\[v$project.version\].*?/)
								if (!matcher.find()) {
									throw new IllegalArgumentException("Tag [v$project.version] not found in ${project.basedir}/CHANGELOG.md")
								}
								assert matcher[0][1]:  "Tag [v$project.version] not found in ${project.basedir}/CHANGELOG.md"
							</source>
						</configuration>
					</execution>
				</executions>
			</plugin>

The problem is that groovy-maven-plugin is not defined in pluginManagement section.

https://stackoverflow.com/questions/6352208/how-to-solve-plugin-execution-not-covered-by-lifecycle-configuration-for-sprin

Event this is not an error in command line the pom is not properly configured.

I found that at row 814 there is <version> tag in place of <versionRange> As indicated here, the issue affect many other users. Moreover seems that versione range is the correct tag to use. https://stackoverflow.com/questions/7409823/m2e-lifecycle-mapping-not-found Using versionRange solve the issue. I'll reject this pull request and fix the branch with this tag. Now, it has been emerged another issue: ``` Plugin execution not covered by lifecycle configuration: org.codehaus.gmaven:groovy-maven-plugin:2.0:execute (execution: default, phase: process-classes) ``` Commenting the following section I have no issues: ``` <plugin> <groupId>org.codehaus.gmaven</groupId> <artifactId>groovy-maven-plugin</artifactId> <version>2.0</version> <executions> <execution> <phase>process-classes</phase> <goals> <goal>execute</goal> </goals> <configuration> <defaults> <name>tag</name> </defaults> <source> def fileContents = new File("${project.basedir}/CHANGELOG.md").getText('UTF-8') matcher = (fileContents =~ /(?s).\[v$project.version\].*?/) if (!matcher.find()) { throw new IllegalArgumentException("Tag [v$project.version] not found in ${project.basedir}/CHANGELOG.md") } assert matcher[0][1]: "Tag [v$project.version] not found in ${project.basedir}/CHANGELOG.md" </source> </configuration> </execution> </executions> </plugin> ``` The problem is that groovy-maven-plugin is not defined in pluginManagement section. https://stackoverflow.com/questions/6352208/how-to-solve-plugin-execution-not-covered-by-lifecycle-configuration-for-sprin Event this is not an error in command line the pom is not properly configured.
Poster

Can you please add push the following two commits to the branch:

  1. use versionRange instead of range.
  2. declare the gmaven plugin in the pluginManagement of the pom.
Can you please add push the following two commits to the branch: 1. use versionRange instead of range. 2. declare the gmaven plugin in the pluginManagement of the pom.
luca.frosini closed this pull request 4 years ago
Owner

@manuele.simi I did not fix the eclipse issue of gmaven plugin in the pluginManagement because I'm not sure about to properly do it.
I just disabled the error in Eclipse.

As you can see, I have accepted the pull request.

@manuele.simi I did not fix the eclipse issue of gmaven plugin in the pluginManagement because I'm not sure about to properly do it. I just disabled the error in Eclipse. As you can see, I have accepted the pull request.
The pull request has been manually merged as 90655e6de0.
Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gCubeSystem/maven-parent#6
Loading…
There is no content yet.