Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » NatTable » Can't compile the nattable examples (Compilation problems)
Can't compile the nattable examples [message #981345] Mon, 12 November 2012 10:45 Go to next message
Erik Vande Velde is currently offline Erik Vande Velde
Messages: 62
Registered: September 2012
Member
I followed the instructions in 'getting started' (http://eclipse.org/nattable/documentation.php?page=getting_started), but some projects turn red in eclipse. The maven compiles work OK, import in eclipse goes well too, except for a few projects turning red. The root cause might well be that when I run the copy dependencies step, either from the command line, or from eclipse, the system doesn't generate a dependencies subdirectory. The maven command 'mvn dependency:copy-dependencies -DoutputDirectory=dependencies' doesn't complain about anything, but it doesn't produce any output. Any idea what might be wrong here?
Re: Can't compile the nattable examples [message #981364 is a reply to message #981345] Mon, 12 November 2012 11:04 Go to previous messageGo to next message
Thomas  Mäder is currently offline Thomas Mäder
Messages: 46
Registered: July 2009
Member
It might help to know which projects and classes don't compile.
Re: Can't compile the nattable examples [message #981395 is a reply to message #981364] Mon, 12 November 2012 11:28 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1267
Registered: July 2012
Senior Member
Usually this is related to missing dependencies in the target-platform. Search for he dependencies subdirectory which should be generated by the mentioned mvn command. In your target platform you should either copy this directory to where it should be (look at the target platform definition to see where we expect it to be) or change the subdirectory entry in the target platform so it links to your directory.

We are planning to change this after those dependencies can be resolved by the Orbit p2 repository. This is work in progress, so for the moment the directory approach is needed.
Re: Can't compile the nattable examples [message #981698 is a reply to message #981395] Mon, 12 November 2012 16:20 Go to previous messageGo to next message
Erik Vande Velde is currently offline Erik Vande Velde
Messages: 62
Registered: September 2012
Member
1) Not compiling projects are
- nattable.core
- nattable.examples
- nattable.extension.builder
- nattable.extension.glazedlist
- nattable.extension.glazedlist.test
- nattable.extension.poi
- nattable.test.performance

2) First error in eclipse problems:
AbstractMatcherEditor cannot be resolved to a type in DefaultGlazedListsStaticFilterStrategy.java
He doesn't find the imports
import ca.odell.glazedlists.matchers.AbstractMatcherEditor;
import ca.odell.glazedlists.matchers.CompositeMatcherEditor;
import ca.odell.glazedlists.matchers.Matcher;
import ca.odell.glazedlists.matchers.MatcherEditor;


3) Possibly most interesting eclipse problem
in nebula.widgets.nattable.core: Unknown Default API Baseline Problem

4) 'Search for the dependencies subdirectory which should be generated by the mentioned mvn command'
As stated before: I DON'T HAVE such a subdirectory, because the plug-in just returns without doing anything useful. I still feel this is the root cause of 'my misery'. The getting started page only promises clean projects after this step, and for me it fails silently ...





Re: Can't compile the nattable examples [message #982530 is a reply to message #981698] Tue, 13 November 2012 07:45 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1267
Registered: July 2012
Senior Member
So this looks like a wrong target platform. Still not sure why the command shouldn't download the dependencies.
Did you call the command from the command line out of the correct directory (as explained in the documentation)? Otherwise the dependencies directory will be created somewhere else (a mistake I also made in the past).
Did you try the second attempt to install m2e and run the copy dependencies.launch file out of Eclipse?
Did you ensure that the workspace is in sync?
Did you check the target definition in the PDE editor?

Sorry for some of the questions, but at least these steps need to be checked if the target platform doesn't resolve. If the mvn command doesn't download the dependencies, you might have an issue with your firewall?
Re: Can't compile the nattable examples [message #982837 is a reply to message #982530] Tue, 13 November 2012 13:06 Go to previous messageGo to next message
Erik Vande Velde is currently offline Erik Vande Velde
Messages: 62
Registered: September 2012
Member
- Did you call the command from the command line out of the correct directory (as explained in the documentation)?
=> Yes, i'm sure of that
- Did you try the second attempt to install m2e and run the copy dependencies.launch file out of Eclipse?
=> m2e was already installed in my eclipse, I updated the run configuration 'copy dependencies' to use my own maven instead of the eclipse embedded maven, and then it worked just like the one on the command line: happily returning, producing no output
- Did you ensure that the workspace is in sync?
=> I guess so, was looking for the dependencies subdirectory from windows explorer, it's not there
=> when hitting the 'Set as Target Platform' link eclipse also complains that the subdir doesn't exist
- Did you check the target definition in the PDE editor?
=> yep
- Sorry for some of the questions ..
=> No problem, I'm grateful for your feedback!
- you might have an issue with your firewall?
=> We do have a firewall in the office, but mvn is configured to work OK. The maven output of the first two commands (mvn -f deps/pom.xml clean install
mvn -f org.eclipse.nebula.widgets.nattable.parent/pom.xml clean install) shows that my maven is working normally. What i don't understand is that everything compiles, but still I don't see a ca.odell.xxx.yyy in my local repository.
- A shame I cannot attach files to this forum because I assembled a few files to illustrate what i did: screenshots and console output ...
Re: Can't compile the nattable examples [message #982847 is a reply to message #982837] Tue, 13 November 2012 13:17 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1267
Registered: July 2012
Senior Member
Try to edit the Copy dependencies.launch file. It is a simple configuration file. Maybe setting M2_DEBUG_OUTPUT to true will show some hints. Maybe the issue is related to your local installation. Did you try to switch back to the embedded Maven just for the copy dependecies launch? At least, this command is only needed to run once atm.
Re: Can't compile the nattable examples [message #982871 is a reply to message #982847] Tue, 13 November 2012 13:39 Go to previous messageGo to next message
Erik Vande Velde is currently offline Erik Vande Velde
Messages: 62
Registered: September 2012
Member
1) tried with my own maven and the embedded one
2) output is similar, see below
3) still don't understand how 'mvn clean install' from command line can work, when there's no ca.odell.x.y in my local repository. But I don't know a thing about tycho, I think in maven proper this is impossible
4) maven debug information:
Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: C:\programs\apache-maven-3.0.4
Java version: 1.6.0_31, vendor: Sun Microsystems Inc.
Java home: C:\programs\jdk1.6.0_31_32bit\jre
Default locale: nl_BE, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"
[INFO] Error stacktraces are turned on.
[DEBUG] Reading global settings from C:\programs\apache-maven-3.0.4\conf\settings.xml
[DEBUG] Reading user settings from C:\programs\apache-maven-3.0.4\conf\settings.xml
[DEBUG] Using local repository at c:\data\mvn_repo
[DEBUG] Using manager EnhancedLocalRepositoryManager with priority 10 for c:\data\mvn_repo
[INFO] Scanning for projects...
[DEBUG] org.eclipse.tycho:tycho-maven-plugin:jar:0.15.0:
[DEBUG] org.eclipse.tycho:tycho-core:jar:0.15.0:compile
[DEBUG] org.apache.maven:maven-core:jar:3.0:compile
[DEBUG] org.apache.maven:maven-model:jar:3.0:compile
[DEBUG] org.apache.maven:maven-settings:jar:3.0:compile
[DEBUG] org.apache.maven:maven-settings-builder:jar:3.0:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:3.0:compile
[DEBUG] org.apache.maven:maven-artifact:jar:3.0:compile
[DEBUG] org.apache.maven:maven-model-builder:jar:3.0:compile
[DEBUG] org.apache.maven:maven-aether-provider:jar:3.0:runtime
[DEBUG] org.sonatype.aether:aether-impl:jar:1.7:compile
[DEBUG] org.sonatype.aether:aether-spi:jar:1.7:compile
[DEBUG] org.sonatype.aether:aether-api:jar:1.7:compile
[DEBUG] org.sonatype.aether:aether-util:jar:1.7:compile
[DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.14:compile
[DEBUG] org.codehaus.plexus:plexus-classworlds:jar:2.2.3:compile
[DEBUG] org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3:compile
[DEBUG] org.sonatype.plexus:plexus-cipher:jar:1.4:compile
[DEBUG] org.apache.maven:maven-plugin-api:jar:3.0:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:2.0.4:compile
[DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.2:compile
[DEBUG] org.codehaus.plexus:plexus-io:jar:1.0.1:compile
[DEBUG] org.eclipse.tycho:org.eclipse.osgi:jar:3.8.0.v20120430-1750:compile
[DEBUG] org.eclipse.tycho:sisu-equinox-embedder:jar:0.15.0:compile
[DEBUG] org.eclipse.tycho:sisu-equinox-api:jar:0.15.0:compile
[DEBUG] org.eclipse.tycho:tycho-metadata-model:jar:0.15.0:compile
[DEBUG] de.pdark:decentxml:jar:1.3:compile
[DEBUG] org.eclipse.tycho:tycho-embedder-api:jar:0.15.0:compile
[DEBUG] org.eclipse.tycho:org.eclipse.tycho.embedder.shared:jar:0.15.0:compile
[DEBUG] org.eclipse.tycho:org.eclipse.tycho.core.shared:jar:0.15.0:compile
[DEBUG] org.eclipse.tycho:tycho-p2-facade:jar:0.15.0:compile
[DEBUG] org.codehaus.plexus:plexus-component-annotations:jar:1.5.5:compile
[DEBUG] org.sonatype.sisu:sisu-inject-plexus:jar:1.4.2:compile
[DEBUG] org.sonatype.sisu:sisu-inject-bean:jar:1.4.2:compile
[DEBUG] org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7:compile
[DEBUG] org.eclipse.tycho:org.eclipse.tycho.p2.resolver.shared:jar:0.15.0:compile
[DEBUG] org.eclipse.tycho:org.eclipse.tycho.p2.tools.shared:jar:0.15.0:compile
[DEBUG] Created new class realm maven.api
[DEBUG] Importing foreign packages into class realm maven.api
[DEBUG] Imported: org.apache.maven.wagon.events < plexus.core
[DEBUG] Imported: org.sonatype.aether.transfer < plexus.core
[DEBUG] Imported: org.apache.maven.exception < plexus.core
[DEBUG] Imported: org.sonatype.aether.metadata < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.Xpp3Dom < plexus.core
[DEBUG] Imported: org.sonatype.aether.collection < plexus.core
[DEBUG] Imported: org.sonatype.aether.version < plexus.core
[DEBUG] Imported: org.apache.maven.monitor < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.repository < plexus.core
[DEBUG] Imported: org.apache.maven.repository < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.resource < plexus.core
[DEBUG] Imported: org.codehaus.plexus.logging < plexus.core
[DEBUG] Imported: org.apache.maven.profiles < plexus.core
[DEBUG] Imported: org.sonatype.aether.repository < plexus.core
[DEBUG] Imported: org.apache.maven.classrealm < plexus.core
[DEBUG] Imported: org.apache.maven.execution < plexus.core
[DEBUG] Imported: org.sonatype.aether.artifact < plexus.core
[DEBUG] Imported: org.sonatype.aether.spi < plexus.core
[DEBUG] Imported: org.apache.maven.reporting < plexus.core
[DEBUG] Imported: org.apache.maven.usability < plexus.core
[DEBUG] Imported: org.codehaus.plexus.container < plexus.core
[DEBUG] Imported: org.codehaus.plexus.component < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlSerializer < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.authentication < plexus.core
[DEBUG] Imported: org.apache.maven.lifecycle < plexus.core
[DEBUG] Imported: org.codehaus.plexus.classworlds < plexus.core
[DEBUG] Imported: org.sonatype.aether.graph < plexus.core
[DEBUG] Imported: org.sonatype.aether.* < plexus.core
[DEBUG] Imported: org.apache.maven.settings < plexus.core
[DEBUG] Imported: org.codehaus.classworlds < plexus.core
[DEBUG] Imported: org.sonatype.aether.impl < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.* < plexus.core
[DEBUG] Imported: org.apache.maven.toolchain < plexus.core
[DEBUG] Imported: org.sonatype.aether.deployment < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.observers < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParserException < plexus.core
[DEBUG] Imported: org.codehaus.plexus.util.xml.pull.XmlPullParser < plexus.core
[DEBUG] Imported: org.apache.maven.configuration < plexus.core
[DEBUG] Imported: org.apache.maven.cli < plexus.core
[DEBUG] Imported: org.sonatype.aether.installation < plexus.core
[DEBUG] Imported: org.codehaus.plexus.context < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.authorization < plexus.core
[DEBUG] Imported: org.apache.maven.project < plexus.core
[DEBUG] Imported: org.apache.maven.rtinfo < plexus.core
[DEBUG] Imported: org.codehaus.plexus.lifecycle < plexus.core
[DEBUG] Imported: org.codehaus.plexus.configuration < plexus.core
[DEBUG] Imported: org.apache.maven.artifact < plexus.core
[DEBUG] Imported: org.apache.maven.model < plexus.core
[DEBUG] Imported: org.apache.maven.* < plexus.core
[DEBUG] Imported: org.apache.maven.wagon.proxy < plexus.core
[DEBUG] Imported: org.sonatype.aether.resolution < plexus.core
[DEBUG] Imported: org.apache.maven.plugin < plexus.core
[DEBUG] Imported: org.codehaus.plexus.* < plexus.core
[DEBUG] Imported: org.codehaus.plexus.personality < plexus.core
[DEBUG] Populating class realm maven.api
[DEBUG] Created new class realm extension>org.eclipse.tycho:tycho-maven-plugin:0.15.0
[DEBUG] Importing foreign packages into class realm extension>org.eclipse.tycho:tycho-maven-plugin:0.15.0
[DEBUG] Imported: < maven.api
[DEBUG] Populating class realm extension>org.eclipse.tycho:tycho-maven-plugin:0.15.0
[DEBUG] Included: org.eclipse.tycho:tycho-maven-plugin:jar:0.15.0
[DEBUG] Included: org.eclipse.tycho:tycho-core:jar:0.15.0
[DEBUG] Included: org.sonatype.aether:aether-util:jar:1.7
[DEBUG] Included: org.codehaus.plexus:plexus-interpolation:jar:1.14
[DEBUG] Included: org.sonatype.plexus:plexus-sec-dispatcher:jar:1.3
[DEBUG] Included: org.sonatype.plexus:plexus-cipher:jar:1.4
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:2.0.4
[DEBUG] Included: org.codehaus.plexus:plexus-archiver:jar:1.2
[DEBUG] Included: org.codehaus.plexus:plexus-io:jar:1.0.1
[DEBUG] Included: org.eclipse.tycho:org.eclipse.osgi:jar:3.8.0.v20120430-1750
[DEBUG] Included: org.eclipse.tycho:sisu-equinox-embedder:jar:0.15.0
[DEBUG] Included: org.eclipse.tycho:sisu-equinox-api:jar:0.15.0
[DEBUG] Included: org.eclipse.tycho:tycho-metadata-model:jar:0.15.0
[DEBUG] Included: de.pdark:decentxml:jar:1.3
[DEBUG] Included: org.eclipse.tycho:tycho-embedder-api:jar:0.15.0
[DEBUG] Included: org.eclipse.tycho:org.eclipse.tycho.embedder.shared:jar:0.15.0
[DEBUG] Included: org.eclipse.tycho:org.eclipse.tycho.core.shared:jar:0.15.0
[DEBUG] Included: org.eclipse.tycho:tycho-p2-facade:jar:0.15.0
[DEBUG] Included: org.codehaus.plexus:plexus-component-annotations:jar:1.5.5
[DEBUG] Included: org.sonatype.sisu:sisu-inject-bean:jar:1.4.2
[DEBUG] Included: org.sonatype.sisu:sisu-guice:jar:noaop:2.1.7
[DEBUG] Included: org.eclipse.tycho:org.eclipse.tycho.p2.resolver.shared:jar:0.15.0
[DEBUG] Included: org.eclipse.tycho:org.eclipse.tycho.p2.tools.shared:jar:0.15.0
[DEBUG] Extension realms for project org.eclipse.nebula.widgets.nattable:target-platform:pom:0.9.0-SNAPSHOT: [ClassRealm[extension>org.eclipse.tycho:tycho-maven-plugin:0.15.0, parent: sun.misc.Launcher$AppClassLoader@1ea2dfe]]
[DEBUG] Created new class realm project>org.eclipse.nebula.widgets.nattable:target-platform:0.9.0-SNAPSHOT
[DEBUG] Populating class realm project>org.eclipse.nebula.widgets.nattable:target-platform:0.9.0-SNAPSHOT
[DEBUG] Looking up lifecyle mappings for packaging pom from ClassRealm[project>org.eclipse.nebula.widgets.nattable:target-platform:0.9.0-SNAPSHOT, parent: ClassRealm[maven.api, parent: null]]
[DEBUG] === REACTOR BUILD PLAN ================================================
[DEBUG] Project: org.eclipse.nebula.widgets.nattable:target-platform:pom:0.9.0-SNAPSHOT
[DEBUG] Tasks: [org.apache.maven.plugins:maven-dependency-plugin:2.0:copy-dependencies]
[DEBUG] Style: Regular
[DEBUG] =======================================================================
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building target-platform 0.9.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[DEBUG] Lifecycle default -> [validate, initialize, generate-sources, process-sources, generate-resources, process-resources, compile, process-classes, generate-test-sources, process-test-sources, generate-test-resources, process-test-resources, test-compile, process-test-classes, test, prepare-package, package, pre-integration-test, integration-test, post-integration-test, verify, install, deploy]
[DEBUG] Lifecycle clean -> [pre-clean, clean, post-clean]
[DEBUG] Lifecycle site -> [pre-site, site, post-site, site-deploy]
[DEBUG] === PROJECT BUILD PLAN ================================================
[DEBUG] Project: org.eclipse.nebula.widgets.nattable:target-platform:0.9.0-SNAPSHOT
[DEBUG] Dependencies (collect): []
[DEBUG] Dependencies (resolve): [test]
[DEBUG] Repositories (dependencies): [download_maven_2 (http://download.java.net/maven/2/, releases+snapshots), central-repo (http://repo.maven.apache.org/maven2/, releases+snapshots), jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public-jboss/, releases+snapshots), central (http://repo.maven.apache.org/maven2, releases)]
[DEBUG] Repositories (plugins) : [jboss-public-repository-group (https://repository.jboss.org/nexus/content/groups/public-jboss/, releases+snapshots), central-plugin-repo (http://repo.maven.apache.org/maven2/, releases+snapshots), central (http://repo.maven.apache.org/maven2, releases)]
[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-dependency-plugin:2.0:copy-dependencies (default-cli)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<classifier default-value="">${classifier}</classifier>
<copyPom default-value="false">${mdep.copyPom}</copyPom>
<excludeArtifactIds default-value="">${excludeArtifactIds}</excludeArtifactIds>
<excludeClassifiers default-value="">${excludeClassifiers}</excludeClassifiers>
<excludeGroupIds default-value="">${excludeGroupIds}</excludeGroupIds>
<excludeScope default-value="">${excludeScope}</excludeScope>
<excludeTransitive default-value="false">${excludeTransitive}</excludeTransitive>
<excludeTypes default-value="">${excludeTypes}</excludeTypes>
<failOnMissingClassifierArtifact default-value="true">${mdep.failOnMissingClassifierArtifact}</failOnMissingClassifierArtifact>
<includeArtifactIds default-value="">${includeArtifactIds}</includeArtifactIds>
<includeClassifiers default-value="">${includeClassifiers}</includeClassifiers>
<includeGroupIds default-value="">${includeGroupIds}</includeGroupIds>
<includeScope default-value="">${includeScope}</includeScope>
<includeTypes default-value="">${includeTypes}</includeTypes>
<local>${localRepository}</local>
<markersDirectory default-value="${project.build.directory}/dependency-maven-plugin-markers">${markersDirectory}</markersDirectory>
<outputAbsoluteArtifactFilename default-value="false">${outputAbsoluteArtifactFilename}</outputAbsoluteArtifactFilename>
<outputDirectory default-value="${project.build.directory}/dependency">${outputDirectory}</outputDirectory>
<overWriteIfNewer default-value="true">${overWriteIfNewer}</overWriteIfNewer>
<overWriteReleases default-value="false">${overWriteReleases}</overWriteReleases>
<overWriteSnapshots default-value="false">${overWriteSnapshots}</overWriteSnapshots>
<project>${project}</project>
<reactorProjects>${reactorProjects}</reactorProjects>
<remoteRepos>${project.remoteArtifactRepositories}</remoteRepos>
<silent default-value="false">${silent}</silent>
<stripVersion default-value="false">${mdep.stripVersion}</stripVersion>
<type default-value="java-source">${type}</type>
<useRepositoryLayout default-value="false">${mdep.useRepositoryLayout}</useRepositoryLayout>
<useSubDirectoryPerArtifact default-value="false">${mdep.useSubDirectoryPerArtifact}</useSubDirectoryPerArtifact>
<useSubDirectoryPerType default-value="false">${mdep.useSubDirectoryPerType}</useSubDirectoryPerType>
</configuration>
[DEBUG] =======================================================================
[DEBUG] org.eclipse.nebula.widgets.nattable:target-platform:pom:0.9.0-SNAPSHOT
[INFO]
[INFO] --- maven-dependency-plugin:2.0:copy-dependencies (default-cli) @ target-platform ---
[DEBUG] org.apache.maven.plugins:maven-dependency-plugin:jar:2.0:
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.8:compile
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.8:compile
[DEBUG] org.apache.maven:maven-project:jar:2.0.8:compile
[DEBUG] org.apache.maven:maven-settings:jar:2.0.8:compile
[DEBUG] org.apache.maven:maven-profile:jar:2.0.8:compile
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.8:compile
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.8:compile
[DEBUG] org.apache.maven:maven-model:jar:2.0.8:compile
[DEBUG] org.apache.maven:maven-core:jar:2.0.8:compile
[DEBUG] org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.8:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.8:compile
[DEBUG] org.apache.maven:maven-error-diagnostics:jar:2.0.8:compile
[DEBUG] commons-cli:commons-cli:jar:1.0:compile
[DEBUG] org.apache.maven:maven-plugin-descriptor:jar:2.0.8:compile
[DEBUG] org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4:compile
[DEBUG] org.apache.maven:maven-monitor:jar:2.0.8:compile
[DEBUG] classworlds:classworlds:jar:1.1:compile
[DEBUG] org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-9:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:1.4.6:compile
[DEBUG] org.apache.maven.shared:file-management:jar:1.1:compile
[DEBUG] org.apache.maven.shared:maven-shared-io:jar:1.0:compile
[DEBUG] org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-6:compile
[DEBUG] org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1:compile
[DEBUG] junit:junit:jar:3.8.1:compile
[DEBUG] org.apache.maven.shared:maven-dependency-analyzer:jar:1.0:compile
[DEBUG] asm:asm:jar:3.0:compile
[DEBUG] org.apache.maven.shared:maven-dependency-tree:jar:1.1:compile
[DEBUG] org.apache.maven.shared:maven-common-artifact-filters:jar:1.0:compile
[DEBUG] org.apache.maven.shared:maven-plugin-testing-harness:jar:1.1:compile
[DEBUG] org.codehaus.plexus:plexus-io:jar:1.0-alpha-1:compile
[DEBUG] org.apache.maven.reporting:maven-reporting-api:jar:2.0.6:compile
[DEBUG] org.apache.maven.reporting:maven-reporting-impl:jar:2.0.4:compile
[DEBUG] commons-validator:commons-validator:jar:1.2.0:compile
[DEBUG] commons-beanutils:commons-beanutils:jar:1.7.0:compile
[DEBUG] commons-digester:commons-digester:jar:1.6:compile
[DEBUG] commons-logging:commons-logging:jar:1.0.4:compile
[DEBUG] xml-apis:xml-apis:jar:1.0.b2:compile
[DEBUG] org.apache.maven.doxia:doxia-core:jar:1.0-alpha-7:compile
[DEBUG] oro:oro:jar:2.0.7:compile
[DEBUG] org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-8:compile
[DEBUG] org.apache.maven.doxia:doxia-site-renderer:jar:1.0-alpha-8:compile
[DEBUG] org.codehaus.plexus:plexus-i18n:jar:1.0-beta-6:compile
[DEBUG] org.codehaus.plexus:plexus-velocity:jar:1.1.3:compile
[DEBUG] commons-collections:commons-collections:jar:2.0:compile
[DEBUG] velocity:velocity:jar:1.4:compile
[DEBUG] velocity:velocity-dep:jar:1.4:runtime
[DEBUG] org.apache.maven.doxia:doxia-decoration-model:jar:1.0-alpha-8:compile
[DEBUG] Created new class realm plugin>org.apache.maven.plugins:maven-dependency-plugin:2.0
[DEBUG] Importing foreign packages into class realm plugin>org.apache.maven.plugins:maven-dependency-plugin:2.0
[DEBUG] Imported: < project>org.eclipse.nebula.widgets.nattable:target-platform:0.9.0-SNAPSHOT
[DEBUG] Populating class realm plugin>org.apache.maven.plugins:maven-dependency-plugin:2.0
[DEBUG] Included: org.apache.maven.plugins:maven-dependency-plugin:jar:2.0
[DEBUG] Included: commons-cli:commons-cli:jar:1.0
[DEBUG] Included: org.codehaus.plexus:plexus-interactivity-api:jar:1.0-alpha-4
[DEBUG] Included: org.codehaus.plexus:plexus-archiver:jar:1.0-alpha-9
[DEBUG] Included: org.codehaus.plexus:plexus-utils:jar:1.4.6
[DEBUG] Included: org.apache.maven.shared:file-management:jar:1.1
[DEBUG] Included: org.apache.maven.shared:maven-shared-io:jar:1.0
[DEBUG] Included: junit:junit:jar:3.8.1
[DEBUG] Included: org.apache.maven.shared:maven-dependency-analyzer:jar:1.0
[DEBUG] Included: asm:asm:jar:3.0
[DEBUG] Included: org.apache.maven.shared:maven-dependency-tree:jar:1.1
[DEBUG] Included: org.apache.maven.shared:maven-common-artifact-filters:jar:1.0
[DEBUG] Included: org.apache.maven.shared:maven-plugin-testing-harness:jar:1.1
[DEBUG] Included: org.codehaus.plexus:plexus-io:jar:1.0-alpha-1
[DEBUG] Included: org.apache.maven.reporting:maven-reporting-api:jar:2.0.6
[DEBUG] Included: org.apache.maven.reporting:maven-reporting-impl:jar:2.0.4
[DEBUG] Included: commons-validator:commons-validator:jar:1.2.0
[DEBUG] Included: commons-beanutils:commons-beanutils:jar:1.7.0
[DEBUG] Included: commons-digester:commons-digester:jar:1.6
[DEBUG] Included: commons-logging:commons-logging:jar:1.0.4
[DEBUG] Included: xml-apis:xml-apis:jar:1.0.b2
[DEBUG] Included: org.apache.maven.doxia:doxia-core:jar:1.0-alpha-7
[DEBUG] Included: oro:oro:jar:2.0.7
[DEBUG] Included: org.apache.maven.doxia:doxia-sink-api:jar:1.0-alpha-8
[DEBUG] Included: org.apache.maven.doxia:doxia-site-renderer:jar:1.0-alpha-8
[DEBUG] Included: org.codehaus.plexus:plexus-i18n:jar:1.0-beta-6
[DEBUG] Included: org.codehaus.plexus:plexus-velocity:jar:1.1.3
[DEBUG] Included: commons-collections:commons-collections:jar:2.0
[DEBUG] Included: velocity:velocity:jar:1.4
[DEBUG] Included: velocity:velocity-dep:jar:1.4
[DEBUG] Included: org.apache.maven.doxia:doxia-decoration-model:jar:1.0-alpha-8
[DEBUG] Excluded: org.apache.maven:maven-artifact:jar:2.0.8
[DEBUG] Excluded: org.apache.maven:maven-plugin-api:jar:2.0.8
[DEBUG] Excluded: org.apache.maven:maven-project:jar:2.0.8
[DEBUG] Excluded: org.apache.maven:maven-settings:jar:2.0.8
[DEBUG] Excluded: org.apache.maven:maven-profile:jar:2.0.8
[DEBUG] Excluded: org.apache.maven:maven-artifact-manager:jar:2.0.8
[DEBUG] Excluded: org.apache.maven:maven-plugin-registry:jar:2.0.8
[DEBUG] Excluded: org.apache.maven:maven-model:jar:2.0.8
[DEBUG] Excluded: org.apache.maven:maven-core:jar:2.0.8
[DEBUG] Excluded: org.apache.maven:maven-plugin-parameter-documenter:jar:2.0.8
[DEBUG] Excluded: org.apache.maven:maven-repository-metadata:jar:2.0.8
[DEBUG] Excluded: org.apache.maven:maven-error-diagnostics:jar:2.0.8
[DEBUG] Excluded: org.apache.maven:maven-plugin-descriptor:jar:2.0.8
[DEBUG] Excluded: org.apache.maven:maven-monitor:jar:2.0.8
[DEBUG] Excluded: classworlds:classworlds:jar:1.1
[DEBUG] Excluded: org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-6
[DEBUG] Excluded: org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9-stable-1
[DEBUG] Configuring mojo org.apache.maven.plugins:maven-dependency-plugin:2.0:copy-dependencies from plugin realm ClassRealm[plugin>org.apache.maven.plugins:maven-dependency-plugin:2.0, parent: sun.misc.Launcher$AppClassLoader@1ea2dfe]
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-dependency-plugin:2.0:copy-dependencies' with basic configurator -->
[DEBUG] (s) copyPom = false
[DEBUG] (f) excludeTransitive = false
[DEBUG] (s) failOnMissingClassifierArtifact = true
[DEBUG] (s) local = id: local
url: file:///c:/data/mvn_repo/
layout: none

[DEBUG] (s) markersDirectory = C:\projects\lab\org.eclipse.nebula.widgets.nattable\target-platform\target\dependency-maven-plugin-markers
[DEBUG] (f) outputAbsoluteArtifactFilename = false
[DEBUG] (s) outputDirectory = C:\projects\lab\org.eclipse.nebula.widgets.nattable\target-platform\dependencies
[DEBUG] (f) overWriteIfNewer = true
[DEBUG] (f) overWriteReleases = false
[DEBUG] (f) overWriteSnapshots = false
[DEBUG] (f) project = MavenProject: org.eclipse.nebula.widgets.nattable:target-platform:0.9.0-SNAPSHOT @ C:\projects\lab\org.eclipse.nebula.widgets.nattable\target-platform\pom.xml
[DEBUG] (f) reactorProjects = [MavenProject: org.eclipse.nebula.widgets.nattable:target-platform:0.9.0-SNAPSHOT @ C:\projects\lab\org.eclipse.nebula.widgets.nattable\target-platform\pom.xml]
[DEBUG] (s) remoteRepos = [ id: download_maven_2
url: http://download.java.net/maven/2/
layout: default
snapshots: [enabled => true, update => never]
releases: [enabled => true, update => never]
, id: central-repo
url: http://repo.maven.apache.org/maven2/
layout: default
snapshots: [enabled => true, update => never]
releases: [enabled => true, update => never]
, id: jboss-public-repository-group
url: https://repository.jboss.org/nexus/content/groups/public-jboss/
layout: default
snapshots: [enabled => true, update => never]
releases: [enabled => true, update => never]
, id: central
url: http://repo.maven.apache.org/maven2
layout: default
snapshots: [enabled => false, update => daily]
releases: [enabled => true, update => daily]
]
[DEBUG] (f) silent = false
[DEBUG] (s) stripVersion = false
[DEBUG] (f) type = java-source
[DEBUG] (s) useRepositoryLayout = false
[DEBUG] (s) useSubDirectoryPerArtifact = false
[DEBUG] (s) useSubDirectoryPerType = false
[DEBUG] -- end configuration --
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.030s
[INFO] Finished at: Tue Nov 13 14:35:42 CET 2012
[INFO] Final Memory: 5M/15M
[INFO] ------------------------------------------------------------------------
Re: Can't compile the nattable examples [message #982922 is a reply to message #982871] Tue, 13 November 2012 14:29 Go to previous messageGo to next message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1267
Registered: July 2012
Senior Member
As far as I can see, you are only trying to do a mvn clean install to the target platform project? Of course this works even without GlazedLists in your repository. The target platform itself is not dependent on it.

Following facts to know:
- Tycho does not support directories within the target platform. We added them so Eclipse knows them.
- The launch will copy the needed bundles from the repository to a directory.
- So the bundles are in your repository (otherwise mvn clean install shouldn't work for the big build)
- But they can't be found by copy dependencies

I'm not sure if this is related to our latest changes to make the build work on Hudson. Could you please try the following:

1. set the parameter M2_NON_RECURSIVE to false and try to build (in fact I'm not quite sure what it does exactly, but googling shows others using it this way)
2. if 1. didn't work, look at the org.eclipse.nebula.widgets.nattable.extension.glazedlists and copy the depencencies section to the parent pom.

We moved the dependency section to the plugins where they are needed instead of the parent. Maybe this is causing the trouble.

As I said earlier, we definitely want to remove those dependency sections and build against Software Sites, but unfortunately GlazedLists and POI are not available in Orbit afaik.
Re: Can't compile the nattable examples [message #982999 is a reply to message #982922] Tue, 13 November 2012 15:44 Go to previous messageGo to next message
Erik Vande Velde is currently offline Erik Vande Velde
Messages: 62
Registered: September 2012
Member
Problem solved by executing the famous 'copy dependencies' command from the command line on the parent project, and redirecting the output to the platform project, dependencies subdir.
Somehow the mvn dependency plug in cannot extract the required dependencies out of the platform pom, but it generates a lot of dependencies from the parent pom.
From my viewpoint the documentation on http://eclipse.org/nattable/documentation.php?page=getting_started is wrong, but possibly there's something specific about my machine.
In the process I found out that
1) ca.odell artifacts are stored in the local repository as net.java.dev.glazedlists_java15, so not under ca.odell as I mistakenly assumed
2) the 'Unknown Default API Baseline' problem was related to me using the 'eclipse for rcp', which seems to always require such a baseline in your workspace.
So i just followed the instructions on http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.pde.doc.user/tasks/api_tooling_baseline.htm
Thanks for your assistance, Dirk!
Re: Can't compile the nattable examples [message #983029 is a reply to message #982999] Tue, 13 November 2012 16:10 Go to previous message
Dirk Fauth is currently offline Dirk Fauth
Messages: 1267
Registered: July 2012
Senior Member
Great to hear that you solved this. And thanks for sharing the solution.

I will update the documentation on this. But first I want to talk to Edwin our project lead. Documentation and reality might have become asynchron because of our latest changes in dependency management. As I said before we moved the dependencies from parent to the corresponding child projects. Maybe they didn't get recognized when starting the mvn command within the target-platform project. In this case we should definitely move this command and update it so it works correctly until we have finally resolved the dependencies with working update sites.

Thanks again, and have fun with NatTable! Smile
Previous Topic:Get current selections
Next Topic:Mark/Highlight parts of a text inside column items
Goto Forum:
  


Current Time: Tue Sep 02 23:55:19 GMT 2014

Powered by FUDForum. Page generated in 0.03226 seconds