Skip to content

Commit

Permalink
Prepare for Doxia 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-o committed Oct 29, 2023
1 parent 4c898d7 commit 33b6594
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 29 deletions.
24 changes: 7 additions & 17 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ under the License.
</parent>

<artifactId>maven-dependency-plugin</artifactId>
<version>3.6.2-SNAPSHOT</version>
<version>3.7.0-SNAPSHOT</version>
<packaging>maven-plugin</packaging>

<name>Apache Maven Dependency Plugin</name>
Expand Down Expand Up @@ -165,33 +165,23 @@ under the License.
<scope>provided</scope>
</dependency>

<!-- reporting -->
<!-- doxia -->
<dependency>
<groupId>org.apache.maven.doxia</groupId>
<artifactId>doxia-sink-api</artifactId>
<version>1.11.1</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-container-default</artifactId>
</exclusion>
</exclusions>
<version>2.0.0-M8</version>
</dependency>

<!-- reporting -->
<dependency>
<groupId>org.apache.maven.reporting</groupId>
<artifactId>maven-reporting-api</artifactId>
<version>3.1.1</version>
<version>4.0.0-M8</version>
</dependency>
<dependency>
<groupId>org.apache.maven.reporting</groupId>
<artifactId>maven-reporting-impl</artifactId>
<version>3.2.0</version>
<exclusions>
<exclusion>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-container-default</artifactId>
</exclusion>
</exclusions>
<version>4.0.0-M11</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if ( htmlFile.length() == 0 )

Document doc = Jsoup.parse( htmlFile, "UTF-8");

Elements entry = doc.select( "#contentBox > section > section:nth-child(5) > table > tbody > tr.b" );
Elements entry = doc.select( "#bodyColumn > section > section:nth-child(5) > table > tbody > tr.b" );

if( entry.isEmpty() )
{
Expand All @@ -50,7 +50,7 @@ else if ( entry.size() != 1 )
}

Element groupIdElement = doc.select(
"#contentBox > section > section:nth-child(5) > table > tbody > tr.b > td:nth-child(1)" ).first();
"#bodyColumn > section > section:nth-child(5) > table > tbody > tr.b > td:nth-child(1)" ).first();

String groupId = groupIdElement.text();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@

import java.util.ArrayList;
import java.util.List;
import java.util.Locale;

import org.apache.maven.plugin.AbstractMojo;
import org.apache.maven.plugin.MojoExecutionException;
Expand Down Expand Up @@ -62,14 +61,8 @@ private ArrayList<String> collectAncestors() {

MavenProject currentAncestor = project.getParent();
while (currentAncestor != null) {
final String gav = String.format(
Locale.US,
"%s:%s:%s",
currentAncestor.getGroupId(),
currentAncestor.getArtifactId(),
currentAncestor.getVersion());

ancestors.add(gav);
ancestors.add(currentAncestor.getGroupId() + ":" + currentAncestor.getArtifactId() + ":"
+ currentAncestor.getVersion());

currentAncestor = currentAncestor.getParent();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
*/
@Mojo(name = "analyze-report", requiresDependencyResolution = ResolutionScope.TEST, threadSafe = true)
@Execute(phase = LifecyclePhase.TEST_COMPILE)
public class AnalyzeReportMojo extends AbstractMavenReport {
public class AnalyzeReport extends AbstractMavenReport {
// fields -----------------------------------------------------------------

/**
Expand Down

0 comments on commit 33b6594

Please sign in to comment.