Package org.kie.maven.integration
Class MavenRepository
java.lang.Object
org.kie.maven.integration.MavenRepository
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FilebytesToFile(org.kie.api.builder.ReleaseId releaseId, byte[] bytes, String extension) voiddeployArtifact(org.eclipse.aether.repository.RemoteRepository repository, org.kie.api.builder.ReleaseId releaseId, File jar, File pomfile) Deploys a jar on a remote repository.voiddeployPomArtifact(String groupId, String artifactId, String version, File pomfile) getArtifactDependecies(String artifactName) static MavenRepositorystatic MavenRepositorygetMavenRepository(org.apache.maven.project.MavenProject mavenProject) protected MavenRepositoryConfigurationprotected org.eclipse.aether.repository.RemoteRepositoryvoidinstallArtifact(org.kie.api.builder.ReleaseId releaseId, byte[] jarContent, byte[] pomContent) Installs the given jar into the local repository.voidinstallArtifact(org.kie.api.builder.ReleaseId releaseId, File jar, File pomfile) Installs the given jar into the local repository.voidremoveLocalArtifact(org.kie.api.builder.ReleaseId releaseId) Utility method specifically suggested for testing purposes only.org.eclipse.aether.artifact.ArtifactresolveArtifact(String artifactName) org.eclipse.aether.artifact.ArtifactresolveArtifact(String artifactName, boolean logUnresolvedArtifact) org.eclipse.aether.artifact.ArtifactresolveArtifact(org.kie.api.builder.ReleaseId releaseId) org.eclipse.aether.version.VersionresolveVersion(String artifactName) static StringtoFileName(org.kie.api.builder.ReleaseId releaseId, String classifier)
-
Field Details
-
defaultMavenRepository
-
-
Constructor Details
-
MavenRepository
-
-
Method Details
-
getMavenRepositoryConfiguration
-
getMavenRepository
-
getMavenRepository
public static MavenRepository getMavenRepository(org.apache.maven.project.MavenProject mavenProject) -
getArtifactDependecies
-
resolveArtifact
public org.eclipse.aether.artifact.Artifact resolveArtifact(org.kie.api.builder.ReleaseId releaseId) -
resolveArtifact
-
resolveArtifact
public org.eclipse.aether.artifact.Artifact resolveArtifact(String artifactName, boolean logUnresolvedArtifact) -
resolveVersion
-
getRemoteRepositoryFromDistributionManagement
protected org.eclipse.aether.repository.RemoteRepository getRemoteRepositoryFromDistributionManagement(File pomfile) -
deployArtifact
public void deployArtifact(org.eclipse.aether.repository.RemoteRepository repository, org.kie.api.builder.ReleaseId releaseId, File jar, File pomfile) Deploys a jar on a remote repository.- Parameters:
repository- The remote repository where the kjar will be deployedreleaseId- The releaseId with which the deployment will be madejar- The jar to be deployedpomfile- The pom file to be deployed together with the kjar
-
bytesToFile
-
installArtifact
public void installArtifact(org.kie.api.builder.ReleaseId releaseId, byte[] jarContent, byte[] pomContent) Installs the given jar into the local repository.- Parameters:
releaseId- The releaseId with which the kjar will be installedjarContent- A byte array containing the kjar to be installedpomContent- A byte array containing the pom file to be installed together with the kjar
-
installArtifact
Installs the given jar into the local repository.- Parameters:
releaseId- The releaseId with which the kjar will be installedjar- The jar to be installedpomfile- The pom file to be installed together with the kjar
-
deployPomArtifact
-
toFileName
-
removeLocalArtifact
public void removeLocalArtifact(org.kie.api.builder.ReleaseId releaseId) Utility method specifically suggested for testing purposes only.
-