directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Felix Knecht <fel...@apache.org>
Subject Re: [Studio] Eclipse 3.3.1 dependencies + "Mavenization" of the trunk
Date Thu, 03 Jan 2008 13:49:31 GMT
Pierre-Arnaud Marcelot schrieb:
> On Jan 3, 2008 12:16 PM, Felix Knecht <felixk@apache.org
> <mailto:felixk@apache.org>> wrote:
>
>     I neither don't now. I can test at home if it could work. But I'm not
>     sure if it's a good idea to misuse svn for this.
>
>
> That's also the reason why I was wondering if we were able to do
> this... That's not really the purpose of the svn server.
>
>     Thinking about resources and performance I can imagine it's better to
>     put it somewhere in http://p.a.o/~.../maven2
>     <http://p.a.o/%7E.../maven2>.
>     I can put it to http://p.a.o/~/felix/studio-eclipse-m2
>     <http://p.a.o/%7E/felix/studio-eclipse-m2> e.g.
>
>
> Yes, that's a better idea. We could test with this location and move
> the repo to another location under
> http://directory.apache.org/studio/... once we switch the build system.

I'll try (hopefully this evening).

>
>
>     It makes definitely more sense to use my sandbox than creating you own
>     branch. It's open to everyone working on the mavenization of
>     studio and
>     the easiest way to share code when working on the same problems :-)
>
>
> Cool. :)
>
> I was wondering how you (prepared and) installed the eclipse
> dependencies in the m2 repo.

Just unzipped all the eclipse stuff in the {mysandox}/tools and run the
last command from tools/shell-commands.txt.

But please don't even if it sounds easy - I had to do some weird
patching  in the maven-eclipse-plugin to get it working because of
http://www.nabble.com/OverConstrainedVersionException-td14289478s177.html
(don't know if this is a bug in maven itself or in the
maven-eclipse-plugin ...)

> I have a few new dependencies to add to it.
> I added the Studio launchers zip archives to the repo using the 'mvn
> instal:install-file' command but it does not generate the associated
> *.sha1 files.
> Here's what I have done to install one of the packages :
> mvn install:install-file -Dfile=launcher-linux-1.1.0.zip
> -DgroupId=org.apache.directory.studio -DartifactId=launcher-linux
> -Dversion=1.1.0 -Dpackaging=zip
>
> Should I use another command ?

Yes. you can do like this and sha/md5 are generate (see also
http://maven.apache.org/plugins/maven-deploy-plugin/usage.html at the
bottom):

felix@lapfelix ~/svn/apache/directory/maven-studio/tools $ touch sample.jar
felix@lapfelix ~/svn/apache/directory/maven-studio/tools $ mvn
deploy:deploy-file -Durl=file:../local-repository -Dfile=sample.jar
-Dpackaging=jar -DgroupId=myGroup -DartifactId=sample -Dversion=1.0.0
-DgeneratePom=true
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'deploy'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO]    task-segment: [deploy:deploy-file] (aggregator-style)
[INFO]
------------------------------------------------------------------------
[INFO] [deploy:deploy-file]
Uploading: file:../local-repository/myGroup/sample/1.0.0/sample-1.0.0.jar
0b uploaded
[INFO] Retrieving previous metadata from remote-repository
[INFO] Uploading repository metadata for: 'artifact myGroup:sample'
[INFO] Retrieving previous metadata from remote-repository
[INFO] Uploading project information for sample 1.0.0
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESSFUL
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Thu Jan 03 14:40:11 CET 2008
[INFO] Final Memory: 2M/5M

HTH
Felix


Mime
View raw message