On Fri, May 28, 2010 at 12:46 AM, Vincent Massol <vincent(a)massol.net> wrote:
On May 28, 2010, at 1:16 AM, James Cuzella wrote:
On Wed, May 26, 2010 at 12:10 AM, Vincent Massol
<vincent(a)massol.net> wrote:
Hi James,
I don't know what the problem is with m2eclipse (I haven't used it to run an
archetype) but for the second problem it was because of an invalid dependency.
I've fixed it in SVN.
For now you can simply edit the generated pom.xml and replace
xwiki-core-rendering-parser-wikimodel
with
xwiki-core-rendering-syntax-wikimodel
Thanks for reporting this.
-Vincent
Thanks, that fixed it! Now have Eclipse working pretty well for
coding, however I'm confused how I can debug or run my code within
Eclipse for testing.
See
http://dev.xwiki.org/xwiki/bin/view/Community/Debugging
There's a tutorial there for debugging in Eclipse.
Thanks
-Vincent
I had been following this guide, however I must have missed the part
about changing the JVM arguments for the tomcat service on windows. I
currently am having troubles building Xwiki from source within
Eclipse, so I tested whether the debug function works by simply adding
the current xwiki-enterprise WAR from the download page. (I basically
just created a JAR from the configured instance of Xwiki that I had
previously set up for testing).
Now, I'm running into yet another maven issue when trying to get it
compiled from source:
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective
model for com.xpn.xwiki.platform:xwiki-core:jar:2.4-SNAPSHOT
[WARNING] The expression ${pom.version} is deprecated. Please use
${project.version} instead. @
com.xpn.xwiki.platform:xwiki-core:2.4-SNAPSHOT, C:\Documents and
Settings\jcuzella\My
Documents\src\eclipse_workspace\xwiki-all\core\xwiki-core\pom.xml
[WARNING]
[WARNING] It is highly recommended to fix these problems because they
threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer
support building such malformed projects.
[WARNING]
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building XWiki Platform - Core - Core 2.4-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Missing POM for velocity-tools:velocity-tools:jar:1.4
[WARNING] Missing POM for
org.xwiki.platform:xwiki-core-rendering-macro-id:jar:2.4-SNAPSHOT
[INFO]
[INFO] --- maven-enforcer-plugin:1.0-beta-1:enforce (default) @ xwiki-core ---
[INFO]
[INFO] --- aspectj-maven-plugin:1.0-beta-2:compile
(backward-compatibility-aspects) @ xwiki-core ---
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.657s
[INFO] Finished at: Fri May 28 16:03:40 MDT 2010
[INFO] Final Memory: 4M/15M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.codehaus.mojo:aspectj-maven-plugin:1.0-beta-2:compile
(backward-compatibility-aspects) on project xwiki-core: Execution
backward-compatibility-aspects of goal
org.codehaus.mojo:aspectj-maven-plugin:1.0-beta-2:compile failed:
Plugin org.codehaus.mojo:aspectj-maven-plugin:1.0-beta-2 or one of its
dependencies could not be resolved: Missing:
----------
1) com.sun:tools:jar:1.4.2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.sun -DartifactId=tools
-Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.sun -DartifactId=tools
-Dversion=1.4.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url]
-DrepositoryId=[id]
Path to dependency:
1) org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:1.0-beta-2
2) com.sun:tools:jar:1.4.2
----------
1 required artifact is missing.
for artifact:
org.codehaus.mojo:aspectj-maven-plugin:maven-plugin:1.0-beta-2
from the specified remote repositories:
xwiki-plugins-externals (
http://maven.xwiki.org/externals,
releases=true, snapshots=true),
xwiki-plugins-releases (
http://maven.xwiki.org/releases,
releases=true, snapshots=false),
xwiki-plugins-snapshots (
http://maven.xwiki.org/snapshots,
releases=false, snapshots=true),
central (
http://repo1.maven.org/maven2, releases=true, snapshots=false)
-> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with
the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException