You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Rahul <ra...@clear.net.nz> on 2005/05/26 02:35:49 UTC
Maven 1.0.2: Local file system based repository not working
Hi,
I need to set up a file-system based local repository on my system and
have updated the project.properties file as follows :
<snip>
maven.plugin.unpacked.dir=${user.home}/release-packaging
# following looks for folder called 'repository'
maven.home.local=${user.home}/release-packaging
# Location of remote repository
#maven.repo.remote=http://www.ibiblio.org/maven
maven.repo.remote=file:///${user.home}/release-packaging/repository
maven.repo.remote.enabled=false
# Yes, I am connected to internet
maven.mode.online=true
</snip>
However, I get the following error when I run "maven java:compile".
<snip>
Error retrieving artifact from
[file://home/www/projects/release-packaging/repository/struts/jars/struts-1.1.0.jar]:
java.net.UnknownHostException: home
WARNING: Failed to download struts-1.1.0.jar.
The build cannot continue because of the following unsatisfied dependency:
</snip>
Is there an issue with Maven 1.0.2 to resolve local file-system based
repositories? I didn't find anything in mail archives. Appreciate any
pointers.
TIA,
Rahul
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: using maven properties/variables in xdocs
Posted by Jamie Bisotti <jb...@gmail.com>.
This can't currnetly be done. Search JIRA, there's an issue filed
somewhere; probably agains xdoc plugin.
On 5/25/05, Justin_Freitag@national.com.au
<Ju...@national.com.au> wrote:
> Hi all,
>
> I having issues using maven properties/variables in my xdocs. I've created
> an xdocs/index.xml that I want to customise based on property values, eg.
>
> <document>
> <properties>
> <title>About ${myProperty}</title>
> </properties>
>
> <body>
> <section name="About ${myProperty}">
> </section>
> </body>
> </document>
>
>
> I would like ${myProperty} to be replaced with the property value, but
> instead I see ${myProperty} on the generated html page. Is there a way I
> can acheive this?
>
> cheers,
> Justin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
--
Jamie Bisotti
Software Engineer
Lexmark International, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: using maven properties/variables in xdocs
Posted by Kenney Westerhof <fo...@neonics.com>.
On Thu, 26 May 2005 Justin_Freitag@national.com.au wrote:
You could create a maven.xml task that uses ant copy using filtering
to copy the xdocs/ dir to target/generated-docs (or something)
and possibly setting the xdoc document location to the new location.
If you use ant filtering you should use @token@ style variables in the
document, or create a jelly script that reads the xml document as a script
while filling in the ${variables} and write it somewhere (i've done it so
it's possible)..
-- Kenney
> Hi all,
>
> I having issues using maven properties/variables in my xdocs. I've created
> an xdocs/index.xml that I want to customise based on property values, eg.
>
> <document>
> <properties>
> <title>About ${myProperty}</title>
> </properties>
>
> <body>
> <section name="About ${myProperty}">
> </section>
> </body>
> </document>
>
>
> I would like ${myProperty} to be replaced with the property value, but
> instead I see ${myProperty} on the generated html page. Is there a way I
> can acheive this?
>
> cheers,
> Justin
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
--
Kenney Westerhof
http://www.neonics.com
GPG public key: http://www.gods.nl/~forge/kenneyw.key
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
using maven properties/variables in xdocs
Posted by Ju...@national.com.au.
Hi all,
I having issues using maven properties/variables in my xdocs. I've created
an xdocs/index.xml that I want to customise based on property values, eg.
<document>
<properties>
<title>About ${myProperty}</title>
</properties>
<body>
<section name="About ${myProperty}">
</section>
</body>
</document>
I would like ${myProperty} to be replaced with the property value, but
instead I see ${myProperty} on the generated html page. Is there a way I
can acheive this?
cheers,
Justin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Maven 1.0.2: Local file system based repository not working
Posted by Brett Porter <br...@gmail.com>.
The JDK URL connection doesn't appear to follow the spec, and in our
attempts to fix it up it didn't always work.
In Maven 1.1, we have ensured it follows the spec (and allows a couple
of others for backwards compat).
If you change file:///${user.home}... to file:${user.home} it should work.
-- Brett
On 5/26/05, Rahul <ra...@clear.net.nz> wrote:
> Hi,
>
> I need to set up a file-system based local repository on my system and
> have updated the project.properties file as follows :
>
> <snip>
>
> maven.plugin.unpacked.dir=${user.home}/release-packaging
>
> # following looks for folder called 'repository'
> maven.home.local=${user.home}/release-packaging
>
> # Location of remote repository
> #maven.repo.remote=http://www.ibiblio.org/maven
> maven.repo.remote=file:///${user.home}/release-packaging/repository
> maven.repo.remote.enabled=false
>
> # Yes, I am connected to internet
> maven.mode.online=true
>
> </snip>
>
>
> However, I get the following error when I run "maven java:compile".
>
> <snip>
>
> Error retrieving artifact from
> [file://home/www/projects/release-packaging/repository/struts/jars/struts-1.1.0.jar]:
> java.net.UnknownHostException: home
> WARNING: Failed to download struts-1.1.0.jar.
> The build cannot continue because of the following unsatisfied dependency:
>
> </snip>
>
> Is there an issue with Maven 1.0.2 to resolve local file-system based
> repositories? I didn't find anything in mail archives. Appreciate any
> pointers.
>
> TIA,
>
> Rahul
>
>
>
>
> ---------------------------------------------------------------------
> 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