Re: Error With dependency plugin

2006-11-15 Thread Lyndon Washington

Oops!  I discovered that there was an explicit entry for a
'maven-dependency-plugin' that was used by the mule project, that is not
released yet.

Sorry for the post.

Cheers,
-Lyndon-


On 11/14/06, Lyndon Washington <[EMAIL PROTECTED]> wrote:


Greetings,

I am attempting to use maven on a project and it appears to be having
problems retrieving a plugin before it even tries to handle the project's
pom.xml.

From the console output below, the problem seems to be with a version of
maven-dependency-plugin that is not available.  The strange thing is that
the version for the plugin is a SNAPSHOT release.

[INFO] Scanning for projects...
[INFO]

[INFO] Building Error Handler Example
[INFO]task-segment: [clean]
[INFO]


[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for
updates from central
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.1/maven-clean-plugin-2.1.pom
703b downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.1/maven-clean-plugin-2.1.jar
5K downloaded
Downloading:
http://people.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-dependency-plugin/2.0-SNAPSHOT/maven-dependency-plugin-2.0-20060907.213033-3.pom
[WARNING] Unable to get resource from repository apache-plugin-snapshots (
http://people.apache.org/maven-snapshot-repository)
Downloading:
http://snapshots.repository.codehaus.org/org/apache/maven/plugins/maven-dependency-plugin/2.0-SNAPSHOT/maven-dependency-plugin-2.0-20060907.213033-3.pom
[WARNING] Unable to get resource from repository codehaus-snapshots (
http://snapshots.repository.codehaus.org)
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-dependency-plugin
Version: 2.0-20060907.213033-3

Reason: Unable to download the artifact from any repository


org.apache.maven.plugins:maven-dependency-plugin:pom:2.0-20060907.213033-3

from the specified remote repositories:
  central (http://repo1.maven.org/maven2),
  codehaus (http://repository.codehaus.org),
  codehaus-snapshots (http://snapshots.repository.codehaus.org),
  apache-plugin-snapshots (
http://people.apache.org/maven-snapshot-repository)


Cheers,
-Lyndon-




Error With dependency plugin

2006-11-14 Thread Lyndon Washington

Greetings,

I am attempting to use maven on a project and it appears to be having
problems retrieving a plugin before it even tries to handle the project's
pom.xml.


From the console output below, the problem seems to be with a version of

maven-dependency-plugin that is not available.  The strange thing is that
the version for the plugin is a SNAPSHOT release.

[INFO] Scanning for projects...
[INFO]

[INFO] Building Error Handler Example
[INFO]task-segment: [clean]
[INFO]

[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for
updates from central
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.1/maven-clean-plugin-2.1.pom
703b downloaded
Downloading:
http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-clean-plugin/2.1/maven-clean-plugin-2.1.jar
5K downloaded
Downloading:
http://people.apache.org/maven-snapshot-repository/org/apache/maven/plugins/maven-dependency-plugin/2.0-SNAPSHOT/maven-dependency-plugin-2.0-20060907.213033-3.pom
[WARNING] Unable to get resource from repository apache-plugin-snapshots (
http://people.apache.org/maven-snapshot-repository)
Downloading:
http://snapshots.repository.codehaus.org/org/apache/maven/plugins/maven-dependency-plugin/2.0-SNAPSHOT/maven-dependency-plugin-2.0-20060907.213033-3.pom
[WARNING] Unable to get resource from repository codehaus-snapshots (
http://snapshots.repository.codehaus.org)
[INFO]

[ERROR] BUILD ERROR
[INFO]

[INFO] Failed to resolve artifact.

GroupId: org.apache.maven.plugins
ArtifactId: maven-dependency-plugin
Version: 2.0-20060907.213033-3

Reason: Unable to download the artifact from any repository

 org.apache.maven.plugins:maven-dependency-plugin:pom:2.0-20060907.213033-3

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 codehaus (http://repository.codehaus.org),
 codehaus-snapshots (http://snapshots.repository.codehaus.org),
 apache-plugin-snapshots (
http://people.apache.org/maven-snapshot-repository)


Cheers,
-Lyndon-


Re: How to report public repository problems

2006-06-14 Thread Lyndon Washington

. and what do you know, someone had already raised the isse,
http://jira.codehaus.org/browse/MEV-395, so I just added the patch.

Cheers,
-L-

On 6/14/06, Edwin Punzalan <[EMAIL PROTECTED]> wrote:



Please see:
http://maven.apache.org/guides/mini/guide-maven-evangelism.html


Lyndon Washington wrote:
> So, provide an example of the missing pom.xml?  Okey dokey, once I get a
> moment I will log an issue.
>
> Thx!
>
> On 6/13/06, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
>>
>> But don't bother to complain without providing a solution or will be
>> ignored.
>>
>> On 6/13/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
>> > Issues like these are filed in the Maven JIRA at Codehaus under
>> > component MEV (Maven Evangelism).
>> >
>> > Wayne
>> >
>> > On 6/13/06, Lyndon Washington <[EMAIL PROTECTED]> wrote:
>> > > What is the procedure for reporting problems with missing
>> pom.xmlfiles from
>> > > the Ibiblio.org public repository?
>> > >
>> > > I tried to use the 1.3.03 version of the xml-apis component,
>> > > http://www.ibiblio.org/maven2/xml-apis/xml-apis/1.3.03/, only to
>> discover
>> > > that no pom.xml was present in that directory.
>> > >
>> > > Cheers,
>> > > -Lyndon-
>> > >
>> > >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>> --
>> I could give you my word as a Spaniard.
>> No good. I've known too many Spaniards.
>>  -- The Princess Bride
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>

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




Re: How to report public repository problems

2006-06-14 Thread Lyndon Washington

Thanks Edwin.  After a quick cursory look at the guide, I am intrigued to
know if anyone can contribute pom's for ANY project or component.  For
instance, I start creating a new maven project for a project called bandit (
http://www.bandit-project.org), and it has a reliance on an open source
library for XACML.  I discover that the XACML libraries are not in the
registry, can I proactively generate a pom for those libraries, or should
the pom come from the committers on the XACML project?

Cheers,
-Lyndon-

On 6/14/06, Edwin Punzalan <[EMAIL PROTECTED]> wrote:



Please see:
http://maven.apache.org/guides/mini/guide-maven-evangelism.html


Lyndon Washington wrote:
> So, provide an example of the missing pom.xml?  Okey dokey, once I get a
> moment I will log an issue.
>
> Thx!
>
> On 6/13/06, Carlos Sanchez <[EMAIL PROTECTED]> wrote:
>>
>> But don't bother to complain without providing a solution or will be
>> ignored.
>>
>> On 6/13/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
>> > Issues like these are filed in the Maven JIRA at Codehaus under
>> > component MEV (Maven Evangelism).
>> >
>> > Wayne
>> >
>> > On 6/13/06, Lyndon Washington <[EMAIL PROTECTED]> wrote:
>> > > What is the procedure for reporting problems with missing
>> pom.xmlfiles from
>> > > the Ibiblio.org public repository?
>> > >
>> > > I tried to use the 1.3.03 version of the xml-apis component,
>> > > http://www.ibiblio.org/maven2/xml-apis/xml-apis/1.3.03/, only to
>> discover
>> > > that no pom.xml was present in that directory.
>> > >
>> > > Cheers,
>> > > -Lyndon-
>> > >
>> > >
>> >
>> > -
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>> >
>>
>>
>> --
>> I could give you my word as a Spaniard.
>> No good. I've known too many Spaniards.
>>  -- The Princess Bride
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>

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




Re: How to report public repository problems

2006-06-13 Thread Lyndon Washington

So, provide an example of the missing pom.xml?  Okey dokey, once I get a
moment I will log an issue.

Thx!

On 6/13/06, Carlos Sanchez <[EMAIL PROTECTED]> wrote:


But don't bother to complain without providing a solution or will be
ignored.

On 6/13/06, Wayne Fay <[EMAIL PROTECTED]> wrote:
> Issues like these are filed in the Maven JIRA at Codehaus under
> component MEV (Maven Evangelism).
>
> Wayne
>
> On 6/13/06, Lyndon Washington <[EMAIL PROTECTED]> wrote:
> > What is the procedure for reporting problems with missing pom.xmlfiles from
> > the Ibiblio.org public repository?
> >
> > I tried to use the 1.3.03 version of the xml-apis component,
> > http://www.ibiblio.org/maven2/xml-apis/xml-apis/1.3.03/, only to
discover
> > that no pom.xml was present in that directory.
> >
> > Cheers,
> > -Lyndon-
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
I could give you my word as a Spaniard.
No good. I've known too many Spaniards.
 -- The Princess Bride

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




How to report public repository problems

2006-06-13 Thread Lyndon Washington

What is the procedure for reporting problems with missing pom.xml files from
the Ibiblio.org public repository?

I tried to use the 1.3.03 version of the xml-apis component,
http://www.ibiblio.org/maven2/xml-apis/xml-apis/1.3.03/, only to discover
that no pom.xml was present in that directory.

Cheers,
-Lyndon-


Re: How to Specify 'Links' In the Javadoc Plugin

2006-06-11 Thread Lyndon Washington

On 6/10/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:


On 6/10/06, Lyndon Washington <[EMAIL PROTECTED]> wrote:

> I saw from the javadoc-mojo page,
> http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html,
that
> there is a links tag which takes an ArrayList.  It also says that the
> Strings are comma separate.

I added an example to the wiki:
   http://docs.codehaus.org/display/MAVENUSER/Javadoc+Plugin


maven-javadoc-plugin


http://java.sun.com/j2se/1.4.2/docs/api


http://jakarta.apache.org/commons/chain/apidocs






Wendy and Dirk,

Thanks for the information, it is most appreciated.

Cheers,-Lyndon-


How to Specify 'Links' In the Javadoc Plugin

2006-06-10 Thread Lyndon Washington

Hi,

I am migrating an Ant build to Maven.  One portion is generating javadocs.
In the Ant one there are 3 link tags . . .
http://logging.apache.org/log4j/docs/api/"/>
http://java.sun.com/j2se/1.5.0/docs/api/"/>
http://www.dom4j.org/apidocs/"/>

I saw from the javadoc-mojo page,
http://maven.apache.org/plugins/maven-javadoc-plugin/javadoc-mojo.html, that
there is a links tag which takes an ArrayList.  It also says that the
Strings are comma separate.

What does this actually mean?  I have tried placing the URLS as comma
separated values within the links tag, but I get an error that it was
expecting an ArrayList and received a String.

Any help would be most appreciated.

Cheers,
-Lyndon-


Re: Referencing Files from a Unit Test

2006-06-07 Thread Lyndon Washington

Wendy,

What I have noticed is that if I go into the sub projects directory and run
'mvn test', the relative paths that are in the tests resolve perfectly.
When I run the 'mvn test' from the parent project path, then the relative
paths cannot be found.  Will the use of the "basedir" property resolve to
the subprojects location or the parent projects location?

Thanks,
-Lyndon-

On 6/5/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:


On 6/5/06, Lyndon Washington <[EMAIL PROTECTED]> wrote:

> I have a unit test that was setup in the old ANT build to load resources
> using a relative path.  I have put the resource that is being retrieved
in
> the projects 'test/resources/conf' folder.  How would I reference the
file,
> where previously I used 'conf/foo.xml'?
>
> I guess I was assuming that there would be a system propery that I could
> use.  Another snippet of info is that this project is part of a large
pom
> heirarchy, so the test could be run from the parent or from the actual
> project location.

http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html

Surefire sets a 'basedir' system property, which you can retrieve with:
   System.getProperty("basedir")

It also sets 'localRepository', which can be useful for locating
artifacts (such as war files to deploy with Cargo.)

In addition, you can pass in your own system properties in the
/ section.

--
Wendy

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




Re: Referencing Files from a Unit Test

2006-06-06 Thread Lyndon Washington

Hi Wendy,

Thanks for the information.  I will try this out since it appears to be what
I was looking for.

Cheers,
-Lyndon-

On 6/5/06, Wendy Smoak <[EMAIL PROTECTED]> wrote:


On 6/5/06, Lyndon Washington <[EMAIL PROTECTED]> wrote:

> I have a unit test that was setup in the old ANT build to load resources
> using a relative path.  I have put the resource that is being retrieved
in
> the projects 'test/resources/conf' folder.  How would I reference the
file,
> where previously I used 'conf/foo.xml'?
>
> I guess I was assuming that there would be a system propery that I could
> use.  Another snippet of info is that this project is part of a large
pom
> heirarchy, so the test could be run from the parent or from the actual
> project location.

http://maven.apache.org/plugins/maven-surefire-plugin/test-mojo.html

Surefire sets a 'basedir' system property, which you can retrieve with:
   System.getProperty("basedir")

It also sets 'localRepository', which can be useful for locating
artifacts (such as war files to deploy with Cargo.)

In addition, you can pass in your own system properties in the
/ section.

--
Wendy

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




Re: Referencing Files from a Unit Test

2006-06-06 Thread Lyndon Washington

Hi Keiran,

That works if my tests took Streams, but I was looking for a less intrusive
way of retrieving java.io.File(s), much like my existing tests in my ANT
build does today.

Thanks again.

-Lyndon-

On 6/5/06, Kieran Brady <[EMAIL PROTECTED]> wrote:


I think this is what you're looking for:

this.getClass().getClassLoader().getResourceAsStream(...

http://marc.theaimsgroup.com/?l=turbine-maven-user&m=114917325827653&w=2


- Original Message -
From: "Lyndon Washington" <[EMAIL PROTECTED]>
To: 
Sent: Monday, June 05, 2006 8:24 PM
Subject: Referencing Files from a Unit Test


> Hi,
>
> I have a unit test that was setup in the old ANT build to load resources
> using a relative path.  I have put the resource that is being retrieved
in
> the projects 'test/resources/conf' folder.  How would I reference the
> file,
> where previously I used 'conf/foo.xml'?
>
> I guess I was assuming that there would be a system propery that I could
> use.  Another snippet of info is that this project is part of a large
pom
> heirarchy, so the test could be run from the parent or from the actual
> project location.
>
> Thanks for any help someone can provide.
>
> Cheers,
> -Lyndon-



Referencing Files from a Unit Test

2006-06-05 Thread Lyndon Washington

Hi,

I have a unit test that was setup in the old ANT build to load resources
using a relative path.  I have put the resource that is being retrieved in
the projects 'test/resources/conf' folder.  How would I reference the file,
where previously I used 'conf/foo.xml'?

I guess I was assuming that there would be a system propery that I could
use.  Another snippet of info is that this project is part of a large pom
heirarchy, so the test could be run from the parent or from the actual
project location.

Thanks for any help someone can provide.

Cheers,
-Lyndon-

--

---------
Lyndon Washington
-