Can't resolve jarbuilder while building mac installer

Need help? Post your questions here.

Moderator: moderators

Can't resolve jarbuilder while building mac installer

Postby MidnightJava » Sat Jul 16, 2011 6:14 am

I'm trying to do a build from source for the Mac installer. I checked out subsonic-main, subsonic-booter, and subsonic-installer-mac into my project folder. I modified the root level POM, adding subsonic-booter and subsonic-installer-mac to the modules.

When I do mvn install, the first two modules build successfully, but subsonic-installer-mac fails. Judging from the debug output (pasted below) it looks like it can't find the pom for jarbuilder. But it seems to be where it's supposed to be, in the repo folder at the root level of my project. I find it there at repo/net/sourceforge/jarbundler/jarbundler/2.1.0/jarbundler-2.1.0.pom

Here's the debug output

[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal: org.apache.maven.plugins:maven-install-plugin:2.3.1:install (default-install)
[DEBUG] Style: Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
<artifact default-value="${project.artifact}"/>
<attachedArtifacts default-value="${project.attachedArtifacts}"/>
<createChecksum default-value="false">${createChecksum}</createChecksum>
<localRepository>${localRepository}</localRepository>
<packaging default-value="${project.packaging}"/>
<pomFile default-value="${project.file}"/>
<updateReleaseInfo default-value="false">${updateReleaseInfo}</updateReleaseInfo>
</configuration>
[DEBUG] =======================================================================
[DEBUG] net.sourceforge.subsonic:subsonic-installer-mac:pom:4.5.beta1
[DEBUG] net.sourceforge.subsonic:subsonic-main:war:4.5.beta1:compile
[DEBUG] net.sourceforge.subsonic:subsonic-booter:jar:4.5.beta1:compile
[DEBUG] org.mortbay.jetty:jetty:jar:6.1.5:compile
[DEBUG] org.mortbay.jetty:jetty-util:jar:6.1.5:compile
[DEBUG] org.mortbay.jetty:servlet-api-2.5:jar:6.1.5:compile
[DEBUG] org.mortbay.jetty:jetty-embedded:jar:6.1.5:runtime
[DEBUG] org.mortbay.jetty:jsp-2.0:pom:6.1.5:runtime
[DEBUG] org.slf4j:slf4j-api:jar:1.3.1:runtime
[DEBUG] org.slf4j:slf4j-simple:jar:1.3.1:runtime
[DEBUG] tomcat:jasper-compiler-jdt:jar:5.5.15:runtime
[DEBUG] org.eclipse.jdt:core:jar:3.1.1:runtime
[DEBUG] org.slf4j:jcl104-over-slf4j:jar:1.3.1:runtime
[DEBUG] xerces:xmlParserAPIs:jar:2.6.2:runtime
[DEBUG] commons-el:commons-el:jar:1.0:runtime
[DEBUG] xerces:xercesImpl:jar:2.6.2:runtime
[DEBUG] tomcat:jasper-compiler:jar:5.5.15:runtime
[DEBUG] org.mortbay.jetty:jsp-api-2.0:jar:6.1.5:runtime
[DEBUG] ant:ant:jar:1.6.5:runtime
[DEBUG] tomcat:jasper-runtime:jar:5.5.15:runtime
[DEBUG] com.jgoodies:looks:jar:2.1.4:compile
[DEBUG] com.jgoodies:forms:jar:1.1.0:compile
[DEBUG] org.springframework:spring:jar:2.5.6:compile
[DEBUG] commons-logging:commons-logging:jar:1.1.1:compile
[DEBUG] commons-io:commons-io:jar:1.3.1:compile
[INFO]
[INFO] --- maven-antrun-plugin:1.6:run (default) @ subsonic-installer-mac ---
[WARNING] The POM for net.sourceforge.jarbundler:jarbundler:jar:2.1.0 is missing, no dependency information available
[DEBUG] org.apache.maven.plugins:maven-antrun-plugin:jar:1.6:
[DEBUG] net.sourceforge.jarbundler:jarbundler:jar:2.1.0:runtime
[DEBUG] org.apache.maven:maven-plugin-api:jar:2.0.11:compile
[DEBUG] org.apache.maven:maven-project:jar:2.0.11:compile
[DEBUG] org.apache.maven:maven-settings:jar:2.0.11:compile
[DEBUG] org.apache.maven:maven-profile:jar:2.0.11:compile
[DEBUG] org.apache.maven:maven-model:jar:2.0.11:compile
[DEBUG] org.apache.maven:maven-artifact-manager:jar:2.0.11:compile
[DEBUG] org.apache.maven:maven-repository-metadata:jar:2.0.11:compile
[DEBUG] org.apache.maven:maven-plugin-registry:jar:2.0.11:compile
[DEBUG] org.codehaus.plexus:plexus-interpolation:jar:1.1: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] classworlds:classworlds:jar:1.1-alpha-2:compile
[DEBUG] org.apache.maven:maven-artifact:jar:2.0.11:compile
[DEBUG] org.codehaus.plexus:plexus-utils:jar:2.0.5:compile
[DEBUG] org.apache.ant:ant-nodeps:jar:1.8.1:compile
[DEBUG] org.apache.ant:ant:jar:1.8.1:compile
[DEBUG] org.apache.ant:ant-launcher:jar:1.8.1:compile
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Subsonic .......................................... SUCCESS [1.253s]
[INFO] Subsonic Main ..................................... SUCCESS [15.215s]
[INFO] Subsonic Booter ................................... SUCCESS [6.202s]
[INFO] Subsonic Installer for Mac ........................ FAILURE [0.036s]
[INFO] ------------------------------------------------------------------------
-Mark
MidnightJava
 
Posts: 5
Joined: Fri Jul 15, 2011 11:00 pm

Postby MidnightJava » Sat Jul 16, 2011 3:52 pm

There's another failure message just below the output I posted above, which may shed some light on what's going on.

Code: Select all
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run (default) on project subsonic-installer-mac: Execution default of goal org.apache.maven.plugins:maven-antrun-plugin:1.6:run failed: Plugin org.apache.maven.plugins:maven-antrun-plugin:1.6 or one of its dependencies could not be resolved: Failure to find net.sourceforge.jarbundler:jarbundler:jar:2.1.0 in http://repository.codehaus.org/ was cached in the local repository, resolution will not be reattempted until the update interval of Codehaus Repository has elapsed or updates are forced -> [Help 1]


I'm assuming that the antrun plugin is fine, and it's one of its dependencies, namely jarbuilder, that's having the problem. I say this because of the warning and error messages that mention jarbuilder as the problem, and because I look in my local repo and see v1.6 of maven-antrun-plugin in ~/.m2/repository/org/apache/maven/plugins. I also did mvn --check-plugin-updates dependency:list and it showed success for all three modules I'm trying to build.

What's confusing me is that the error message above says it's looking for jarbuilder in http://repository.codehaus.org/, but I see that it's in the "repo" folder that I checked out from subsonic into the root of my project, as I described in my previous post.

I'm brand new to maven, so I don't know how to tell maven to look for jarbuilder in the "repo" folder instead of from an external URL. In the root level POM, a repository with id local1 is defined with URL file:repo, which as I pointed out above contains the jarbuilder code. So do I need to do something to tell maven to look for jarbuilder there instead of via the external URL? Or is that error message about the external URL a red herring?
-Mark
MidnightJava
 
Posts: 5
Joined: Fri Jul 15, 2011 11:00 pm

Postby MidnightJava » Sun Jul 17, 2011 7:36 pm

I figured it out. I added the following to the pluginRepositories element in the root level POM.

Code: Select all
<pluginRepository>
      <id>local1</id>
      <name>Local Repository 1</name>
      <url>file:repo</url>
</pluginRepository>


There was previously only an entry for http://repository.codehaus.org. Jarbundler is not at that site, but it is in the root level repo folder in the Subsonic source distro.

It seems like perhaps this change should be made in the Subsonic repo as well. I don't see how it's going to work for others trying to build the mac installer otherwise.
-Mark
MidnightJava
 
Posts: 5
Joined: Fri Jul 15, 2011 11:00 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 32 guests