You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Szczepan Faber <sz...@gmail.com> on 2006/03/14 15:33:22 UTC

[M2] compile sources fails - where are snapshot repositories???

I need to change maven embedder to force him to go through proxy. The
problem is that 'mvn package' command fails in maven-embedder
directory. The reason is that default snaphot repository does not have
appropriate artifacts.

--------------

Reason: Unable to download the artifact from any repository

  org.apache.maven.plugins:maven-assembly-plugin:pom:2.1-SNAPSHOT

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

-------------

Are there snaphot repositories maintained?

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


Re: [M2] compile sources fails - where are snapshot repositories???

Posted by Wayne Fay <wa...@gmail.com>.
Its the same site, you just need to use repository instead of
pluginRepository...

    <repository>
      <id>Maven Snapshots</id>
      <url>http://snapshots.maven.codehaus.org/maven2/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </repository>

But I don't see maven-core:2.1-SNAPSHOT there, just 2.0-SNAPSHOT.
http://snapshots.maven.codehaus.org/maven2/org/apache/maven/maven-core/

Wayne

On 3/15/06, Szczepan Faber <sz...@gmail.com> wrote:
> Ok now assembly plugin works, but what about snapshot repositories for
> maven components?
>
> I am trying to resolve:
> ---------------------------------
> required artifacts missing:
>  org.apache.maven:maven-core:jar:2.1-SNAPSHOT
> ---------------------------------
>
> >However, you can always just pull the code for maven-assembly-plugin
> >as well from SVN and package it up and install locally?
>
> Sure I can :) But wouldn't it be cool to checkout maven from svn, go
> to selected component (I need to play with embedder), run 'mvn
> package', see 'BUILD SUCCESSFUL'  ?
>
> Currently I have to deal with snapshot dependecies that are not
> available on remote repositories (or those repositories are not
> included in POMs). When I want to install those dependencies locally,
> those need other dependencies and so on. I am forced to play with
> commands/poms, I just need to package embedder...
>
> Thanks,
> Szczepan
>
> On 3/14/06, Wayne Fay <wa...@gmail.com> wrote:
> > Maven plugin snapshots are hosted:
> > <pluginRepository>
> >       <id>Maven Snapshots</id>
> >       <url>http://snapshots.maven.codehaus.org/maven2/</url>
> >       <snapshots>
> >         <enabled>true</enabled>
> >       </snapshots>
> >       <releases>
> >         <enabled>false</enabled>
> >       </releases>
> >     </pluginRepository>
> >
> > However, you can always just pull the code for maven-assembly-plugin
> > as well from SVN and package it up and install locally? Then you
> > aren't dependent on yet another repo...
> >
> > Wayne
> >
> >
> > On 3/14/06, Szczepan Faber <sz...@gmail.com> wrote:
> > > I need to change maven embedder to force him to go through proxy. The
> > > problem is that 'mvn package' command fails in maven-embedder
> > > directory. The reason is that default snaphot repository does not have
> > > appropriate artifacts.
> > >
> > > --------------
> > >
> > > Reason: Unable to download the artifact from any repository
> > >
> > >  org.apache.maven.plugins:maven-assembly-plugin:pom:2.1-SNAPSHOT
> > >
> > > from the specified remote repositories:
> > >  central (http://repo1.maven.org/maven2),
> > >  apache.snapshots (http://svn.apache.org/maven-snapshot-repository)
> > >
> > > -------------
> > >
> > > Are there snaphot repositories maintained?
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > > For additional commands, e-mail: users-help@maven.apache.org
> > >
> > >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: [M2] compile sources fails - where are snapshot repositories???

Posted by Szczepan Faber <sz...@gmail.com>.
Ok now assembly plugin works, but what about snapshot repositories for
maven components?

I am trying to resolve:
---------------------------------
required artifacts missing:
  org.apache.maven:maven-core:jar:2.1-SNAPSHOT
---------------------------------

>However, you can always just pull the code for maven-assembly-plugin
>as well from SVN and package it up and install locally?

Sure I can :) But wouldn't it be cool to checkout maven from svn, go
to selected component (I need to play with embedder), run 'mvn
package', see 'BUILD SUCCESSFUL'  ?

Currently I have to deal with snapshot dependecies that are not
available on remote repositories (or those repositories are not
included in POMs). When I want to install those dependencies locally,
those need other dependencies and so on. I am forced to play with
commands/poms, I just need to package embedder...

Thanks,
Szczepan

On 3/14/06, Wayne Fay <wa...@gmail.com> wrote:
> Maven plugin snapshots are hosted:
> <pluginRepository>
>       <id>Maven Snapshots</id>
>       <url>http://snapshots.maven.codehaus.org/maven2/</url>
>       <snapshots>
>         <enabled>true</enabled>
>       </snapshots>
>       <releases>
>         <enabled>false</enabled>
>       </releases>
>     </pluginRepository>
>
> However, you can always just pull the code for maven-assembly-plugin
> as well from SVN and package it up and install locally? Then you
> aren't dependent on yet another repo...
>
> Wayne
>
>
> On 3/14/06, Szczepan Faber <sz...@gmail.com> wrote:
> > I need to change maven embedder to force him to go through proxy. The
> > problem is that 'mvn package' command fails in maven-embedder
> > directory. The reason is that default snaphot repository does not have
> > appropriate artifacts.
> >
> > --------------
> >
> > Reason: Unable to download the artifact from any repository
> >
> >  org.apache.maven.plugins:maven-assembly-plugin:pom:2.1-SNAPSHOT
> >
> > from the specified remote repositories:
> >  central (http://repo1.maven.org/maven2),
> >  apache.snapshots (http://svn.apache.org/maven-snapshot-repository)
> >
> > -------------
> >
> > Are there snaphot repositories maintained?
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>

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


Re: [M2] compile sources fails - where are snapshot repositories???

Posted by Wayne Fay <wa...@gmail.com>.
Maven plugin snapshots are hosted:
<pluginRepository>
      <id>Maven Snapshots</id>
      <url>http://snapshots.maven.codehaus.org/maven2/</url>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <releases>
        <enabled>false</enabled>
      </releases>
    </pluginRepository>

However, you can always just pull the code for maven-assembly-plugin
as well from SVN and package it up and install locally? Then you
aren't dependent on yet another repo...

Wayne


On 3/14/06, Szczepan Faber <sz...@gmail.com> wrote:
> I need to change maven embedder to force him to go through proxy. The
> problem is that 'mvn package' command fails in maven-embedder
> directory. The reason is that default snaphot repository does not have
> appropriate artifacts.
>
> --------------
>
> Reason: Unable to download the artifact from any repository
>
>  org.apache.maven.plugins:maven-assembly-plugin:pom:2.1-SNAPSHOT
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2),
>  apache.snapshots (http://svn.apache.org/maven-snapshot-repository)
>
> -------------
>
> Are there snaphot repositories maintained?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>