Package org.guvnor.m2repo.backend.server
Class FixNotMavenizedArtifactInfo
- java.lang.Object
-
- org.guvnor.m2repo.backend.server.FixNotMavenizedArtifactInfo
-
public class FixNotMavenizedArtifactInfo extends Object
This class aim to provide maven meta information for artifacts (.jar) that don't have maven metadata built-in.Maven auto-generate a `pom.properties` to store GAV information, and it also embeds the original pom file into the produced artifacts. However, this meta information is not always available if the artifact was created using a different system like ant. Even if the artifact doesn't have the necessary embedded information, those artifacts can be available in maven repositories, but the metadata are provided differently.
To build the GAV information out of a .jar file, this class uses as input a `not-mavenized-artifacts.properties` from classpath that provides the feedback needed to produce the required metadata. In case of an artifact is not listed in the input file, this class won't be able to provide the GAV.
-
-
Constructor Summary
Constructors Constructor Description FixNotMavenizedArtifactInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbuildPom(org.guvnor.common.services.project.model.GAV gav)PropertiesgetProperties(String filePath)
-
-
-
Method Detail
-
getProperties
public Properties getProperties(String filePath)
-
buildPom
public String buildPom(org.guvnor.common.services.project.model.GAV gav)
-
-