You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Ingo Düppe <ma...@dueppe.com> on 2006/08/16 10:23:11 UTC
basedir of super pom
Hello,
is it possible in a multi module project to reference a directory in an
absolute manner of the super pom?
Independent of the current position I like to reference a directory from
the top root directory of myproject.
For instance I have following project structure:
myproject
module-1
module-1-api
pom.xml
module-1-core
pom.xml
pom.xml
module-2
module-2-api
pom.xml
module-2-core
pom.xml
pom.xml
src
test
clover
clover.license
pom.xml <== my super pom
I like to define in my super pom.xml that the clover license is in the
directory /src/test/clover/clover.license but all possible variables I
found like ${basedir}or ${pom.dir} doesn't work.
Any ideas?
Regards,
Ingo
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Attempting to set up a company repository
Posted by Barrie Treloar <ba...@gmail.com>.
On 8/16/06, Denis McCarthy <dm...@annadaletech.com> wrote:
> Just got that working - I needed to define a <pluginRepository> in my
> settings.xml. Nothing like sending an email to concentrate the mind.
Have a look at http://docs.codehaus.org/display/MAVENUSER/Using+Maven+in+a+corporate+environment
which is the notes I used to do the same thing at our Company.
You really want to define your internal repositories in your company's root pom.
Otherwise the developers all need to update their settings.xml file.
It should all be in the above document.
Please feel free to ask questions and/or fix mistakes.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Attempting to set up a company repository
Posted by Denis McCarthy <dm...@annadaletech.com>.
Just got that working - I needed to define a <pluginRepository> in my
settings.xml. Nothing like sending an email to concentrate the mind.
Denis McCarthy wrote:
> Hi,
> I'm attempting to set up a company wide repository to hold our
> proprietary plugins and jars. I've got a plugin deploying to a folder on
> a machine running apache over ssh - this is working, even though it
> keeps asking me to type in the password (even though the password is
> defined in the settings.xml)
>
> However, when trying to build using continuum, I get the error:
>
> The plugin 'com.annadaletech.maven.plugin:maven-dbcreate-plugin' does
> not exist or no valid version could be found
>
> It doesn't seem to even attempt to fetch the plugin from the repository.
> I have the repository defined like this in the pom.xml:
>
> <repositories>
> <repository>
> <id>project repository</id>
> <url>http://server1/maven2</url>
> </repository>
> </repositories>
>
> The plugin is available at this address (under the
> com/annadaletech/maven/plugin directory). Do I have to do something
> extra for maven to download the plugin from the repository?
> Thanks
> Denis
>
> ---------------------------------------------------------------------
> 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
Attempting to set up a company repository
Posted by Denis McCarthy <dm...@annadaletech.com>.
Hi,
I'm attempting to set up a company wide repository to hold our
proprietary plugins and jars. I've got a plugin deploying to a folder on
a machine running apache over ssh - this is working, even though it
keeps asking me to type in the password (even though the password is
defined in the settings.xml)
However, when trying to build using continuum, I get the error:
The plugin 'com.annadaletech.maven.plugin:maven-dbcreate-plugin' does
not exist or no valid version could be found
It doesn't seem to even attempt to fetch the plugin from the repository.
I have the repository defined like this in the pom.xml:
<repositories>
<repository>
<id>project repository</id>
<url>http://server1/maven2</url>
</repository>
</repositories>
The plugin is available at this address (under the
com/annadaletech/maven/plugin directory). Do I have to do something
extra for maven to download the plugin from the repository?
Thanks
Denis
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: basedir of super pom
Posted by Tom Huybrechts <to...@gmail.com>.
Can Clover read your license file from the classpath ?
Then you could deploy your (jarred) license to your maven repo and add
it as a dependency to the clover plugin. See the checkstyle plugin
docs [1] for more information - it allows you to do a similar thing
with checkstyle configurations.
Tom
1. http://maven.apache.org/plugins/maven-checkstyle-plugin/tips.html
On 8/16/06, Ingo Düppe <ma...@dueppe.com> wrote:
> This is not really a good solution, because then you have to be always
> online and must have contact to the server.
>
> No other solution?
>
> Regards,
> Ingo
>
>
> Emmanuel Venisse schrieb:
> > No you can't.
> >
> > It would be better to use an url to reference your clover license file.
> >
> > Emmanuel
> >>
>
> ---------------------------------------------------------------------
> 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: basedir of super pom
Posted by Nick Veys <ps...@gmail.com>.
Could you just symlink the license file around to the various directories?
On 8/16/06, Wayne Fay <wa...@gmail.com> wrote:
> Set up Apache on your box and point it to the top root directory. Then
> its always "online" and you're obviously "connected" to the server, so
> you can use a URL to the file.
>
> Wayne
>
> On 8/16/06, Ingo Düppe <ma...@dueppe.com> wrote:
> > This is not really a good solution, because then you have to be always
> > online and must have contact to the server.
> >
> > No other solution?
> >
> > Regards,
> > Ingo
> >
> >
> > Emmanuel Venisse schrieb:
> > > No you can't.
> > >
> > > It would be better to use an url to reference your clover license file.
> > >
> > > Emmanuel
> > >>
> >
> > ---------------------------------------------------------------------
> > 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
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: basedir of super pom
Posted by Wayne Fay <wa...@gmail.com>.
Set up Apache on your box and point it to the top root directory. Then
its always "online" and you're obviously "connected" to the server, so
you can use a URL to the file.
Wayne
On 8/16/06, Ingo Düppe <ma...@dueppe.com> wrote:
> This is not really a good solution, because then you have to be always
> online and must have contact to the server.
>
> No other solution?
>
> Regards,
> Ingo
>
>
> Emmanuel Venisse schrieb:
> > No you can't.
> >
> > It would be better to use an url to reference your clover license file.
> >
> > Emmanuel
> >>
>
> ---------------------------------------------------------------------
> 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: basedir of super pom
Posted by Ingo Düppe <ma...@dueppe.com>.
This is not really a good solution, because then you have to be always
online and must have contact to the server.
No other solution?
Regards,
Ingo
Emmanuel Venisse schrieb:
> No you can't.
>
> It would be better to use an url to reference your clover license file.
>
> Emmanuel
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: basedir of super pom
Posted by Emmanuel Venisse <em...@venisse.net>.
No you can't.
It would be better to use an url to reference your clover license file.
Emmanuel
Ingo Düppe a écrit :
> Hello,
>
> is it possible in a multi module project to reference a directory in an
> absolute manner of the super pom?
> Independent of the current position I like to reference a directory from
> the top root directory of myproject.
>
> For instance I have following project structure:
> myproject
> module-1
> module-1-api
> pom.xml
> module-1-core
> pom.xml
> pom.xml
> module-2
> module-2-api
> pom.xml
> module-2-core
> pom.xml
> pom.xml
> src
> test
> clover
> clover.license
> pom.xml <== my super pom
>
> I like to define in my super pom.xml that the clover license is in the
> directory /src/test/clover/clover.license but all possible variables I
> found like ${basedir}or ${pom.dir} doesn't work.
>
> Any ideas?
>
> Regards,
> Ingo
>
>
>
>
>
> ---------------------------------------------------------------------
> 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