@Test public void getApplicationArtifactCoordinates() { ApplicationGAVModel appGAVModel = new ApplicationGAVModel(pomModel.getGroupId(), pomModel.getArtifactId(), pomModel.getVersion()); ArtifactCoordinates applicationArtifactCoordinates = ArtifactUtils.getApplicationArtifactCoordinates(pomModel, appGAVModel); assertThat(applicationArtifactCoordinates.getType(), equalTo("jar")); assertThat(applicationArtifactCoordinates.getClassifier(), equalTo(pomModel.getPackaging())); assertThat(applicationArtifactCoordinates.getGroupId(), equalTo(appGAVModel.getGroupId())); assertThat(applicationArtifactCoordinates.getArtifactId(), equalTo(appGAVModel.getArtifactId())); assertThat(applicationArtifactCoordinates.getVersion(), equalTo(appGAVModel.getVersion())); }
public static ArtifactCoordinates getApplicationArtifactCoordinates(Model pomModel, ApplicationGAVModel appGAVModel) { ArtifactCoordinates appCoordinates = toArtifactCoordinates(getPomProjectBundleDescriptor(appGAVModel)); appCoordinates.setType(PACKAGE_TYPE); appCoordinates.setClassifier(pomModel.getPackaging()); return appCoordinates; }
ArtifactUtils { public static ArtifactCoordinates getApplicationArtifactCoordinates(Model pomModel, ApplicationGAVModel appGAVModel) { ArtifactCoordinates appCoordinates = toArtifactCoordinates(getPomProjectBundleDescriptor(appGAVModel)); appCoordinates.setType(PACKAGE_TYPE); appCoordinates.setClassifier(pomModel.getPackaging()); return appCoordinates; } }
ArtifactUtils { public static ArtifactCoordinates getApplicationArtifactCoordinates(Model pomModel, ApplicationGAVModel appGAVModel) { ArtifactCoordinates appCoordinates = toArtifactCoordinates(getPomProjectBundleDescriptor(appGAVModel)); appCoordinates.setType(PACKAGE_TYPE); appCoordinates.setClassifier(pomModel.getPackaging()); return appCoordinates; }  }
ArtifactUtils { public static ArtifactCoordinates getApplicationArtifactCoordinates(Model pomModel, ApplicationGAVModel appGAVModel) { ArtifactCoordinates appCoordinates = toArtifactCoordinates(getPomProjectBundleDescriptor(appGAVModel)); appCoordinates.setType(PACKAGE_TYPE); appCoordinates.setClassifier(pomModel.getPackaging()); return appCoordinates; }  static ArtifactCoordinates toArtifactCoordinates(BundleDescriptor bundleDescriptor); static Artifact toArtifact(BundleDependency bundleDependency); static List<Artifact> toArtifacts(Collection<BundleDependency> dependencies); static boolean isValidMulePlugin(Artifact artifact); static BundleDescriptor toBundleDescriptor(ArtifactCoordinates artifactCoordinates); static BundleDescriptor toBundleDescriptor(Dependency dependency); static List<Artifact> toApplicationModelArtifacts(List<BundleDependency> appDependencies); static List<Artifact> updatePackagesResources(List<Artifact> artifacts); static Artifact updatePackagesResources(Artifact artifact); static List<Artifact> updateArtifactsSharedState(List<BundleDependency> appDependencies, List<Artifact> artifacts,
                                                          Model pomModel); static void updateScopeIfDomain(Artifact artifact); static ArtifactCoordinates getApplicationArtifactCoordinates(Model pomModel, ApplicationGAVModel appGAVModel); static BundleDescriptor getPomProjectBundleDescriptor(ApplicationGAVModel appGAVModel); static BundleDescriptor getBundleDescriptor(ApplicationGAVModel appGAVModel); }
ArtifactUtils { public static ArtifactCoordinates getApplicationArtifactCoordinates(Model pomModel, ApplicationGAVModel appGAVModel) { ArtifactCoordinates appCoordinates = toArtifactCoordinates(getPomProjectBundleDescriptor(appGAVModel)); appCoordinates.setType(PACKAGE_TYPE); appCoordinates.setClassifier(pomModel.getPackaging()); return appCoordinates; }  static ArtifactCoordinates toArtifactCoordinates(BundleDescriptor bundleDescriptor); static Artifact toArtifact(BundleDependency bundleDependency); static List<Artifact> toArtifacts(Collection<BundleDependency> dependencies); static boolean isValidMulePlugin(Artifact artifact); static BundleDescriptor toBundleDescriptor(ArtifactCoordinates artifactCoordinates); static BundleDescriptor toBundleDescriptor(Dependency dependency); static List<Artifact> toApplicationModelArtifacts(List<BundleDependency> appDependencies); static List<Artifact> updatePackagesResources(List<Artifact> artifacts); static Artifact updatePackagesResources(Artifact artifact); static List<Artifact> updateArtifactsSharedState(List<BundleDependency> appDependencies, List<Artifact> artifacts,
                                                          Model pomModel); static void updateScopeIfDomain(Artifact artifact); static ArtifactCoordinates getApplicationArtifactCoordinates(Model pomModel, ApplicationGAVModel appGAVModel); static BundleDescriptor getPomProjectBundleDescriptor(ApplicationGAVModel appGAVModel); static BundleDescriptor getBundleDescriptor(ApplicationGAVModel appGAVModel);  }