- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for getMainArtifact (0.08 sec)
-
api/maven-api-core/src/main/java/org/apache/maven/api/ProducedArtifact.java
* * <p>Produced artifacts includes:</p><ul> * <li>{@linkplain Project#getPomArtifact() the project POM artifact}</li> * <li>{@linkplain Project#getMainArtifact() the main artifact}</li> * <li>{@linkplain org.apache.maven.api.services.ProjectManager#attachArtifact(Session, Project, Path) artifacts to be attached to a project}</li> * </ul> *
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Tue Aug 27 21:13:34 UTC 2024 - 1.9K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/Project.java
* * @see #getPackaging() * @see org.apache.maven.api.services.ArtifactManager#getPath(Artifact) */ @Nonnull default Optional<ProducedArtifact> getMainArtifact() { List<ProducedArtifact> artifacts = getArtifacts(); return artifacts.size() == 2 ? Optional.of(artifacts.get(1)) : Optional.empty(); } /**
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Sat Sep 28 09:03:24 UTC 2024 - 7.8K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectManager.java
this.artifactManager = artifactManager; } @Nonnull @Override public Optional<Path> getPath(Project project) { Optional<ProducedArtifact> mainArtifact = project.getMainArtifact(); if (mainArtifact.isPresent()) { return artifactManager.getPath(mainArtifact.get()); } return Optional.empty(); } @Nonnull @Override
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 9.3K bytes - Viewed (0)