noob - set up in eclipse (what am I doing wrong)

Need help? Post your questions here.

Moderator: moderators

noob - set up in eclipse (what am I doing wrong)

Postby mornindew » Mon Oct 27, 2008 4:54 pm

I am having a problem setting up subsonic in eclipse. Can someone please help me to tell me what I am doing wrong? I am running this on Ubuntu and I cannot seem to set up a development environment in eclipse. This is what I did and the error that I got.

Step 1:
svn co https://subsonic.svn.sourceforge.net/sv ... elease-3.4 subsonic

Checkout seemed to work fine (no errors)

Step 2:

mvn eclipse:eclipse

Output of mvn eclipse:eclipse with error

[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Subsonic
[INFO] Subsonic Amazon
[INFO] Subsonic Main
[INFO]
[INFO] Subsonic Booter
[INFO] Subsonic Installer
[INFO] Subsonic Assembly
[INFO] Subsonic Flex
[INFO] Searching repository for plugin with prefix: 'eclipse'.
[INFO] artifact net.israfil.mojo:maven-flex2-plugin: checking for updates from central
Downloading: http://repo1.maven.org/maven2/net/israf ... in-1.3.pom
5K downloaded
Downloading: http://repo1.maven.org/maven2/net/israf ... -all-9.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/net/israf ... in-1.3.jar
29K downloaded
[INFO] ------------------------------------------------------------------------
[INFO] Building Subsonic
[INFO] task-segment: [eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse]
[INFO] Not running eclipse plugin goal for pom project
[INFO] Using as WTP server : null
[INFO] Adding default classpath contaigner: org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] ------------------------------------------------------------------------
[INFO] Building Subsonic Amazon
[INFO] task-segment: [eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
[java] Oct 27, 2008 9:40:56 AM org.apache.axis.utils.JavaUtils isAttachmentSupported
[java] WARNING: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
[INFO] Executed tasks
[INFO] Registering compile source root /home/craig/Spring/subsonic_3.4/subsonic/subsonic/subsonic-amazon/target/generated-sources/axis
[INFO] [eclipse:eclipse]
[INFO] Using as WTP server : null
[INFO] Adding default classpath contaigner: org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] Using source status cache: /home/craig/Spring/subsonic_3.4/subsonic/subsonic/target/mvn-eclipse-cache.properties
[INFO] Wrote settings to /home/craig/Spring/subsonic_3.4/subsonic/subsonic/subsonic-amazon/.settings/org.eclipse.jdt.core.prefs
[INFO] Wrote Eclipse project for "subsonic-amazon" to /home/craig/Spring/subsonic_3.4/subsonic/subsonic/subsonic-amazon.
[INFO]
Sources for some artifacts are not available.
Please run the same goal with the -DdownloadSources=true parameter in order to check remote repositories for sources.
List of artifacts without a source archive:
o axis:axis:1.2.1
o wsdl4j:wsdl4j:1.5.1
o commons-logging:commons-logging:1.0.4
o commons-discovery:commons-discovery:0.2
o axis:axis-saaj:1.2
o javax.xml:jaxrpc:1.1

Javadoc for some artifacts is not available.
Please run the same goal with the -DdownloadJavadocs=true parameter in order to check remote repositories for javadoc.
List of artifacts without a javadoc archive:
o axis:axis:1.2.1
o wsdl4j:wsdl4j:1.5.1
o commons-logging:commons-logging:1.0.4
o commons-discovery:commons-discovery:0.2
o axis:axis-saaj:1.2
o javax.xml:jaxrpc:1.1

[INFO] ------------------------------------------------------------------------
[INFO] Building Subsonic Main
[INFO] task-segment: [eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
Downloading: file:repo/org/springframework/spring-core/1.2.9/spring-core-1.2.9.pom
Downloading: file:../repo/org/springframework/spring-core/1.2.9/spring-core-1.2.9.pom
Downloading: http://repo1.maven.org/maven2/org/sprin ... -1.2.9.pom
1K downloaded
Downloading: file:repo/hsqldb/hsqldb/1.8.0.1/hsqldb-1.8.0.1.pom
Downloading: file:../repo/hsqldb/hsqldb/1.8.0.1/hsqldb-1.8.0.1.pom
Downloading: http://repo1.maven.org/maven2/hsqldb/hs ... .8.0.1.pom
148b downloaded
Downloading: file:repo/junit/junit/4.1/junit-4.1.jar
Downloading: file:../repo/junit/junit/4.1/junit-4.1.jar
Downloading: http://repo1.maven.org/maven2/junit/jun ... it-4.1.jar
109K downloaded
Downloading: file:repo/hsqldb/hsqldb/1.8.0.1/hsqldb-1.8.0.1.jar
Downloading: file:../repo/hsqldb/hsqldb/1.8.0.1/hsqldb-1.8.0.1.jar
Downloading: http://repo1.maven.org/maven2/hsqldb/hs ... .8.0.1.jar
610K downloaded
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
[copy] Copying 1 file to /home/craig/Spring/subsonic_3.4/subsonic/subsonic/subsonic-main/target/classes/net/sourceforge/subsonic/i18n
[INFO] Executed tasks
[INFO] [eclipse:eclipse]
[INFO] Using as WTP server : null
[INFO] Adding default classpath contaigner: org.eclipse.jdt.launching.JRE_CONTAINER
Downloading: file:repo/commons-codec/commons-codec/1.2/commons-codec-1.2.jar
Downloading: file:../repo/commons-codec/commons-codec/1.2/commons-codec-1.2.jar
Downloading: http://repo1.maven.org/maven2/commons-c ... ec-1.2.jar
29K downloaded
Downloading: file:repo/org/springframework/spring-core/1.2.9/spring-core-1.2.9.jar
Downloading: file:../repo/org/springframework/spring-core/1.2.9/spring-core-1.2.9.jar
Downloading: http://repo1.maven.org/maven2/org/sprin ... -1.2.9.jar
123K downloaded
[INFO] Using source status cache: /home/craig/Spring/subsonic_3.4/subsonic/subsonic/target/mvn-eclipse-cache.properties
[INFO] Wrote settings to /home/craig/Spring/subsonic_3.4/subsonic/subsonic/subsonic-main/.settings/org.eclipse.jdt.core.prefs
[INFO] Wrote Eclipse project for "subsonic-main" to /home/craig/Spring/subsonic_3.4/subsonic/subsonic/subsonic-main.
[INFO]
Sources for some artifacts are not available.
Please run the same goal with the -DdownloadSources=true parameter in order to check remote repositories for sources.
List of artifacts without a source archive:
o ant-zip:ant-zip:1.6.2
o cglib:cglib:2.1_3
o asm:asm:1.5.3
o commons-fileupload:commons-fileupload:1.2
o commons-httpclient:commons-httpclient:3.0.1
o junit:junit:4.1
o commons-logging:commons-logging:1.0.3
o commons-codec:commons-codec:1.2
o commons-io:commons-io:1.3.1
o commons-lang:commons-lang:2.1
o entagged-audioformats:entagged-audioformats:0.15
o hsqldb:hsqldb:1.8.0.1
o javax.servlet:jsp-api:2.0
o javax.servlet:servlet-api:2.4
o javax.servlet:jstl:1.1.2
o jdom:jdom:1.0
o jfree:jfreechart:1.0.0
o jfree:jcommon:1.0.0
o log4j:log4j:1.2.9
o net.sf.ehcache:ehcache:1.3.0
o net.sf.jsr107cache:jsr107cache:1.0
o backport-util-concurrent:backport-util-concurrent:3.0
o org.acegisecurity:acegi-security:1.0.5
o org.springframework:spring-core:1.2.9
o oro:oro:2.0.8
o commons-collections:commons-collections:3.1
o org.springframework:spring:2.5
o org.springframework:spring-webmvc:2.5
o org.springframework:spring-beans:2.5
o org.springframework:spring-context:2.5
o aopalliance:aopalliance:1.0
o org.springframework:spring-context-support:2.5
o org.springframework:spring-web:2.5
o radeox:radeox:1.0-b2
o taglibs:standard:1.1.2
o taglibs:string:1.1.0
o uk.ltd.getahead:dwr:1.1

Javadoc for some artifacts is not available.
Please run the same goal with the -DdownloadJavadocs=true parameter in order to check remote repositories for javadoc.
List of artifacts without a javadoc archive:
o ant-zip:ant-zip:1.6.2
o cglib:cglib:2.1_3
o asm:asm:1.5.3
o commons-fileupload:commons-fileupload:1.2
o commons-httpclient:commons-httpclient:3.0.1
o junit:junit:4.1
o commons-logging:commons-logging:1.0.3
o commons-codec:commons-codec:1.2
o commons-io:commons-io:1.3.1
o commons-lang:commons-lang:2.1
o entagged-audioformats:entagged-audioformats:0.15
o hsqldb:hsqldb:1.8.0.1
o javax.servlet:jsp-api:2.0
o javax.servlet:servlet-api:2.4
o javax.servlet:jstl:1.1.2
o jdom:jdom:1.0
o jfree:jfreechart:1.0.0
o jfree:jcommon:1.0.0
o log4j:log4j:1.2.9
o net.sf.ehcache:ehcache:1.3.0
o net.sf.jsr107cache:jsr107cache:1.0
o backport-util-concurrent:backport-util-concurrent:3.0
o org.acegisecurity:acegi-security:1.0.5
o org.springframework:spring-core:1.2.9
o oro:oro:2.0.8
o commons-collections:commons-collections:3.1
o org.springframework:spring:2.5
o org.springframework:spring-webmvc:2.5
o org.springframework:spring-beans:2.5
o org.springframework:spring-context:2.5
o aopalliance:aopalliance:1.0
o org.springframework:spring-context-support:2.5
o org.springframework:spring-web:2.5
o radeox:radeox:1.0-b2
o taglibs:standard:1.1.2
o taglibs:string:1.1.0
o uk.ltd.getahead:dwr:1.1

[INFO] ------------------------------------------------------------------------
[INFO] Building
[INFO] task-segment: [eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
Downloading: http://repo1.maven.org/maven2/org/apach ... beta-5.pom
2K downloaded
Downloading: http://repo1.maven.org/maven2/org/apach ... gins-1.pom
3K downloaded
Downloading: http://repo1.maven.org/maven2/org/apach ... beta-5.jar
52K downloaded
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse]
[INFO] Not running eclipse plugin goal for pom project
[INFO] Using as WTP server : null
[INFO] Adding default classpath contaigner: org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] ------------------------------------------------------------------------
[INFO] Building Subsonic Booter
[INFO] task-segment: [eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
Downloading: http://repo1.maven.org/maven2/org/apach ... beta-1.pom
12K downloaded
Downloading: http://repo1.maven.org/maven2/org/apach ... beta-1.jar
150K downloaded
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse]
[INFO] Using as WTP server : null
[INFO] Adding default classpath contaigner: org.eclipse.jdt.launching.JRE_CONTAINER
Downloading: file:repo/org/jdesktop/jdic/0.9.3/jdic-0.9.3.pom
150b downloaded
[WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for org/jdesktop/jdic/0.9.3/jdic-0.9.3.pom - IGNORING
Downloading: file:repo/org/jdesktop/jdic/0.9.3/jdic-0.9.3.jar
74K downloaded
[WARNING] *** CHECKSUM FAILED - Error retrieving checksum file for org/jdesktop/jdic/0.9.3/jdic-0.9.3.jar - IGNORING
[INFO] Unable to read jar manifest from /home/craig/.m2/repository/org/mortbay/jetty/jsp-2.0/6.1.5/jsp-2.0-6.1.5.pom
Downloading: file:repo/org/slf4j/slf4j-api/1.3.1/slf4j-api-1.3.1.jar
Downloading: file:../repo/org/slf4j/slf4j-api/1.3.1/slf4j-api-1.3.1.jar
Downloading: http://snapshots.repository.codehaus.or ... -1.3.1.jar
Downloading: http://people.apache.org/repo/m2-snapsh ... -1.3.1.jar
Downloading: http://repo1.maven.org/maven2/org/slf4j ... -1.3.1.jar
11K downloaded
Downloading: file:repo/org/slf4j/slf4j-simple/1.3.1/slf4j-simple-1.3.1.jar
Downloading: file:../repo/org/slf4j/slf4j-simple/1.3.1/slf4j-simple-1.3.1.jar
Downloading: http://snapshots.repository.codehaus.or ... -1.3.1.jar
Downloading: http://people.apache.org/repo/m2-snapsh ... -1.3.1.jar
Downloading: http://repo1.maven.org/maven2/org/slf4j ... -1.3.1.jar
7K downloaded
Downloading: file:repo/org/slf4j/jcl104-over-slf4j/1.3.1/jcl104-over-slf4j-1.3.1.jar
Downloading: file:../repo/org/slf4j/jcl104-over-slf4j/1.3.1/jcl104-over-slf4j-1.3.1.jar
Downloading: http://snapshots.repository.codehaus.or ... -1.3.1.jar
Downloading: http://people.apache.org/repo/m2-snapsh ... -1.3.1.jar
Downloading: http://repo1.maven.org/maven2/org/slf4j ... -1.3.1.jar
11K downloaded
Downloading: file:repo/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar
Downloading: file:../repo/xerces/xmlParserAPIs/2.6.2/xmlParserAPIs-2.6.2.jar
Downloading: http://snapshots.repository.codehaus.or ... -2.6.2.jar
Downloading: http://people.apache.org/repo/m2-snapsh ... -2.6.2.jar
Downloading: http://repo1.maven.org/maven2/xerces/xm ... -2.6.2.jar
121K downloaded
Downloading: file:repo/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar
Downloading: file:../repo/xerces/xercesImpl/2.6.2/xercesImpl-2.6.2.jar
Downloading: http://snapshots.repository.codehaus.or ... -2.6.2.jar
Downloading: http://people.apache.org/repo/m2-snapsh ... -2.6.2.jar
Downloading: http://repo1.maven.org/maven2/xerces/xe ... -2.6.2.jar
986K downloaded
[INFO] Using source status cache: /home/craig/Spring/subsonic_3.4/subsonic/subsonic/target/mvn-eclipse-cache.properties
[INFO] Wrote settings to /home/craig/Spring/subsonic_3.4/subsonic/subsonic/subsonic-booter/.settings/org.eclipse.jdt.core.prefs
[INFO] Wrote Eclipse project for "subsonic-booter" to /home/craig/Spring/subsonic_3.4/subsonic/subsonic/subsonic-booter.
[INFO]
Sources for some artifacts are not available.
Please run the same goal with the -DdownloadSources=true parameter in order to check remote repositories for sources.
List of artifacts without a source archive:
o com.jgoodies:forms:1.1.0
o com.jgoodies:looks:2.1.4
o org.jdesktop:jdic:0.9.3
o org.mortbay.jetty:jetty-embedded:6.1.5
o org.mortbay.jetty:jetty:6.1.5
o org.mortbay.jetty:jetty-util:6.1.5
o org.mortbay.jetty:servlet-api-2.5:6.1.5
o org.mortbay.jetty:jsp-2.0:6.1.5
o org.slf4j:slf4j-api:1.3.1
o org.slf4j:slf4j-simple:1.3.1
o tomcat:jasper-compiler-jdt:5.5.15
o org.eclipse.jdt:core:3.1.1
o org.slf4j:jcl104-over-slf4j:1.3.1
o xerces:xmlParserAPIs:2.6.2
o commons-el:commons-el:1.0
o xerces:xercesImpl:2.6.2
o tomcat:jasper-compiler:5.5.15
o ant:ant:1.6.5
o org.mortbay.jetty:jsp-api-2.0:6.1.5
o tomcat:jasper-runtime:5.5.15

Javadoc for some artifacts is not available.
Please run the same goal with the -DdownloadJavadocs=true parameter in order to check remote repositories for javadoc.
List of artifacts without a javadoc archive:
o com.jgoodies:forms:1.1.0
o com.jgoodies:looks:2.1.4
o org.jdesktop:jdic:0.9.3
o org.mortbay.jetty:jetty-embedded:6.1.5
o org.mortbay.jetty:jetty:6.1.5
o org.mortbay.jetty:jetty-util:6.1.5
o org.mortbay.jetty:servlet-api-2.5:6.1.5
o org.mortbay.jetty:jsp-2.0:6.1.5
o org.slf4j:slf4j-api:1.3.1
o org.slf4j:slf4j-simple:1.3.1
o tomcat:jasper-compiler-jdt:5.5.15
o org.eclipse.jdt:core:3.1.1
o org.slf4j:jcl104-over-slf4j:1.3.1
o xerces:xmlParserAPIs:2.6.2
o commons-el:commons-el:1.0
o xerces:xercesImpl:2.6.2
o tomcat:jasper-compiler:5.5.15
o ant:ant:1.6.5
o org.mortbay.jetty:jsp-api-2.0:6.1.5
o tomcat:jasper-runtime:5.5.15

[INFO] ------------------------------------------------------------------------
[INFO] Building Subsonic Installer
[INFO] task-segment: [eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] No goals needed for project - skipping
[INFO] [eclipse:eclipse]
[INFO] Not running eclipse plugin goal for pom project
[INFO] Using as WTP server : null
[INFO] Adding default classpath contaigner: org.eclipse.jdt.launching.JRE_CONTAINER
[INFO] ------------------------------------------------------------------------
[INFO] Building Subsonic Assembly
[INFO] task-segment: [eclipse:eclipse]
[INFO] ------------------------------------------------------------------------
[INFO] Preparing eclipse:eclipse
[INFO] artifact org.apache.maven.plugins:maven-assembly-plugin: checking for updates from central
Downloading: http://repo1.maven.org/maven2/org/apach ... beta-2.pom
16K downloaded
Downloading: http://repo1.maven.org/maven2/org/apach ... beta-2.jar
184K downloaded
[INFO] Reloading plugin container for: org.apache.maven.plugins:maven-assembly-plugin. The plugin artifact has changed.
Downloading: file:repo/net/sourceforge/subsonic/subsonic-main/3.4/subsonic-main-3.4.war
Downloading: file:../repo/net/sourceforge/subsonic/subsonic-main/3.4/subsonic-main-3.4.war
Downloading: http://repo1.maven.org/maven2/net/sourc ... in-3.4.war
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) net.sourceforge.subsonic:subsonic-main:war:3.4

Try downloading the file manually from the project website.

Then, install it using the command:
mvn install:install-file -DgroupId=net.sourceforge.subsonic -DartifactId=subsonic-main -Dversion=3.4 -Dpackaging=war -Dfile=/path/to/file

Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=net.sourceforge.subsonic -DartifactId=subsonic-main -Dversion=3.4 -Dpackaging=war -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]

Path to dependency:
1) net.sourceforge.subsonic:subsonic-assembly:pom:3.4
2) net.sourceforge.subsonic:subsonic-main:war:3.4

----------
1 required artifact is missing.

for artifact:
net.sourceforge.subsonic:subsonic-assembly:pom:3.4

from the specified remote repositories:
local1 (file:repo),
central (http://repo1.maven.org/maven2),
local2 (file:../repo)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1 minute 37 seconds
[INFO] Finished at: Mon Oct 27 09:42:22 MST 2008
[INFO] Final Memory: 15M/121M
[INFO] ------------------------------------------------------------------------

mornindew
 
Posts: 7
Joined: Mon Oct 27, 2008 4:47 pm

Postby sindre_mehus » Mon Oct 27, 2008 5:11 pm

I think you have to do 'mvn install' first.

Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby mornindew » Mon Oct 27, 2008 9:29 pm

Sindre,
Thank you for the response. I ran the "mvn install" and got a different error. " Property wtk.home points to non-existing directory". I am running this on Ubuntu and it is looking for a Windows path. Where is the wtk.home property set? Thanks, Craig

[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] [compiler:compile]
[INFO] Compiling 30 source files to /home/craig/Spring/subsonic_3.4/subsonic-3.5.beta2-src/subsonic-jme-player/target/classes
[INFO] [resources:testResources]
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] skip non existing resourceDirectory /home/craig/Spring/subsonic_3.4/subsonic-3.5.beta2-src/subsonic-jme-player/src/test/resources
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar: /home/craig/Spring/subsonic_3.4/subsonic-3.5.beta2-src/subsonic-jme-player/target/subsonic-jme-player-3.5.beta2.jar
[INFO] [j2me:package {execution: default}]
[INFO] Building j2me me package: /home/craig/Spring/subsonic_3.4/subsonic-3.5.beta2-src/subsonic-jme-player/target/subsonic-jme-player-3.5.beta2-me.jar
[INFO] Building jar: /home/craig/Spring/subsonic_3.4/subsonic-3.5.beta2-src/subsonic-jme-player/target/subsonic-jme-player-3.5.beta2-me.jar
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Property wtk.home points to non-existing directory
[INFO] ------------------------------------------------------------------------
[INFO] Trace
Property wtk.home points to non-existing directory
at de.pleumann.antenna.misc.Utility.getWtkHomePath(Utility.java:370)
at de.pleumann.antenna.misc.Utility.getWtkRelative(Utility.java:767)
at de.pleumann.antenna.misc.Utility.detectToolkit(Utility.java:198)
at de.pleumann.antenna.misc.Utility.<init>(Utility.java:156)
at de.pleumann.antenna.misc.Utility.getInstance(Utility.java:163)
at com.pyx4me.maven.j2me.WtkPreverifyMojo.executeWtkPreverifyTask(WtkPreverifyMojo.java:60)
at com.pyx4me.maven.j2me.PackageMojo.executePackage(PackageMojo.java:272)
at com.pyx4me.maven.j2me.PackageMojo.execute(PackageMojo.java:189)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459)
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:597)
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)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 18 seconds
[INFO] Finished at: Mon Oct 27 14:23:09 MST 2008
[INFO] Final Memory: 22M/116M
[INFO] ------------------------------------------------------------------------
[/b]
mornindew
 
Posts: 7
Joined: Mon Oct 27, 2008 4:47 pm

Postby sindre_mehus » Mon Oct 27, 2008 9:42 pm

Hi,

That's for building the JME mobile player, which is probably not interesting to you. (It requires the Wireless Toolkit from Sun).

I recommend you comment out the following line in the root pom.xml:
Code: Select all
<module>subsonic-jme-player</module>


You can also comment out these
Code: Select all
<module>subsonic-installer</module>
<module>subsonic-booter</module>

since they require external Windows applications (NSIS and exe4j).

Hope this helps,
Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby mornindew » Mon Oct 27, 2008 9:51 pm

Sindre,
Thanks again for your help, and it looks like we are making some progress. I am now getting a different error. It looks like there is a built in svn update/checkout command and that is failing. Any idea why this would fail?

ERROR
svn: '.' is not a working copy


[INFO] [install:install]
[INFO] Installing /home/craig/Spring/subsonic_3.4/subsonic-3.5.beta2-src/subsonic-amazon/target/subsonic-amazon-2006-03-08.jar to /home/craig/.m2/repository/net/sourceforge/subsonic/subsonic-amazon/2006-03-08/subsonic-amazon-2006-03-08.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building Subsonic Main
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [buildnumber:create {execution: default}]
[INFO] Checking for local modifications: skipped.
[INFO] Updating project files from SCM: skipped.
Provider message:
The svn command failed.
Command output:
svn: '.' is not a working copy

[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Cannot get the revision information from the scm repository :
Error!

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
mornindew
 
Posts: 7
Joined: Mon Oct 27, 2008 4:47 pm

Postby sindre_mehus » Tue Oct 28, 2008 7:39 am

Are you building from a Subversion checkout or from a source tarball?
I just realized that the latter doesn't work (from 3.5.beta2 and later)

Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby mornindew » Tue Oct 28, 2008 9:04 pm

Sindre,
That worked like a charm. The only caveat is that I had to also comment out the subsonic-flex out of the pom.xml. If i didn't then I would get the error below on mvn install. Is this going to be an issue for me? Thanks again for all your help. Craig




[INFO] ------------------------------------------------------------------------
[INFO] Building Subsonic Flex
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] One or more required plugin parameters are invalid/missing for 'flex2:compile-swf'

[0] Inside the definition for plugin 'maven-flex2-plugin' specify the following:

<configuration>
...
<flexHome>VALUE</flexHome>
</configuration>

-OR-

on the command line, specify: '-Dflex.home=VALUE'

[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 32 seconds
[INFO] Finished at: Tue Oct 28 13:52:30 MST 2008
[INFO] Final Memory: 25M/117M
mornindew
 
Posts: 7
Joined: Mon Oct 27, 2008 4:47 pm

Postby sindre_mehus » Tue Oct 28, 2008 9:16 pm

That won't be a problem. The subsonic-flex module isn't used for anything (and is removed in 3.5)

Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway


Return to Help

Who is online

Users browsing this forum: No registered users and 9 guests