The dependencies tag lists the set of dependencies for your project. These
are downloaded from the Maven central repository. For more info take a look
at the section in the Maven quickstart guide (highly recommended if you are
new to Maven):
http://maven.apache.org/guides/getting-started/index.html#How%20do%20I%20use%20external%20dependencies
?

All dependencies are stored in repositories. You have one locally into which
Maven will download the dependencies you need. Maven obtains the
dependencies from remote repositories, such as http://repo1.maven.org/maven2.
If you open it up in a web browser you will see it contains a set of
directories. Navigate down them and you eventually get to jar and pom files.
The path is effectively the group id. So if I have a dependency of the form:

<dependency>
 <groupId>com.foo</groupId>
 <artifactId>bar</artifactId>
 <version>1.0</version>
</dependency>

Then maven will look in the remote repository for /com/foo/bar/1.0/bar-
1.0.jar. The groupId is just a way of categorising dependencies.

The properties ${web.framework} and ${appfuse.version} can be found at the
bottom of your top level pom.xml file.

Mike.

On 3/27/07, Fan <[EMAIL PROTECTED]> wrote:


Can anyone tell me what does <dependencies> tag mean in maven ?

in the following example from pom.xml ,
1)what does <groupid>mean ?
2)where & how to look up the  ${web.framework} or ${appfuse.version} ?

       <dependency>
           <groupId>org.appfuse</groupId>
           <artifactId>appfuse-${web.framework}</artifactId>
           <version>${appfuse.version}</version>
           <type>war</type>
       </dependency>



Michael Horwitz wrote:
>
> The easiest way is to add an explicit dependency in your own pom on
> commons
> collections which overrides any inherited dependencies. Adding this
should
> solve the problem:
>
>       <dependency>
>         <groupId>commons-collections</groupId>
>         <artifactId>commons-collections</artifactId>
>         <version>3.2</version>
>       </dependency>
>
> Mike.
>
> On 3/27/07, wnqq <[EMAIL PROTECTED]> wrote:
>>
>>
>> environment: appfuse v2m4 + struts basic archetype
>>
>> My appfuse application originally worked properly until I added the
>> following dependency to pom.xml:
>>
>>    <dependencies>
>>        ......
>>        <dependency>
>>                <groupId>jasperreports</groupId>
>>                <artifactId>jasperreports</artifactId>
>>                <version>1.3.1</version>
>>        </dependency>
>>    </dependencies>
>>
>> Once the above jasperreports dependency is added, executing "mvn
>> integration-test" failed with the following error messages:
>>
>> [INFO] [talledLocalContainer] [myproject] ERROR [main]
>> 0-SNAPSHOT].listenerStart(3768) | Exception sending context initi
>> alized event to listener instance of class
>> net.sf.navigator.menu.MenuContextListener
>> [INFO] [talledLocalContainer] java.lang.NoClassDefFoundError:
>> org/apache/commons/collections/map/LinkedMap
>> [INFO] [talledLocalContainer]   at
>> net.sf.navigator.menu.MenuRepository.<init>(MenuRepository.java:38)
>> [INFO] [talledLocalContainer]   at
>> net.sf.navigator.menu.MenuContextListener.contextInitialized(
>> MenuContextListener.java
>> :57)
>>
>> I surfed the web and found out a related discussion at:
>> http://www.nabble.com/(no-subject)-t1718406.html
>> which says:
>> "You need to upgrade to the latest release of commons-collections.
>> Struts
>> Menu uses 3.0."
>>
>> So, now my question is:
>> How to configure pom.xml to avoid the dependency conflict of
>> commons-collections so that I can use JasperReports?
>>
>> Thanks in advance.
>> --
>> View this message in context:
>>
http://www.nabble.com/struts-menu-dependency-conflict-of-commons-collections-tf3472250s2369.html#a9689867
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>

--
View this message in context:
http://www.nabble.com/struts-menu-dependency-conflict-of-commons-collections-tf3472250s2369.html#a9695033
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to