Hi folks,
I'm trying to use Maven to build a project that uses it (fwiw, it's
the calendar plugin for JIRA: <http://svn.atlassian.com/svn/public/contrib/jira/jira-calendar-plugin/tags/1.8/
>). I just can't seem to be able to get anything to run, let me
elaborate further:
I downloaded and installed Maven 2.0.8, on Mac OS X. I put it in /usr/
local/apache-maven-2.0.8 and symlinked it to /usr/local/apache-maven.
M2_HOME points to /usr/local/apache-maven, M2 to $M2_HOME/bin. M2/mvn
is also symlinked into /usr/local/bin (so it's on path - I don't like
putting new items into my path).
The version info is as:
$mvn --version
Maven version: 2.0.8
Java version: 1.5.0_13
OS name: "mac os x" version: "10.5.2" arch: "i386" Family: "unix"
As suggested by Atlassian on their "How to build an Atlassian plugin"
page at <http://confluence.atlassian.com/display/DEVNET/How+to+Build+an+Atlassian+Plugin
>, I also added their settings.xml to the ~/.m2/ directory, see <http://confluence.atlassian.com/display/DEVNET/Example+settings.xml
>.
The problem is: I can't get "mvn eclipse:eclipse" to run. Here's an
attempt from the same directory where the pom.xml and maven.xml for
the project are:
$ mvn -e eclipse:eclipse
+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO]
------------------------------------------------------------------------
[INFO] Building Maven Default Project
[INFO] task-segment: [eclipse:eclipse]
[INFO]
------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Cannot execute mojo: eclipse. 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: eclipse. 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:
564)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor
.executeStandaloneGoal(DefaultLifecycleExecutor.java:493)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:463)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor
.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor
.executeTaskSegments(DefaultLifecycleExecutor.java:278)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)
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: eclipse. 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:373)
at
org
.apache
.maven
.lifecycle
.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
539)
... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: < 1 second
[INFO] Finished at: Fri Mar 28 15:03:02 CET 2008
[INFO] Final Memory: 2M/4M
[INFO]
------------------------------------------------------------------------
Any help appreciated.
Attila.
--
home: http://www.szegedi.org
weblog: http://constc.blogspot.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]