maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edelson, Justin" <Justin.Edel...@mtvstaff.com>
Subject Re: Does relocation work for plugins?
Date Tue, 23 Sep 2008 02:19:01 GMT
Ah. So there's no way to say: version 1.0 through 1.9 have this groupId and 2.0 and above have
a different groupId?

That might get tricky, but at least I know something is possible.

Thanks,
Justin

----- Original Message -----
From: Brett Porter <brett.porter@gmail.com>
To: Maven Users List <users@maven.apache.org>
Sent: Mon Sep 22 22:16:03 2008
Subject: Re: Does relocation work for plugins?

Yes, I think you need a relocation in the old position for every
version of the artifact you intend to relocate - it isn't done at the
group or all-versions level.

- Brett

2008/9/23 Wendy Smoak <wsmoak@gmail.com>:
> On Mon, Sep 22, 2008 at 6:47 PM, Brett Porter <brett.porter@gmail.com> wrote:
>
>> You can't relocate the whole group, but you can relocate particular
>> plugin artifacts to achieve this. The same has happened for the Jetty
>> plugin recently on the central repository.
>
> Relocation doesn't seem to be working for Jetty-- this came up the
> other day helping someone on irc.  Of course, just specifying version
> 6.1.11 "fixes" it, so I didn't go further.
>
> If I take the webapp archetype and add:
>
>  <build>
>    ...
>    <plugins>
>      <plugin>
>        <groupId>org.mortbay.jetty</groupId>
>        <artifactId>maven-jetty-plugin</artifactId>
>      </plugin>
>    </plugins>
>
> I get:
>
> imbrium:mywebapp wsmoak$ mvn install
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Building mywebapp Maven Webapp
> [INFO]    task-segment: [install]
> [INFO] ------------------------------------------------------------------------
> Downloading: http://repo1.maven.org/maven2/org/mortbay/jetty/maven-jetty-plugin/7.0.0pre3/maven-jetty-plugin-7.0.0pre3.jar
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] A required plugin was not found: Plugin could not be found -
> check that the goal name is correct: Unable to download the artifact
> from any repository
>
> Try downloading the file manually from the project website.
>
> Then, install it using the command:
>    mvn install:install-file -DgroupId=org.mortbay.jetty
> -DartifactId=maven-jetty-plugin -Dversion=7.0.0pre3
> -Dpackaging=maven-plugin -Dfile=/path/to/file
>
> Alternatively, if you host your own repository you can deploy the file there:
>    mvn deploy:deploy-file -DgroupId=org.mortbay.jetty
> -DartifactId=maven-jetty-plugin -Dversion=7.0.0pre3
> -Dpackaging=maven-plugin -Dfile=/path/to/file -Durl=[url]
> -DrepositoryId=[id]
>
>  org.mortbay.jetty:maven-jetty-plugin:maven-plugin:7.0.0pre3
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
>
>  org.mortbay.jetty:maven-jetty-plugin:maven-plugin:7.0.0pre3
>
> from the specified remote repositories:
>  central (http://repo1.maven.org/maven2)
>
> [INFO] ------------------------------------------------------------------------
> [INFO] For more information, run Maven with the -e switch
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 1 second
> [INFO] Finished at: Mon Sep 22 19:02:01 MST 2008
> [INFO] Final Memory: 3M/7M
> [INFO] ------------------------------------------------------------------------
>
> In case it's relevant:
> imbrium:mywebapp wsmoak$ mvn -version
> Maven version: 2.0.9
> Java version: 1.5.0_13
> OS name: "mac os x" version: "10.5.4" arch: "i386" Family: "unix"
>
> --
> Wendy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>



-- 
Brett Porter
Blog: http://blogs.exist.com/bporter/

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

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message