Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Active? #1

Open
arjunmenon opened this issue Jan 10, 2018 · 7 comments
Open

Active? #1

arjunmenon opened this issue Jan 10, 2018 · 7 comments

Comments

@arjunmenon
Copy link

Hey
Is this project active?
How do you use this properly?
Is there a basic instruction?

@vitalidze
Copy link
Owner

It's not in active development. To be honest I have achieved what I wanted to achieve and using it on my home linux server. I have a video library here, which is streamed to multiple devices (TV, Android Box, PC). It is small, works fine for me, so I am happy with it.

This project can be assembled as an all-in-one zip archive with the service wrapper. Basically you unzip it somewhere, write config file and then start using the justdlna script.

@rhildred
Copy link

rhildred commented Feb 21, 2018

Hi

I am also trying to use this. I thought it was working really well with the following config:

{
    "content": {
        "folder": {
            "title": "music",
            "path": "/Users/rhildred/Public/music",
            "format": "audio"
        }
    }
}

When I try it again it doesn't seem to return anything by way of a listing.

What I would really like to do is share 3 folders. 1 for video, 1 for audio and 1 for images. It looks like there is code for this but I seem to be missing something in my understanding of the code and the config. Please help me.

thanks

Rich

ps: I made a minor change to the pom.xml to get it to build

git diff pom.xml
diff --git a/pom.xml b/pom.xml
index dcbc6f2..6e6f636 100644
--- a/pom.xml
+++ b/pom.xml
@@ -106,7 +106,7 @@
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>appassembler-maven-plugin</artifactId>
-                <version>1.7-SNAPSHOT</version>
+                <version>2.0.0</version>
                 <executions>
                     <execution>
                         <id>generate-jsw-scripts</id>

@arjunmenon
Copy link
Author

Well i was facing an error. I can't run

>:~/Desktop/java/justdlna$ mvn clean assembly:assembly
[INFO] Scanning for projects...
Downloading: https://nexus.codehaus.org/content/groups/public/org/apache/maven/plugins/maven-compiler-plugin/2.5.1/maven-compiler-plugin-2.5.1.pom
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.5.1/maven-compiler-plugin-2.5.1.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.5.1/maven-compiler-plugin-2.5.1.pom (8 KB at 6.1 KB/sec)
Downloading: https://nexus.codehaus.org/content/groups/public/org/apache/maven/plugins/maven-compiler-plugin/2.5.1/maven-compiler-plugin-2.5.1.jar
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.5.1/maven-compiler-plugin-2.5.1.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/2.5.1/maven-compiler-plugin-2.5.1.jar (32 KB at 56.1 KB/sec)
Downloading: https://nexus.codehaus.org/content/groups/public/org/codehaus/mojo/appassembler-maven-plugin/1.7-SNAPSHOT/maven-metadata.xml
[WARNING] Could not transfer metadata org.codehaus.mojo:appassembler-maven-plugin:1.7-SNAPSHOT/maven-metadata.xml from/to codehaus (https://nexus.codehaus.org/content/groups/public): Connect to nexus.codehaus.org:443 [nexus.codehaus.org/198.245.51.138] failed: Connection timed out (Connection timed out)
[WARNING] Failure to transfer org.codehaus.mojo:appassembler-maven-plugin:1.7-SNAPSHOT/maven-metadata.xml from https://nexus.codehaus.org/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of codehaus has elapsed or updates are forced. Original error: Could not transfer metadata org.codehaus.mojo:appassembler-maven-plugin:1.7-SNAPSHOT/maven-metadata.xml from/to codehaus (https://nexus.codehaus.org/content/groups/public): Connect to nexus.codehaus.org:443 [nexus.codehaus.org/198.245.51.138] failed: Connection timed out (Connection timed out)
Downloading: https://nexus.codehaus.org/content/groups/public/org/codehaus/mojo/appassembler-maven-plugin/1.7-SNAPSHOT/appassembler-maven-plugin-1.7-SNAPSHOT.pom
[WARNING] Failed to retrieve plugin descriptor for org.codehaus.mojo:appassembler-maven-plugin:1.7-SNAPSHOT: Plugin org.codehaus.mojo:appassembler-maven-plugin:1.7-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:appassembler-maven-plugin:jar:1.7-SNAPSHOT
Downloading: https://nexus.codehaus.org/content/groups/public/org/apache/maven/plugins/maven-assembly-plugin/2.4/maven-assembly-plugin-2.4.pom
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/2.4/maven-assembly-plugin-2.4.pom
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/2.4/maven-assembly-plugin-2.4.pom (17 KB at 40.6 KB/sec)
Downloading: https://nexus.codehaus.org/content/groups/public/org/apache/maven/plugins/maven-assembly-plugin/2.4/maven-assembly-plugin-2.4.jar
Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/2.4/maven-assembly-plugin-2.4.jar
Downloaded: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-assembly-plugin/2.4/maven-assembly-plugin-2.4.jar (221 KB at 284.2 KB/sec)
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building justdlna 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] 
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ justdlna ---
[INFO]                                                                         
[INFO] ------------------------------------------------------------------------
[INFO] Building justdlna 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] Failed to retrieve plugin descriptor for org.codehaus.mojo:appassembler-maven-plugin:1.7-SNAPSHOT: Plugin org.codehaus.mojo:appassembler-maven-plugin:1.7-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:appassembler-maven-plugin:jar:1.7-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 02:43 min
[INFO] Finished at: 2018-02-21T18:41:59+05:30
[INFO] Final Memory: 9M/82M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.codehaus.mojo:appassembler-maven-plugin:1.7-SNAPSHOT or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.codehaus.mojo:appassembler-maven-plugin:jar:1.7-SNAPSHOT: Failure to transfer org.codehaus.mojo:appassembler-maven-plugin:pom:1.7-SNAPSHOT from https://nexus.codehaus.org/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of codehaus has elapsed or updates are forced. Original error: Could not transfer artifact org.codehaus.mojo:appassembler-maven-plugin:pom:1.7-SNAPSHOT from/to codehaus (https://nexus.codehaus.org/content/groups/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [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

@rhildred
Copy link

That's what my ps fix is for. Change the version for appassembler-maven-plugin to 2.0.0.

git diff pom.xml
diff --git a/pom.xml b/pom.xml
index dcbc6f2..6e6f636 100644
--- a/pom.xml
+++ b/pom.xml
@@ -106,7 +106,7 @@
             <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>appassembler-maven-plugin</artifactId>
-                <version>1.7-SNAPSHOT</version>
+                <version>2.0.0</version>
                 <executions>
                     <execution>
                         <id>generate-jsw-scripts</id>

@rhildred
Copy link

Never mind. I got it to work!


{
    "content": {
        "virtual": {
            "folders": [
                {
                    "folder": {
                        "title": "music",
                        "path": "/Users/rhildred/Public/music",
                        "format": "audio"
                    }
                },
                {
                    "folder": {
                        "title": "movies",
                        "path": "/Users/rhildred/Public/Movies",
                        "format": "video"
                    }
                },
                {
                    "last-added": {
                        "format": "video"
                    }
                },
                {
                    "last-viewed": {
                        "format": "video"
                    }
                }
            ]
        }
    }
}

@arjunmenon
Copy link
Author

@rhildred Thanks for this.

@rhildred
Copy link

You are welcome @arjunmenon! I am really happy. I am using justdlna with BubbleUpnp on my android device and chromecast on my screens. Last night I stayed up too late watching old concert videos I had saved off. Currently justdlna is running in the VSCode debugger. My plan tonight is to use the justdlna script to run as a service on my OSX server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants