Any maven repo mirrors in China?

2009-03-03 Thread Raymond Feng

Hi,

Do we have any maven repo mirrors in China? Our (Apache Tuscany project) 
Chinese users always complain that their connections to repo1.maven.org are 
very slow and it takes hours to run a build. Most of the time it fails in 
the middle due to download issues.


Thanks,
Raymond 



-
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org



How to prevent a plugin from being invoked for the pom project?

2008-02-05 Thread Raymond Feng

Hi,

I have the following project structure:

P1 (packaging="pom", w/ modules: P1 and P2)
   --- P11 (parent=P1, jar)
   --- P12 (parent=P1, jar)

Now I would like to configure the pom.xml for P1 to declare the 
maven-war-plugin (please see the pom.xml below) under the webapp profile so 
that we can produce the war for web deployment. This way, this plugin will 
be inherited by P11 and P12. But during the reactor build, the 
maven-war-plugin is also invoked for P1 and it will fail since P1 is not a 
regular jar/war module.


   
   
   webapp
   
   false
   

   
   
   
   
   org.apache.maven.plugins
   maven-jar-plugin
   2.2
   
   
   
   junit
   
   test
   
   test-jar
   
   
   
   

   
   
   org.apache.maven.plugins
   maven-war-plugin
   2.0.2
   
   
   
   

   
${project.build.directory}
   
   *-tests.jar
   
   WEB-INF/test-lib
   
   
   
   
   
   package
   
   war
   
   
   
   
   
   
   

How do we prevent the plugin from being invoked if the packaging is "pom"? 
Is it the responsibility of the individual plugin?


Thanks,
Raymond



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



Re: Missing dependencies if building from parent directory (maven 2.0.5)

2007-04-17 Thread Raymond Feng
I think it's a "feature" for the reactor build which tries to use the same 
version of an artifact if the referenced artifact itself is part of the 
source tree in the same build.


Thanks,
Raymond

- Original Message - 
From: "Luciano Resende" <[EMAIL PROTECTED]>

To: "Wayne Fay" <[EMAIL PROTECTED]>
Cc: "Maven Users List" ; <[EMAIL PROTECTED]>
Sent: Tuesday, April 17, 2007 11:38 AM
Subject: Re: Missing dependencies if building from parent directory (maven 
2.0.5)




I have found the solution for this issue, looks like there were some
artifacts using different  element, and this was causing the
problem. Having all artifacts with same  solved the build issues.

Is this a BUG ?

On 4/11/07, Luciano Resende <[EMAIL PROTECTED]> wrote:


Even if I explicitly add the version node for 
tuscany-das-rdb,

I get the same problem. Any ideas on how I could debug and try to find
what's causing the problem ?


On 4/10/07, Wayne Fay <[EMAIL PROTECTED]> wrote:
>
> I haven't pulled the code and built etc yet, but I noticed the pom.xml
> for tuscany-das-rdb is missing a 
> node. This may be related to your issues...
>
> Wayne
>
> On 4/9/07, Luciano Resende <[EMAIL PROTECTED]> wrote:
> > Hi maven gurus
> >
> >We are having a strange dependency issue in our build at Apache
> Tuscany
> > project. Starting from a clean m2 repo, if one tries the top-level
> build
> > (/java), he will face some dependencies issues like the one attached
> below,
> > but the issue actually goes away if you actually build from actual
> child
> > project (java/das). Simmilar missing dependencies issues are being
> reported
> > on the sca child project while trying to build from root (/java), and
> then
> > it goes away if you actually build from the child directory
> (java/sca). Our
> > svn code is available at [1] for reference. Any thoughts ?
> >
> > [1] https://svn.apache.org/repos/asf/incubator/tuscany/java/
> >
> > Missing:
> > --
> > 1) org.apache.tuscany.das:tuscany-das-rdb:jar:1.0-incubator-SNAPSHOT
> >
> >   Try downloading the file manually from the project website.
> >
> >   Then, install it using the command:
> >   mvn install:install-file
> > -DgroupId=org.apache.tuscany.das-DartifactId=tuscany-das-rdb \
> >   -Dversion=1.0-incubator-SNAPSHOT -Dpackaging=jar
> > -Dfile=/path/to/file
> >
> >   Path to dependency:
> > 1)
> >
> org.apache.tuscany.das.samples:sample-companyweb:war:1.0-incubator-SNAPSHOT
> > 2)
> org.apache.tuscany.das:tuscany-das-rdb:jar:1.0-incubator-SNAPSHOT
> >
> > --
> > 1 required artifact is missing.
> >
> > for artifact:
> >
> >
> org.apache.tuscany.das.samples:sample-companyweb:war:1.0-incubator-SNAPSHOT
> >
> > from the specified remote repositories:
> >   central ( http://repo1.maven.org/maven2),
> >   apache.incubator (
> http://people.apache.org/repo/m2-incubating-repository/
> > ),
> >   apache.ws.m1.snapshots ( http://ws.zones.apache.org/repository),
> >   apache.snapshots 
> > (http://people.apache.org/repo/m2-snapshot-repository

> )
> >
> >
> > --
> > Luciano Resende
> > http://people.apache.org/~lresende
> >
>



--
Luciano Resende
http://people.apache.org/~lresende 





--
Luciano Resende
http://people.apache.org/~lresende




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



Is there a way to control the order of repositories?

2007-01-16 Thread Raymond Feng
Hi,

We use multiple maven repos in the build. Is there a way to control the order 
of the repositories to be searched for artifacts? In some cases, an arifact is 
published to both maven1 and maven2 repos and we prefer to use the one from the 
maven2 repo.

Thanks,
Raymond


New Maven 2 repos for Eclipse and SUN jars?

2007-01-16 Thread Raymond Feng
Hi,

When I browse the http://repo1.maven.org today, I found there are two repos:

http://repo1.maven.org/eclipse (Containing eclipse jars)
http://repo1.maven.org/maven-java.net/ (Containing javax and com.ibm.sun jars)

Are these new repos that we can reference for Eclipse and Sun artifacts? Does 
anybody have more information?

Thanks,
Raymond