Giter Club home page Giter Club logo

Comments (13)

HelgeStenstrom avatar HelgeStenstrom commented on June 5, 2024 3

Thank for the work!

from xr3player.

HelgeStenstrom avatar HelgeStenstrom commented on June 5, 2024 2

The image shows the directory and package structure when the project is imported to IntelliJ.
The directory structure looks good.

src is marked as Sources root. It shouldn't.
src/main/java should be the sources root. Then com will be the root package. This change will change the package line of all java files, from package main.java.com.goxr3plus into package com.goxr3plus.
I also recommend having a src/test/java directory marked as Test Sources Root.
And src/main/resources marked as Resources root. The folders inside the resources hierarchy aren't packages, but they look like packages now.

Skärmklipp 2019-04-21 21 49 23

from xr3player.

HelgeStenstrom avatar HelgeStenstrom commented on June 5, 2024 1

I'm not advanced with JavaFX, but I have made a couple of programs. The largest does some 3D visualization, nothing fancy. That one runs JDK 1.8.
I have heard about Spring, but I don't know what it can do. There is a dependency injection part of it, which I'm interested in learning about. But dependency injection doesn't need a framework.

from xr3player.

goxr3plus avatar goxr3plus commented on June 5, 2024

How should i change it , like Maven standard directory layout is suggesting that pattern so Maven works correctly by default, correctly me when i am wrong :)

from xr3player.

HelgeStenstrom avatar HelgeStenstrom commented on June 5, 2024

Your directory structure is correct. But main.java should not be a part of the package name path. The root package should be com, placed in the directory src/main/java.

from xr3player.

goxr3plus avatar goxr3plus commented on June 5, 2024

Thank you for the recommendation, isn't there a setting in the IntelliJ capable of doing it. Let me check again how it looks like in IntelliJ in my machine.

If i am wrong i would like your solution.

from xr3player.

goxr3plus avatar goxr3plus commented on June 5, 2024

And yes we need some tests too :). How advanced you are with JavaFX :)?

Collaborating in XR3PLAYER you will become pro in JavaFX :)

I am thinking of adding Spring, have you heard about Spring :)?

from xr3player.

HelgeStenstrom avatar HelgeStenstrom commented on June 5, 2024

Here are a couple of links for the standard Maven directory structure.
https://www.baeldung.com/maven-directory-structure
https://maven.apache.org/guides/introduction/introduction-to-the-standard-directory-layout.html

Please remove /test from .gitignore. src/test is the standard place for unit tests, according to the above descriptions.
If you have src/tests/java marked as test sources root in IntelliJ, and you are reading a normal production code class, you can do Code --> Generate --> Test..., and a test class will be created for you, in a file below the test root, with the same package as the one you started from. Rather useful.

from xr3player.

goxr3plus avatar goxr3plus commented on June 5, 2024

Thank you very much for the linka, i am reading them

from xr3player.

goxr3plus avatar goxr3plus commented on June 5, 2024

Please i want you to learn hoe to do pull requests, it's very simple, you fork the repository, do your commits, then come into my repository and there is an option which is called Pull Requests... check on the web hoe to do pull requests in Github... in that way you can contribute as much as you want and maybe i give you full access to XR3Player repo so you can directly commit on it, intead of pull requests but firstly i need to see your code experience through Pull Requests :)

from xr3player.

goxr3plus avatar goxr3plus commented on June 5, 2024

How should i change pom.xml to make it correct ? Until now i have changed this :

	<build>
		<finalName>XR3Player</finalName>
		<sourceDirectory>src/main/java</sourceDirectory>
              .....

from xr3player.

goxr3plus avatar goxr3plus commented on June 5, 2024

@HelgeStenstrom Thank you very much i fixed it in this commit d867eaf

Changed 210 files lol . Of course using replace all tool from intelliJ and modifying pom.xml .

I am impressed by your knowledge :)

from xr3player.

goxr3plus avatar goxr3plus commented on June 5, 2024

YES boy :)

from xr3player.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.