author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Mon, 01 Apr 2013 08:51:43 +0300 | |
changeset 1482 | 1a012d9fe613 |
parent 1465 | 5f87a35ab2b8 |
child 1512 | db0fedd5662e |
permissions | -rw-r--r-- |
1395
afa2a45a49fa
Search for maven artifact by Java package or class name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
1 |
.. -*- coding: utf-8; -*- |
afa2a45a49fa
Search for maven artifact by Java package or class name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
2 |
.. include:: HEADER.rst |
afa2a45a49fa
Search for maven artifact by Java package or class name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
3 |
|
afa2a45a49fa
Search for maven artifact by Java package or class name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
4 |
======== |
afa2a45a49fa
Search for maven artifact by Java package or class name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
5 |
Maven. |
afa2a45a49fa
Search for maven artifact by Java package or class name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
6 |
======== |
afa2a45a49fa
Search for maven artifact by Java package or class name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
7 |
.. contents:: |
afa2a45a49fa
Search for maven artifact by Java package or class name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
8 |
|
1396
f5ac2d7c9317
Maven tutorial. Generate simple project.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1395
diff
changeset
|
9 |
Maven tutorial. |
f5ac2d7c9317
Maven tutorial. Generate simple project.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1395
diff
changeset
|
10 |
=============== |
f5ac2d7c9317
Maven tutorial. Generate simple project.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1395
diff
changeset
|
11 |
|
f5ac2d7c9317
Maven tutorial. Generate simple project.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1395
diff
changeset
|
12 |
* http://maven.apache.org/guides/getting-started/maven-in-five-minutes.html |
1450
e39ad9b6224a
http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1447
diff
changeset
|
13 |
* http://maven.apache.org/guides/introduction/introduction-to-the-lifecycle.html |
1396
f5ac2d7c9317
Maven tutorial. Generate simple project.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1395
diff
changeset
|
14 |
|
1439 | 15 |
Maven FAQ. |
16 |
========== |
|
17 |
||
18 |
* http://maven.apache.org/general.html |
|
19 |
||
1440 | 20 |
Maven plugins. |
21 |
============== |
|
22 |
||
23 |
* http://maven.apache.org/plugins/ |
|
24 |
||
1396
f5ac2d7c9317
Maven tutorial. Generate simple project.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1395
diff
changeset
|
25 |
Generate simple project. |
f5ac2d7c9317
Maven tutorial. Generate simple project.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1395
diff
changeset
|
26 |
======================== |
f5ac2d7c9317
Maven tutorial. Generate simple project.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1395
diff
changeset
|
27 |
:: |
f5ac2d7c9317
Maven tutorial. Generate simple project.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1395
diff
changeset
|
28 |
|
f5ac2d7c9317
Maven tutorial. Generate simple project.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1395
diff
changeset
|
29 |
$ mvn archetype:generate -DgroupId=com.mycompany.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false |
f5ac2d7c9317
Maven tutorial. Generate simple project.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1395
diff
changeset
|
30 |
|
1395
afa2a45a49fa
Search for maven artifact by Java package or class name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
31 |
Search for maven artifact by Java package or class name. |
afa2a45a49fa
Search for maven artifact by Java package or class name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
32 |
======================================================== |
afa2a45a49fa
Search for maven artifact by Java package or class name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
33 |
|
afa2a45a49fa
Search for maven artifact by Java package or class name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
34 |
* https://repository.sonatype.org/ |
1445
4920ffd155a4
http://search.maven.org/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1440
diff
changeset
|
35 |
* http://search.maven.org/ |
1395
afa2a45a49fa
Search for maven artifact by Java package or class name.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff
changeset
|
36 |
|
1397
d96348dbf006
Get help on Maven plug-in.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1396
diff
changeset
|
37 |
Get help on Maven plug-in. |
d96348dbf006
Get help on Maven plug-in.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1396
diff
changeset
|
38 |
========================== |
d96348dbf006
Get help on Maven plug-in.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1396
diff
changeset
|
39 |
:: |
d96348dbf006
Get help on Maven plug-in.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1396
diff
changeset
|
40 |
|
d96348dbf006
Get help on Maven plug-in.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1396
diff
changeset
|
41 |
$ mvn help:describe -DartifactId=maven-war-plugin -DgroupId=org.apache.maven.plugins |
d96348dbf006
Get help on Maven plug-in.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1396
diff
changeset
|
42 |
$ mvn help:describe -Dcmd=dependency:resolve -Ddetail |
d96348dbf006
Get help on Maven plug-in.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1396
diff
changeset
|
43 |
|
d96348dbf006
Get help on Maven plug-in.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1396
diff
changeset
|
44 |
$ mvn dependency:tree |
d96348dbf006
Get help on Maven plug-in.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1396
diff
changeset
|
45 |
$ mvn dependency:list |
d96348dbf006
Get help on Maven plug-in.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1396
diff
changeset
|
46 |
$ mvn dependency:resolve |
1421
fc5af9009abf
mvn dependency:resolve-plugins
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1414
diff
changeset
|
47 |
$ mvn dependency:resolve-plugins |
1397
d96348dbf006
Get help on Maven plug-in.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1396
diff
changeset
|
48 |
|
d96348dbf006
Get help on Maven plug-in.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1396
diff
changeset
|
49 |
$ mvn -X ... |
d96348dbf006
Get help on Maven plug-in.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1396
diff
changeset
|
50 |
|
1465
5f87a35ab2b8
Reason for inclusion or omitting dependencies.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1454
diff
changeset
|
51 |
Reason for inclusion or omitting dependencies:: |
5f87a35ab2b8
Reason for inclusion or omitting dependencies.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1454
diff
changeset
|
52 |
|
5f87a35ab2b8
Reason for inclusion or omitting dependencies.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1454
diff
changeset
|
53 |
$ mvn dependency:tree -Dverbose=true |
5f87a35ab2b8
Reason for inclusion or omitting dependencies.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1454
diff
changeset
|
54 |
|
1412
77b08d4c703b
What actual code processed by Maven.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1398
diff
changeset
|
55 |
What actual code processed by Maven:: |
77b08d4c703b
What actual code processed by Maven.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1398
diff
changeset
|
56 |
|
1414
a1792156210d
mvn help:effective-settings
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1413
diff
changeset
|
57 |
$ mvn help:effective-settings |
1412
77b08d4c703b
What actual code processed by Maven.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1398
diff
changeset
|
58 |
$ mvn help:effective-pom |
77b08d4c703b
What actual code processed by Maven.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1398
diff
changeset
|
59 |
|
1398
c96c3d6857ea
Run Java main from Maven.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1397
diff
changeset
|
60 |
Run Java main from Maven. |
c96c3d6857ea
Run Java main from Maven.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1397
diff
changeset
|
61 |
========================= |
c96c3d6857ea
Run Java main from Maven.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1397
diff
changeset
|
62 |
:: |
c96c3d6857ea
Run Java main from Maven.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1397
diff
changeset
|
63 |
|
c96c3d6857ea
Run Java main from Maven.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1397
diff
changeset
|
64 |
mvn exec:java -Dexec.mainClass="com.vineetmanohar.module.Main" -Dexec.args="arg0 arg1 arg2" |
c96c3d6857ea
Run Java main from Maven.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1397
diff
changeset
|
65 |
|
1446
6c935c71520e
How to run single unit test?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1445
diff
changeset
|
66 |
How to run single unit test? |
6c935c71520e
How to run single unit test?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1445
diff
changeset
|
67 |
============================ |
6c935c71520e
How to run single unit test?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1445
diff
changeset
|
68 |
:: |
6c935c71520e
How to run single unit test?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1445
diff
changeset
|
69 |
|
6c935c71520e
How to run single unit test?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1445
diff
changeset
|
70 |
$ mvn test -Dtest=SeriousComponentTest |
6c935c71520e
How to run single unit test?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1445
diff
changeset
|
71 |
|
1413
07f163d43116
How do I skip the tests during the default lifecycle?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1412
diff
changeset
|
72 |
How do I skip the tests during the default lifecycle? |
07f163d43116
How do I skip the tests during the default lifecycle?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1412
diff
changeset
|
73 |
===================================================== |
07f163d43116
How do I skip the tests during the default lifecycle?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1412
diff
changeset
|
74 |
:: |
07f163d43116
How do I skip the tests during the default lifecycle?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1412
diff
changeset
|
75 |
|
07f163d43116
How do I skip the tests during the default lifecycle?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1412
diff
changeset
|
76 |
$ mvn -DskipTests package |
07f163d43116
How do I skip the tests during the default lifecycle?
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1412
diff
changeset
|
77 |
|
1454
1c80f90d5a44
Download all external dependencies sources and javadocs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1450
diff
changeset
|
78 |
Download all external dependencies sources and javadocs. |
1c80f90d5a44
Download all external dependencies sources and javadocs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1450
diff
changeset
|
79 |
======================================================== |
1c80f90d5a44
Download all external dependencies sources and javadocs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1450
diff
changeset
|
80 |
:: |
1c80f90d5a44
Download all external dependencies sources and javadocs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1450
diff
changeset
|
81 |
|
1c80f90d5a44
Download all external dependencies sources and javadocs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1450
diff
changeset
|
82 |
mvn dependency:resolve -Dclassifier=javadoc |
1c80f90d5a44
Download all external dependencies sources and javadocs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1450
diff
changeset
|
83 |
mvn dependency:resolve -Dclassifier=sources |
1c80f90d5a44
Download all external dependencies sources and javadocs.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1450
diff
changeset
|
84 |
|
1447
d4399aacf09e
Run Ant from Maven.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1446
diff
changeset
|
85 |
Run Ant from Maven. |
d4399aacf09e
Run Ant from Maven.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1446
diff
changeset
|
86 |
=================== |
d4399aacf09e
Run Ant from Maven.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1446
diff
changeset
|
87 |
|
d4399aacf09e
Run Ant from Maven.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1446
diff
changeset
|
88 |
* https://support.sonatype.com/entries/20736282-executing-an-external-ant-script-in-a-maven-build |
d4399aacf09e
Run Ant from Maven.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1446
diff
changeset
|
89 |
* https://support.sonatype.com/entries/20723081-running-an-inline-ant-script-in-a-maven-build |
d4399aacf09e
Run Ant from Maven.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1446
diff
changeset
|
90 |
* https://support.sonatype.com/entries/20744068-writing-a-maven-plugin-with-ant |
d4399aacf09e
Run Ant from Maven.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1446
diff
changeset
|
91 |