#Turning a normal project into a Maven project (error?)
91 messages · Page 1 of 1 (latest)
⌛ This post has been reserved for your question.
Hey @jolly sparrow! Please use
/closeor theClose Postbutton above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.
Can you show the full pom.xml?
What happens when running mvn compile in the project?
it's fine
where is that
wait isi this normal?
getting distracted a bity
Running my old main works
you don't need the bin directory with Maven
you also had it before but it was used to store compiled files
This?
Can you try right-clicking on the project and selecting Maven>Update Project?
After doing that, it should reload the project, load everything from the pom.xml
old post says that they changed HTTPS to HTTP and it removed the error
?
You still didn't show me your pom.xml so...
oh sorry
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>cc.cyberdark</groupId>
<artifactId>console-coat-craft</artifactId>
<version>1.1.0</version>
<name>ConsoleCoatCraft</name>
<build>
<sourceDirectory>src</sourceDirectory>
<resources>
<resource>
<directory>src</directory>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>17</release>
</configuration>
</plugin>
</plugins>
</build>
</project>
ok
changing it to http does remopve the error for me but I am not sure if that's what I am supposed to do
tbh that URL doesn't really matter much
What?
apparently firewall doesnt like xml downloading stuff
At that point, you could as well just restart Eclipse and it would probably work as well
ah yeah that can happen
I just want my project to work
if the schema URLs are HTTP instead of HTTPs, that is ok
Te run configurations here are if you want to essentially execute mvn commands
UM
I just want to run main xd
You probably don't need the Maven build...
then go to your main and run that
I am converting my project to maven
yeah you can still run your class like previously
just open the class you want to run and run it
Yeah but did these commits include bin?
does it have stuff that shjouldnt be on github?
because these class files are generated binary files that shouldn't be committed to git repository
the same also applies to the target directory you now have with Maven
shouldn't as in it wont work or shouldnt as in privacy stuff?
shouldn't as in it makes some stuff annoying (merge conflicts) and it results in having huge git repositories
What's the gitignore I should run?
For Maven, add the target directory to the gitignore
Cool
And what does maven build do?
it runs some Maven command
What's the end result of maven stuff
?
You can use Maven to download dependencies
you can configure it to compile or deploy your project in a certain way
As I said, that just runs some Maven command you tell it to run
I'll do some youtube on that
and I also said you probably don't need it
unless you actually want to run a specific Maven command
If you are finished with your post, please close it.
If you are not, please ignore this message.
Note that you will not be able to send further messages here after this post have been closed but you will be able to create new posts.
