#ApacheMaven issue (intelliJ)

1 messages · Page 1 of 1 (latest)

visual sinew
#

Hi, Im having some issues following my prof’s slides.
Basically I need to create a new project using Maven on Intellij. The guidelines of my prof just say to select Maven from the list and then create the project.

I tried that, but no META-INF folder is created and no persistence files.

So I tried to create a non general Mavel project with ‘Maven Archetype’ and I chose the first archetype option, archetype-archetype. Now the issue is that the pom.xml file is different. With this method I have the META-INF folder but persistence.xml is also different lmao

vivid sequoiaBOT
#

<@&987246584574140416> please have a look, thanks.

vivid sequoiaBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

visual sinew
#

I have no idea what to do tbh. Google didn’t help so fair either.

#

This is what my prof shows in the guidelines^

#

This is what I see in intelliJ 💀

pine osprey
#

i make Maven projects using New Project -> and then select Maven in the right under Build System

#

idk if thats what youre looking for

visual sinew
#

Or so i think

pine osprey
#

its not what you show in the screenshot

#

i mean this

visual sinew
#

Thats the first option

#

It doesnt create the META-inf folder

#

For some reasons 😩

#

I need to edit that so that I follow the guidelines

#

Otherwise I can’t do what they do

visual sinew
# visual sinew

When I create it with Maven Archetype the META-INF folder is created but the persistence.xml file is wrong

vapid plover
visual sinew
#

Yeah I realized late actually lol

#

Have to check if it works correctly, though

balmy wharf
#

you can configure what goes in the manifest file via the pom.xml

#

the persistence.xml is for jpa stuff which I've never configured or touched, what is your task exactly?

visual sinew
#

Thanks yall, solved 🙂