/** * Retrieve an artifact that was part of the original build using a * full or simplified Maven GAV specifier, returning an archive with a * specified name. * * @param gav The Maven GAV. * @return The located artifact, as a {@code JavaArchive} with the specified name. * @throws Exception If the specified artifact is not locatable. * @see #artifact(String) */ public static JavaArchive artifact(String gav, String asName) throws Exception { return artifactLookup().artifact(gav, asName); }
/** * Retrieve an artifact that was part of the original build using a * full or simplified Maven GAV specifier, returning an archive with a * specified name. * * @param gav The Maven GAV. * @return The located artifact, as a {@code JavaArchive} with the specified name. * @throws Exception If the specified artifact is not locatable. * @see #artifact(String) */ public static JavaArchive artifact(String gav, String asName) throws Exception { return artifactLookup().artifact(gav, asName); }
/** * Retrieve an artifact that was part of the original build using a * full or simplified Maven GAV specifier, returning an archive with a * specified name. * * @param gav The Maven GAV. * @return The located artifact, as a {@code JavaArchive} with the specified name. * @throws Exception If the specified artifact is not locatable. * @see #artifact(String) */ public static JavaArchive artifact(String gav, String asName) throws Exception { return artifactLookup().artifact(gav, asName); }
/** * Retrieve an artifact that was part of the original build using a * full or simplified Maven GAV specifier. * * <p>The following formats of GAVs are supported:</p> * * <ul> * <li>groupId:artifactId</li> * <li>groupId:artifactId:version</li> * <li>groupId:artifactId:packaging:version</li> * <li>groupId:artifactId:packaging:version:classifier</li> * </ul> * * <p>Only artifacts that were compiled with the user's project with * a scope of {@code compile} are available through lookup.</p> * * <p>In the variants that include a {@code version} parameter, it may be * replaced by a literal asterisk in order to avoid hard-coding versions * into the application.</p> * * @param gav The Maven GAV. * @return The located artifact, as a {@code JavaArchive}. * @throws Exception If the specified artifact is not locatable. */ public static JavaArchive artifact(String gav) throws Exception { return artifactLookup().artifact(gav); }
/** * Retrieve an artifact that was part of the original build using a * full or simplified Maven GAV specifier. * * <p>The following formats of GAVs are supported:</p> * * <ul> * <li>groupId:artifactId</li> * <li>groupId:artifactId:version</li> * <li>groupId:artifactId:packaging:version</li> * <li>groupId:artifactId:packaging:version:classifier</li> * </ul> * * <p>Only artifacts that were compiled with the user's project with * a scope of {@code compile} are available through lookup.</p> * * <p>In the variants that include a {@code version} parameter, it may be * replaced by a literal asterisk in order to avoid hard-coding versions * into the application.</p> * * @param gav The Maven GAV. * @return The located artifact, as a {@code JavaArchive}. * @throws Exception If the specified artifact is not locatable. */ public static JavaArchive artifact(String gav) throws Exception { return artifactLookup().artifact(gav); }
/** * Retrieve an artifact that was part of the original build using a * full or simplified Maven GAV specifier. * * <p>The following formats of GAVs are supported:</p> * * <ul> * <li>groupId:artifactId</li> * <li>groupId:artifactId:version</li> * <li>groupId:artifactId:packaging:version</li> * <li>groupId:artifactId:packaging:version:classifier</li> * </ul> * * <p>Only artifacts that were compiled with the user's project with * a scope of {@code compile} are available through lookup.</p> * * <p>In the variants that include a {@code version} parameter, it may be * replaced by a literal asterisk in order to avoid hard-coding versions * into the application.</p> * * @param gav The Maven GAV. * @return The located artifact, as a {@code JavaArchive}. * @throws Exception If the specified artifact is not locatable. */ public static JavaArchive artifact(String gav) throws Exception { return artifactLookup().artifact(gav); }
/** * Add a single Maven dependency into the Archive. * The following dependency formats are supported: * * groupId:artifactId * groupId:artifactId:version * groupId:artifactId:packaging:version * groupId:artifactId:packaging:version:classifier * * @param gav String coordinates of the Maven dependency * @return Archive instance * @throws Exception * @see ArtifactLookup#artifact(String) */ @SuppressWarnings("unchecked") default T addDependency(String gav) throws Exception { addAsLibrary(ArtifactLookup.get().artifact(gav)); return (T) this; } }
/** * Add a single Maven dependency into the Archive. * The following dependency formats are supported: * * groupId:artifactId * groupId:artifactId:version * groupId:artifactId:packaging:version * groupId:artifactId:packaging:version:classifier * * @param gav String coordinates of the Maven dependency * @return Archive instance * @throws Exception * @see ArtifactLookup#artifact(String) */ @SuppressWarnings("unchecked") default T addDependency(String gav) throws Exception { addAsLibrary(ArtifactLookup.get().artifact(gav)); return (T) this; } }
this.webContent = ArtifactLookup.get().artifact(content); } catch (Exception e) { SwaggerWebAppMessages.MESSAGES.unableToLocateWebContent(content);
this.webContent = ArtifactLookup.get().artifact(content); } catch (Exception e) { SwaggerWebAppMessages.MESSAGES.unableToLocateWebContent(content);
ArtifactLookup artifactLookup = ArtifactLookup.get(); for (String gav : appEnv.getDependencies()) { depContainer.addAsLibrary(artifactLookup.artifact(gav));
ArtifactLookup artifactLookup = ArtifactLookup.get(); for (String gav : appEnv.getDependencies()) { depContainer.addAsLibrary(artifactLookup.artifact(gav));
ArtifactLookup artifactLookup = ArtifactLookup.get(); for (String gav : appEnv.getDependencies()) { depContainer.addAsLibrary(artifactLookup.artifact(gav));