- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for getModelId (0.04 sec)
-
api/maven-api-core/src/test/java/org/apache/maven/api/services/SourcesTest.java
assertInstanceOf(Sources.ResolvedPathSource.class, source); assertNull(source.getPath()); assertEquals(path.toString(), source.getLocation()); assertEquals(modelId, source.getModelId()); } @Test void testPathSourceFunctionality() { // Test basic source functionality Path path = Paths.get("/tmp");
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Sep 29 14:45:25 UTC 2025 - 5.4K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelProblemUtils.java
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jul 23 17:27:08 UTC 2025 - 4.9K bytes - Viewed (0) -
compat/maven-model/src/main/java/org/apache/maven/model/InputSource.java
/** * Get the identifier of the POM in the format {@code * <groupId>:<artifactId>:<version>}. * * @return String */ public String getModelId() { return this.modelId; } // -- String getModelId() /** * Set the path/URL of the POM or {@code null} if unknown. * * @param location */ public void setLocation(String location) {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Sep 29 14:45:25 UTC 2025 - 5.6K bytes - Viewed (0) -
api/maven-api-core/src/test/java/org/apache/maven/api/services/ModelSourceTest.java
@Test void testBuildSourceHasNoModelId() { Path path = Paths.get("/tmp/pom.xml"); ModelSource source = Sources.buildSource(path); assertNotNull(source); assertNull(source.getModelId(), "Build sources should not have a modelId"); assertEquals(path, source.getPath()); } @Test void testResolvedSourceWithModelId() { String location = "/tmp/resolved-pom.xml";Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Sep 29 14:45:25 UTC 2025 - 2.5K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/xml/XmlReaderRequest.java
@Nullable InputStream getInputStream(); @Nullable Reader getReader(); @Nullable Transformer getTransformer(); boolean isStrict(); @Nullable String getModelId(); @Nullable String getLocation(); boolean isAddDefaultEntities(); interface Transformer { /** * Interpolate the value read from the xml document *Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Aug 29 12:46:27 UTC 2025 - 6.8K bytes - Viewed (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProblemCollector.java
if (req.getLocation().getSource() != null) { modelId = req.getLocation().getSource().getModelId(); source = req.getLocation().getSource().getLocation(); } } if (modelId == null) { modelId = getModelId(); source = getSource(); }
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Tue Feb 25 08:27:34 UTC 2025 - 5.5K bytes - Viewed (0) -
impl/maven-core/src/test/java/org/apache/maven/project/ProjectBuilderTest.java
} } assertNotNull(dependencyLocation, "missing dependency"); assertEquals( "org.apache.maven.its:bom:0.1", dependencyLocation.getSource().getModelId()); InputLocation pluginLocation = null; for (Plugin plugin : project.getBuildPlugins()) { if (plugin.getKey().equals("org.apache.maven.plugins:maven-clean-plugin")) {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Sep 17 10:01:14 UTC 2025 - 17.6K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelBuilderException.java
* exception is thrown so this information is merely meant to assist the user. * * @return The identifier of the POM or an empty string if not known, never {@code null}. */ public String getModelId() { if (result == null) { return ""; } else if (result.getEffectiveModel() != null) { return result.getEffectiveModel().getId(); } else if (result.getRawModel() != null) {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Sep 25 21:57:56 UTC 2025 - 2.9K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelProblem.java
* * @return The identifier of the model from which the problem originated or an empty string if unknown, never * {@code null}. */ @Nonnull String getModelId(); /** * Gets the applicable maven version/validation level of this problem * @return The version, never {@code null}. */ @Nonnull Version getVersion();Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Aug 07 14:31:13 UTC 2025 - 2.9K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ModelSource.java
* * @return the model identifier, or {@code null} if not available or not applicable * @since 4.0.0 */ @Nullable default String getModelId() { return null; } /** * Interface for locating POM files within a project structure. * Implementations of this interface provide the ability to find POM filesRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Mon Sep 29 14:45:25 UTC 2025 - 4.4K bytes - Viewed (0)