You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by Paul Smith <ps...@aconex.com> on 2007/04/23 01:04:58 UTC

log4j-components & maven

did an svn update on latest log4j- sandbox projects, tried a mvn  
install:

Paul-Smiths-Computer:/workspace/log4j-component paulsmith$ mvn install
[INFO] Scanning for projects...
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] Building Apache Component Companion for log4j 1.2.
[INFO]    task-segment: [install]
[INFO]  
------------------------------------------------------------------------ 
----
[INFO]  
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]  
------------------------------------------------------------------------
[INFO] The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does not  
exist or no valid version could be found
[INFO]  
------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO]  
------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Mon Apr 23 09:03:05 EST 2007
[INFO] Final Memory: 3M/6M
[INFO]  
------------------------------------------------------------------------

I'm obviously not a maven expert, but I'm using the default settings,  
which is actually no settings.xml in the ~/.m2/ directory, which  
should use the default repo, but it doesn't seem to want to  
automatically download this.

The standard repo seems to have it..

http://repo1.maven.org/maven2/org/codehaus/mojo/cobertura-maven- 
plugin/2.1/

Any help?

Paul

Re: log4j-components & maven

Posted by Paul Smith <ps...@aconex.com>.
On 23/04/2007, at 12:56 PM, Paul Smith wrote:

> fixed it myself, this is obviously a DumbNewbieMaven user:
>
> mvn -U install
>
> fixes it.  The -U obviously picks up new plugins from the  
> repository.  Be nice if Maven suggested that.
>

Actually, almost fixed, now getting a compile error.  Curt, have you  
done something odd with svn and symbolic links?

Paul-Smiths-Computer:/workspace/log4j-component/src/test/java/org/ 
apache/log4j/xml paulsmith$ ls -alh
total 16
drwxr-xr-x   5 paulsmit  admin  170B Apr 23 08:59 .
drwxr-xr-x   6 paulsmit  admin  204B Apr 23 08:59 ..
drwxr-xr-x   9 paulsmit  admin  306B Apr 23 08:59 .svn
lrwxr-xr-x   1 paulsmit  admin   83B Apr 23 08:59 MockReceiver.java - 
 > /Users/curta/ls-svn/log4j/tests/src/java/org/apache/log4j/plugins/ 
MockReceiver.java
-rw-r--r--   1 paulsmit  admin    2K Apr 23 08:59  
PluginConfiguratorTest.java




Paul-Smiths-Computer:/workspace/log4j-component paulsmith$ mvn install
[INFO] Scanning for projects...
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] Building Apache Component Companion for log4j 1.2.
[INFO]    task-segment: [install]
[INFO]  
------------------------------------------------------------------------ 
----
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 1 source file to /workspace/log4j-component/target/ 
test-classes
[INFO]  
------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO]  
------------------------------------------------------------------------
[INFO] Compilation failure

/workspace/log4j-component/src/test/java/org/apache/log4j/xml/ 
PluginConfiguratorTest.java:[59,16] cannot find symbol
symbol  : class MockReceiver
location: class org.apache.log4j.xml.PluginConfiguratorTest

/workspace/log4j-component/src/test/java/org/apache/log4j/xml/ 
PluginConfiguratorTest.java:[61,8] cannot find symbol
symbol  : class MockReceiver
location: class org.apache.log4j.xml.PluginConfiguratorTest

/workspace/log4j-component/src/test/java/org/apache/log4j/xml/ 
PluginConfiguratorTest.java:[61,30] cannot find symbol
symbol  : class MockReceiver
location: class org.apache.log4j.xml.PluginConfiguratorTest

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Re: log4j-components & maven

Posted by Paul Smith <ps...@aconex.com>.
fixed it myself, this is obviously a DumbNewbieMaven user:

mvn -U install

fixes it.  The -U obviously picks up new plugins from the  
repository.  Be nice if Maven suggested that.


On 23/04/2007, at 9:04 AM, Paul Smith wrote:

> did an svn update on latest log4j- sandbox projects, tried a mvn  
> install:
>
> Paul-Smiths-Computer:/workspace/log4j-component paulsmith$ mvn install
> [INFO] Scanning for projects...
> [INFO]  
> ---------------------------------------------------------------------- 
> ------
> [INFO] Building Apache Component Companion for log4j 1.2.
> [INFO]    task-segment: [install]
> [INFO]  
> ---------------------------------------------------------------------- 
> ------
> [INFO]  
> ---------------------------------------------------------------------- 
> --
> [ERROR] BUILD ERROR
> [INFO]  
> ---------------------------------------------------------------------- 
> --
> [INFO] The plugin 'org.codehaus.mojo:cobertura-maven-plugin' does  
> not exist or no valid version could be found
> [INFO]  
> ---------------------------------------------------------------------- 
> --
> [INFO] For more information, run Maven with the -e switch
> [INFO]  
> ---------------------------------------------------------------------- 
> --
> [INFO] Total time: 3 seconds
> [INFO] Finished at: Mon Apr 23 09:03:05 EST 2007
> [INFO] Final Memory: 3M/6M
> [INFO]  
> ---------------------------------------------------------------------- 
> --
>
> I'm obviously not a maven expert, but I'm using the default  
> settings, which is actually no settings.xml in the ~/.m2/  
> directory, which should use the default repo, but it doesn't seem  
> to want to automatically download this.
>
> The standard repo seems to have it..
>
> http://repo1.maven.org/maven2/org/codehaus/mojo/cobertura-maven- 
> plugin/2.1/
>
> Any help?
>
> Paul

Paul Smith
Core Engineering Manager

Aconex
The easy way to save time and money on your project

696 Bourke Street, Melbourne,
VIC 3000, Australia
Tel: +61 3 9240 0200  Fax: +61 3 9240 0299
Email: psmith@aconex.com  www.aconex.com

This email and any attachments are intended solely for the addressee.  
The contents may be privileged, confidential and/or subject to  
copyright or other applicable law. No confidentiality or privilege is  
lost by an erroneous transmission. If you have received this e-mail  
in error, please let us know by reply e-mail and delete or destroy  
this mail and all copies. If you are not the intended recipient of  
this message you must not disseminate, copy or take any action in  
reliance on it. The sender takes no responsibility for the effect of  
this message upon the recipient's computer system.