Issue Details (XML | Word | Printable)

Key: MAVEN-1533
Type: Bug Bug
Status: Reopened Reopened
Priority: Critical Critical
Assignee: Unassigned
Reporter: Martin Jaeger
Votes: 1
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Maven 1

Project properties inherited to plugins

Created: 13/Dec/04 12:29 PM   Updated: 13/Apr/06 05:52 PM
Component/s: inheritance
Affects Version/s: 1.0.2
Fix Version/s: None

Time Tracking:
Not Specified

Environment:
Win XP & Solaris 8
Maven 1.0.2
Issue Links:
Duplicate
 


 Description  « Hide

In my project.properties the

maven.jar.override = on

is setted and the library override:

maven.jar.commons-lang = ${basedir}/lib/commons-lang-2.0.jar

is setted.

Now the Artifact Plugin tries to get the commons-lang-2.0.jar from the local plugin libraries and fails.



Brett Porter added a comment - 13/Dec/04 02:56 PM

this is the correct behaviour.

You need to either:
a) add the property to project.properties inside the plugin (not recommended)
b) put the property in ~/build.properties (affects all projects and plugins)
c) add the property to the command line with -D

What is your reason for doing this? If you are just manually downloading JARs, perhaps it is better to put them in the local repository directly?


Brett Porter added a comment - 23/Dec/04 04:41 PM

regression


Geoffrey De Smet added a comment - 27/Dec/04 06:29 AM

project.xml:
<dependency>
<id>commons-collections</id>
<version>???</version>
<properties>
<war.bundle>true</war.bundle>
</properties>
</dependency>

project.properties:
maven.jar.commons-logging = ${basedir}/lib/commons-logging.jar

I get this error because the plugin also tries to use it:

Het bouwen kan niet doorgaan, omdat de volgende afhankelijkheden niet achterhaald kunnen worden:

commons-logging-1.0.3.jar; path override doesn't exist: C:\Documents and Settings\Geoffrey\.maven\cache\maven-xdoc-plugin-1.8
\lib\commons-logging.jar

Due to legacy reasons it is not possible to use the repository for now for everything, although we understand it's better to use the repository.


Geoffrey De Smet added a comment - 27/Dec/04 06:31 AM

a workaround is to call it
commons-logging-override

this way it's also flagged in the project.xml as evil


Brett Porter added a comment - 03/Jun/05 02:25 AM

see MAVEN-1610 for a test case