{"id":15105488,"url":"https://github.com/shynixn/anchor-nms","last_synced_at":"2025-09-27T04:31:20.022Z","repository":{"id":41322161,"uuid":"125671178","full_name":"Shynixn/Anchor-NMS","owner":"Shynixn","description":"AnchorNMS is a maven plugin which is designed to internally use the mod development framework ForgeGradle for mod development with Maven.","archived":true,"fork":false,"pushed_at":"2022-06-30T14:43:46.000Z","size":123,"stargazers_count":2,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-17T11:44:28.474Z","etag":null,"topics":["forgegradle","maven","minecraft-forge","nms","sponge"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Shynixn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-03-17T21:40:57.000Z","updated_at":"2023-08-15T19:19:59.000Z","dependencies_parsed_at":"2022-08-26T06:22:30.613Z","dependency_job_id":null,"html_url":"https://github.com/Shynixn/Anchor-NMS","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shynixn%2FAnchor-NMS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shynixn%2FAnchor-NMS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shynixn%2FAnchor-NMS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Shynixn%2FAnchor-NMS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Shynixn","download_url":"https://codeload.github.com/Shynixn/Anchor-NMS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234384180,"owners_count":18823634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["forgegradle","maven","minecraft-forge","nms","sponge"],"created_at":"2024-09-25T20:40:23.963Z","updated_at":"2025-09-27T04:31:14.727Z","avatar_url":"https://github.com/Shynixn.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AnchorNMS[![GitHub license](https://img.shields.io/badge/license-Apache%20License%202.0-blue.svg)](https://raw.githubusercontent.com/Shynixn/BlockBall/master/LICENSE)\n\n| branch        | status        | download      |\n| ------------- | --------------| --------------| \n| master        | [![Build Status](https://travis-ci.org/Shynixn/Anchor-NMS.svg?branch=master)](https://travis-ci.org/Shynixn/Anchor-NMS) |[Download latest release (recommend)](https://github.com/Shynixn/Anchor-NMS/releases)|\n| development   | [![Build Status](https://travis-ci.org/Shynixn/Anchor-NMS.svg?branch=development)](https://travis-ci.org/Shynixn/Anchor-NMS) | [Download snapshots](https://oss.sonatype.org/content/repositories/snapshots/com/github/shynixn/anchornms/anchornms-maven-plugin) |\n\nJavaDocs: https://shynixn.github.io/Anchor-NMS/apidocs/\n\n\n### NOTICE\n\nThis project is no longer under active development. \n\n## Description\n\nAnchorNMS is a maven plugin which is designed to internally use the mod development framework ForgeGradle for \nmod development with Maven.\n\nCompared to ForgeGradle it offers **easy** integration into any existing Multi Module Java Projects. \nAlso, you can include it at any part of your build cycle as described below.\n\n## Features\n\n* Plugin goal to generate mcp libraries for 1.12, 1.11 and 1.10 \n* Plugin goal which automatically obfuscates your generated .jar file\n* Multi version support in one Module as class paths get relocated and restored\n\n## Useage\n\nThe plugin is available in the central maven repository.\n\n### Getting the libraries\n\n1. Insert the following lines into your pom.xml.\n\n```maven\n  \u003cbuild\u003e\n        \u003cplugins\u003e\n            \u003cplugin\u003e\n                \u003cgroupId\u003ecom.github.shynixn.anchornms\u003c/groupId\u003e\n                \u003cartifactId\u003eanchornms-maven-plugin\u003c/artifactId\u003e\n                \u003cversion\u003e1.3.0\u003c/version\u003e\n                \u003cexecutions\u003e\n                    \u003cexecution\u003e\n                        \u003cgoals\u003e\n                            \u003cgoal\u003eobfuscate-jar\u003c/goal\u003e\n                        \u003c/goals\u003e\n                    \u003c/execution\u003e\n                \u003c/executions\u003e\n                \u003cconfiguration\u003e\n                    \u003cversions\u003e\n                        \u003cversion\u003e1.12\u003c/version\u003e\n                    \u003c/versions\u003e\n                \u003c/configuration\u003e\n            \u003c/plugin\u003e\n        \u003c/plugins\u003e\n    \u003c/build\u003e\n```\n\n2. Define your versions you want to generate and use.\n\n3. Execute the following goal to generate your libraries. \n\n```maven\nmvn anchornms:generate-mcp-libraries\n```\n\n4. After that, you can find the library files in your target/nms-tools folder called mcp-1.12.jar or mcp-any-version.jar\n5. Copy these library files anywhere on your pc or install it into your maven cache and include it into your project.\n6. Now you can use the classes for this version.\n\n```java\n public void manipulateArmorstand() {\n    net.minecraft.anchor.v1_12_mcpR1.entity.item.EntityArmorStand armorStand;\n    armorStand.setSilent(true);\n }\n```\n\n### Building the project\n\nMake sure you have the plugin above included into your pom.xml.\n\nThe obfuscate goal gets automatically applied and is bound per default to the phase package.\n\n```maven\nmvn package\n```\nCongrats, the jar file is now correctly obfuscated.\n\n### Dependencies and relocating\n\nOften you have to shade dependencies into your final jar file or even relocate them. This is fully supported\nas only your jar file in the target folder gets obfuscated by the obfuscation goal.\n\nThis means you can simply include the plugin after your shading plugin, so your shaded jar gets obfuscated\nin the end.\n\n```maven\n\u003cbuild\u003e\n    \u003cplugins\u003e\n        \u003cplugin\u003e\n            \u003cgroupId\u003eorg.apache.maven.plugins\u003c/groupId\u003e\n            \u003cartifactId\u003emaven-shade-plugin\u003c/artifactId\u003e\n            \u003cexecutions\u003e\n                \u003cexecution\u003e\n                    \u003cphase\u003epackage\u003c/phase\u003e\n                    \u003cgoals\u003e\n                        \u003cgoal\u003eshade\u003c/goal\u003e\n                    \u003c/goals\u003e\n                \u003c/execution\u003e\n            \u003c/executions\u003e\n        \u003c/plugin\u003e\n        \u003cplugin\u003e\n             \u003cgroupId\u003ecom.github.shynixn.anchornms\u003c/groupId\u003e\n             \u003cartifactId\u003eanchornms-maven-plugin\u003c/artifactId\u003e\n             \u003cversion\u003e1.3.0\u003c/version\u003e\n             \u003cexecutions\u003e\n                 \u003cexecution\u003e\n                     \u003cgoals\u003e\n                         \u003cgoal\u003eobfuscate-jar\u003c/goal\u003e\n                     \u003c/goals\u003e\n                 \u003c/execution\u003e\n             \u003c/executions\u003e\n             \u003cconfiguration\u003e\n                 \u003cversions\u003e\n                     \u003cversion\u003e1.12\u003c/version\u003e\n                 \u003c/versions\u003e\n             \u003c/configuration\u003e\n        \u003c/plugin\u003e\n    \u003c/plugins\u003e\n\u003c/build\u003e\n```\n\n### Input jar and Output jar\n\nYou can optionally define the input jar file which gets obfuscated and the output jar file.\n\n```maven\n\u003cbuild\u003e\n    \u003cplugins\u003e\n        \u003cplugin\u003e\n             \u003cgroupId\u003ecom.github.shynixn.anchornms\u003c/groupId\u003e\n             \u003cartifactId\u003eanchornms-maven-plugin\u003c/artifactId\u003e\n             \u003cversion\u003e1.3.0\u003c/version\u003e\n             \u003cexecutions\u003e\n                 \u003cexecution\u003e\n                     \u003cgoals\u003e\n                         \u003cgoal\u003eobfuscate-jar\u003c/goal\u003e\n                     \u003c/goals\u003e\n                 \u003c/execution\u003e\n             \u003c/executions\u003e\n             \u003cconfiguration\u003e\n                \u003cinputFile\u003eSomePath/MyJar.jar\u003c/inputFile\u003e\n                \u003coutputFile\u003eSomePath/MyFinalJar.jar\u003c/outputFile\u003e\n                 \u003cversions\u003e\n                     \u003cversion\u003e1.12\u003c/version\u003e\n                 \u003c/versions\u003e\n             \u003c/configuration\u003e\n        \u003c/plugin\u003e\n    \u003c/plugins\u003e\n\u003c/build\u003e\n```\n\n## Licence\n\nCopyright 2018 Shynixn\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshynixn%2Fanchor-nms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshynixn%2Fanchor-nms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshynixn%2Fanchor-nms/lists"}