Solved

POM Tags

Posted on 2014-03-17
5
165 Views
Last Modified: 2014-03-18
Hi,

can somebody tell me about POM.xml syntax. Here is the one part of the tag below

  "is it all the jars has to be available below url... Please clarify



<repositories>
        <repository>
            <id>sattire.archiva.sattire</id>
            <name>Sattrire Release Repository</name>
            <url>http://repository.sattire.com/archiva/repository/sattire</url>
        </repository>
    </repositories>

Open in new window


what is goal tag and Phase tag mean...  Please clarify


 <plugin>
                <groupId>com.ning.maven.plugins</groupId>
                <artifactId>maven-duplicate-finder-plugin</artifactId>
                <version>1.0.5</version>
                <executions>
                    <execution>
                        <phase>verify</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>

Open in new window



Thanks
0
Comment
Question by:roy_sanu
  • 3
  • 2
5 Comments
 
LVL 20

Expert Comment

by:Amitkumar Panchal
ID: 39934163
You should refer POM reference at https://maven.apache.org/pom.html
0
 

Author Comment

by:roy_sanu
ID: 39934649
i need  some  specific answer to this why this url is required........ and what scenerio
one need this...........

<repositories>
        <repository>
            <id>sattire.archiva.sattire</id>
            <name>Sattrire Release Repository</name>
            <url>http://repository.sattire.com/archiva/repository/sattire</url>
        </repository>
    </repositories>

Open in new window

0
 
LVL 20

Accepted Solution

by:
Amitkumar Panchal earned 300 total points
ID: 39934799
By default, Maven download all dependencies from Maven Central Repository. But, some libraries are missing in central repository, and only available in remote repository like the one you gave in the example.

<repositories>
        <repository>
            <id>sattire.archiva.sattire</id>
            <name>Sattrire Release Repository</name>
            <url>http://repository.sattire.com/archiva/repository/sattire</url>
        </repository>
    </repositories>

Open in new window

0
 

Author Comment

by:roy_sanu
ID: 39934864
Thank you  for the one part  

when we will be needing this like goal tag... what is the need of goal

<plugin>
                <groupId>com.ning.maven.plugins</groupId>
                <artifactId>maven-duplicate-finder-plugin</artifactId>
                <version>1.0.5</version>
                <executions>
                    <execution>
                        <phase>verify</phase>
                        <goals>
                            <goal>check</goal>
                        </goals>
                    </execution>
                </executions>
            </plugin>
0
 
LVL 20

Assisted Solution

by:Amitkumar Panchal
Amitkumar Panchal earned 300 total points
ID: 39934922
This is related to plug-ins in maven. Refer http://maven.apache.org/guides/mini/guide-configuring-plugins.html
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers learn about the third conditional statement “else if” and use it in an example program. Then additional information about conditional statements is provided, covering the topic thoroughly. Viewers learn about the third conditional statement …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now