[MacPorts] #49756: commons-cli: Build failed due to jar file that look likes to be in real an html file (was: Build failed due to jar file that look likes to be in real an html file)

MacPorts noreply at macports.org
Fri Nov 20 16:01:34 PST 2015


#49756: commons-cli: Build failed due to jar file that look likes to be in real an
html file
--------------------------------+--------------------------------
  Reporter:  mauro.mazzoleni@…  |      Owner:  macports-tickets@…
      Type:  defect             |     Status:  new
  Priority:  Normal             |  Milestone:
 Component:  ports              |    Version:  2.3.4
Resolution:                     |   Keywords:
      Port:  commons-cli        |
--------------------------------+--------------------------------
Changes (by ryandesign@…):

 * milestone:  MacPorts Future =>


Old description:

> :info:build     [javac] error: error reading
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
> .org_release_ports_java_commons-cli/commons-cli/work/commons-
> cli-1.1-src/target/lib/junit-3.8.1.jar; error in opening zip file
>
> If I try to unzip with jar, I get an exception:
>
> jar -tvf
> /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
> .org_release_ports_java_commons-cli/commons-cli/work/commons-
> cli-1.1-src/target/lib/junit-3.8.1.jar
> java.util.zip.ZipException: error in opening zip file
>         at java.util.zip.ZipFile.open(Native Method)
>         at java.util.zip.ZipFile.<init>(ZipFile.java:220)
>         at java.util.zip.ZipFile.<init>(ZipFile.java:150)
>         at java.util.zip.ZipFile.<init>(ZipFile.java:121)
>         at sun.tools.jar.Main.list(Main.java:1060)
>         at sun.tools.jar.Main.run(Main.java:291)
>         at sun.tools.jar.Main.main(Main.java:1233)
>
> I tried to open the file with Aquaemacs and it seems to be html:
> <html>
> <head>
> <title>Directory Browsing Disabled</title>
> <style type="text/css">
> html, body {
>     height: 100%;
> }
> body {
>     margin: 0;
>     padding: 0;
>     background-color: #fff;
> }
> #top {
>     position: absolute;
> }
> h1, p {
>     margin: 0;
>     padding: 0.4em 0.5em;
> }
> #container {
>     min-height: 100%;
>     margin-bottom: -46px;
> }
> * html #container {
>     height: 100%;
> }
> #footer-spacer {
>     height: 46px;
> }
> #footer {
>     border-top: 1px solid #AAA;
>     padding-top: 10px;
>     height: 35px;
>     text-align: center;
> }
> </style>
> </head>
> <body>
>         <div id="top"></div>
>         <div id="container">
>         <p>Browsing for this directory has been disabled.</p>
>         <p><a href="http://search.maven.org/#browse">View</a> this
> directory's contents on <a
> href="http://search.maven.org/#browse">http://search.maven.org</a>
> instead.</p>
>         <div id="footer-spacer"></div>
>     </div>
>     <div id="footer">
>         <a href="/terms.html">Terms of Service</a>
>     </div>
> </body>
> </html>

New description:

 {{{
 :info:build     [javac] error: error reading
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_java_commons-cli/commons-cli/work/commons-
 cli-1.1-src/target/lib/junit-3.8.1.jar; error in opening zip file
 }}}

 If I try to unzip with jar, I get an exception:

 {{{
 jar -tvf
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_release_ports_java_commons-cli/commons-cli/work/commons-
 cli-1.1-src/target/lib/junit-3.8.1.jar
 java.util.zip.ZipException: error in opening zip file
         at java.util.zip.ZipFile.open(Native Method)
         at java.util.zip.ZipFile.<init>(ZipFile.java:220)
         at java.util.zip.ZipFile.<init>(ZipFile.java:150)
         at java.util.zip.ZipFile.<init>(ZipFile.java:121)
         at sun.tools.jar.Main.list(Main.java:1060)
         at sun.tools.jar.Main.run(Main.java:291)
         at sun.tools.jar.Main.main(Main.java:1233)
 }}}

 I tried to open the file with Aquaemacs and it seems to be html:

 {{{
 <html>
 <head>
 <title>Directory Browsing Disabled</title>
 <style type="text/css">
 html, body {
     height: 100%;
 }
 body {
     margin: 0;
     padding: 0;
     background-color: #fff;
 }
 #top {
     position: absolute;
 }
 h1, p {
     margin: 0;
     padding: 0.4em 0.5em;
 }
 #container {
     min-height: 100%;
     margin-bottom: -46px;
 }
 * html #container {
     height: 100%;
 }
 #footer-spacer {
     height: 46px;
 }
 #footer {
     border-top: 1px solid #AAA;
     padding-top: 10px;
     height: 35px;
     text-align: center;
 }
 </style>
 </head>
 <body>
         <div id="top"></div>
         <div id="container">
         <p>Browsing for this directory has been disabled.</p>
         <p><a href="http://search.maven.org/#browse">View</a> this
 directory's contents on <a
 href="http://search.maven.org/#browse">http://search.maven.org</a>
 instead.</p>
         <div id="footer-spacer"></div>
     </div>
     <div id="footer">
         <a href="/terms.html">Terms of Service</a>
     </div>
 </body>
 </html>
 }}}

--

-- 
Ticket URL: <https://trac.macports.org/ticket/49756#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list