Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to create a personalized project by matsim-example-code #1169

Open
applibres opened this issue Oct 7, 2024 · 1 comment
Open

How to create a personalized project by matsim-example-code #1169

applibres opened this issue Oct 7, 2024 · 1 comment

Comments

@applibres
Copy link

Dear @Janekdererste and MATSim friends:

I want to create a personalized version of electric vehicle (ev) contrib.
I know that I can use the matsim-example-project, however I can not configure the POM.xml file properly.

Let me explain that I did:

  1. Clone the matsim-example-project and follow the instructions given.
  2. Copy the ev source code inside the project (image attached)
Screenshot 2024-10-03 at 11 29 14
  1. I have copied ev-contrib dependencies into pom.xml (pom attached as txt)

pom.xml.txt

  1. In Eclipse , go to Pom.xml -> Run As --> Maven Install

After that I got a long list of errors related to dependencies.

Am I on the right path?
Please, could you suggest what I can do ?

Platform used: Eclipse + java 22.0.1

Thanks for your time.

Regards.

@Janekdererste
Copy link
Member

I think copying all the code from the ev contrib into your project is not a good idea in general. Most often it is sufficient to point to the contrib as a dependency, which you do because you declare a dependency on the ev contrib in your pom.xml on line 126.

Then you can add your custom functionality on top of that.

I also noticed, that you have some dependecies in your pom.xml marked with "ev contrib dependencies". Dependencies in maven are transient, which means, that if you declare a dependency on the ev contrib, all dependencies of that module are automatically available in your project as well.

Maybe it would be helpful to describe what you want to achieve, and then we can give advice on how to proceed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants