Maven and pom.xml

I am using m2eclipse and trying to learn some tapestries. I am trying to update my project to extract some resources from maven. (Or at least I think I'm trying to do).

Here is part of my pom.xml:

<dependency> <groupId>org.apache.tapestry</groupId> <artifactId>tapestry-hibernate</artifactId> <version>${tapestry-release-version}</version> </dependency> 

The artifact identifier used to create the tapestries, but the tutorial I'm using said to change it to a tapestry sleep mode so that I can use sleep mode. I modified pom.xml and saved it, but I'm not sure which command exactly I should execute for sure. I tried to use some of the plugin commands, such as "update dependencies", but I still do not have the hibernate.cfg.xml file, which I think should have been, right?

+4
source share
2 answers

I modified pom.xml and saved it, but I'm not sure which command exactly I should execute for sure.

m2eclipse should install new dependencies (and load them if necessary) after you modify pom.xml without any necessary action.

I tried to use some of the plugin commands, such as "update dependencies", but I still do not have the hibernate.cfg.xml file, which I think should have been, right?

No, hibernate.cfg.xml will not be automatically generated just because you changed the dependency (you can create hibernate.cfg.xml with hibernate3-maven-plugin , but I don’t think you are using it, and it’s very difficult to use).

+3
source

You will need both dependencies: tapestry-core and tapestry-sleep mode. On the other hand, tapestry-sleep mode decantes on the tapestry, so that the latter automatically turns on Maven. tapestry-hibernate does not create hibernate.cfg.xml for you.

+1
source

All Articles