Re: How to start if upstream source contains pom.xml
On Fri, Jul 18, 2014 at 01:30:09PM +0200, Emmanuel Bourg wrote:
> Le 18/07/2014 13:27, Andreas Tille a écrit :
>
> > I went trough the whole mh_make process by trying to hit y/n/<enter>
> > wherever it seemed to be reasonable but there is even no such thing like
> > a log file. I attached a tarball of the debian/ as it was created.
> >
> > Do you get something else?
>
> I just need the console output with the questions/answers please.
Since mh_make also had problems detecting libjson-simple-java I installed
these packages manually:
libcommons-fileupload-java libjson-simple-java
$ mh_make
Environment variable DEBLICENSE not set, using GPL-3+ by default
Enter the name of the new Debian source package:
[imeji-imeji] > imeji
Enter the name of the binary package:
[libimeji-java] > imeji
Run tests while building the package?
[Y/n] >
Generate the Javadoc while building the package?
[Y/n] > n
Checking that apt-file is installed and has been configured...
Warning: apt-file doesn't seem to be configured
Ignoring source without Contents File:
http://security.debian.org/dists/testing/updates/main/Contents-amd64.gz
Ignoring source without Contents File:
http://security.debian.org/dists/testing/updates/contrib/Contents-amd64.gz
Ignoring source without Contents File:
http://security.debian.org/dists/testing/updates/non-free/Contents-amd64.gz
Downloading Index http://http.debian.net/debian/dists/testing/main/Contents-amd64.diff/Index:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 7933 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
Index is up-to-date.
Downloading Index http://http.debian.net/debian/dists/testing/contrib/Contents-amd64.diff/Index:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 7819 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
Index is up-to-date.
Downloading Index http://http.debian.net/debian/dists/testing/non-free/Contents-amd64.diff/Index:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
Index is up-to-date.
Downloading Index http://http.debian.net/debian/dists/unstable/main/Contents-amd64.diff/Index:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 7933 100 7933 0 0 5454 0 0:00:01 0:00:01 --:--:-- 5454
Calculating old sha1sum...
File is up-to-date.
Downloading Index http://http.debian.net/debian/dists/unstable/contrib/Contents-amd64.diff/Index:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
Index is up-to-date.
Downloading Index http://http.debian.net/debian/dists/unstable/non-free/Contents-amd64.diff/Index:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 7876 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
Index is up-to-date.
Downloading Index http://http.debian.net/debian/dists/experimental/main/Contents-amd64.diff/Index:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
Index is up-to-date.
Downloading Index http://http.debian.net/debian/dists/experimental/contrib/Contents-amd64.diff/Index:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 7819 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
Index is up-to-date.
Downloading Index http://http.debian.net/debian/dists/experimental/non-free/Contents-amd64.diff/Index:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
Index is up-to-date.
Checking that licensecheck is installed...
[ok]
Solving dependencies for package imeji (tests are included)
Analysing pom.xml...
Enter the upstream version for the package.
[2.0.0.0] >
Version of org.imeji:imeji is 2.0.0.0
Choose how the version will be transformed:
0 - Replace all versions starting by 2. with 2.x
[1] - Change the version to the symbolic 'debian' version
2 - Keep the version
3 - Custom rule
>
Resolving commons-io:commons-io:jar:2.4 of scope runtime...
Dependency commons-io:commons-io:jar:2.4 found in package libcommons-io-java
[ok]
Resolving commons-fileupload:commons-fileupload:jar:1.2.2 of scope runtime...
Dependency commons-fileupload:commons-fileupload:jar:1.2.2 found in package libcommons-fileupload-java
[ok]
Resolving org.apache.jena:apache-jena-libs:pom:2.11.0 of scope runtime...
In pom.xml: This dependency cannot be found in the Debian Maven repository. Ignore this dependency? org.apache.jena:apache-jena-libs:pom:2.11.0
[y/N] > y
[ignored]
Resolving org.escidoc.core:escidoc-ijc:jar:1.3.2 of scope runtime...
[check dependency with bundle type]
In pom.xml: This dependency cannot be found in the Debian Maven repository. Ignore this dependency? org.escidoc.core:escidoc-ijc:jar:1.3.2
[y/N] > y
[ignored]
Resolving com.ocpsoft:prettyfaces-jsf2:jar:3.3.3 of scope runtime...
[check dependency with bundle type]
In pom.xml: This dependency cannot be found in the Debian Maven repository. Ignore this dependency? com.ocpsoft:prettyfaces-jsf2:jar:3.3.3
[y/N] > y
[ignored]
Resolving log4j:log4j:jar:1.2.17 of scope runtime...
Dependency log4j:log4j:jar:1.2.17 found in package liblog4j1.2-java
[ok]
Resolving javax:javaee-api:jar:6.0 of scope provided...
[check dependency with bundle type]
In pom.xml: This dependency cannot be found in the Debian Maven repository. Ignore this dependency? javax:javaee-api:jar:6.0
[y/N] > y
[ignored]
Resolving javax.mail:mail:jar:1.4 of scope compile...
[check dependency with bundle type]
In pom.xml: This dependency cannot be found in the Debian Maven repository. Ignore this dependency? javax.mail:mail:jar:1.4
[y/N] >
> dpkg --search /usr/share/maven-repo/javax/mail/mail/*/*
dpkg failed to execute successfully
> apt-file search /usr/share/maven-repo/javax/mail/mail
Found /usr/share/maven-repo/javax/mail/mail/1.4.1/mail-1.4.1.pom in glassfish-mail
Found /usr/share/maven-repo/javax/mail/mail/debian/mail-debian.pom in glassfish-mail
> dpkg --search /usr/share/java/mail.jar
dpkg failed to execute successfully
> apt-file search /usr/share/java/mail.jar
[error] Cannot resolve Maven dependency javax.mail:mail:jar:1.4. If you know a package that contains a compatible dependency,
try to enter a substitution rule of the form s/groupId/newGroupId/ s/artifactId/newArtifactId/ jar s/version/newVersion/ here:
>
Try again to resolve the dependency?
[Y/n] > n
[error]
Jul 18, 2014 1:55:26 PM org.debian.maven.packager.DependenciesSolver$ToResolve resolve
SCHWERWIEGEND: Cannot resolve dependencies in ./pom.xml: Dependency not found javax.mail:mail:jar:1.4
Resolving org.richfaces:richfaces-bom:pom:4.2.3.Final of scope import...
[skipped dependency or plugin management]
Resolving org.apache.maven.plugins:maven-release-plugin:maven-plugin:2.5 of scope runtime...
In pom.xml: This plugin is not useful for the build or its use is against Debian policies. Ignore this plugin? org.apache.maven.plugins:maven-release-plugin:maven-plugin:2.5
[Y/n] >
[ignored]
Resolving org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.5.1 of scope runtime...
Dependency org.apache.maven.plugins:maven-compiler-plugin:maven-plugin:2.5.1 found in package libmaven-compiler-plugin-java
[ok]
Resolving org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1.1 of scope runtime...
In pom.xml: This plugin cannot be found in the Debian Maven repository. Ignore this plugin? org.apache.maven.plugins:maven-war-plugin:maven-plugin:2.1.1
[y/N] > y
[ignored]
Resolving org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.10 of scope runtime...
Dependency org.apache.maven.plugins:maven-surefire-plugin:maven-plugin:2.10 found in package libsurefire-java
[ok]
Resolving org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.7 of scope runtime...
In pom.xml: This plugin cannot be found in the Debian Maven repository. Ignore this plugin? org.apache.maven.plugins:maven-antrun-plugin:maven-plugin:1.7
[y/N] > y
[ignored]
Resolving org.codehaus.mojo:buildnumber-maven-plugin:maven-plugin:null of scope runtime...
In pom.xml: This plugin may be ignored in some cases. Ignore this plugin? org.codehaus.mojo:buildnumber-maven-plugin:maven-plugin:null
[Y/n] >
[ignored]
Resolving org.eclipse.m2e:lifecycle-mapping:maven-plugin:1.0.0 of scope runtime...
[skipped dependency or plugin management]
ERROR:
pom.xml: dependency is not packaged in the Maven repository for Debian: javax.mail:mail:1.4
--------
Some problems were found in this project, exiting...
Is the solution to get at least "some" debian packaging stuff by ignoring javax.mail?
Kind regards
Andreas.
--
http://fam-tille.de
Reply to: