Solved

POM Tags

Posted on 2014-03-17
5
172 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 21

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 21

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 21

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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:

696 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