Help with central repository sync & dreamhost.

2009-01-22 Thread Lincoln Baxter, III
Hi Mavenites,

I've gotten to the point where I am able to deploy my builds to a
repository on my website, but in order to sync to the central repository
(rsync or ssh_rsync)... I'm a little lost.

Has anyone achieved this with dreamhost? It seems like I need to create
a no-password user, so that rsync can take place. (Which I'm not sure is
possible with how they have SSH configured.)

I've read the documentation, but if anyone could help me with some nitty
gritty details, I would be grateful:
http://maven.apache.org/guides/mini/guide-central-repository-upload.html

thanks!
--Lincoln


m2eclipse CTRL-SHIFT-T "Open Type" dialog is missing

2009-01-27 Thread Lincoln Baxter, III
Hi Mavenites,

When I install the m2eclipse plugin, version 0.9.6, my Open Type dialog
box disappears. I can't bring it up with a shortcut. The menu item is
gone. It's just missing.
Is this intentional? I really rely on this dialog quite a bit. How can I
get it back?

Thanks,
Lincoln


Re: m2eclipse CTRL-SHIFT-T "Open Type" dialog is missing

2009-01-29 Thread Lincoln Baxter, III
Thanks! You nailed it.

For some reason the Maven plugin disabled my Perspective -> Customize ->
Commands -> Java Open Type option.

Happier...
--Lincoln

On Thu, 2009-01-29 at 12:53 +0100, Mateusz GrzechociƄski wrote:

> 2009/1/28 Lincoln Baxter, III :
> > Hi Mavenites,
> >
> > When I install the m2eclipse plugin, version 0.9.6, my Open Type dialog
> > box disappears. I can't bring it up with a shortcut. The menu item is
> > gone. It's just missing.
> > Is this intentional? I really rely on this dialog quite a bit. How can I
> > get it back?
> 
> Hi, I had the same issue and In my case restoring default shortcuts in
> Eclipse Preferences solved this problem
> 
> Cheers
> Matthew


Automatically Synchronizing with Central Repo

2009-01-31 Thread Lincoln Baxter, III
Just curious, how long did it take people to get projects added to the
central repo?

I've put in a request, but it's been sitting there for about 3 weeks
now. 
I'm trying to use the automatic sync via ssh_rsync, not the manual
upload (which is supposed to take longer.)

Thanks, just wondering what I should expect.
--Lincoln


M2Eclipse Plugin Seems can't resolve workspace dependency during build

2009-02-07 Thread Lincoln Baxter, III
Hi All,

I am trying to run a build without installing my workspace dependencies
into the local repository, however, I get this exception, and the build
fails:
How can I fix this? All projects required are in my workspace.

I'm using Eclipse 3.4.

Thanks,
Lincoln




[INFO] Scanning for projects...
[INFO]

[INFO] Building Hibernate Data Base Package
[INFO] 
[INFO] Id: com.ocpsoft:ocpsoft-data:jar:1.0.0
[INFO] task-segment: [package]
[INFO]

[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
url = http://repo1.maven.org/maven2
Downloading:
http://repo1.maven.org/maven2/com/ocpsoft/ocpsoft-base/1.0.0/ocpsoft-base-1.0.0.pom
url = http://repo1.maven.org/maven2
Downloading:
http://repo1.maven.org/maven2/com/ocpsoft/ocpsoft-base/1.0.0/ocpsoft-base-1.0.0.pom
url = http://repo1.maven.org/maven2
Downloading:
http://repo1.maven.org/maven2/com/ocpsoft/ocpsoft-base/1.0.0/ocpsoft-base-1.0.0.jar
[ERROR] 

Transitive dependency resolution for scope: compile has failed for your
project.



Error message: Missing:
--
1) com.ocpsoft:ocpsoft-base:jar:1.0.0

  Try downloading the file manually from the project website.

  Then, install it using the command: 
  mvn install:install-file -DgroupId=com.ocpsoft
-DartifactId=ocpsoft-base -Dversion=1.0.0 -Dpackaging=jar
-Dfile=/path/to/file

  Alternatively, if you host your own repository you can deploy the file
there: 
  mvn deploy:deploy-file -DgroupId=com.ocpsoft
-DartifactId=ocpsoft-base -Dversion=1.0.0 -Dpackaging=jar
-Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

  Path to dependency: 
1) com.ocpsoft:ocpsoft-data:jar:1.0.0
2) com.ocpsoft:ocpsoft-base:jar:1.0.0

--
1 required artifact is missing.

for artifact: 
  com.ocpsoft:ocpsoft-data:jar:1.0.0

from the specified remote repositories:
  central (http://repo1.maven.org/maven2)

Group-Id: com.ocpsoft
Artifact-Id: ocpsoft-data
Version: 1.0.0
>From file: /gentoo/home/lb3/Projects/ocpsoft-data/pom.xml




[INFO]

[INFO] For more information, run with the -e flag
[INFO]

[INFO] BUILD FAILED
[INFO]

[INFO] Total time: 2 seconds
[INFO] Finished at: Sat Feb 07 16:48:04 EST 2009
[INFO] Final Memory: 5M/80M
[INFO]



Re: M2Eclipse Plugin can't resolve workspace dependency during MVN compile

2009-02-10 Thread Lincoln Baxter, III
Hey Yves, thanks for looking in to this.

ocpsoft-base hasn't been released yet, but it exists in my workspace. If
I'm understanding the M2eclipse plugin correctly, it should be able to
detect that I have a project with that groupId/artifactId in my
workspace, and resolve it without having a JAR file installed in any
repository, however, it doesn't seem to be doing that. I have to install
the jar into my local repository before any projects that depend on it
will compile as a MVN build (they compile ok in eclipse).

And actually :) the download you listed is the prettyfaces extension.

Is what I'm saying making any sense, or is the M2eclipse plugin not
designed for what I want to do?

Thanks!
Lincoln

On Tue, 2009-02-10 at 09:11 +0100, Yves Dessertine wrote:

> Maven2 was unable to find
> http://repo1.maven.org/maven2/com/ocpsoft/ocpsoft-base/1.0.0/ocpsoft-base-1.0.0.pom
> 
> In short, your artifact with :
> groupId com.ocpsoft
> artifactId ocpsoft-base
> version 1.0.0
> 
> doesn't exist in maven's public repository (if you try accessing the
> URL in the error message, you'll get 404 errors.
> 
> BUT, you can download the jar file manually from here :
> http://prettyfaces.googlecode.com/files/ocpsoft-pretty-faces-1.0.0.jar
> 
> save it on your disk, then install it manually by running :
> mvn install:install-file -DgroupId=com.ocpsoft
> -DartifactId=ocpsoft-base -Dversion=1.0.0 -Dpackaging=jar
> -Dfile=/path/to/file
> 
> Should now compile.
> 
> Hope this helps.
> 
> Yves
> 
> 
> 
> 
> 2009/2/7 Lincoln Baxter, III :
> > Hi All,
> >
> > I am trying to run a build without installing my workspace dependencies
> > into the local repository, however, I get this exception, and the build
> > fails:
> > How can I fix this? All projects required are in my workspace.
> >
> > I'm using Eclipse 3.4.
> >
> > Thanks,
> > Lincoln
> >
> >
> >
> >
> > [INFO] Scanning for projects...
> > [INFO]
> > 
> > [INFO] Building Hibernate Data Base Package
> > [INFO]
> > [INFO] Id: com.ocpsoft:ocpsoft-data:jar:1.0.0
> > [INFO] task-segment: [package]
> > [INFO]
> > 
> > [INFO] [resources:resources]
> > [INFO] Using default encoding to copy filtered resources.
> > url = http://repo1.maven.org/maven2
> > Downloading:
> > http://repo1.maven.org/maven2/com/ocpsoft/ocpsoft-base/1.0.0/ocpsoft-base-1.0.0.pom
> > url = http://repo1.maven.org/maven2
> > Downloading:
> > http://repo1.maven.org/maven2/com/ocpsoft/ocpsoft-base/1.0.0/ocpsoft-base-1.0.0.pom
> > url = http://repo1.maven.org/maven2
> > Downloading:
> > http://repo1.maven.org/maven2/com/ocpsoft/ocpsoft-base/1.0.0/ocpsoft-base-1.0.0.jar
> > [ERROR]
> >
> > Transitive dependency resolution for scope: compile has failed for your
> > project.
> >
> >
> >
> > Error message: Missing:
> > --
> > 1) com.ocpsoft:ocpsoft-base:jar:1.0.0
> >
> >  Try downloading the file manually from the project website.
> >
> >  Then, install it using the command:
> >  mvn install:install-file -DgroupId=com.ocpsoft
> > -DartifactId=ocpsoft-base -Dversion=1.0.0 -Dpackaging=jar
> > -Dfile=/path/to/file
> >
> >  Alternatively, if you host your own repository you can deploy the file
> > there:
> >  mvn deploy:deploy-file -DgroupId=com.ocpsoft
> > -DartifactId=ocpsoft-base -Dversion=1.0.0 -Dpackaging=jar
> > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
> >
> >  Path to dependency:
> >1) com.ocpsoft:ocpsoft-data:jar:1.0.0
> >2) com.ocpsoft:ocpsoft-base:jar:1.0.0
> >
> > --
> > 1 required artifact is missing.
> >
> > for artifact:
> >  com.ocpsoft:ocpsoft-data:jar:1.0.0
> >
> > from the specified remote repositories:
> >  central (http://repo1.maven.org/maven2)
> >
> > Group-Id: com.ocpsoft
> > Artifact-Id: ocpsoft-data
> > Version: 1.0.0
> > >From file: /gentoo/home/lb3/Projects/ocpsoft-data/pom.xml
> >
> >
> >
> >
> > [INFO]
> > 
> > [INFO] For more information, run with the -e flag
> > [INFO]
> > 
> > [INFO] BUILD FAILED
> > [INFO]
> > 
> > [INFO] Total time: 2 seconds
> > [INFO] Finished at: Sat Feb 07 16:48:04 EST 2009
> > [INFO] Final Memory: 5M/80M
> > [INFO]
> > 
> >


Re: M2Eclipse Plugin can't resolve workspace dependency during MVN compile

2009-02-10 Thread Lincoln Baxter, III


> 
> The version must also match. If you refer to a project and the version  
> doesn't match the version in your workspace then m2eclipse will use  
> normal Maven resolution which is checking your local and then remote  
> versions.
> 

Yeah the versions match :)

> 
> Maven is not m2eclipse. The Maven CLI is not going to be able to build  
> anything if you don't have it installed. The CLI and m2eclipse's  
> operation inside Eclipse are two separate things.

So when, in Eclipse, I do:


Run As -> Maven Build


Is that invoking the CLI or is m2eclipse doing the work? If it's
actually invoking the CLI, then that's the reason, but if m2eclipse is
doing the work, I would expect it to find my workspace dependencies
during the build. (Which it's not)

Does that make sense?

Thanks again,
Lincoln


Re: M2Eclipse Plugin can't resolve workspace dependency during MVN compile

2009-02-11 Thread Lincoln Baxter, III
That flag is what I was looking for. Thanks! I'll give it a shot.

On Tue, 2009-02-10 at 23:11 -0500, Jason van Zyl wrote:

> On 10-Feb-09, at 5:36 PM, Lincoln Baxter, III wrote:
> 
> >
> >
> >>
> >> The version must also match. If you refer to a project and the  
> >> version
> >> doesn't match the version in your workspace then m2eclipse will use
> >> normal Maven resolution which is checking your local and then remote
> >> versions.
> >>
> >
> > Yeah the versions match :)
> >
> >>
> >> Maven is not m2eclipse. The Maven CLI is not going to be able to  
> >> build
> >> anything if you don't have it installed. The CLI and m2eclipse's
> >> operation inside Eclipse are two separate things.
> >
> > So when, in Eclipse, I do:
> >
> >
> >Run As -> Maven Build
> >
> >
> > Is that invoking the CLI or is m2eclipse doing the work? If it's
> > actually invoking the CLI, then that's the reason, but if m2eclipse is
> > doing the work, I would expect it to find my workspace dependencies
> > during the build. (Which it's not)
> 
> When you are executing a build the default is to use the embedder and  
> _not_ use artifacts in the workspace. You have to enable that in the  
> run configurations. There is a toggle for that. But whether the  
> embedded version of external version of Maven is used it's the CLI  
> code that is called.
> 
> But this only affects Maven and Maven plugins that you are working on,  
> not your dependent projects. Maven executes as it normally would from  
> the command line. Maven itself cannot resolve artifacts in your  
> Eclipse workspace.
> 
> 
> >
> >
> > Does that make sense?
> >
> > Thanks again,
> > Lincoln
> 
> Thanks,
> 
> Jason
> 
> --
> Jason van Zyl
> Founder,  Apache Maven
> jason at sonatype dot com
> --
> 
> People develop abstractions by generalizing from concrete examples.
> Every attempt to determine the correct abstraction on paper without
> actually developing a running system is doomed to failure. No one
> is that smart. A framework is a resuable design, so you develop it by
> looking at the things it is supposed to be a design of. The more  
> examples
> you look at, the more general your framework will be.
> 
>-- Ralph Johnson & Don Roberts, Patterns for Evolving Frameworks
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
> For additional commands, e-mail: users-h...@maven.apache.org
>