Gommeh
Veteran Member
dammit ryan and rylie
Posts: 2,744
| Likes: 778
|
Post by Gommeh on Jun 27, 2020 3:00:35 GMT
I want to install Maven on my Mac, but for some reason am not able to find any good tutorials on how to do so myself. I looked at a few, but each of them told me to log in as the root user and perform these commands in order after extracting the Maven .gz file to my Downloads folder: rm Downloads/apache-maven*bin.tar.gz
chown -R root:wheel Downloads/apache-maven* mv Downloads/apache-maven* /opt/apache-maven exit nano $HOME/.profile export PATH=$PATH:/opt/apache-maven/bin
In other words, I'm having trouble executing command #2 above from the root user. Can someone help me please?
|
|
|
Post by Telesphoreo on Jun 27, 2020 3:19:37 GMT
|
|
Gommeh
Veteran Member
dammit ryan and rylie
Posts: 2,744
| Likes: 778
|
Post by Gommeh on Jun 27, 2020 4:31:47 GMT
OK, now that's done I just need to take the TotalFreedomMod folder and turn it into TotalFreedomMod.jar. I've been told that just changing the file extension isn't enough, but I'm not sure that's true. Can you point me in the right direction again?
|
|
|
Post by Telesphoreo on Jun 27, 2020 4:49:39 GMT
OK, now that's done I just need to take the TotalFreedomMod folder and turn it into TotalFreedomMod.jar. I've been told that just changing the file extension isn't enough, but I'm not sure that's true. Can you point me in the right direction again? In Terminal (inside the TFM folder) run: mvn clean package
|
|
Gommeh
Veteran Member
dammit ryan and rylie
Posts: 2,744
| Likes: 778
|
Post by Gommeh on Jun 27, 2020 4:53:22 GMT
OK, now that's done I just need to take the TotalFreedomMod folder and turn it into TotalFreedomMod.jar. I've been told that just changing the file extension isn't enough, but I'm not sure that's true. Can you point me in the right direction again? In Terminal (inside the TFM folder) run: mvn clean package Ran that and I got these error messages: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project TotalFreedomMod: Compilation failure: Compilation failure: [ERROR] /Users/georgeomalley/IdeaProjects/TotalFreedomMod/src/main/java/me/totalfreedom/totalfreedommod/shop/Shop.java:[4,38] package com.vexsoftware.votifier.model does not exist [ERROR] /Users/georgeomalley/IdeaProjects/TotalFreedomMod/src/main/java/me/totalfreedom/totalfreedommod/shop/Shop.java:[5,38] package com.vexsoftware.votifier.model does not exist [ERROR] /Users/georgeomalley/IdeaProjects/TotalFreedomMod/src/main/java/me/totalfreedom/totalfreedommod/shop/Shop.java:[400,30] cannot find symbol [ERROR] symbol: class VotifierEvent [ERROR] location: class me.totalfreedom.totalfreedommod.shop.Shop [ERROR] /Users/georgeomalley/IdeaProjects/TotalFreedomMod/src/main/java/me/totalfreedom/totalfreedommod/command/Command_reactionbar.java:[3,38] package com.connorlinfoot.actionbarapi does not exist
|
|
|
Post by Telesphoreo on Jun 27, 2020 4:59:12 GMT
You're missing Votifier from your pom.xml
You'll need to add it as a dependency.
|
|
Gommeh
Veteran Member
dammit ryan and rylie
Posts: 2,744
| Likes: 778
|
Post by Gommeh on Jun 27, 2020 5:04:05 GMT
You're missing Votifier from your pom.xml You'll need to add it as a dependency. OK, where do I find the information I need to do that? as I said, I'm not very familiar with Maven lol
|
|
|
Post by Telesphoreo on Jun 27, 2020 5:09:09 GMT
You're missing Votifier from your pom.xml You'll need to add it as a dependency. OK, where do I find the information I need to do that? as I said, I'm not very familiar with Maven lol My TFM doesn't have the shop so it's not in the pom.xml Add these to your dependencies <dependency>
<groupId>com.github.vexsoftware</groupId>
<artifactId>votifier</artifactId>
<version>v1.9</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.github.ConnorLinfoot</groupId>
<artifactId>ActionBarAPI</artifactId>
<version>5b2d642d3d</version>
<scope>provided</scope>
</dependency>
|
|
Gommeh
Veteran Member
dammit ryan and rylie
Posts: 2,744
| Likes: 778
|
Post by Gommeh on Jun 27, 2020 5:15:33 GMT
OK, where do I find the information I need to do that? as I said, I'm not very familiar with Maven lol My TFM doesn't have the shop so it's not in the pom.xml Add these to your dependencies <snip> OK, now I'm getting this error message: [ERROR] /Users/georgeomalley/IdeaProjects/TotalFreedomMod/src/main/java/me/totalfreedom/totalfreedommod/world/WorldRestrictions.java:[43,59] package net.goldtreeservers.worldguardextraflags.flags does not exist [ERROR] /Users/georgeomalley/IdeaProjects/TotalFreedomMod/src/main/java/me/totalfreedom/totalfreedommod/command/Command_makeopregion.java:[36,59] package net.goldtreeservers.worldguardextraflags.flags does not exist
|
|
|
Post by Telesphoreo on Jun 27, 2020 5:20:29 GMT
My TFM doesn't have the shop so it's not in the pom.xml Add these to your dependencies <snip> OK, now I'm getting this error message: [ERROR] /Users/georgeomalley/IdeaProjects/TotalFreedomMod/src/main/java/me/totalfreedom/totalfreedommod/world/WorldRestrictions.java:[43,59] package net.goldtreeservers.worldguardextraflags.flags does not exist [ERROR] /Users/georgeomalley/IdeaProjects/TotalFreedomMod/src/main/java/me/totalfreedom/totalfreedommod/command/Command_makeopregion.java:[36,59] package net.goldtreeservers.worldguardextraflags.flags does not exist oh bruh you need this one too
<dependency>
<groupId>net.goldtreeservers</groupId>
<artifactId>worldguardextraflags</artifactId>
<version>4.0.0</version>
<scope>provided</scope>
</dependency>
|
|
Gommeh
Veteran Member
dammit ryan and rylie
Posts: 2,744
| Likes: 778
|
Post by Gommeh on Jun 27, 2020 5:24:41 GMT
Did that, rebuilt it and ran that command. Now what? I see a "TotalFreedomMod.jar" file in the folder; is this the file that I should put on my server?
|
|
|
Post by Telesphoreo on Jun 27, 2020 5:34:44 GMT
Did that, rebuilt it and ran that command. Now what? I see a "TotalFreedomMod.jar" file in the folder; is this the file that I should put on my server? <snip> yes
|
|
Gommeh
Veteran Member
dammit ryan and rylie
Posts: 2,744
| Likes: 778
|
Post by Gommeh on Jun 27, 2020 5:43:47 GMT
OK, now the command I added into the commands folder isn't showing up on GommehFreedom. Why could that be?
|
|
fionn
Club 4000 Member
Admin Officer
elmon sucks
Posts: 6,157
| Likes: 4,775
|
Post by fionn on Jun 27, 2020 15:46:36 GMT
OK, now the command I added into the commands folder isn't showing up on GommehFreedom. Why could that be? Did you add @commandpermissions and @commandparameters above class? Are you extending FreedomCommand?
|
|
Hockey
Club 4000 Member
Posts: 4,537
|
Post by Hockey on Jun 27, 2020 19:02:54 GMT
I transitioned from Maven to gradle over the past few months. So much cleaner, easier to understand, and maintain. (and it works will all maven central repos anyways)
just thought I'd share
|
|