Skip to content

Commit

Permalink
eirslett#1042 Use correct Xpp3Dom class
Browse files Browse the repository at this point in the history
  • Loading branch information
liefke authored and atl-mk committed Sep 19, 2024
1 parent cf51e1b commit 210e2a1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
6 changes: 6 additions & 0 deletions frontend-maven-plugin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@
<artifactId>plexus-build-api</artifactId>
<version>0.0.7</version>
</dependency>

<dependency>
<groupId>org.codehaus.plexus</groupId>
<artifactId>plexus-utils</artifactId>
<version>3.5.1</version>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import org.apache.maven.plugins.annotations.Parameter;
import org.apache.maven.project.MavenProject;
import org.apache.maven.settings.Server;
import org.apache.maven.shared.utils.xml.Xpp3Dom;
import org.codehaus.plexus.util.xml.Xpp3Dom;
import org.eclipse.aether.RepositorySystemSession;

import com.github.eirslett.maven.plugins.frontend.lib.FrontendException;
Expand Down Expand Up @@ -116,6 +116,9 @@ public void execute() throws MojoFailureException {
*
* @param server
* the &lt;server&gt; entry from the settings.xml
*
* @return the mapping from the name of each configured HTTP header to its value,
* an empty map if there is no such configuration
*/
protected Map<String, String> getHttpHeaders(Server server) {
if (server == null || !(server.getConfiguration() instanceof Xpp3Dom)) {
Expand Down

0 comments on commit 210e2a1

Please sign in to comment.