You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Michael Finney <fi...@ACM.org> on 2009/02/07 16:34:47 UTC

Maven friendly Open Source project setup

In the context of this mission: I wish to make it easy for people to
download some code, change it for the sake of practicing (CodeKata), and
then throw it all away.  

Is there a file arrangement or set of instructions in a README or something
that makes it real fast for people to download code, create a java project
in their IDE, and start working with the code?

Right now I use eclipse and wizards. The steps require:
	O SVN wizard
	O project wizard
	O Enable dependency management via right click on the Sonatype
eclipse plugin.


I'd like something easier than people having to go through those steps. 

Thanks.

-- 
Michael Finney - "Always Striving To Serve You Better Every Day"
finney@ACM.org
http://www.SmilingSoftwareSolutions.com



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


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

Posted by "Lincoln Baxter, III" <li...@gmail.com>.
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-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 

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

Posted by Eugene Kuleshov <eu...@md.pp.ru>.

Jason van Zyl-5 wrote:
> 
>> 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. 
> 

Jason, since 0.9.7 the default is to respect the workspace resolution
setting from project preferences, i.e. default is to have workspace
resolution on. Bu like you said, that can be changed in Maven launch
configuration.

  regards,
  Eugene


-- 
View this message in context: http://www.nabble.com/Maven-friendly-Open-Source-project-setup-tp21889533p22130199.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

Posted by Jason van Zyl <jv...@sonatype.com>.
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-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


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

Posted by "Lincoln Baxter, III" <li...@gmail.com>.

> 
> 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

Posted by Jason van Zyl <jv...@sonatype.com>.
On 10-Feb-09, at 8:47 AM, Lincoln Baxter, III wrote:

> 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

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.

>
> 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).
>

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.

> 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 <li...@gmail.com>:
>>> 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]
>>> ------------------------------------------------------------------------
>>>

Thanks,

Jason

----------------------------------------------------------
Jason van Zyl
Founder,  Apache Maven
jason at sonatype dot com
----------------------------------------------------------

In short, man creates for himself a new religion of a rational
and technical order to justify his work and to be justified in it.

   -- Jacques Ellul, The Technological Society


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


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

Posted by "Lincoln Baxter, III" <li...@gmail.com>.
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 <li...@gmail.com>:
> > 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 Seems can't resolve workspace dependency during build

Posted by Yves Dessertine <yv...@gmail.com>.
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 <li...@gmail.com>:
> 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]
> ------------------------------------------------------------------------
>

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


M2Eclipse Plugin Seems can't resolve workspace dependency during build

Posted by "Lincoln Baxter, III" <li...@gmail.com>.
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: Maven friendly Open Source project setup

Posted by "David C. Hicks" <dh...@i-hicks.org>.
I don't know what the policies are for public repositories, but you can 
always set up your own Nexus repository to house it.  While I'm not 
doing so with archetypes, I have set up Nexus for my company.  We keep 
common modules/projects there that would be shared among all of our 
in-house projects.  It's easy to set up.


Michael Finney wrote:
> It sounds appealing.
>
> What repository would store my practice templates?
>
>   

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


RE: Maven friendly Open Source project setup

Posted by Michael Finney <fi...@ACM.org>.
It sounds appealing.

What repository would store my practice templates?

-- 
Michael Finney - "Always Striving To Serve You Better Every Day"
finney@ACM.org
http://www.SmilingSoftwareSolutions.com

-----Original Message-----
From: David C. Hicks [mailto:dhicks@i-hicks.org] 
Sent: Saturday, February 07, 2009 1:14 PM
To: Maven Users List
Subject: Re: Maven friendly Open Source project setup

I'd create a Maven Archetype for that kind of purpose.  Think of it as a 
"template" to start a project with.  You can always include your 
"starter code" as part of that template.


Michael Finney wrote:
> In the context of this mission: I wish to make it easy for people to
> download some code, change it for the sake of practicing (CodeKata), and
> then throw it all away.  
>
> Is there a file arrangement or set of instructions in a README or
something
> that makes it real fast for people to download code, create a java project
> in their IDE, and start working with the code?
>
> Right now I use eclipse and wizards. The steps require:
> 	O SVN wizard
> 	O project wizard
> 	O Enable dependency management via right click on the Sonatype
> eclipse plugin.
>
>
> I'd like something easier than people having to go through those steps. 
>
> Thanks.
>
>   

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

No virus found in this incoming message.
Checked by AVG - www.avg.com 
Version: 8.0.233 / Virus Database: 270.10.19/1938 - Release Date: 02/06/09
17:28:00


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


Re: Maven friendly Open Source project setup

Posted by "David C. Hicks" <dh...@i-hicks.org>.
I'd create a Maven Archetype for that kind of purpose.  Think of it as a 
"template" to start a project with.  You can always include your 
"starter code" as part of that template.


Michael Finney wrote:
> In the context of this mission: I wish to make it easy for people to
> download some code, change it for the sake of practicing (CodeKata), and
> then throw it all away.  
>
> Is there a file arrangement or set of instructions in a README or something
> that makes it real fast for people to download code, create a java project
> in their IDE, and start working with the code?
>
> Right now I use eclipse and wizards. The steps require:
> 	O SVN wizard
> 	O project wizard
> 	O Enable dependency management via right click on the Sonatype
> eclipse plugin.
>
>
> I'd like something easier than people having to go through those steps. 
>
> Thanks.
>
>   

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