Hello again,
this is the project pom I use for my project:

<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>

        <parent>
                <groupId>au.com.company.telephony</groupId>
                <artifactId>maven-base</artifactId>
                <version>1.0.0</version>
        </parent>

        <modelVersion>4.0.0</modelVersion>
        <groupId>au.com.company.telephony</groupId>
        <artifactId>telephony-test</artifactId>
        <packaging>jar</packaging>
        <version>1.0-SNAPSHOT</version>
        <name>Telephony Artefact</name>
        <url>http://maven.apache.org</url>
 
</project>

And this is the parent pom, I'm trying to set the repositories here:

<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>

  <modelVersion>4.0.0</modelVersion>
  <name>Maven Base Project</name>
  <groupId>au.com.company.telephony</groupId>
  <artifactId>maven-base</artifactId>
  <packaging>pom</packaging>
  <version>1.0.0</version>

  <distributionManagement>
    <repository>
      <id>telephony-repository</id>
 <url>file:///home/valleg/apps/apache-tomcat-5.5/webapps/ROOT/maven</url>
    </repository>
  </distributionManagement>

  <repositories>
    <repository>
      <id>central</id>
      <url>http://localhost:8080/maven</url>
    </repository>
  </repositories>
 
  <pluginRepositories>
    <pluginRepository>
      <id>central</id>
      <url>http://localhost:8080/maven</url>
    </pluginRepository>
  </pluginRepositories>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>log4j</groupId>
      <artifactId>log4j</artifactId>
      <version>1.2.12</version>
      <scope>compile</scope>
    </dependency>
  </dependencies>
 
</project>

I'm also working with the defaults, meaning that I have no settings.xml 
and my local repository is set to: /home/user/.m2/repository
I'm running Maven 2 in SuSE Linux 10 by the way (don't think it matters 
though!).

This is the output I get when I run mvn clean:

[EMAIL PROTECTED]:~/projects/Telephony/telephony-test> mvn clean
[INFO] Scanning for projects...
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Telephony Artefact
[INFO]    task-segment: [clean]
[INFO] 
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory 
/home/valleg/projects/Telephony/telephony-test/target
[INFO] Deleting directory 
/home/valleg/projects/Telephony/telephony-test/target/classes
[INFO] Deleting directory 
/home/valleg/projects/Telephony/telephony-test/target/test-classes
[INFO] 
----------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO] 
----------------------------------------------------------------------------
[INFO] Total time: 2 seconds
[INFO] Finished at: Thu May 18 15:48:50 EST 2006
[INFO] Final Memory: 1M/3M
[INFO] 
----------------------------------------------------------------------------

And this is the output when I run mvn clean after I delete the contents of 
my local repository:

[EMAIL PROTECTED]:~/projects/Telephony/telephony-test> mvn clean
[INFO] Scanning for projects...
[INFO] 
----------------------------------------------------------------------------
[INFO] Building Telephony Artefact
[INFO]    task-segment: [clean]
[INFO] 
----------------------------------------------------------------------------
[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for 
updates from central
[INFO] 
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] 
----------------------------------------------------------------------------
[INFO] The plugin 'org.apache.maven.plugins:maven-clean-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: 1 second
[INFO] Finished at: Thu May 18 15:50:23 EST 2006
[INFO] Final Memory: 1M/2M
[INFO] 
----------------------------------------------------------------------------

I would expect that Maven would download all the required artifacts again, 
but apparently it doesn't.
The only thing that gets created in my local repository is this file:

/home/user/.m2/repository/org/apache/maven/plugins/maven-clean-plugin/maven-metadata-central.xml

The error appears for every goal I try. Also tried setting a mirror in my 
settings.xml but it didn't work either.
What is it that I'm doing wrong? Please help me...
Could you possibly try it in your environment and tell me if this settings 
work? Thanks.

Cheers,
Gustavo




"jerome lacoste" <[EMAIL PROTECTED]> 
17/05/2006 16:58
Please respond to
"Maven Users List" <[email protected]>


To
"Maven Users List" <[email protected]>
cc

Subject
Re: Internal remote repository setup in Maven 2






On 5/17/06, Gustavo Valle <[EMAIL PROTECTED]> wrote:
> Hello
>
> I'm new to Maven 2 and I just needed some help setting up my 
environment.
> Basically I want to have an internal remote repository where maven can
> download all plugins and artifacts not found in my local repository and 
to
> use it also to upload my project artifact. Simple uh? Well, I haven't 
been
> able to make this setting to work... I've tried setting the
> <distributionManagement> tag in the pom and that works for the upload 
via
> the deploy goal and I've set the <repository> and <pluginRepository>
> elements also in the pom for the download but when I clean my local
> repository, I expect that maven should download everything it needs from
> the internal remote repository which doesn't happen! When I manually 
copy
> all contents of my internal remote repository into my local repository,
> then maven works hapilly. I just don't get it. I've also tried setting 
up
> a mirror of central in my settings.xml with no better luck.

when you use -X, do you see maven trying to download artifacts from
your internal remote repository?

If not, your POM config must be wrong. Did you define an <id> for your
repository?

http://maven.apache.org/guides/introduction/introduction-to-repositories.html

http://maven.apache.org/guides/mini/guide-multiple-repositories.html
http://maven.apache.org/ref/current/maven-model/maven.html#class_repository


> I'm about to giving up on maven 2!

Not sure if that will give you more answers...

> Please help. Am I doing something wrong?
>
> Cheers,
> Gustavo

J

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




Please consider our environment before printing this email.

WARNING - This email and any attachments may be confidential. If received in 
error, please delete and inform us by return email. Because emails and 
attachments may be interfered with, may contain computer viruses or other 
defects and may not be successfully replicated on other systems, you must be 
cautious. Westpac cannot guarantee that what you receive is what we sent. If 
you have any doubts about the authenticity of an email by Westpac, please 
contact us immediately.

It is also important to check for viruses and defects before opening or using 
attachments. Westpac's liability is limited to resupplying any affected 
attachments.

This email and its attachments are not intended to constitute any form of 
financial advice or recommendation of, or an offer to buy or offer to sell, any 
security or other financial product. We recommend that you seek your own 
independent legal or financial advice before proceeding with any investment 
decision.

Westpac Institutional Bank is a division of Westpac Banking Corporation, a 
company registered in New South Wales in Australia under the Corporations Act 
2001 (Cth). Westpac is authorised and regulated in the United Kingdom by the 
Financial Services Authority and is registered at Cardiff in the United Kingdom 
as Branch No. BR 106. Westpac operates in the United States of America as a 
federally chartered branch, regulated by the Office of the Comptroller of the 
Currency.

Westpac Banking Corporation ABN 33 007 457 141.

Reply via email to