On 23/11/2007, Stuart McCulloch <[EMAIL PROTECTED]> wrote:
>
> On 23/11/2007, Peter Kriens <[EMAIL PROTECTED]> wrote:
> >
> > I unzipped the scripts and ran  pax-create-project, which gave me the
> > previous error ...
> >
> > Anyway, when I run pax-validate in the bin directory it seems to
> > works. Is there an env var that needs to be set? I am running this
> > under cygwin
>
>
FYI, I can only recreate this problem when I use the windows batch files
under cygwin (ie. with the .bat extension)
if I don't use the .bat files then it works - I think this is due to a
conflict between the cygwin 'find' command and the
completely different windows find command

( note: I use the find command to workaround a bug in maven, where the
errorlevel does not get surfaced properly
  by the mvn batch file on some versions of windows, so we have to check the
actual output for error messages )

anyway, the fix is to use an explicit path to the 'right' find - I'll add
this in the next release (0.6.2) of Pax-Construct:

  set FIND_EXE="find.exe"
  if exist "%SystemRoot%\system32\find.exe" set
FIND_EXE="%SystemRoot%\system32\find.exe"
  if exist "%SystemRoot%\command\find.exe" set
FIND_EXE="%SystemRoot%\command\find.exe"

I usually test using the plain Windows and Linux shells - it did use to work
> under cygwin, but I haven't tried it recently
> I'll test it this weekend, as the idea is you shouldn't need to set any
> extra envars (just have maven + java in your path)
>
> Kind regards,
> >
> >      Peter Kriens
> >
> >
> >
> > SM> On 23/11/2007, Peter Kriens < [EMAIL PROTECTED]> wrote: I
> > SM> wanted to use the pax-construct but creating a dummy project gives
> > SM> the following error:
> >
> > SM> Hi Peter,
> >
> > SM> did you use the scripts to create the project? ie. either
> > SM> pax-create-project or pax-create-bundle?
> > SM> the pax scripts download the plugin from the OPS4J repository
> > SM> (pax-validate does the grunt work)
> > SM> and the generated POMs will automatically contain the right
> > repository settings.
> >
> > SM> if you want to use the plugin separately in an existing project
> > SM> you need the following in your POM:
> >
> > SM> <pluginRepositories>
> > SM> <pluginRepository>
> > SM> <id>ops4j-repository</id>
> > SM> <url>http://repository.ops4j.org/maven2</url>
> > SM> <snapshots>
> > SM> <enabled>false</enabled>
> > SM> </snapshots>
> > SM> </pluginRepository>
> > SM> </pluginRepositories>
> >
> > SM> or you can use the pax-add-repository script to add it in your
> > existing project:
> >
> > SM> pax-add-repository -i ops4j-repository -u
> > SM> http://repository.ops4j.org/maven2 -- -DpluginRepo
> >
> > SM> the maven-pax-plugin is documented here:
> >
> > SM>
> > SM>
> > http://www.ops4j.org/projects/pax/construct/maven-pax-plugin/usage.html
> >
> > SM> the scripts are documented on the main site:
> >
> > SM> http://www.ops4j.org/projects/pax/construct/index.html
> >
> > SM> when using the scripts you shouldn't need extra repository
> > SM> settings, only if you use the pax plugin
> >
> > SM> HTH
> >
> > SM>  [INFO] Failed to resolve artifact.
> >
> > SM> GroupId: org.ops4j
> > SM> ArtifactId: maven-pax-plugin
> > SM> Version: 0.6.1
> >
> > SM> Reason: Unable to download the artifact from any repository
> >
> > SM> org.ops4j:maven-pax-plugin:pom:0.6.1
> >
> > SM> from the specified remote repositories:
> > SM> central (http://repo1.maven.org/maven2)
> >
> > SM> How can I add the ops4j repo?
> >
> > SM> Kind regards,
> >
> > SM> Peter Kriens
> >
> > SM> --
> > SM> Peter KriensTel +33467542167
> > SM> 9C, Avenue St. DrézéryAOL,Yahoo: pkriens
> > SM> 34160 Beaulieu, FranceICQ 255570717
> > SM> Skype pkriens Fax +1 8153772599
> >
> >
> >
> > SM> _______________________________________________
> > SM> general mailing list
> > SM> general@lists.ops4j.org
> > SM>  http://lists.ops4j.org/mailman/listinfo/general
> >
> >
> >
> >
> >
> >
> > --
> > Peter Kriens                              Tel +33467542167
> > 9C, Avenue St. Drézéry                    AOL,Yahoo: pkriens
> > 34160 Beaulieu, France                    ICQ 255570717
> > Skype pkriens                             Fax +1 8153772599
> >
> >
>
>
> --
> Cheers, Stuart




-- 
Cheers, Stuart
_______________________________________________
general mailing list
general@lists.ops4j.org
http://lists.ops4j.org/mailman/listinfo/general

Reply via email to