Source-Zip: Modules missing

Need help? Post your questions here.

Moderator: moderators

Source-Zip: Modules missing

Postby joky » Tue Apr 29, 2008 8:14 am

Hello Sindre,

i just wanted to patch MusicFolderDao, so that music folders would be ordered by name and enabled flag, but mvn compile fails because "subsonic-amazon" and "subsonic-flex" are missing in subsonic-3.4-src.zip. Is this a bug in the source build or am i missing something? Thanks in advance!

joky
joky
 
Posts: 10
Joined: Thu Feb 07, 2008 3:02 pm
Location: Germany

Postby sindre_mehus » Tue Apr 29, 2008 1:59 pm

Oops, you're right. I'll fix that for the next release. In the meantime, you can fetch the source directly using Subversion:
Code: Select all
svn co https://subsonic.svn.sourceforge.net/svnroot/subsonic/tags/release-3.4 subsonic


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

Postby joky » Tue Apr 29, 2008 3:26 pm

Ok, on to the next problem:

Code: Select all
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.

Missing:
----------
1) net.sourceforge.subsonic:subsonic-amazon:jar:2006-03-08


subsonic-amazon is empty, just the pom, no src. Is it still needed or can i remove the dependency from the subsonic-main pom?

joky
joky
 
Posts: 10
Joined: Thu Feb 07, 2008 3:02 pm
Location: Germany

Postby sindre_mehus » Tue Apr 29, 2008 3:35 pm

No, you need it. But you must run "mvn install" to build multi-module Maven projects.
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby joky » Tue Apr 29, 2008 3:53 pm

Ok, thanks for your help and sorry to bother you again, but now compilation fails.

Code: Select all
[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] ------------------------------------------------------------------------
[INFO] Building Subsonic
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] artifact org.apache.maven.plugins:maven-clean-plugin: checking for updates from central
[INFO] [clean:clean]
[INFO] Deleting directory /home/joky/tmp/subsonic/target
[INFO] Deleting directory /home/joky/tmp/subsonic/target/classes
[INFO] Deleting directory /home/joky/tmp/subsonic/target/test-classes
[INFO] Deleting directory /home/joky/tmp/subsonic/target/site
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /home/joky/tmp/subsonic/pom.xml to /home/joky/.m2/repository/net/sourceforge/subsonic/subsonic/3.4/subsonic-3.4.pom
[INFO] ------------------------------------------------------------------------
[INFO] Building Subsonic Amazon
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /home/joky/tmp/subsonic/subsonic-amazon/target
[INFO] Deleting directory /home/joky/tmp/subsonic/subsonic-amazon/target/classes
[INFO] Deleting directory /home/joky/tmp/subsonic/subsonic-amazon/target/test-classes
[INFO] Deleting directory /home/joky/tmp/subsonic/subsonic-amazon/target/site
[WARNING] While downloading javax.xml:jaxrpc:1.1
  This artifact has been relocated to javax.xml:jaxrpc-api:1.1.


[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
     [java] 29.04.2008 17:48:38 org.apache.axis.utils.JavaUtils isAttachmentSupported
     [java] WARNUNG: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.
     [java] java.io.IOException: WSDL2Java emitter timed out (this often means the WSDL at the specified URL is inaccessible)!
     [java]     at org.apache.axis.wsdl.gen.Parser.run(Parser.java:320)
     [java]     at org.apache.axis.wsdl.toJava.Emitter.run(Emitter.java:599)
     [java]     at org.apache.axis.wsdl.gen.WSDL2.run(WSDL2.java:343)
     [java]     at org.apache.axis.wsdl.WSDL2Java.main(WSDL2Java.java:373)
     [java] Java Result: 1
[INFO] Executed tasks
[INFO] Registering compile source root /home/joky/tmp/subsonic/subsonic-amazon/target/generated-sources/axis
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[WARNING] JAR will be empty - no content was marked for inclusion!
[INFO] Building jar: /home/joky/tmp/subsonic/subsonic-amazon/target/subsonic-amazon-2006-03-08.jar
[INFO] [install:install]
[INFO] Installing /home/joky/tmp/subsonic/subsonic-amazon/target/subsonic-amazon-2006-03-08.jar to /home/joky/.m2/repository/net/sourceforge/subsonic/subsonic-amazon/2006-03-08/subsonic-amazon-2006-03-08.jar
[INFO] ------------------------------------------------------------------------
[INFO] Building Subsonic Main
[INFO]    task-segment: [clean, install]
[INFO] ------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /home/joky/tmp/subsonic/subsonic-main/target
[INFO] Deleting directory /home/joky/tmp/subsonic/subsonic-main/target/classes
[INFO] Deleting directory /home/joky/tmp/subsonic/subsonic-main/target/test-classes
[INFO] Deleting directory /home/joky/tmp/subsonic/subsonic-main/target/site
[INFO] [antrun:run {execution: default}]
[INFO] Executing tasks
     [copy] Copying 1 file to /home/joky/tmp/subsonic/subsonic-main/target/classes/net/sourceforge/subsonic/i18n
[INFO] Executed tasks
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Compiling 164 source files to /home/joky/tmp/subsonic/subsonic-main/target/classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure
Last edited by joky on Tue Apr 29, 2008 3:58 pm, edited 1 time in total.
joky
 
Posts: 10
Joined: Thu Feb 07, 2008 3:02 pm
Location: Germany

Postby joky » Tue Apr 29, 2008 3:54 pm

Oh, sorry, here is part 2:

Code: Select all
/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[3,0] package com.amazon.webservices.AWSECommerceService does not exist

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[22,12] cannot find symbol
symbol  : class AWSECommerceServicePortType
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[102,17] cannot find symbol
symbol  : class Item
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[134,25] cannot find symbol
symbol  : class AWSECommerceServicePortType
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[34,13] cannot find symbol
symbol  : class Item
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[37,13] cannot find symbol
symbol  : class Item
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[38,12] cannot find symbol
symbol  : class Image
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[60,13] cannot find symbol
symbol  : class Item
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[63,13] cannot find symbol
symbol  : class Item
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[68,12] cannot find symbol
symbol  : class ItemAttributes
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[78,12] cannot find symbol
symbol  : class EditorialReviews
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[80,16] cannot find symbol
symbol  : class EditorialReview
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[88,12] cannot find symbol
symbol  : class Image
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[103,8] cannot find symbol
symbol  : class ItemSearch
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[103,32] cannot find symbol
symbol  : class ItemSearch
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[107,8] cannot find symbol
symbol  : class ItemSearchRequest
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[107,40] cannot find symbol
symbol  : class ItemSearchRequest
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[112,30] cannot find symbol
symbol  : class ItemSearchRequest
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[114,8] cannot find symbol
symbol  : class ItemSearchResponse
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[116,13] cannot find symbol
symbol  : class Item
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[116,42] cannot find symbol
symbol  : class Item
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[117,8] cannot find symbol
symbol  : class Items
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[119,27] cannot find symbol
symbol  : class Items
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[122,13] cannot find symbol
symbol  : class Items
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[123,12] cannot find symbol
symbol  : class Item
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[125,28] cannot find symbol
symbol  : class Item
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[127,17] cannot find symbol
symbol  : class Item
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[136,12] cannot find symbol
symbol  : class AWSECommerceServiceLocator
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/service/AmazonSearchService.java:[136,53] cannot find symbol
symbol  : class AWSECommerceServiceLocator
location: class net.sourceforge.subsonic.service.AmazonSearchService

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/ldap/SubsonicLdapBindAuthenticator.java:[34,5] method does not override a method from its superclass

/home/joky/tmp/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/controller/LeftController.java:[42,5] method does not override a method from its superclass


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 52 seconds
[INFO] Finished at: Tue Apr 29 17:49:28 CEST 2008
[INFO] Final Memory: 22M/318M
[INFO] ------------------------------------------------------------------------
joky
 
Posts: 10
Joined: Thu Feb 07, 2008 3:02 pm
Location: Germany

Postby sindre_mehus » Tue Apr 29, 2008 5:09 pm

No worries :-) Just make sure that you're computer is online, so that the Amazon WSDL (http://webservices.amazon.com/AWSEComme ... rvice.wsdl) can be downloaded.
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby joky » Wed Apr 30, 2008 9:25 am

sindre_mehus wrote:No worries :-) Just make sure that you're computer is online, so that the Amazon WSDL (http://webservices.amazon.com/AWSEComme ... rvice.wsdl) can be downloaded.


That was a proxy issue. I try this at work (i work as a software developer, so i have the perfect environment here), so i had to specify our proxy in the subsonic-amazon/pom.xml. But the second issue still exists.

Code: Select all
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure

/home/joky/dev/thirdparty/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/ldap/SubsonicLdapBindAuthenticator.java:[34,5] method does not override a method from its superclass

/home/joky/dev/thirdparty/subsonic/subsonic-main/src/main/java/net/sourceforge/subsonic/controller/LeftController.java:[42,5] method does not override a method from its superclass


This makes no sense to me, as the methods mentioned do override superclass methods. Do you have any suggestions? Maybe wrong library versions used by compiler? Thanks in advance!

joky
joky
 
Posts: 10
Joined: Thu Feb 07, 2008 3:02 pm
Location: Germany

Postby sindre_mehus » Wed Apr 30, 2008 9:44 am

Ah, either remove the "@Override" annotations, or compile with JDK 6. I think in JDK 5 you are not allowed to specify @Override when implementing interface methods.

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

Postby joky » Wed Apr 30, 2008 11:25 am

Ok, Java 6 did the job. Now on to the next problems. :wink:

1. I had remove "subsonic-booter" and "subsonic-installer" from the parent pom, because these include calls to native programs which i don't own and which probably wouldn't run on Linux. Since i don't need a installer or booter (just the war), this should not be a problem, right? (Btw. isn't it dangerous to provide your exe2j license to public?)

2. "subsonic-flex" wont't compile.
Code: Select all
[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'

Do i have to download and install flex manually and provide the "flex.home" property or can i remove the module, because i don't use the flash player?
joky
 
Posts: 10
Joined: Thu Feb 07, 2008 3:02 pm
Location: Germany

Postby sindre_mehus » Thu May 01, 2008 2:02 pm

You can safely ignore the subsonic-flex module as well.

If you're only interested in the war, you only need the subsonic-amazon and subsonic-main modules, unless I'm sadly mistaken.

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

Postby joky » Fri May 02, 2008 3:43 pm

The build works now. Thank you for your help! I use the following configuration on my platform:

Code: Select all
    <modules>
        <module>subsonic-main</module>
        <module>subsonic-amazon</module>
        <module>subsonic-site</module>
        <!-- <module>subsonic-booter</module> -->
        <!-- <module>subsonic-installer</module> -->
        <module>subsonic-assembly</module>
        <!-- <module>subsonic-flex</module> -->
    </modules>


I just added "order by name asc" to the sql statement in MusicFolderDao, because music folders were just ordered by time of creation. Maybe this would be useful for others to. Btw. are you interested in others (me) submitting code or do you want to keep development to your own?
joky
 
Posts: 10
Joined: Thu Feb 07, 2008 3:02 pm
Location: Germany

Postby sindre_mehus » Sat May 03, 2008 8:12 am

Glad that it worked, and thanks for letting me know of the wrinkles. I've fixed the problems you've mentioned.

As for submit rights, I prefer for the time being to have exclusive control of the code, but everybody are of course welcome to suggest changes. If someone decides to make code changes, they can be sent to me as a patch, and I will decide whether to include it in the code base.

Thanks,
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 22 guests