You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Sean Schofield <se...@gmail.com> on 2006/01/19 17:15:05 UTC

Re: Problem building Maven XSLT plugin

I had the same problem and posted an issue on it[1].  I haven't tried
rebuilding yet.  Let me know if this works.

Sean

[1] http://jira.codehaus.org/browse/MOJO-247?page=all

On 1/19/06, Peter Henderson <pe...@starjar.com> wrote:
> Thomas Gaudin wrote:
>
> > Hi,
> >
> > I had similar problem and to have the plugin installed I had to modify
> > the pom.xml :
> >
> > <project>
> >    <modelVersion>4.0.0</modelVersion>
> >    <parent>
> >        <artifactId>mojo-sandbox</artifactId>
> >        <groupId>org.codehaus.mojo</groupId>
> >        <version>1</version>
> >      </parent>
> > ....
> >
>
> Thanks for the feed back. Unfortunatly that does not fix the problem.
> I changed <version>2-SNAPSHOT</version> to <version>1</version>
> I also tried various version of 1  1.0 1-SNAPSHOT etc.
>
> Hmm Im even more confused, now, having just checked out the previous
> revisions of pom.xml (rev 1275 and 1168) I get the same error.
> Perhaps the problem is outside of my environment?
>
> Peter.
>
> > and run "mvn install"  from the root  directory but not from src
> >
> > Hope it helps,
> >
> > Thomas
> >
> > Peter Henderson a écrit :
> >
> >> Hi list.
> >>
> >> Im trying to build MyFaces using Maven, by following the instructions
> >> at http://wiki.apache.org/myfaces/Building_With_Maven.
> >>
> >> The trouble is I cant even get the XSLT plugin to build. (Step 0)
> >>
> >> I check out the src.
> >>
> >> svn co
> >> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/xslt-maven-plugin
> >> A    xslt-maven-plugin/src
> >> A    xslt-maven-plugin/src/main
> >> A    xslt-maven-plugin/src/main/java
> >> A    xslt-maven-plugin/src/main/java/org
> >> A    xslt-maven-plugin/src/main/java/org/codehaus
> >> A    xslt-maven-plugin/src/main/java/org/codehaus/mojo
> >> A    xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt
> >> A
> >> xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt/XsltMojo.java
> >> A    xslt-maven-plugin/pom.xml
> >> Checked out revision 1356.
> >>
> >> OK no problem so far.
> >> Then I run
> >>
> >>
> >> mvn install -e
> >> + Error stacktraces are turned on.
> >> [INFO] Scanning for projects...
> >> [INFO]
> >> ----------------------------------------------------------------------------
> >>
> >> [INFO] Building Maven Default Project
> >> [INFO]    task-segment: [install]
> >> [INFO]
> >> ----------------------------------------------------------------------------
> >>
> >> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin:
> >> checking for updates from central
> >> Downloading:
> >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.pom
> >>
> >> 888b downloaded
> >> Downloading:
> >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom
> >>
> >> 6K downloaded
> >> Downloading:
> >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.jar
> >>
> >> 10K downloaded
> >> [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin:
> >> checking for updates from central
> >> Downloading:
> >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.pom
> >>
> >> 1K downloaded
> >> Downloading:
> >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.jar
> >>
> >> 13K downloaded
> >> [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin:
> >> checking for updates from central
> >> Downloading:
> >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.pom
> >>
> >> 2K downloaded
> >> Downloading:
> >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.jar
> >>
> >> 9K downloaded
> >> [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking
> >> for updates from central
> >> Downloading:
> >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.pom
> >>
> >> 737b downloaded
> >> Downloading:
> >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.jar
> >>
> >> 7K downloaded
> >> [INFO] artifact org.apache.maven.plugins:maven-install-plugin:
> >> checking for updates from central
> >> Downloading:
> >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.pom
> >>
> >> 981b downloaded
> >> Downloading:
> >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.jar
> >>
> >> 8K downloaded
> >> [INFO]
> >> ----------------------------------------------------------------------------
> >>
> >> [ERROR] BUILD ERROR
> >> [INFO]
> >> ----------------------------------------------------------------------------
> >>
> >> [INFO] Cannot execute mojo: resources. It requires a project with an
> >> existing pom.xml, but the build is not using one.
> >> [INFO]
> >> ----------------------------------------------------------------------------
> >>
> >> [INFO] Trace
> >> org.apache.maven.lifecycle.LifecycleExecutionException: Cannot
> >> execute mojo: resources. It requires a project with an existing
> >> pom.xml, but the build is not using one.
> >>        at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
> >>
> >>        at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
> >>
> >>        at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
> >>
> >>        at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
> >>
> >>        at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
> >>
> >>        at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
> >>
> >>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> >>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> >>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> >>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >>        at
> >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >>
> >>        at
> >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >>
> >>        at java.lang.reflect.Method.invoke(Method.java:585)
> >>        at
> >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> >>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >>        at
> >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> >>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >> Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot
> >> execute mojo: resources. It requires a project with an existing
> >> pom.xml, but the build is not using one.
> >>        at
> >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:359)
> >>
> >>        at
> >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
> >>
> >>        ... 16 more
> >> [INFO]
> >> ----------------------------------------------------------------------------
> >>
> >> [INFO] Total time: 2 minutes 44 seconds
> >> [INFO] Finished at: Thu Jan 19 14:37:12 GMT 2006
> >> [INFO] Final Memory: 2M/4M
> >> [INFO]
> >> ----------------------------------------------------------------------------
> >>
> >>
> >>
> >> Whats wrong?
> >>
> >>
> >> Cheers
> >>
> >> Peter Henderson.
> >> ---------------------------------------------------------------------------------------
> >>
> >> Wanadoo vous informe que cet  e-mail a ete controle par l'anti-virus
> >> mail. Aucun virus connu a ce jour par nos services n'a ete detecte.
> >>
> >>
> >>
> >>
> >>
> >
> >
> >
>
>

Re: Problem building Maven XSLT plugin

Posted by Volker Weber <us...@weber-oldenburg.de>.
Hi Peter,

if you updating your checkout you should have a pluginRepository section
in maven/master-pom/pom.xml pointing to the atanion repository.

'mvn install' should do the rest.

regards,
  Volker


Peter Henderson wrote:
> Bernd Bohmann wrote:
> 
>> Please remove the plugin from your repository.
>>
>> rm -rf ~/.m2/repository/org/codehaus/mojo/xslt-maven-plugin/
>>
>> then you should get a working version from the atanion repository.
> 
> 
> 
> Thanks for the reply Bernd.
> 
> I dont have that plugin in my repository.
> 
> peter@amd64 ~/downloads/java/maven/xslt $ ls -l
> ~/.m2/repository/org/codehaus
> ls: /home/peter/.m2/repository/org/codehaus: No such file or directory
> 
> I feel like Im the only one who cant build MyFaces from svn...
> 
> Regards
> Peter.
> 
> 
> 
>>
>> Regards
>>
>> Bernd
>>
>> Peter Henderson schrieb:
>>
>>> Sean Schofield wrote:
>>>
>>>> Try also uncommenting this in the master pom
>>>>
>>>>  <pluginRepositories>
>>>>    <pluginRepository>
>>>>      <snapshots>
>>>>        <enabled>true</enabled>
>>>>      </snapshots>
>>>>      <id>atanion</id>
>>>>      <url>http://www.atanion.com/maven2</url>
>>>>    </pluginRepository>
>>>>  </pluginRepositories>
>>>>
>>>> I believe there is a working version of the plugin there.
>>>>
>>>> Sean
>>>>  
>>>>
>>>
>>> Thanks. Excuse my maven inexperience. but the pom.xml I retreived
>>> from svn does not have a commented out block as above.
>>> I did add it, but it seemed to make no difference.
>>>
>>>
>>> I had a look at the jira issue you linked to. I would post a follow
>>> on, but it seems today is bug day and I've broken jira too. **sigh**.
>>>
>>> Peter.
>>>
>>>
>>>>
>>>> On 1/19/06, Sean Schofield <se...@gmail.com> wrote:
>>>>  
>>>>
>>>>> I had the same problem and posted an issue on it[1].  I haven't tried
>>>>> rebuilding yet.  Let me know if this works.
>>>>>
>>>>> Sean
>>>>>
>>>>> [1] http://jira.codehaus.org/browse/MOJO-247?page=all
>>>>>
>>>>> On 1/19/06, Peter Henderson <pe...@starjar.com> wrote:
>>>>>  
>>>>>
>>>>>> Thomas Gaudin wrote:
>>>>>>
>>>>>>   
>>>>>>
>>>>>>> Hi,
>>>>>>>
>>>>>>> I had similar problem and to have the plugin installed I had to
>>>>>>> modify
>>>>>>> the pom.xml :
>>>>>>>
>>>>>>> <project>
>>>>>>>   <modelVersion>4.0.0</modelVersion>
>>>>>>>   <parent>
>>>>>>>       <artifactId>mojo-sandbox</artifactId>
>>>>>>>       <groupId>org.codehaus.mojo</groupId>
>>>>>>>       <version>1</version>
>>>>>>>     </parent>
>>>>>>> ....
>>>>>>>
>>>>>>>       
>>>>>>
>>>>>>
>>>>>>
>>>>>> Thanks for the feed back. Unfortunatly that does not fix the problem.
>>>>>> I changed <version>2-SNAPSHOT</version> to <version>1</version>
>>>>>> I also tried various version of 1  1.0 1-SNAPSHOT etc.
>>>>>>
>>>>>> Hmm Im even more confused, now, having just checked out the previous
>>>>>> revisions of pom.xml (rev 1275 and 1168) I get the same error.
>>>>>> Perhaps the problem is outside of my environment?
>>>>>>
>>>>>> Peter.
>>>>>>
>>>>>>   
>>>>>>
>>>>>>> and run "mvn install"  from the root  directory but not from src
>>>>>>>
>>>>>>> Hope it helps,
>>>>>>>
>>>>>>> Thomas
>>>>>>>
>>>>>>> Peter Henderson a écrit :
>>>>>>>
>>>>>>>     
>>>>>>>
>>>>>>>> Hi list.
>>>>>>>>
>>>>>>>> Im trying to build MyFaces using Maven, by following the
>>>>>>>> instructions
>>>>>>>> at http://wiki.apache.org/myfaces/Building_With_Maven.
>>>>>>>>
>>>>>>>> The trouble is I cant even get the XSLT plugin to build. (Step 0)
>>>>>>>>
>>>>>>>> I check out the src.
>>>>>>>>
>>>>>>>> svn co
>>>>>>>> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/xslt-maven-plugin
>>>>>>>>
>>>>>>>> A    xslt-maven-plugin/src
>>>>>>>> A    xslt-maven-plugin/src/main
>>>>>>>> A    xslt-maven-plugin/src/main/java
>>>>>>>> A    xslt-maven-plugin/src/main/java/org
>>>>>>>> A    xslt-maven-plugin/src/main/java/org/codehaus
>>>>>>>> A    xslt-maven-plugin/src/main/java/org/codehaus/mojo
>>>>>>>> A    xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt
>>>>>>>> A
>>>>>>>> xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt/XsltMojo.java
>>>>>>>>
>>>>>>>> A    xslt-maven-plugin/pom.xml
>>>>>>>> Checked out revision 1356.
>>>>>>>>
>>>>>>>> OK no problem so far.
>>>>>>>> Then I run
>>>>>>>>
>>>>>>>>
>>>>>>>> mvn install -e
>>>>>>>> + Error stacktraces are turned on.
>>>>>>>> [INFO] Scanning for projects...
>>>>>>>> [INFO]
>>>>>>>> ----------------------------------------------------------------------------
>>>>>>>>
>>>>>>>>
>>>>>>>> [INFO] Building Maven Default Project
>>>>>>>> [INFO]    task-segment: [install]
>>>>>>>> [INFO]
>>>>>>>> ----------------------------------------------------------------------------
>>>>>>>>
>>>>>>>>
>>>>>>>> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin:
>>>>>>>> checking for updates from central
>>>>>>>> Downloading:
>>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.pom
>>>>>>>>
>>>>>>>>
>>>>>>>> 888b downloaded
>>>>>>>> Downloading:
>>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom
>>>>>>>>
>>>>>>>>
>>>>>>>> 6K downloaded
>>>>>>>> Downloading:
>>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.jar
>>>>>>>>
>>>>>>>>
>>>>>>>> 10K downloaded
>>>>>>>> [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin:
>>>>>>>> checking for updates from central
>>>>>>>> Downloading:
>>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.pom
>>>>>>>>
>>>>>>>>
>>>>>>>> 1K downloaded
>>>>>>>> Downloading:
>>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.jar
>>>>>>>>
>>>>>>>>
>>>>>>>> 13K downloaded
>>>>>>>> [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin:
>>>>>>>> checking for updates from central
>>>>>>>> Downloading:
>>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.pom
>>>>>>>>
>>>>>>>>
>>>>>>>> 2K downloaded
>>>>>>>> Downloading:
>>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.jar
>>>>>>>>
>>>>>>>>
>>>>>>>> 9K downloaded
>>>>>>>> [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking
>>>>>>>> for updates from central
>>>>>>>> Downloading:
>>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.pom
>>>>>>>>
>>>>>>>>
>>>>>>>> 737b downloaded
>>>>>>>> Downloading:
>>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.jar
>>>>>>>>
>>>>>>>>
>>>>>>>> 7K downloaded
>>>>>>>> [INFO] artifact org.apache.maven.plugins:maven-install-plugin:
>>>>>>>> checking for updates from central
>>>>>>>> Downloading:
>>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.pom
>>>>>>>>
>>>>>>>>
>>>>>>>> 981b downloaded
>>>>>>>> Downloading:
>>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.jar
>>>>>>>>
>>>>>>>>
>>>>>>>> 8K downloaded
>>>>>>>> [INFO]
>>>>>>>> ----------------------------------------------------------------------------
>>>>>>>>
>>>>>>>>
>>>>>>>> [ERROR] BUILD ERROR
>>>>>>>> [INFO]
>>>>>>>> ----------------------------------------------------------------------------
>>>>>>>>
>>>>>>>>
>>>>>>>> [INFO] Cannot execute mojo: resources. It requires a project
>>>>>>>> with an
>>>>>>>> existing pom.xml, but the build is not using one.
>>>>>>>> [INFO]
>>>>>>>> ----------------------------------------------------------------------------
>>>>>>>>
>>>>>>>>
>>>>>>>> [INFO] Trace
>>>>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Cannot
>>>>>>>> execute mojo: resources. It requires a project with an existing
>>>>>>>> pom.xml, but the build is not using one.
>>>>>>>>       at
>>>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
>>>>>>>>
>>>>>>>>
>>>>>>>>       at
>>>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
>>>>>>>>
>>>>>>>>
>>>>>>>>       at
>>>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
>>>>>>>>
>>>>>>>>
>>>>>>>>       at
>>>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>>>>>>>>
>>>>>>>>
>>>>>>>>       at
>>>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>>>>>>>>
>>>>>>>>
>>>>>>>>       at
>>>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>>>>>>>>
>>>>>>>>
>>>>>>>>       at
>>>>>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>>>>>>>>       at
>>>>>>>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>>>>>>>>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>>>>>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
>>>>>>>> Method)
>>>>>>>>       at
>>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>>>>
>>>>>>>>
>>>>>>>>       at
>>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>>>>
>>>>>>>>
>>>>>>>>       at java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>>>       at
>>>>>>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>>>>>       at
>>>>>>>> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>>>>>       at
>>>>>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>>>>>
>>>>>>>>       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot
>>>>>>>> execute mojo: resources. It requires a project with an existing
>>>>>>>> pom.xml, but the build is not using one.
>>>>>>>>       at
>>>>>>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:359)
>>>>>>>>
>>>>>>>>
>>>>>>>>       at
>>>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
>>>>>>>>
>>>>>>>>
>>>>>>>>       ... 16 more
>>>>>>>> [INFO]
>>>>>>>> ----------------------------------------------------------------------------
>>>>>>>>
>>>>>>>>
>>>>>>>> [INFO] Total time: 2 minutes 44 seconds
>>>>>>>> [INFO] Finished at: Thu Jan 19 14:37:12 GMT 2006
>>>>>>>> [INFO] Final Memory: 2M/4M
>>>>>>>> [INFO]
>>>>>>>> ----------------------------------------------------------------------------
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> Whats wrong?
>>>>>>>>
>>>>>>>>
>>>>>>>> Cheers
>>>>>>>>
>>>>>>>> Peter Henderson.
>>>>>>>> ---------------------------------------------------------------------------------------
>>>>>>>>
>>>>>>>>
>>>>>>>> Wanadoo vous informe que cet  e-mail a ete controle par
>>>>>>>> l'anti-virus
>>>>>>>> mail. Aucun virus connu a ce jour par nos services n'a ete detecte.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>         
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>       
>>>>>>
>>>>>>
>>>>>>
>>>>>>     
>>>>>
>>>>>
>>>>
>>>>
>>>>  
>>>>
>>>
>>>
>>
> 

-- 
Don't answer to From: address!
Mail to this account are droped if not recieved via mailinglist.
To contact me direct create the mail address by
concatenating my forename to my senders domain.

Re: Problem building Maven XSLT plugin

Posted by Wendy Smoak <ws...@gmail.com>.
On 1/20/06, Elam Daly <el...@gmail.com> wrote:

> Also, is there a way to tell Maven that I want the build to go to a specific
> directory, instead of ~/.m2/....

Yes.  In ~/.m2/settings.xml, put (something like) this:

<settings>
   <localRepository>/path/to/m2-repository</localRepository>
</settings>

(And that will be the only file in ~/.m2 .)

--
Wendy

Re: Problem building Maven XSLT plugin

Posted by Elam Daly <el...@gmail.com>.
Sean,

My svn checkouts were virgin ones, but I did get it to work by following the
advice on codehaus site about checking out mojo-sandbox, and installing that
first.  Then the xslt-plugin build went fine.
http://jira.codehaus.org/browse/MOJO-247?page=all
But I'm an utter Maven noob, so I'm sure it's my own incompetence that led
me to do something wrong, although the wiki is innacurate as to the build
process( there's no build directory for instance ).

Also, is there a way to tell Maven that I want the build to go to a specific
directory, instead of ~/.m2/.... and can you build a single jar instead of
the multiple snapshot jars that are created?

Thanks,
-Elam

On 1/20/06, Sean Schofield <se...@gmail.com> wrote:
>
> The build works fine.  Please check the following:
>
> 1.) Completely new svn checkout of "current" (no update - new
> checkout).  There was a big svn reorg and you may have old stuff
> cluttering your checkout dir.
>
> 2.) Remove the xslt-plugin from your repository as Bernd suggested.
> The one in the public maven repository is missing a key patch that
> Bernd wrote.  The master pom points to a special copy Bernd built and
> published to the atanion repository.
>
> 3.) Make sure you are running Maven 2.0.1 or higher.
>
> 4.) Run mvn install from the top level pom.xml (current/pom.xml).  The
> "master" pom contains a recent change that instructs maven to use
> atanion for plugins.  If you do not install this plugin (through
> maven/master-pom/pom.xml or ... current/pom.xml) then you won't be
> using the new repository.
>
> Please report back if you continue to have difficulties.
>
> Sean
>
>

Re: Problem building Maven XSLT plugin

Posted by Sean Schofield <se...@gmail.com>.
The build works fine.  Please check the following:

1.) Completely new svn checkout of "current" (no update - new
checkout).  There was a big svn reorg and you may have old stuff
cluttering your checkout dir.

2.) Remove the xslt-plugin from your repository as Bernd suggested. 
The one in the public maven repository is missing a key patch that
Bernd wrote.  The master pom points to a special copy Bernd built and
published to the atanion repository.

3.) Make sure you are running Maven 2.0.1 or higher.

4.) Run mvn install from the top level pom.xml (current/pom.xml).  The
"master" pom contains a recent change that instructs maven to use
atanion for plugins.  If you do not install this plugin (through
maven/master-pom/pom.xml or ... current/pom.xml) then you won't be
using the new repository.

Please report back if you continue to have difficulties.

Sean


On 1/20/06, Elam Daly <el...@gmail.com> wrote:
> No I'm fresh from an svn checkout and am getting the same thing.  This build
> process is a mess.
>
>
> On 1/20/06, Peter Henderson < peter.henderson@starjar.com> wrote:
> > Bernd Bohmann wrote:
> >
> > > Please remove the plugin from your repository.
> > >
> > > rm -rf
> ~/.m2/repository/org/codehaus/mojo/xslt-maven-plugin/
> > >
> > > then you should get a working version from the atanion repository.
> >
> >
> > Thanks for the reply Bernd.
> >
> > I dont have that plugin in my repository.
> >
> > peter@amd64 ~/downloads/java/maven/xslt $ ls -l
> > ~/.m2/repository/org/codehaus
> > ls: /home/peter/.m2/repository/org/codehaus: No such file
> or directory
> >
> > I feel like Im the only one who cant build MyFaces from svn...
> >
> > Regards
> > Peter.
> >
> >
> >
> > >
> > > Regards
> > >
> > > Bernd
> > >
> > > Peter Henderson schrieb:
> > >
> > >> Sean Schofield wrote:
> > >>
> > >>> Try also uncommenting this in the master pom
> > >>>
> > >>>  <pluginRepositories>
> > >>>    <pluginRepository>
> > >>>      <snapshots>
> > >>>        <enabled>true</enabled>
> > >>>      </snapshots>
> > >>>      <id>atanion</id>
> > >>>      <url>http://www.atanion.com/maven2</url>
> > >>>    </pluginRepository>
> > >>>  </pluginRepositories>
> > >>>
> > >>> I believe there is a working version of the plugin there.
> > >>>
> > >>> Sean
> > >>>
> > >>>
> > >>
> > >> Thanks. Excuse my maven inexperience. but the pom.xml I retreived
> > >> from svn does not have a commented out block as above.
> > >> I did add it, but it seemed to make no difference.
> > >>
> > >>
> > >> I had a look at the jira issue you linked to. I would post a follow
> > >> on, but it seems today is bug day and I've broken jira too. **sigh**.
> > >>
> > >> Peter.
> > >>
> > >>
> > >>>
> > >>> On 1/19/06, Sean Schofield < sean.schofield@gmail.com> wrote:
> > >>>
> > >>>
> > >>>> I had the same problem and posted an issue on it[1].  I haven't tried
> > >>>> rebuilding yet.  Let me know if this works.
> > >>>>
> > >>>> Sean
> > >>>>
> > >>>> [1]
> http://jira.codehaus.org/browse/MOJO-247?page=all
> > >>>>
> > >>>> On 1/19/06, Peter Henderson <pe...@starjar.com> wrote:
> > >>>>
> > >>>>
> > >>>>> Thomas Gaudin wrote:
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>> Hi,
> > >>>>>>
> > >>>>>> I had similar problem and to have the plugin installed I had to
> > >>>>>> modify
> > >>>>>> the pom.xml :
> > >>>>>>
> > >>>>>> <project>
> > >>>>>>   <modelVersion>4.0.0</modelVersion>
> > >>>>>>   <parent>
> > >>>>>>       <artifactId>mojo-sandbox</artifactId>
> > >>>>>>       <groupId>org.codehaus.mojo</groupId>
> > >>>>>>       <version>1</version>
> > >>>>>>     </parent>
> > >>>>>> ....
> > >>>>>>
> > >>>>>>
> > >>>>>
> > >>>>>
> > >>>>> Thanks for the feed back. Unfortunatly that does not fix the
> problem.
> > >>>>> I changed <version>2-SNAPSHOT</version> to <version>1</version>
> > >>>>> I also tried various version of 1  1.0 1-SNAPSHOT etc.
> > >>>>>
> > >>>>> Hmm Im even more confused, now, having just checked out the previous
> > >>>>> revisions of pom.xml (rev 1275 and 1168) I get the same error.
> > >>>>> Perhaps the problem is outside of my environment?
> > >>>>>
> > >>>>> Peter.
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>>> and run "mvn install"  from the root  directory but not from src
> > >>>>>>
> > >>>>>> Hope it helps,
> > >>>>>>
> > >>>>>> Thomas
> > >>>>>>
> > >>>>>> Peter Henderson a écrit :
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>> Hi list.
> > >>>>>>>
> > >>>>>>> Im trying to build MyFaces using Maven, by following the
> > >>>>>>> instructions
> > >>>>>>> at
> http://wiki.apache.org/myfaces/Building_With_Maven.
> > >>>>>>>
> > >>>>>>> The trouble is I cant even get the XSLT plugin to build. (Step 0)
> > >>>>>>>
> > >>>>>>> I check out the src.
> > >>>>>>>
> > >>>>>>> svn co
> > >>>>>>>
> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/xslt-maven-plugin
> > >>>>>>>
> > >>>>>>> A    xslt-maven-plugin/src
> > >>>>>>> A    xslt-maven-plugin/src/main
> > >>>>>>> A    xslt-maven-plugin/src/main/java
> > >>>>>>> A    xslt-maven-plugin/src/main/java/org
> > >>>>>>> A    xslt-maven-plugin/src/main/java/org/codehaus
> > >>>>>>> A
> xslt-maven-plugin/src/main/java/org/codehaus/mojo
> > >>>>>>> A
> xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt
> > >>>>>>> A
> > >>>>>>>
> xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt/XsltMojo.java
> > >>>>>>>
> > >>>>>>> A    xslt-maven-plugin/pom.xml
> > >>>>>>> Checked out revision 1356.
> > >>>>>>>
> > >>>>>>> OK no problem so far.
> > >>>>>>> Then I run
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> mvn install -e
> > >>>>>>> + Error stacktraces are turned on.
> > >>>>>>> [INFO] Scanning for projects...
> > >>>>>>> [INFO]
> > >>>>>>>
> ----------------------------------------------------------------------------
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> [INFO] Building Maven Default Project
> > >>>>>>> [INFO]    task-segment: [install]
> > >>>>>>> [INFO]
> > >>>>>>>
> ----------------------------------------------------------------------------
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> [INFO] artifact
> org.apache.maven.plugins:maven-resources-plugin:
> > >>>>>>> checking for updates from central
> > >>>>>>> Downloading:
> > >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.pom
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> 888b downloaded
> > >>>>>>> Downloading:
> > >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> 6K downloaded
> > >>>>>>> Downloading:
> > >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.jar
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> 10K downloaded
> > >>>>>>> [INFO] artifact
> org.apache.maven.plugins:maven-compiler-plugin:
> > >>>>>>> checking for updates from central
> > >>>>>>> Downloading:
> > >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.pom
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> 1K downloaded
> > >>>>>>> Downloading:
> > >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.jar
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> 13K downloaded
> > >>>>>>> [INFO] artifact
> org.apache.maven.plugins:maven-surefire-plugin:
> > >>>>>>> checking for updates from central
> > >>>>>>> Downloading:
> > >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.pom
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> 2K downloaded
> > >>>>>>> Downloading:
> > >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.jar
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> 9K downloaded
> > >>>>>>> [INFO] artifact
> org.apache.maven.plugins:maven-jar-plugin: checking
> > >>>>>>> for updates from central
> > >>>>>>> Downloading:
> > >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.pom
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> 737b downloaded
> > >>>>>>> Downloading:
> > >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.jar
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> 7K downloaded
> > >>>>>>> [INFO] artifact
> org.apache.maven.plugins:maven-install-plugin:
> > >>>>>>> checking for updates from central
> > >>>>>>> Downloading:
> > >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.pom
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> 981b downloaded
> > >>>>>>> Downloading:
> > >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.jar
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> 8K downloaded
> > >>>>>>> [INFO]
> > >>>>>>>
> ----------------------------------------------------------------------------
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> [ERROR] BUILD ERROR
> > >>>>>>> [INFO]
> > >>>>>>>
> ----------------------------------------------------------------------------
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> [INFO] Cannot execute mojo: resources. It requires a project
> > >>>>>>> with an
> > >>>>>>> existing pom.xml, but the build is not using one.
> > >>>>>>> [INFO]
> > >>>>>>>
> ----------------------------------------------------------------------------
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> [INFO] Trace
> > >>>>>>>
> org.apache.maven.lifecycle.LifecycleExecutionException:
> Cannot
> > >>>>>>> execute mojo: resources. It requires a project with an existing
> > >>>>>>> pom.xml, but the build is not using one.
> > >>>>>>>       at
> > >>>>>>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java
> :555)
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>       at
> > >>>>>>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java
> :472)
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>       at
> > >>>>>>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java
> :451)
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>       at
> > >>>>>>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> (DefaultLifecycleExecutor.java:303)
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>       at
> > >>>>>>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments
> (DefaultLifecycleExecutor.java:270)
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>       at
> > >>>>>>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute
> (DefaultLifecycleExecutor.java:139)
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>       at
> > >>>>>>>
> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java
> :322)
> > >>>>>>>       at
> > >>>>>>>
> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> > >>>>>>>       at
> org.apache.maven.cli.MavenCli.main(MavenCli.java :249)
> > >>>>>>>       at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> > >>>>>>> Method)
> > >>>>>>>       at
> > >>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>       at
> > >>>>>>>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
> :25)
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>       at java.lang.reflect.Method.invoke(Method.java:585)
> > >>>>>>>       at
> > >>>>>>>
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > >>>>>>>       at
> > >>>>>>>
> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > >>>>>>>       at
> > >>>>>>>
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > >>>>>>>
> > >>>>>>>       at
> org.codehaus.classworlds.Launcher.main(Launcher.java :375)
> > >>>>>>> Caused by:
> org.apache.maven.plugin.MojoExecutionException: Cannot
> > >>>>>>> execute mojo: resources. It requires a project with an existing
> > >>>>>>> pom.xml, but the build is not using one.
> > >>>>>>>       at
> > >>>>>>>
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:359)
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>       at
> > >>>>>>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>       ... 16 more
> > >>>>>>> [INFO]
> > >>>>>>>
> ----------------------------------------------------------------------------
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> [INFO] Total time: 2 minutes 44 seconds
> > >>>>>>> [INFO] Finished at: Thu Jan 19 14:37:12 GMT 2006
> > >>>>>>> [INFO] Final Memory: 2M/4M
> > >>>>>>> [INFO]
> > >>>>>>>
> ----------------------------------------------------------------------------
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> Whats wrong?
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> Cheers
> > >>>>>>>
> > >>>>>>> Peter Henderson.
> > >>>>>>>
> ---------------------------------------------------------------------------------------
> > >>>>>>>
> > >>>>>>>
> > >>>>>>> Wanadoo vous informe que cet  e-mail a ete controle par
> > >>>>>>> l'anti-virus
> > >>>>>>> mail. Aucun virus connu a ce jour par nos services n'a ete
> detecte.
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>>
> > >>>>>
> > >>>>>
> > >>>>>
> > >>>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>
> > >>
> > >
> >
> >
>
>

Re: Problem building Maven XSLT plugin

Posted by Elam Daly <el...@gmail.com>.
No I'm fresh from an svn checkout and am getting the same thing.  This build
process is a mess.

On 1/20/06, Peter Henderson <pe...@starjar.com> wrote:
>
> Bernd Bohmann wrote:
>
> > Please remove the plugin from your repository.
> >
> > rm -rf ~/.m2/repository/org/codehaus/mojo/xslt-maven-plugin/
> >
> > then you should get a working version from the atanion repository.
>
>
> Thanks for the reply Bernd.
>
> I dont have that plugin in my repository.
>
> peter@amd64 ~/downloads/java/maven/xslt $ ls -l
> ~/.m2/repository/org/codehaus
> ls: /home/peter/.m2/repository/org/codehaus: No such file or directory
>
> I feel like Im the only one who cant build MyFaces from svn...
>
> Regards
> Peter.
>
>
>
> >
> > Regards
> >
> > Bernd
> >
> > Peter Henderson schrieb:
> >
> >> Sean Schofield wrote:
> >>
> >>> Try also uncommenting this in the master pom
> >>>
> >>>  <pluginRepositories>
> >>>    <pluginRepository>
> >>>      <snapshots>
> >>>        <enabled>true</enabled>
> >>>      </snapshots>
> >>>      <id>atanion</id>
> >>>      <url>http://www.atanion.com/maven2</url>
> >>>    </pluginRepository>
> >>>  </pluginRepositories>
> >>>
> >>> I believe there is a working version of the plugin there.
> >>>
> >>> Sean
> >>>
> >>>
> >>
> >> Thanks. Excuse my maven inexperience. but the pom.xml I retreived
> >> from svn does not have a commented out block as above.
> >> I did add it, but it seemed to make no difference.
> >>
> >>
> >> I had a look at the jira issue you linked to. I would post a follow
> >> on, but it seems today is bug day and I've broken jira too. **sigh**.
> >>
> >> Peter.
> >>
> >>
> >>>
> >>> On 1/19/06, Sean Schofield <se...@gmail.com> wrote:
> >>>
> >>>
> >>>> I had the same problem and posted an issue on it[1].  I haven't tried
> >>>> rebuilding yet.  Let me know if this works.
> >>>>
> >>>> Sean
> >>>>
> >>>> [1] http://jira.codehaus.org/browse/MOJO-247?page=all
> >>>>
> >>>> On 1/19/06, Peter Henderson <pe...@starjar.com> wrote:
> >>>>
> >>>>
> >>>>> Thomas Gaudin wrote:
> >>>>>
> >>>>>
> >>>>>
> >>>>>> Hi,
> >>>>>>
> >>>>>> I had similar problem and to have the plugin installed I had to
> >>>>>> modify
> >>>>>> the pom.xml :
> >>>>>>
> >>>>>> <project>
> >>>>>>   <modelVersion>4.0.0</modelVersion>
> >>>>>>   <parent>
> >>>>>>       <artifactId>mojo-sandbox</artifactId>
> >>>>>>       <groupId>org.codehaus.mojo</groupId>
> >>>>>>       <version>1</version>
> >>>>>>     </parent>
> >>>>>> ....
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>> Thanks for the feed back. Unfortunatly that does not fix the
> problem.
> >>>>> I changed <version>2-SNAPSHOT</version> to <version>1</version>
> >>>>> I also tried various version of 1  1.0 1-SNAPSHOT etc.
> >>>>>
> >>>>> Hmm Im even more confused, now, having just checked out the previous
> >>>>> revisions of pom.xml (rev 1275 and 1168) I get the same error.
> >>>>> Perhaps the problem is outside of my environment?
> >>>>>
> >>>>> Peter.
> >>>>>
> >>>>>
> >>>>>
> >>>>>> and run "mvn install"  from the root  directory but not from src
> >>>>>>
> >>>>>> Hope it helps,
> >>>>>>
> >>>>>> Thomas
> >>>>>>
> >>>>>> Peter Henderson a écrit :
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>> Hi list.
> >>>>>>>
> >>>>>>> Im trying to build MyFaces using Maven, by following the
> >>>>>>> instructions
> >>>>>>> at http://wiki.apache.org/myfaces/Building_With_Maven.
> >>>>>>>
> >>>>>>> The trouble is I cant even get the XSLT plugin to build. (Step 0)
> >>>>>>>
> >>>>>>> I check out the src.
> >>>>>>>
> >>>>>>> svn co
> >>>>>>>
> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/xslt-maven-plugin
> >>>>>>>
> >>>>>>> A    xslt-maven-plugin/src
> >>>>>>> A    xslt-maven-plugin/src/main
> >>>>>>> A    xslt-maven-plugin/src/main/java
> >>>>>>> A    xslt-maven-plugin/src/main/java/org
> >>>>>>> A    xslt-maven-plugin/src/main/java/org/codehaus
> >>>>>>> A    xslt-maven-plugin/src/main/java/org/codehaus/mojo
> >>>>>>> A    xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt
> >>>>>>> A
> >>>>>>>
> xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt/XsltMojo.java
> >>>>>>>
> >>>>>>> A    xslt-maven-plugin/pom.xml
> >>>>>>> Checked out revision 1356.
> >>>>>>>
> >>>>>>> OK no problem so far.
> >>>>>>> Then I run
> >>>>>>>
> >>>>>>>
> >>>>>>> mvn install -e
> >>>>>>> + Error stacktraces are turned on.
> >>>>>>> [INFO] Scanning for projects...
> >>>>>>> [INFO]
> >>>>>>>
> ----------------------------------------------------------------------------
> >>>>>>>
> >>>>>>>
> >>>>>>> [INFO] Building Maven Default Project
> >>>>>>> [INFO]    task-segment: [install]
> >>>>>>> [INFO]
> >>>>>>>
> ----------------------------------------------------------------------------
> >>>>>>>
> >>>>>>>
> >>>>>>> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin:
> >>>>>>> checking for updates from central
> >>>>>>> Downloading:
> >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.pom
> >>>>>>>
> >>>>>>>
> >>>>>>> 888b downloaded
> >>>>>>> Downloading:
> >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom
> >>>>>>>
> >>>>>>>
> >>>>>>> 6K downloaded
> >>>>>>> Downloading:
> >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.jar
> >>>>>>>
> >>>>>>>
> >>>>>>> 10K downloaded
> >>>>>>> [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin:
> >>>>>>> checking for updates from central
> >>>>>>> Downloading:
> >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.pom
> >>>>>>>
> >>>>>>>
> >>>>>>> 1K downloaded
> >>>>>>> Downloading:
> >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.jar
> >>>>>>>
> >>>>>>>
> >>>>>>> 13K downloaded
> >>>>>>> [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin:
> >>>>>>> checking for updates from central
> >>>>>>> Downloading:
> >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.pom
> >>>>>>>
> >>>>>>>
> >>>>>>> 2K downloaded
> >>>>>>> Downloading:
> >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.jar
> >>>>>>>
> >>>>>>>
> >>>>>>> 9K downloaded
> >>>>>>> [INFO] artifact org.apache.maven.plugins:maven-jar-plugin:checking
> >>>>>>> for updates from central
> >>>>>>> Downloading:
> >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.pom
> >>>>>>>
> >>>>>>>
> >>>>>>> 737b downloaded
> >>>>>>> Downloading:
> >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.jar
> >>>>>>>
> >>>>>>>
> >>>>>>> 7K downloaded
> >>>>>>> [INFO] artifact org.apache.maven.plugins:maven-install-plugin:
> >>>>>>> checking for updates from central
> >>>>>>> Downloading:
> >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.pom
> >>>>>>>
> >>>>>>>
> >>>>>>> 981b downloaded
> >>>>>>> Downloading:
> >>>>>>>
> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.jar
> >>>>>>>
> >>>>>>>
> >>>>>>> 8K downloaded
> >>>>>>> [INFO]
> >>>>>>>
> ----------------------------------------------------------------------------
> >>>>>>>
> >>>>>>>
> >>>>>>> [ERROR] BUILD ERROR
> >>>>>>> [INFO]
> >>>>>>>
> ----------------------------------------------------------------------------
> >>>>>>>
> >>>>>>>
> >>>>>>> [INFO] Cannot execute mojo: resources. It requires a project
> >>>>>>> with an
> >>>>>>> existing pom.xml, but the build is not using one.
> >>>>>>> [INFO]
> >>>>>>>
> ----------------------------------------------------------------------------
> >>>>>>>
> >>>>>>>
> >>>>>>> [INFO] Trace
> >>>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Cannot
> >>>>>>> execute mojo: resources. It requires a project with an existing
> >>>>>>> pom.xml, but the build is not using one.
> >>>>>>>       at
> >>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:555)
> >>>>>>>
> >>>>>>>
> >>>>>>>       at
> >>>>>>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle
> (DefaultLifecycleExecutor.java:472)
> >>>>>>>
> >>>>>>>
> >>>>>>>       at
> >>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(
> DefaultLifecycleExecutor.java:451)
> >>>>>>>
> >>>>>>>
> >>>>>>>       at
> >>>>>>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures
> (DefaultLifecycleExecutor.java:303)
> >>>>>>>
> >>>>>>>
> >>>>>>>       at
> >>>>>>>
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(
> DefaultLifecycleExecutor.java:270)
> >>>>>>>
> >>>>>>>
> >>>>>>>       at
> >>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(
> DefaultLifecycleExecutor.java:139)
> >>>>>>>
> >>>>>>>
> >>>>>>>       at
> >>>>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> >>>>>>>       at
> >>>>>>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> >>>>>>>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> >>>>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> >>>>>>> Method)
> >>>>>>>       at
> >>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(
> NativeMethodAccessorImpl.java:39)
> >>>>>>>
> >>>>>>>
> >>>>>>>       at
> >>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:25)
> >>>>>>>
> >>>>>>>
> >>>>>>>       at java.lang.reflect.Method.invoke(Method.java:585)
> >>>>>>>       at
> >>>>>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java
> :315)
> >>>>>>>       at
> >>>>>>> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> >>>>>>>       at
> >>>>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java
> :430)
> >>>>>>>
> >>>>>>>       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> >>>>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot
> >>>>>>> execute mojo: resources. It requires a project with an existing
> >>>>>>> pom.xml, but the build is not using one.
> >>>>>>>       at
> >>>>>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(
> DefaultPluginManager.java:359)
> >>>>>>>
> >>>>>>>
> >>>>>>>       at
> >>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(
> DefaultLifecycleExecutor.java:530)
> >>>>>>>
> >>>>>>>
> >>>>>>>       ... 16 more
> >>>>>>> [INFO]
> >>>>>>>
> ----------------------------------------------------------------------------
> >>>>>>>
> >>>>>>>
> >>>>>>> [INFO] Total time: 2 minutes 44 seconds
> >>>>>>> [INFO] Finished at: Thu Jan 19 14:37:12 GMT 2006
> >>>>>>> [INFO] Final Memory: 2M/4M
> >>>>>>> [INFO]
> >>>>>>>
> ----------------------------------------------------------------------------
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>> Whats wrong?
> >>>>>>>
> >>>>>>>
> >>>>>>> Cheers
> >>>>>>>
> >>>>>>> Peter Henderson.
> >>>>>>>
> ---------------------------------------------------------------------------------------
> >>>>>>>
> >>>>>>>
> >>>>>>> Wanadoo vous informe que cet  e-mail a ete controle par
> >>>>>>> l'anti-virus
> >>>>>>> mail. Aucun virus connu a ce jour par nos services n'a ete
> detecte.
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>>
> >>>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >
>
>

Re: Problem building Maven XSLT plugin

Posted by Peter Henderson <pe...@starjar.com>.
Bernd Bohmann wrote:

> Please remove the plugin from your repository.
>
> rm -rf ~/.m2/repository/org/codehaus/mojo/xslt-maven-plugin/
>
> then you should get a working version from the atanion repository.


Thanks for the reply Bernd.

I dont have that plugin in my repository.

peter@amd64 ~/downloads/java/maven/xslt $ ls -l 
~/.m2/repository/org/codehaus
ls: /home/peter/.m2/repository/org/codehaus: No such file or directory

I feel like Im the only one who cant build MyFaces from svn...

Regards
Peter.



>
> Regards
>
> Bernd
>
> Peter Henderson schrieb:
>
>> Sean Schofield wrote:
>>
>>> Try also uncommenting this in the master pom
>>>
>>>  <pluginRepositories>
>>>    <pluginRepository>
>>>      <snapshots>
>>>        <enabled>true</enabled>
>>>      </snapshots>
>>>      <id>atanion</id>
>>>      <url>http://www.atanion.com/maven2</url>
>>>    </pluginRepository>
>>>  </pluginRepositories>
>>>
>>> I believe there is a working version of the plugin there.
>>>
>>> Sean
>>>  
>>>
>>
>> Thanks. Excuse my maven inexperience. but the pom.xml I retreived 
>> from svn does not have a commented out block as above.
>> I did add it, but it seemed to make no difference.
>>
>>
>> I had a look at the jira issue you linked to. I would post a follow 
>> on, but it seems today is bug day and I've broken jira too. **sigh**.
>>
>> Peter.
>>
>>
>>>
>>> On 1/19/06, Sean Schofield <se...@gmail.com> wrote:
>>>  
>>>
>>>> I had the same problem and posted an issue on it[1].  I haven't tried
>>>> rebuilding yet.  Let me know if this works.
>>>>
>>>> Sean
>>>>
>>>> [1] http://jira.codehaus.org/browse/MOJO-247?page=all
>>>>
>>>> On 1/19/06, Peter Henderson <pe...@starjar.com> wrote:
>>>>  
>>>>
>>>>> Thomas Gaudin wrote:
>>>>>
>>>>>    
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I had similar problem and to have the plugin installed I had to 
>>>>>> modify
>>>>>> the pom.xml :
>>>>>>
>>>>>> <project>
>>>>>>   <modelVersion>4.0.0</modelVersion>
>>>>>>   <parent>
>>>>>>       <artifactId>mojo-sandbox</artifactId>
>>>>>>       <groupId>org.codehaus.mojo</groupId>
>>>>>>       <version>1</version>
>>>>>>     </parent>
>>>>>> ....
>>>>>>
>>>>>>       
>>>>>
>>>>>
>>>>> Thanks for the feed back. Unfortunatly that does not fix the problem.
>>>>> I changed <version>2-SNAPSHOT</version> to <version>1</version>
>>>>> I also tried various version of 1  1.0 1-SNAPSHOT etc.
>>>>>
>>>>> Hmm Im even more confused, now, having just checked out the previous
>>>>> revisions of pom.xml (rev 1275 and 1168) I get the same error.
>>>>> Perhaps the problem is outside of my environment?
>>>>>
>>>>> Peter.
>>>>>
>>>>>    
>>>>>
>>>>>> and run "mvn install"  from the root  directory but not from src
>>>>>>
>>>>>> Hope it helps,
>>>>>>
>>>>>> Thomas
>>>>>>
>>>>>> Peter Henderson a écrit :
>>>>>>
>>>>>>      
>>>>>>
>>>>>>> Hi list.
>>>>>>>
>>>>>>> Im trying to build MyFaces using Maven, by following the 
>>>>>>> instructions
>>>>>>> at http://wiki.apache.org/myfaces/Building_With_Maven.
>>>>>>>
>>>>>>> The trouble is I cant even get the XSLT plugin to build. (Step 0)
>>>>>>>
>>>>>>> I check out the src.
>>>>>>>
>>>>>>> svn co
>>>>>>> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/xslt-maven-plugin 
>>>>>>>
>>>>>>> A    xslt-maven-plugin/src
>>>>>>> A    xslt-maven-plugin/src/main
>>>>>>> A    xslt-maven-plugin/src/main/java
>>>>>>> A    xslt-maven-plugin/src/main/java/org
>>>>>>> A    xslt-maven-plugin/src/main/java/org/codehaus
>>>>>>> A    xslt-maven-plugin/src/main/java/org/codehaus/mojo
>>>>>>> A    xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt
>>>>>>> A
>>>>>>> xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt/XsltMojo.java 
>>>>>>>
>>>>>>> A    xslt-maven-plugin/pom.xml
>>>>>>> Checked out revision 1356.
>>>>>>>
>>>>>>> OK no problem so far.
>>>>>>> Then I run
>>>>>>>
>>>>>>>
>>>>>>> mvn install -e
>>>>>>> + Error stacktraces are turned on.
>>>>>>> [INFO] Scanning for projects...
>>>>>>> [INFO]
>>>>>>> ---------------------------------------------------------------------------- 
>>>>>>>
>>>>>>>
>>>>>>> [INFO] Building Maven Default Project
>>>>>>> [INFO]    task-segment: [install]
>>>>>>> [INFO]
>>>>>>> ---------------------------------------------------------------------------- 
>>>>>>>
>>>>>>>
>>>>>>> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin:
>>>>>>> checking for updates from central
>>>>>>> Downloading:
>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.pom 
>>>>>>>
>>>>>>>
>>>>>>> 888b downloaded
>>>>>>> Downloading:
>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom 
>>>>>>>
>>>>>>>
>>>>>>> 6K downloaded
>>>>>>> Downloading:
>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.jar 
>>>>>>>
>>>>>>>
>>>>>>> 10K downloaded
>>>>>>> [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin:
>>>>>>> checking for updates from central
>>>>>>> Downloading:
>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.pom 
>>>>>>>
>>>>>>>
>>>>>>> 1K downloaded
>>>>>>> Downloading:
>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.jar 
>>>>>>>
>>>>>>>
>>>>>>> 13K downloaded
>>>>>>> [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin:
>>>>>>> checking for updates from central
>>>>>>> Downloading:
>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.pom 
>>>>>>>
>>>>>>>
>>>>>>> 2K downloaded
>>>>>>> Downloading:
>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.jar 
>>>>>>>
>>>>>>>
>>>>>>> 9K downloaded
>>>>>>> [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking
>>>>>>> for updates from central
>>>>>>> Downloading:
>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.pom 
>>>>>>>
>>>>>>>
>>>>>>> 737b downloaded
>>>>>>> Downloading:
>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.jar 
>>>>>>>
>>>>>>>
>>>>>>> 7K downloaded
>>>>>>> [INFO] artifact org.apache.maven.plugins:maven-install-plugin:
>>>>>>> checking for updates from central
>>>>>>> Downloading:
>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.pom 
>>>>>>>
>>>>>>>
>>>>>>> 981b downloaded
>>>>>>> Downloading:
>>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.jar 
>>>>>>>
>>>>>>>
>>>>>>> 8K downloaded
>>>>>>> [INFO]
>>>>>>> ---------------------------------------------------------------------------- 
>>>>>>>
>>>>>>>
>>>>>>> [ERROR] BUILD ERROR
>>>>>>> [INFO]
>>>>>>> ---------------------------------------------------------------------------- 
>>>>>>>
>>>>>>>
>>>>>>> [INFO] Cannot execute mojo: resources. It requires a project 
>>>>>>> with an
>>>>>>> existing pom.xml, but the build is not using one.
>>>>>>> [INFO]
>>>>>>> ---------------------------------------------------------------------------- 
>>>>>>>
>>>>>>>
>>>>>>> [INFO] Trace
>>>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Cannot
>>>>>>> execute mojo: resources. It requires a project with an existing
>>>>>>> pom.xml, but the build is not using one.
>>>>>>>       at
>>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555) 
>>>>>>>
>>>>>>>
>>>>>>>       at
>>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472) 
>>>>>>>
>>>>>>>
>>>>>>>       at
>>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451) 
>>>>>>>
>>>>>>>
>>>>>>>       at
>>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303) 
>>>>>>>
>>>>>>>
>>>>>>>       at
>>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270) 
>>>>>>>
>>>>>>>
>>>>>>>       at
>>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139) 
>>>>>>>
>>>>>>>
>>>>>>>       at 
>>>>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>>>>>>>       at 
>>>>>>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>>>>>>>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>>>>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native 
>>>>>>> Method)
>>>>>>>       at
>>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>>>>>>>
>>>>>>>
>>>>>>>       at
>>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>>>>>>>
>>>>>>>
>>>>>>>       at java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>>       at
>>>>>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>>>>       at 
>>>>>>> org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>>>>       at
>>>>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) 
>>>>>>>
>>>>>>>       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot
>>>>>>> execute mojo: resources. It requires a project with an existing
>>>>>>> pom.xml, but the build is not using one.
>>>>>>>       at
>>>>>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:359) 
>>>>>>>
>>>>>>>
>>>>>>>       at
>>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530) 
>>>>>>>
>>>>>>>
>>>>>>>       ... 16 more
>>>>>>> [INFO]
>>>>>>> ---------------------------------------------------------------------------- 
>>>>>>>
>>>>>>>
>>>>>>> [INFO] Total time: 2 minutes 44 seconds
>>>>>>> [INFO] Finished at: Thu Jan 19 14:37:12 GMT 2006
>>>>>>> [INFO] Final Memory: 2M/4M
>>>>>>> [INFO]
>>>>>>> ---------------------------------------------------------------------------- 
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Whats wrong?
>>>>>>>
>>>>>>>
>>>>>>> Cheers
>>>>>>>
>>>>>>> Peter Henderson.
>>>>>>> --------------------------------------------------------------------------------------- 
>>>>>>>
>>>>>>>
>>>>>>> Wanadoo vous informe que cet  e-mail a ete controle par 
>>>>>>> l'anti-virus
>>>>>>> mail. Aucun virus connu a ce jour par nos services n'a ete detecte.
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>         
>>>>>>
>>>>>>
>>>>>>
>>>>>>       
>>>>>
>>>>>
>>>>>     
>>>>
>>>
>>>
>>>  
>>>
>>
>>
>


Re: Problem building Maven XSLT plugin

Posted by Bernd Bohmann <be...@atanion.com>.
Please remove the plugin from your repository.

rm -rf ~/.m2/repository/org/codehaus/mojo/xslt-maven-plugin/

then you should get a working version from the atanion repository.

Regards

Bernd

Peter Henderson schrieb:
> Sean Schofield wrote:
> 
>> Try also uncommenting this in the master pom
>>
>>  <pluginRepositories>
>>    <pluginRepository>
>>      <snapshots>
>>        <enabled>true</enabled>
>>      </snapshots>
>>      <id>atanion</id>
>>      <url>http://www.atanion.com/maven2</url>
>>    </pluginRepository>
>>  </pluginRepositories>
>>
>> I believe there is a working version of the plugin there.
>>
>> Sean
>>  
>>
> 
> Thanks. Excuse my maven inexperience. but the pom.xml I retreived from 
> svn does not have a commented out block as above.
> I did add it, but it seemed to make no difference.
> 
> 
> I had a look at the jira issue you linked to. I would post a follow on, 
> but it seems today is bug day and I've broken jira too. **sigh**.
> 
> Peter.
> 
> 
>>
>> On 1/19/06, Sean Schofield <se...@gmail.com> wrote:
>>  
>>
>>> I had the same problem and posted an issue on it[1].  I haven't tried
>>> rebuilding yet.  Let me know if this works.
>>>
>>> Sean
>>>
>>> [1] http://jira.codehaus.org/browse/MOJO-247?page=all
>>>
>>> On 1/19/06, Peter Henderson <pe...@starjar.com> wrote:
>>>   
>>>
>>>> Thomas Gaudin wrote:
>>>>
>>>>     
>>>>
>>>>> Hi,
>>>>>
>>>>> I had similar problem and to have the plugin installed I had to modify
>>>>> the pom.xml :
>>>>>
>>>>> <project>
>>>>>   <modelVersion>4.0.0</modelVersion>
>>>>>   <parent>
>>>>>       <artifactId>mojo-sandbox</artifactId>
>>>>>       <groupId>org.codehaus.mojo</groupId>
>>>>>       <version>1</version>
>>>>>     </parent>
>>>>> ....
>>>>>
>>>>>       
>>>>
>>>> Thanks for the feed back. Unfortunatly that does not fix the problem.
>>>> I changed <version>2-SNAPSHOT</version> to <version>1</version>
>>>> I also tried various version of 1  1.0 1-SNAPSHOT etc.
>>>>
>>>> Hmm Im even more confused, now, having just checked out the previous
>>>> revisions of pom.xml (rev 1275 and 1168) I get the same error.
>>>> Perhaps the problem is outside of my environment?
>>>>
>>>> Peter.
>>>>
>>>>     
>>>>
>>>>> and run "mvn install"  from the root  directory but not from src
>>>>>
>>>>> Hope it helps,
>>>>>
>>>>> Thomas
>>>>>
>>>>> Peter Henderson a écrit :
>>>>>
>>>>>       
>>>>>
>>>>>> Hi list.
>>>>>>
>>>>>> Im trying to build MyFaces using Maven, by following the instructions
>>>>>> at http://wiki.apache.org/myfaces/Building_With_Maven.
>>>>>>
>>>>>> The trouble is I cant even get the XSLT plugin to build. (Step 0)
>>>>>>
>>>>>> I check out the src.
>>>>>>
>>>>>> svn co
>>>>>> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/xslt-maven-plugin 
>>>>>>
>>>>>> A    xslt-maven-plugin/src
>>>>>> A    xslt-maven-plugin/src/main
>>>>>> A    xslt-maven-plugin/src/main/java
>>>>>> A    xslt-maven-plugin/src/main/java/org
>>>>>> A    xslt-maven-plugin/src/main/java/org/codehaus
>>>>>> A    xslt-maven-plugin/src/main/java/org/codehaus/mojo
>>>>>> A    xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt
>>>>>> A
>>>>>> xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt/XsltMojo.java
>>>>>> A    xslt-maven-plugin/pom.xml
>>>>>> Checked out revision 1356.
>>>>>>
>>>>>> OK no problem so far.
>>>>>> Then I run
>>>>>>
>>>>>>
>>>>>> mvn install -e
>>>>>> + Error stacktraces are turned on.
>>>>>> [INFO] Scanning for projects...
>>>>>> [INFO]
>>>>>> ---------------------------------------------------------------------------- 
>>>>>>
>>>>>>
>>>>>> [INFO] Building Maven Default Project
>>>>>> [INFO]    task-segment: [install]
>>>>>> [INFO]
>>>>>> ---------------------------------------------------------------------------- 
>>>>>>
>>>>>>
>>>>>> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin:
>>>>>> checking for updates from central
>>>>>> Downloading:
>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.pom 
>>>>>>
>>>>>>
>>>>>> 888b downloaded
>>>>>> Downloading:
>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom 
>>>>>>
>>>>>>
>>>>>> 6K downloaded
>>>>>> Downloading:
>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.jar 
>>>>>>
>>>>>>
>>>>>> 10K downloaded
>>>>>> [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin:
>>>>>> checking for updates from central
>>>>>> Downloading:
>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.pom 
>>>>>>
>>>>>>
>>>>>> 1K downloaded
>>>>>> Downloading:
>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.jar 
>>>>>>
>>>>>>
>>>>>> 13K downloaded
>>>>>> [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin:
>>>>>> checking for updates from central
>>>>>> Downloading:
>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.pom 
>>>>>>
>>>>>>
>>>>>> 2K downloaded
>>>>>> Downloading:
>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.jar 
>>>>>>
>>>>>>
>>>>>> 9K downloaded
>>>>>> [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking
>>>>>> for updates from central
>>>>>> Downloading:
>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.pom 
>>>>>>
>>>>>>
>>>>>> 737b downloaded
>>>>>> Downloading:
>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.jar 
>>>>>>
>>>>>>
>>>>>> 7K downloaded
>>>>>> [INFO] artifact org.apache.maven.plugins:maven-install-plugin:
>>>>>> checking for updates from central
>>>>>> Downloading:
>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.pom 
>>>>>>
>>>>>>
>>>>>> 981b downloaded
>>>>>> Downloading:
>>>>>> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.jar 
>>>>>>
>>>>>>
>>>>>> 8K downloaded
>>>>>> [INFO]
>>>>>> ---------------------------------------------------------------------------- 
>>>>>>
>>>>>>
>>>>>> [ERROR] BUILD ERROR
>>>>>> [INFO]
>>>>>> ---------------------------------------------------------------------------- 
>>>>>>
>>>>>>
>>>>>> [INFO] Cannot execute mojo: resources. It requires a project with an
>>>>>> existing pom.xml, but the build is not using one.
>>>>>> [INFO]
>>>>>> ---------------------------------------------------------------------------- 
>>>>>>
>>>>>>
>>>>>> [INFO] Trace
>>>>>> org.apache.maven.lifecycle.LifecycleExecutionException: Cannot
>>>>>> execute mojo: resources. It requires a project with an existing
>>>>>> pom.xml, but the build is not using one.
>>>>>>       at
>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555) 
>>>>>>
>>>>>>
>>>>>>       at
>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472) 
>>>>>>
>>>>>>
>>>>>>       at
>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451) 
>>>>>>
>>>>>>
>>>>>>       at
>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303) 
>>>>>>
>>>>>>
>>>>>>       at
>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270) 
>>>>>>
>>>>>>
>>>>>>       at
>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139) 
>>>>>>
>>>>>>
>>>>>>       at 
>>>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>>>>>>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>>>>>>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>>>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>>       at
>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
>>>>>>
>>>>>>
>>>>>>       at
>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
>>>>>>
>>>>>>
>>>>>>       at java.lang.reflect.Method.invoke(Method.java:585)
>>>>>>       at
>>>>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>>>       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>>>       at
>>>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>>>       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>>> Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot
>>>>>> execute mojo: resources. It requires a project with an existing
>>>>>> pom.xml, but the build is not using one.
>>>>>>       at
>>>>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:359) 
>>>>>>
>>>>>>
>>>>>>       at
>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530) 
>>>>>>
>>>>>>
>>>>>>       ... 16 more
>>>>>> [INFO]
>>>>>> ---------------------------------------------------------------------------- 
>>>>>>
>>>>>>
>>>>>> [INFO] Total time: 2 minutes 44 seconds
>>>>>> [INFO] Finished at: Thu Jan 19 14:37:12 GMT 2006
>>>>>> [INFO] Final Memory: 2M/4M
>>>>>> [INFO]
>>>>>> ---------------------------------------------------------------------------- 
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> Whats wrong?
>>>>>>
>>>>>>
>>>>>> Cheers
>>>>>>
>>>>>> Peter Henderson.
>>>>>> --------------------------------------------------------------------------------------- 
>>>>>>
>>>>>>
>>>>>> Wanadoo vous informe que cet  e-mail a ete controle par l'anti-virus
>>>>>> mail. Aucun virus connu a ce jour par nos services n'a ete detecte.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>         
>>>>>
>>>>>
>>>>>       
>>>>
>>>>     
>>
>>
>>  
>>
> 
> 

-- 
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333

Re: Problem building Maven XSLT plugin

Posted by Peter Henderson <pe...@starjar.com>.
Sean Schofield wrote:

>Try also uncommenting this in the master pom
>
>  <pluginRepositories>
>    <pluginRepository>
>      <snapshots>
>        <enabled>true</enabled>
>      </snapshots>
>      <id>atanion</id>
>      <url>http://www.atanion.com/maven2</url>
>    </pluginRepository>
>  </pluginRepositories>
>
>I believe there is a working version of the plugin there.
>
>Sean
>  
>

Thanks. Excuse my maven inexperience. but the pom.xml I retreived from 
svn does not have a commented out block as above.
I did add it, but it seemed to make no difference.


I had a look at the jira issue you linked to. I would post a follow on, 
but it seems today is bug day and I've broken jira too. **sigh**.

Peter.


>
>On 1/19/06, Sean Schofield <se...@gmail.com> wrote:
>  
>
>>I had the same problem and posted an issue on it[1].  I haven't tried
>>rebuilding yet.  Let me know if this works.
>>
>>Sean
>>
>>[1] http://jira.codehaus.org/browse/MOJO-247?page=all
>>
>>On 1/19/06, Peter Henderson <pe...@starjar.com> wrote:
>>    
>>
>>>Thomas Gaudin wrote:
>>>
>>>      
>>>
>>>>Hi,
>>>>
>>>>I had similar problem and to have the plugin installed I had to modify
>>>>the pom.xml :
>>>>
>>>><project>
>>>>   <modelVersion>4.0.0</modelVersion>
>>>>   <parent>
>>>>       <artifactId>mojo-sandbox</artifactId>
>>>>       <groupId>org.codehaus.mojo</groupId>
>>>>       <version>1</version>
>>>>     </parent>
>>>>....
>>>>
>>>>        
>>>>
>>>Thanks for the feed back. Unfortunatly that does not fix the problem.
>>>I changed <version>2-SNAPSHOT</version> to <version>1</version>
>>>I also tried various version of 1  1.0 1-SNAPSHOT etc.
>>>
>>>Hmm Im even more confused, now, having just checked out the previous
>>>revisions of pom.xml (rev 1275 and 1168) I get the same error.
>>>Perhaps the problem is outside of my environment?
>>>
>>>Peter.
>>>
>>>      
>>>
>>>>and run "mvn install"  from the root  directory but not from src
>>>>
>>>>Hope it helps,
>>>>
>>>>Thomas
>>>>
>>>>Peter Henderson a écrit :
>>>>
>>>>        
>>>>
>>>>>Hi list.
>>>>>
>>>>>Im trying to build MyFaces using Maven, by following the instructions
>>>>>at http://wiki.apache.org/myfaces/Building_With_Maven.
>>>>>
>>>>>The trouble is I cant even get the XSLT plugin to build. (Step 0)
>>>>>
>>>>>I check out the src.
>>>>>
>>>>>svn co
>>>>>https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/xslt-maven-plugin
>>>>>A    xslt-maven-plugin/src
>>>>>A    xslt-maven-plugin/src/main
>>>>>A    xslt-maven-plugin/src/main/java
>>>>>A    xslt-maven-plugin/src/main/java/org
>>>>>A    xslt-maven-plugin/src/main/java/org/codehaus
>>>>>A    xslt-maven-plugin/src/main/java/org/codehaus/mojo
>>>>>A    xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt
>>>>>A
>>>>>xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt/XsltMojo.java
>>>>>A    xslt-maven-plugin/pom.xml
>>>>>Checked out revision 1356.
>>>>>
>>>>>OK no problem so far.
>>>>>Then I run
>>>>>
>>>>>
>>>>>mvn install -e
>>>>>+ Error stacktraces are turned on.
>>>>>[INFO] Scanning for projects...
>>>>>[INFO]
>>>>>----------------------------------------------------------------------------
>>>>>
>>>>>[INFO] Building Maven Default Project
>>>>>[INFO]    task-segment: [install]
>>>>>[INFO]
>>>>>----------------------------------------------------------------------------
>>>>>
>>>>>[INFO] artifact org.apache.maven.plugins:maven-resources-plugin:
>>>>>checking for updates from central
>>>>>Downloading:
>>>>>http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.pom
>>>>>
>>>>>888b downloaded
>>>>>Downloading:
>>>>>http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom
>>>>>
>>>>>6K downloaded
>>>>>Downloading:
>>>>>http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.jar
>>>>>
>>>>>10K downloaded
>>>>>[INFO] artifact org.apache.maven.plugins:maven-compiler-plugin:
>>>>>checking for updates from central
>>>>>Downloading:
>>>>>http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.pom
>>>>>
>>>>>1K downloaded
>>>>>Downloading:
>>>>>http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.jar
>>>>>
>>>>>13K downloaded
>>>>>[INFO] artifact org.apache.maven.plugins:maven-surefire-plugin:
>>>>>checking for updates from central
>>>>>Downloading:
>>>>>http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.pom
>>>>>
>>>>>2K downloaded
>>>>>Downloading:
>>>>>http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.jar
>>>>>
>>>>>9K downloaded
>>>>>[INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking
>>>>>for updates from central
>>>>>Downloading:
>>>>>http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.pom
>>>>>
>>>>>737b downloaded
>>>>>Downloading:
>>>>>http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.jar
>>>>>
>>>>>7K downloaded
>>>>>[INFO] artifact org.apache.maven.plugins:maven-install-plugin:
>>>>>checking for updates from central
>>>>>Downloading:
>>>>>http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.pom
>>>>>
>>>>>981b downloaded
>>>>>Downloading:
>>>>>http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.jar
>>>>>
>>>>>8K downloaded
>>>>>[INFO]
>>>>>----------------------------------------------------------------------------
>>>>>
>>>>>[ERROR] BUILD ERROR
>>>>>[INFO]
>>>>>----------------------------------------------------------------------------
>>>>>
>>>>>[INFO] Cannot execute mojo: resources. It requires a project with an
>>>>>existing pom.xml, but the build is not using one.
>>>>>[INFO]
>>>>>----------------------------------------------------------------------------
>>>>>
>>>>>[INFO] Trace
>>>>>org.apache.maven.lifecycle.LifecycleExecutionException: Cannot
>>>>>execute mojo: resources. It requires a project with an existing
>>>>>pom.xml, but the build is not using one.
>>>>>       at
>>>>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
>>>>>
>>>>>       at
>>>>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
>>>>>
>>>>>       at
>>>>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
>>>>>
>>>>>       at
>>>>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
>>>>>
>>>>>       at
>>>>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
>>>>>
>>>>>       at
>>>>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
>>>>>
>>>>>       at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
>>>>>       at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
>>>>>       at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
>>>>>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>       at
>>>>>sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>>>
>>>>>       at
>>>>>sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>>>
>>>>>       at java.lang.reflect.Method.invoke(Method.java:585)
>>>>>       at
>>>>>org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>>>>>       at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>>>>>       at
>>>>>org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>>>>>       at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
>>>>>Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot
>>>>>execute mojo: resources. It requires a project with an existing
>>>>>pom.xml, but the build is not using one.
>>>>>       at
>>>>>org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:359)
>>>>>
>>>>>       at
>>>>>org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
>>>>>
>>>>>       ... 16 more
>>>>>[INFO]
>>>>>----------------------------------------------------------------------------
>>>>>
>>>>>[INFO] Total time: 2 minutes 44 seconds
>>>>>[INFO] Finished at: Thu Jan 19 14:37:12 GMT 2006
>>>>>[INFO] Final Memory: 2M/4M
>>>>>[INFO]
>>>>>----------------------------------------------------------------------------
>>>>>
>>>>>
>>>>>
>>>>>Whats wrong?
>>>>>
>>>>>
>>>>>Cheers
>>>>>
>>>>>Peter Henderson.
>>>>>---------------------------------------------------------------------------------------
>>>>>
>>>>>Wanadoo vous informe que cet  e-mail a ete controle par l'anti-virus
>>>>>mail. Aucun virus connu a ce jour par nos services n'a ete detecte.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>          
>>>>>
>>>>
>>>>        
>>>>
>>>      
>>>
>
>  
>


Re: Problem building Maven XSLT plugin

Posted by Sean Schofield <se...@gmail.com>.
Try also uncommenting this in the master pom

  <pluginRepositories>
    <pluginRepository>
      <snapshots>
        <enabled>true</enabled>
      </snapshots>
      <id>atanion</id>
      <url>http://www.atanion.com/maven2</url>
    </pluginRepository>
  </pluginRepositories>

I believe there is a working version of the plugin there.

Sean


On 1/19/06, Sean Schofield <se...@gmail.com> wrote:
> I had the same problem and posted an issue on it[1].  I haven't tried
> rebuilding yet.  Let me know if this works.
>
> Sean
>
> [1] http://jira.codehaus.org/browse/MOJO-247?page=all
>
> On 1/19/06, Peter Henderson <pe...@starjar.com> wrote:
> > Thomas Gaudin wrote:
> >
> > > Hi,
> > >
> > > I had similar problem and to have the plugin installed I had to modify
> > > the pom.xml :
> > >
> > > <project>
> > >    <modelVersion>4.0.0</modelVersion>
> > >    <parent>
> > >        <artifactId>mojo-sandbox</artifactId>
> > >        <groupId>org.codehaus.mojo</groupId>
> > >        <version>1</version>
> > >      </parent>
> > > ....
> > >
> >
> > Thanks for the feed back. Unfortunatly that does not fix the problem.
> > I changed <version>2-SNAPSHOT</version> to <version>1</version>
> > I also tried various version of 1  1.0 1-SNAPSHOT etc.
> >
> > Hmm Im even more confused, now, having just checked out the previous
> > revisions of pom.xml (rev 1275 and 1168) I get the same error.
> > Perhaps the problem is outside of my environment?
> >
> > Peter.
> >
> > > and run "mvn install"  from the root  directory but not from src
> > >
> > > Hope it helps,
> > >
> > > Thomas
> > >
> > > Peter Henderson a écrit :
> > >
> > >> Hi list.
> > >>
> > >> Im trying to build MyFaces using Maven, by following the instructions
> > >> at http://wiki.apache.org/myfaces/Building_With_Maven.
> > >>
> > >> The trouble is I cant even get the XSLT plugin to build. (Step 0)
> > >>
> > >> I check out the src.
> > >>
> > >> svn co
> > >> https://svn.codehaus.org/mojo/trunk/mojo/mojo-sandbox/xslt-maven-plugin
> > >> A    xslt-maven-plugin/src
> > >> A    xslt-maven-plugin/src/main
> > >> A    xslt-maven-plugin/src/main/java
> > >> A    xslt-maven-plugin/src/main/java/org
> > >> A    xslt-maven-plugin/src/main/java/org/codehaus
> > >> A    xslt-maven-plugin/src/main/java/org/codehaus/mojo
> > >> A    xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt
> > >> A
> > >> xslt-maven-plugin/src/main/java/org/codehaus/mojo/xslt/XsltMojo.java
> > >> A    xslt-maven-plugin/pom.xml
> > >> Checked out revision 1356.
> > >>
> > >> OK no problem so far.
> > >> Then I run
> > >>
> > >>
> > >> mvn install -e
> > >> + Error stacktraces are turned on.
> > >> [INFO] Scanning for projects...
> > >> [INFO]
> > >> ----------------------------------------------------------------------------
> > >>
> > >> [INFO] Building Maven Default Project
> > >> [INFO]    task-segment: [install]
> > >> [INFO]
> > >> ----------------------------------------------------------------------------
> > >>
> > >> [INFO] artifact org.apache.maven.plugins:maven-resources-plugin:
> > >> checking for updates from central
> > >> Downloading:
> > >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.pom
> > >>
> > >> 888b downloaded
> > >> Downloading:
> > >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-plugin-parent/2.0/maven-plugin-parent-2.0.pom
> > >>
> > >> 6K downloaded
> > >> Downloading:
> > >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-resources-plugin/2.1/maven-resources-plugin-2.1.jar
> > >>
> > >> 10K downloaded
> > >> [INFO] artifact org.apache.maven.plugins:maven-compiler-plugin:
> > >> checking for updates from central
> > >> Downloading:
> > >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.pom
> > >>
> > >> 1K downloaded
> > >> Downloading:
> > >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.0/maven-compiler-plugin-2.0.jar
> > >>
> > >> 13K downloaded
> > >> [INFO] artifact org.apache.maven.plugins:maven-surefire-plugin:
> > >> checking for updates from central
> > >> Downloading:
> > >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.pom
> > >>
> > >> 2K downloaded
> > >> Downloading:
> > >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.1.2/maven-surefire-plugin-2.1.2.jar
> > >>
> > >> 9K downloaded
> > >> [INFO] artifact org.apache.maven.plugins:maven-jar-plugin: checking
> > >> for updates from central
> > >> Downloading:
> > >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.pom
> > >>
> > >> 737b downloaded
> > >> Downloading:
> > >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-jar-plugin/2.0/maven-jar-plugin-2.0.jar
> > >>
> > >> 7K downloaded
> > >> [INFO] artifact org.apache.maven.plugins:maven-install-plugin:
> > >> checking for updates from central
> > >> Downloading:
> > >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.pom
> > >>
> > >> 981b downloaded
> > >> Downloading:
> > >> http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-install-plugin/2.1/maven-install-plugin-2.1.jar
> > >>
> > >> 8K downloaded
> > >> [INFO]
> > >> ----------------------------------------------------------------------------
> > >>
> > >> [ERROR] BUILD ERROR
> > >> [INFO]
> > >> ----------------------------------------------------------------------------
> > >>
> > >> [INFO] Cannot execute mojo: resources. It requires a project with an
> > >> existing pom.xml, but the build is not using one.
> > >> [INFO]
> > >> ----------------------------------------------------------------------------
> > >>
> > >> [INFO] Trace
> > >> org.apache.maven.lifecycle.LifecycleExecutionException: Cannot
> > >> execute mojo: resources. It requires a project with an existing
> > >> pom.xml, but the build is not using one.
> > >>        at
> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:555)
> > >>
> > >>        at
> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:472)
> > >>
> > >>        at
> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:451)
> > >>
> > >>        at
> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:303)
> > >>
> > >>        at
> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
> > >>
> > >>        at
> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
> > >>
> > >>        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
> > >>        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
> > >>        at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
> > >>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > >>        at
> > >> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> > >>
> > >>        at
> > >> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> > >>
> > >>        at java.lang.reflect.Method.invoke(Method.java:585)
> > >>        at
> > >> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
> > >>        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
> > >>        at
> > >> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
> > >>        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> > >> Caused by: org.apache.maven.plugin.MojoExecutionException: Cannot
> > >> execute mojo: resources. It requires a project with an existing
> > >> pom.xml, but the build is not using one.
> > >>        at
> > >> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:359)
> > >>
> > >>        at
> > >> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:530)
> > >>
> > >>        ... 16 more
> > >> [INFO]
> > >> ----------------------------------------------------------------------------
> > >>
> > >> [INFO] Total time: 2 minutes 44 seconds
> > >> [INFO] Finished at: Thu Jan 19 14:37:12 GMT 2006
> > >> [INFO] Final Memory: 2M/4M
> > >> [INFO]
> > >> ----------------------------------------------------------------------------
> > >>
> > >>
> > >>
> > >> Whats wrong?
> > >>
> > >>
> > >> Cheers
> > >>
> > >> Peter Henderson.
> > >> ---------------------------------------------------------------------------------------
> > >>
> > >> Wanadoo vous informe que cet  e-mail a ete controle par l'anti-virus
> > >> mail. Aucun virus connu a ce jour par nos services n'a ete detecte.
> > >>
> > >>
> > >>
> > >>
> > >>
> > >
> > >
> > >
> >
> >
>