English 中文(简体)
马文学习问题
原标题:Maven Learning Questions
  • 时间:2011-10-01 22:26:27
  •  标签:
  • maven

在单体字体中,V安装了m2e plugin。 我试图理解,你们知道如何把财产名称添加到om档案中?

比如,你们知道哪些艺术品是用的?

<dependency>
        <groupId>org.aspectj</groupId>
        <artifactId>aspectjrt</artifactId>
        <version>${org.aspectj-version}</version>                   
</dependency>   

为什么这里在文物中说一面?

<dependency>
        <groupId>javax.inject</groupId>
        <artifactId>javax.inject</artifactId>
        <version>1</version>
    </dependency>

and here same as group id ?? is there any pattern?

说我的项目失踪

org.hibernate.Query;
org.hibernate.Session;
org.hibernate.SessionFactory;

并且,在册子里,我有记分-3.6.0.Final.jar,其中有效包含所有的内容<>除外。 页: 1

你们是否写了这些书?

我要指出,对于学生项目,我必须坚持人工增加数以百计的图书馆......否则我将不努力学习:

最佳回答
  1. You know what groupId:artifactId:version (we call these coordinates) to use by which artifact you want. Most often, you find out which artifact you want by reading it in the project s documentation, especially for projects with a large number of artifacts, some of which might contain optional addons.
  2. aspectjrt is short for AspectJ RunTime.
  3. GroupId and artifactId are defined by the creators of the library in question. There s no universal pattern because there s no one central coordinator. There are some conventions that have evolved, though. Generally, the groupId is at least partly the reversed domain name, like the first part of a Java package name is: org.hibernate, org.apache, org.springframework... The artifactId distinctly identifies the role of that particular artifact in the group it belongs to, like spring-core, spring-tx, spring-jms, etc. You can get an idea of what groupId s and artifactId s look like by searching Maven Central for some of the libraries you know.
  4. If you re missing org.hibernate.SessionFactory, then you don t have hibernate-core-3.6.0.Final on your classpath. If you have that on your classpath, then you re not missing the SessionFactory class. Those three classes you mentioned are most definitely in that artifact, as you can see from searching for the class in Central. If you still doubt, do a jar -tf hibernate-core-3.6.0.Final.jar and check out the contents yourself. I promise it has those classes.
问题回答

暂无回答




相关问题
JavaFX with Maven [closed]

I recently started a JavaFX project, and I d like to use Maven as my compiler/deployment tool. Is there a good tutorial or plugin to integrate JavaFX and Maven?

How to upload jar to respository?

I have jar files that cannot be found on Maven Central repository. I would like to add the jar so I can just include extra tag in my pom.xml file and other developer can use the jar. What are the ...

Debug Maven project in Eclipse with third party sources

I am currently developing a maven project in eclipse. The m2eclipse plugin works beautifully. It even works out of the box with debugging. But when I am debugging open source third party libarries. ...

Could Free Pascal benefit of something like Apache Maven?

Apache Maven is a very popular build and dependency management tool in the Java open source ecosphere. I did some tests to find out if it can handle compiled Free Pascal / Delphi units and found it ...

Run a single test method with maven

I know you can run all the tests in a certain class using: mvn test -Dtest=classname But I want to run an individual method and -Dtest=classname.methodname doesn t seem to work.

Uploading a directory using sftp with Maven

How can I upload a directory - Eclipse update site - using sftp with public key authentication in Maven? For background information: I m using tycho to build an Eclipse plugin and want to get the ...

What are solid NMaven or build servers for .NET alternatives?

Maven had a long history and is well supported in the Java world. NMaven has received a less successful start and has never become as popular in the C#/.NET world as its larger cousin was in the Java ...

热门标签