You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2023/11/17 21:04:00 UTC
(maven-project-info-reports-plugin) branch master updated (c16ec94 -> 91a065b)
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/maven-project-info-reports-plugin.git
from c16ec94 [MNG-7416] Simplify Boolean expressions and returns (#63)
new ceac0bf Consistently use MavenReport#getReportOutputDirectory()
new 91a065b [MPIR-452] Upgrade to Parent 41
The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
pom.xml | 7 +++++--
src/it/MPIR-412/verify.groovy | 2 ++
.../report/projectinfo/AbstractProjectInfoReport.java | 15 ---------------
.../maven/report/projectinfo/DependenciesReport.java | 2 +-
4 files changed, 8 insertions(+), 18 deletions(-)
(maven-project-info-reports-plugin) 02/02: [MPIR-452] Upgrade to Parent 41
Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-project-info-reports-plugin.git
commit 91a065b3e5b314daf0a6c338f26a8a3ba2f3931e
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Fri Nov 17 22:03:48 2023 +0100
[MPIR-452] Upgrade to Parent 41
---
pom.xml | 7 +++++--
src/it/MPIR-412/verify.groovy | 2 ++
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/pom.xml b/pom.xml
index bc29c99..17c6814 100644
--- a/pom.xml
+++ b/pom.xml
@@ -23,7 +23,7 @@ under the License.
<parent>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-plugins</artifactId>
- <version>39</version>
+ <version>41</version>
<relativePath />
</parent>
@@ -370,7 +370,10 @@ under the License.
<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
- <version>3.5.1</version>
+ </dependency>
+ <dependency>
+ <groupId>org.codehaus.plexus</groupId>
+ <artifactId>plexus-xml</artifactId>
</dependency>
<dependency>
<groupId>org.codehaus.plexus</groupId>
diff --git a/src/it/MPIR-412/verify.groovy b/src/it/MPIR-412/verify.groovy
index 51dac6c..16a68c7 100644
--- a/src/it/MPIR-412/verify.groovy
+++ b/src/it/MPIR-412/verify.groovy
@@ -17,6 +17,8 @@
* under the License.
*/
+import groovy.xml.XmlParser
+
// should be able to parse the output as XML
parser = new XmlParser();
parser.setFeature( 'http://apache.org/xml/features/disallow-doctype-decl', false );
(maven-project-info-reports-plugin) 01/02: Consistently use MavenReport#getReportOutputDirectory()
Posted by mi...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-project-info-reports-plugin.git
commit ceac0bfb517d8d5fa095031d6bd57e6d4271bb60
Author: Michael Osipov <mi...@apache.org>
AuthorDate: Fri Nov 17 21:48:02 2023 +0100
Consistently use MavenReport#getReportOutputDirectory()
---
.../report/projectinfo/AbstractProjectInfoReport.java | 15 ---------------
.../maven/report/projectinfo/DependenciesReport.java | 2 +-
2 files changed, 1 insertion(+), 16 deletions(-)
diff --git a/src/main/java/org/apache/maven/report/projectinfo/AbstractProjectInfoReport.java b/src/main/java/org/apache/maven/report/projectinfo/AbstractProjectInfoReport.java
index 9829e94..04d913e 100644
--- a/src/main/java/org/apache/maven/report/projectinfo/AbstractProjectInfoReport.java
+++ b/src/main/java/org/apache/maven/report/projectinfo/AbstractProjectInfoReport.java
@@ -187,21 +187,6 @@ public abstract class AbstractProjectInfoReport extends AbstractMavenReport {
return coll == null || coll.isEmpty();
}
- @Override
- protected String getOutputDirectory() {
- return outputDirectory.getAbsolutePath();
- }
-
- @Override
- public File getReportOutputDirectory() {
- return outputDirectory;
- }
-
- @Override
- public void setReportOutputDirectory(File reportOutputDirectory) {
- this.outputDirectory = reportOutputDirectory;
- }
-
@Override
protected MavenProject getProject() {
return project;
diff --git a/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java b/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java
index 9011399..41da98e 100644
--- a/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java
+++ b/src/main/java/org/apache/maven/report/projectinfo/DependenciesReport.java
@@ -124,7 +124,7 @@ public class DependenciesReport extends AbstractProjectInfoReport {
@Override
public void executeReport(Locale locale) {
try {
- copyResources(new File(getOutputDirectory()));
+ copyResources(getReportOutputDirectory());
} catch (IOException e) {
getLog().error("Cannot copy resources", e);
}