You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Fabrice BELLINGARD (JIRA)" <ji...@codehaus.org> on 2005/11/07 15:23:06 UTC
[jira] Created: (MEV-185) commons-logging-1.0.4 POM dependencies not using properly
commons-logging-1.0.4 POM dependencies not using <optional> properly
--------------------------------------------------------------------
Key: MEV-185
URL: http://jira.codehaus.org/browse/MEV-185
Project: Maven Evangelism
Type: Bug
Components: Dependencies
Reporter: Fabrice BELLINGARD
In the following dependency :
<dependency>
<groupId>avalon-framework</groupId>
<artifactId>avalon-framework</artifactId>
<version>4.1.3</version>
<optional/>
</dependency>
"<optional>true</optional>" should be used.
I haven't checked for the other versions of the artifact.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MEV-185) commons-logging-1.0.4 POM dependencies not using properly
Posted by "Fabrice BELLINGARD (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEV-185?page=comments#action_50292 ]
Fabrice BELLINGARD commented on MEV-185:
----------------------------------------
Avalon, Logkit and Log4J are not required when using commons-logging. That's why they need to be set as "optional".
And I read a post from Brett saying that if you want a dependency to be optional, you have to set <optional> tag to "true" (http://www.nabble.com/-m2-are-optional-dependencies-implemented--t396628.html#a1092315).
I figured this out when I wanted to use commons-logging in my web app: I got all the three other JARs put in my WEB-INF/lib whereas I don't need them at all.
Setting <optional> to true would disable the transitivity for those JARs that are not required for commons-logging - and I'm pretty sure that this is what the author of this POM wanted to do but he didn't knew that <optional> had to be set to "true" to make it work.
> commons-logging-1.0.4 POM dependencies not using <optional> properly
> --------------------------------------------------------------------
>
> Key: MEV-185
> URL: http://jira.codehaus.org/browse/MEV-185
> Project: Maven Evangelism
> Type: Bug
> Components: Dependencies
> Reporter: Fabrice BELLINGARD
>
>
> In the following dependency :
> <dependency>
> <groupId>avalon-framework</groupId>
> <artifactId>avalon-framework</artifactId>
> <version>4.1.3</version>
> <optional/>
> </dependency>
> "<optional>true</optional>" should be used.
> I haven't checked for the other versions of the artifact.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MEV-185) commons-logging-1.0.4 POM dependencies not using properly
Posted by "Fabrice BELLINGARD (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEV-185?page=comments#action_50203 ]
Fabrice BELLINGARD commented on MEV-185:
----------------------------------------
And there is the same error for those dependencies:
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.6</version>
<optional/>
</dependency>
<dependency>
<groupId>logkit</groupId>
<artifactId>logkit</artifactId>
<version>1.0.1</version>
<optional/>
</dependency>
> commons-logging-1.0.4 POM dependencies not using <optional> properly
> --------------------------------------------------------------------
>
> Key: MEV-185
> URL: http://jira.codehaus.org/browse/MEV-185
> Project: Maven Evangelism
> Type: Bug
> Components: Dependencies
> Reporter: Fabrice BELLINGARD
>
>
> In the following dependency :
> <dependency>
> <groupId>avalon-framework</groupId>
> <artifactId>avalon-framework</artifactId>
> <version>4.1.3</version>
> <optional/>
> </dependency>
> "<optional>true</optional>" should be used.
> I haven't checked for the other versions of the artifact.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Closed: (MEV-185) commons-logging-1.0.4 POM dependencies not using properly
Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEV-185?page=all ]
Carlos Sanchez closed MEV-185:
------------------------------
Assign To: Carlos Sanchez
Resolution: Fixed
Fixed in all the poms in the repo
> commons-logging-1.0.4 POM dependencies not using <optional> properly
> --------------------------------------------------------------------
>
> Key: MEV-185
> URL: http://jira.codehaus.org/browse/MEV-185
> Project: Maven Evangelism
> Type: Bug
> Components: Dependencies
> Reporter: Fabrice BELLINGARD
> Assignee: Carlos Sanchez
>
>
> In the following dependency :
> <dependency>
> <groupId>avalon-framework</groupId>
> <artifactId>avalon-framework</artifactId>
> <version>4.1.3</version>
> <optional/>
> </dependency>
> "<optional>true</optional>" should be used.
> I haven't checked for the other versions of the artifact.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Commented: (MEV-185) commons-logging-1.0.4 POM dependencies not using properly
Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MEV-185?page=comments#action_50223 ]
Carlos Sanchez commented on MEV-185:
------------------------------------
Why optional has to be true ?
> commons-logging-1.0.4 POM dependencies not using <optional> properly
> --------------------------------------------------------------------
>
> Key: MEV-185
> URL: http://jira.codehaus.org/browse/MEV-185
> Project: Maven Evangelism
> Type: Bug
> Components: Dependencies
> Reporter: Fabrice BELLINGARD
>
>
> In the following dependency :
> <dependency>
> <groupId>avalon-framework</groupId>
> <artifactId>avalon-framework</artifactId>
> <version>4.1.3</version>
> <optional/>
> </dependency>
> "<optional>true</optional>" should be used.
> I haven't checked for the other versions of the artifact.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org