Skip to content

Commit ee4ad31

Browse files
committed
More in README
1 parent 1edaf52 commit ee4ad31

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ With Maven 3 create project-wide, or with Maven 4-rc-3+ create user-wide `~/.m2/
3939
That's all! No project change needed at all. Next, let's see an example of Apache Maven project (I used `maven-gpg-plugin`):
4040

4141
1. For example’s sake, I took last release of plugin: `git checkout maven-gpg-plugin-3.2.7`
42-
2. Deploy it (locally stage): `mvn -P apache-release deploy -DaltDeploymentRepository=id::njord:`
42+
2. Deploy it (locally stage): `mvn -P apache-release deploy -DaltDeploymentRepository=id::njord:` (The `id` is really unused, is there just to fulfil deploy plugin syntax requirement. The URL `njord:` will use "default" store template that is RELEASE. You can target other templates by using, and is equivalent of this `njord:default`. You can stage locally snapshots as well with URL `njord:snapshot`. Finally, you can target existing store with `njord:store:storename-xxx`).
4343
3. Check staged store names: `mvn njord:list`
4444
4. Check locally staged content: `mvn njord:list-content -Dstore=release-xxx` (use store name from above)
4545
5. Publish it to `repository.apache.org`: `mvn njord:publish -Dstore=release-xxx -Dtarget=apache-rao` (use store name from above)

extension/src/main/java/eu/maveniverse/maven/njord/extension3/NjordRepositoryConnectorFactory.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public NjordRepositoryConnectorFactory(BasicRepositoryConnectorFactory basicRepo
4444
/**
4545
* {@code repoId::njord:default}
4646
* {@code repoId::njord:template:templateName}
47-
* {@code repoId::njord:repository:storeName}
47+
* {@code repoId::njord:store:storeName}
4848
*/
4949
@Override
5050
public RepositoryConnector newInstance(RepositorySystemSession session, RemoteRepository repository)
@@ -91,7 +91,7 @@ private ArtifactStore mayCreateArtifactStore(
9191
artifactStoreName = artifactStore.name();
9292
}
9393
}
94-
} else if (uri.startsWith("repository:")) {
94+
} else if (uri.startsWith("store:")) {
9595
artifactStoreName = uri.substring(11);
9696
} else {
9797
throw new IllegalArgumentException("Invalid repository URI: " + uri);

plugin/src/main/java/eu/maveniverse/maven/njord/plugin3/MergeMojo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected void doExecute(ArtifactStoreManager artifactStoreManager) throws IOExc
4141
new ArtifactStoreDeployer(
4242
repositorySystem,
4343
mavenSession.getRepositorySession(),
44-
new RemoteRepository.Builder(to, "default", "njord:repository:" + to).build())
44+
new RemoteRepository.Builder(to, "default", "njord:store:" + to).build())
4545
.deploy(from);
4646
if (drop) {
4747
logger.info("Dropping {}", from);

0 commit comments

Comments
 (0)