<plugin>
<groupId>com.github.blutorange</groupId>
<artifactId>javascript-source-map-maven-plugin</artifactId>
<version>1.3.0</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>js</goal>
</goals>
</execution>
</executions>
<configuration>
<jsSourceMapFile>${project.build.directory}/sourcemap/source-map.js.map</jsSourceMapFile>
<jsSourceMapSourcesDirectory>${project.basedir}/src/main/java</jsSourceMapSourcesDirectory>
</configuration>
</plugin>
String sourceMapFilePath = "path/to/source-map.js.map";
String obfuscatedCodeFilePath = "path/to/obfuscated-code.js";
String originalCodeFilePath = "path/to/original-code.js";
File sourceMapFile = new File(sourceMapFilePath);
File obfuscatedCodeFile = new File(obfuscatedCodeFilePath);
SourceMapConsumerV3 sourceMapConsumer = new SourceMapConsumerV3();
sourceMapConsumer.parse(sourceMapFile);
String originalCode = sourceMapConsumer.getOriginalSourceCode(obfuscatedCodeFile);
System.out.println(originalCode);