Class ModuleInfoGenerator
java.lang.Object
org.moditect.mavenplugin.generate.ModuleInfoGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArtifactResolutionHelper
private final org.apache.maven.plugin.logging.Log
private final File
private final org.apache.maven.project.MavenProject
private final List
<org.eclipse.aether.repository.RemoteRepository> private final org.eclipse.aether.RepositorySystemSession
private final org.eclipse.aether.RepositorySystem
private final File
-
Constructor Summary
ConstructorsConstructorDescriptionModuleInfoGenerator
(org.apache.maven.project.MavenProject project, org.eclipse.aether.RepositorySystem repoSystem, org.eclipse.aether.RepositorySystemSession repoSession, List<org.eclipse.aether.repository.RemoteRepository> remoteRepos, ArtifactResolutionHelper artifactResolutionHelper, List<String> jdepsExtraArgs, org.apache.maven.plugin.logging.Log log, File workingDirectory, File outputDirectory) -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean
areEqualClassifiers
(String classifier1, String classifier2) generateModuleInfo
(Path inputJar, List<ArtifactConfiguration> additionalDependencies, ModuleInfoConfiguration moduleInfo, Map<ArtifactIdentifier, String> assignedNamesByModule) generateModuleInfo
(Path inputJar, Set<DependencyDescriptor> dependencies, ModuleInfoConfiguration moduleInfo) generateModuleInfo
(ArtifactConfiguration artifact, List<ArtifactConfiguration> additionalDependencies, ModuleInfoConfiguration moduleInfo, Map<ArtifactIdentifier, String> assignedNamesByModule, Map<ArtifactIdentifier, Path> modularizedJars) private String
getAssignedModuleName
(Map<ArtifactIdentifier, String> assignedNamesByModule, ArtifactIdentifier artifactIdentifier) private Set
<DependencyDescriptor> getDependencies
(org.eclipse.aether.artifact.Artifact inputArtifact, Map<ArtifactIdentifier, String> assignedNamesByModule, Map<ArtifactIdentifier, Path> modularizedJars) private Path
getModularizedJar
(Map<ArtifactIdentifier, Path> modularizedJars, ArtifactIdentifier artifactIdentifier) private String
getVersionFromProject
(org.eclipse.aether.artifact.Artifact artifact)
-
Field Details
-
project
private final org.apache.maven.project.MavenProject project -
repoSystem
private final org.eclipse.aether.RepositorySystem repoSystem -
repoSession
private final org.eclipse.aether.RepositorySystemSession repoSession -
remoteRepos
-
artifactResolutionHelper
-
jdepsExtraArgs
-
log
private final org.apache.maven.plugin.logging.Log log -
workingDirectory
-
outputDirectory
-
-
Constructor Details
-
ModuleInfoGenerator
public ModuleInfoGenerator(org.apache.maven.project.MavenProject project, org.eclipse.aether.RepositorySystem repoSystem, org.eclipse.aether.RepositorySystemSession repoSession, List<org.eclipse.aether.repository.RemoteRepository> remoteRepos, ArtifactResolutionHelper artifactResolutionHelper, List<String> jdepsExtraArgs, org.apache.maven.plugin.logging.Log log, File workingDirectory, File outputDirectory)
-
-
Method Details
-
generateModuleInfo
public GeneratedModuleInfo generateModuleInfo(ArtifactConfiguration artifact, List<ArtifactConfiguration> additionalDependencies, ModuleInfoConfiguration moduleInfo, Map<ArtifactIdentifier, String> assignedNamesByModule, Map<ArtifactIdentifier, throws org.apache.maven.plugin.MojoExecutionExceptionPath> modularizedJars) - Throws:
org.apache.maven.plugin.MojoExecutionException
-
generateModuleInfo
public GeneratedModuleInfo generateModuleInfo(Path inputJar, List<ArtifactConfiguration> additionalDependencies, ModuleInfoConfiguration moduleInfo, Map<ArtifactIdentifier, String> assignedNamesByModule) throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
generateModuleInfo
public GeneratedModuleInfo generateModuleInfo(Path inputJar, Set<DependencyDescriptor> dependencies, ModuleInfoConfiguration moduleInfo) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
getDependencies
private Set<DependencyDescriptor> getDependencies(org.eclipse.aether.artifact.Artifact inputArtifact, Map<ArtifactIdentifier, String> assignedNamesByModule, Map<ArtifactIdentifier, throws org.apache.maven.plugin.MojoExecutionExceptionPath> modularizedJars) - Throws:
org.apache.maven.plugin.MojoExecutionException
-
getAssignedModuleName
private String getAssignedModuleName(Map<ArtifactIdentifier, String> assignedNamesByModule, ArtifactIdentifier artifactIdentifier) -
getModularizedJar
private Path getModularizedJar(Map<ArtifactIdentifier, Path> modularizedJars, ArtifactIdentifier artifactIdentifier) -
getVersionFromProject
private String getVersionFromProject(org.eclipse.aether.artifact.Artifact artifact) throws org.apache.maven.plugin.MojoExecutionException - Throws:
org.apache.maven.plugin.MojoExecutionException
-
areEqualClassifiers
-