[Bug 865599] New: maven local mode does not seem to resolve first from the m2 cache
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=865599
Bug ID: 865599
QA Contact: extras-qa(a)fedoraproject.org
Severity: high
Version: rawhide
Priority: high
CC: akurtako(a)redhat.com,
java-sig-commits(a)lists.fedoraproject.org,
mizdebsk(a)redhat.com, sochotni(a)redhat.com
Assignee: sochotni(a)redhat.com
Summary: maven local mode does not seem to resolve first from
the m2 cache
Regression: ---
Story Points: ---
Classification: Fedora
OS: Linux
Reporter: rgrunber(a)redhat.com
Type: Bug
Documentation: ---
Hardware: All
Mount Type: ---
Status: NEW
Component: maven
Product: Fedora
When an artifact exists in both the m2 cache, and on the system, mvn-rpmbuild
does not use the version in the m2 cache.
Resources :
http://rgrunber.fedorapeople.org/abc-1.0-1.fc19.noarch.rpm (rpm providing
abc:abc)
http://rgrunber.fedorapeople.org/abc.tar.bz2 (project abc:abc)
Steps to reproduce :
1. yum install abc-1.0.fc19.noarch.rpm. So now there is abc:abc:1.0 on the
system.
2. Extract abc.tar.bz2 and run mvn-rpmbuild clean install. Now there should be
abc:abc:1.0 in the m2 cache from where the build was run.
3. Change project version to 1.1 in pom.xml and uncomment dependency on
abc:abc:1.0.
4. Run mvn-rpmbuild -X -Dmaven.local.debug=true clean install 1>log1.txt
2>log2.txt
The logs (classpathElements list) should reveal that when abc:abc:1.0 was
requested, abc:abc:1.0 was returned from the system repository
(/usr/share/maven/repository/JPP/abc.jar), and not the local m2 cache.
Additionally, you can yum remove abc, and run the build again to confirm that
the classpathElements list changes to use the artifact in the m2 cache
(/path/to/build/.m2/abc/abc/1.0/abc-1.0.jar).
Have I done something weird ? It would be nice if there were a way (even if it
weren't the default) to have the resolver check the m2 cache first.
--
You are receiving this mail because:
You are on the CC list for the bug.
11 years, 5 months
[Bug 869399] New: Maven RPM source test scope patch issue
by Red Hat Bugzilla
https://bugzilla.redhat.com/show_bug.cgi?id=869399
Bug ID: 869399
QA Contact: extras-qa(a)fedoraproject.org
Severity: high
Version: 17
Priority: unspecified
CC: akurtako(a)redhat.com,
java-sig-commits(a)lists.fedoraproject.org,
jdcasey(a)commonjava.org, mizdebsk(a)redhat.com,
sochotni(a)redhat.com
Assignee: sochotni(a)redhat.com
Summary: Maven RPM source test scope patch issue
Regression: ---
Story Points: ---
Classification: Fedora
OS: Unspecified
Reporter: ncross(a)redhat.com
Type: Bug
Documentation: ---
Hardware: Unspecified
Mount Type: ---
Status: ASSIGNED
Component: maven
Product: Fedora
Description of problem:
Maven 3.0.3 and 3.0.4 RPMs appear to be patched and not using clean source
2011-08-30 - Stanislav Ochotnicky <sochotnicky(a)redhat.com> - 3.0.3-14 - Fix
test scope skipping
I found this upstream ticket and patch here
https://jira.codehaus.org/browse/MNG-5177
This ticket has been closed as invalid/won't fix. This patch breaks Maven
maven.test.skip functionality. Can it be reverted please?
Version-Release number of selected component (if applicable):
3.0.3 and 3.0.4 releases.
This applies to F16/F17 and maybe F18. Possibly it might also apply to other
RPM builds?
How reproducible:
Everytime
--
You are receiving this mail because:
You are on the CC list for the bug.
11 years, 5 months
[javapackages-tools] Shorten maven filelist filenames
by Stanislav Ochotnicky
commit b9afd9aea8c3b5da888ff0230c356444e7edd3a7
Author: Stanislav Ochotnicky <sochotnicky(a)redhat.com>
Date: Wed Oct 31 17:35:56 2012 +0100
Shorten maven filelist filenames
.gitignore | 1 +
javapackages-tools.spec | 5 ++++-
sources | 2 +-
3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 1a42427..8bc6d04 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
/javapackages-0.6.0.tar.xz
/javapackages-0.7.0.tar.xz
/javapackages-0.7.2.tar.xz
+/javapackages-0.7.4.tar.xz
diff --git a/javapackages-tools.spec b/javapackages-tools.spec
index 2a44222..e26cd9d 100644
--- a/javapackages-tools.spec
+++ b/javapackages-tools.spec
@@ -1,5 +1,5 @@
Name: javapackages-tools
-Version: 0.7.3
+Version: 0.7.4
Release: 1%{?dist}
Summary: Fedora macros and scripts for Java packaging support
@@ -51,6 +51,9 @@ install -pm 644 scripts/pom_editor.sh $RPM_BUILD_ROOT%{_javadir}-utils/
%changelog
+* Wed Oct 31 2012 Stanislav Ochotnicky <sochotnicky(a)redhat.com> - 0.7.4-1
+- Shorten maven filelist filenames
+
* Wed Oct 31 2012 Mikolaj Izdebski <mizdebsk(a)redhat.com> - 0.7.3-1
- Update to upstream version 0.7.3
diff --git a/sources b/sources
index c547d09..bca41c7 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-f7faf6d7fe2efbe94bc4e39d0f89b416 javapackages-0.7.3.tar.xz
+9c9addfb0d1b2b4f959f8e5547ee23cb javapackages-0.7.4.tar.xz
11 years, 6 months
[javapackages] Shorten maven file list filename
by Stanislav Ochotnicky
commit 416ff8ca9b87d561ff2c76e5fb8ce99cdee2a14f
Author: Stanislav Ochotnicky <sochotnicky(a)redhat.com>
Date: Wed Oct 31 17:33:53 2012 +0100
Shorten maven file list filename
macros.fjava | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/macros.fjava b/macros.fjava
index b2a1a8c..cdd510d 100644
--- a/macros.fjava
+++ b/macros.fjava
@@ -64,7 +64,7 @@ set -e \
_pompart="%1" \
_jarpart="%2" \
%endif \
-_filelist="maven-files-%{name}%{-f*:-%{-f*}}" \
+_filelist=".mfiles%{-f*:-%{-f*}}" \
install -dm 755 $RPM_BUILD_ROOT/%{_mavendepmapfragdir}\
for _dir in %{_jnidir} %{_javajnidir} %{_javadir}; do \
if [ -f %{buildroot}/$_dir/$_jarpart ]; then \
11 years, 6 months
[maven] Don't exho in maven-script
by Mikolaj Izdebski
commit c9e849a077a732c3e6384326c04bfdc7d468b2e2
Author: Mikolaj Izdebski <mizdebsk(a)redhat.com>
Date: Wed Oct 31 14:59:45 2012 +0100
Don't exho in maven-script
- Add bash completion for -Dproject.build.sourceEncoding
maven-bash-completion | 1 +
maven-script | 1 -
maven.spec | 6 +++++-
3 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/maven-bash-completion b/maven-bash-completion
index fc076fe..d137cd4 100644
--- a/maven-bash-completion
+++ b/maven-bash-completion
@@ -68,6 +68,7 @@ _m2_complete()
-Dmaven.compiler.target=1.5
-Dmaven.compiler.target=1.6
-Dmaven.compiler.target=1.7
+ -Dproject.build.sourceEncoding=UTF-8
-Dmaven.repo.local=
-Dmaven.local.depmap.file=
-Dmaven.local.debug=true
diff --git a/maven-script b/maven-script
index e119cf5..4ab680b 100644
--- a/maven-script
+++ b/maven-script
@@ -6,5 +6,4 @@ if [ -f /usr/share/java-utils/java-functions ] ; then
fi
export M2_HOME=/usr/share/maven
-echo $JAVA_HOME
export JAVA_HOME; $M2_HOME/bin/mvn "$@"
diff --git a/maven.spec b/maven.spec
index b996839..edc641d 100644
--- a/maven.spec
+++ b/maven.spec
@@ -2,7 +2,7 @@
Name: maven
Version: 3.0.4
-Release: 15%{?dist}
+Release: 16%{?dist}
Summary: Java project management and project comprehension tool
Group: Development/Tools
@@ -377,6 +377,10 @@ ln -sf `rpm --eval '%%{_jnidir}'` %{_datadir}/%{name}/repository-jni/JPP
%changelog
+* Wed Oct 31 2012 Mikolaj Izdebski <mizdebsk(a)redhat.com> - 3.0.4-16
+- Don't exho in maven-script
+- Add bash completion for -Dproject.build.sourceEncoding
+
* Mon Oct 29 2012 Mikolaj Izdebski <mizdebsk(a)redhat.com> - 3.0.4-15
- Add a few bash completion goals
11 years, 6 months
[javapackages-tools] Update to upstream version 0.7.3
by Mikolaj Izdebski
commit 35e2a197123f453141458aeee102b2b51face894
Author: Mikolaj Izdebski <mizdebsk(a)redhat.com>
Date: Wed Oct 31 13:23:04 2012 +0100
Update to upstream version 0.7.3
javapackages-tools.spec | 5 ++++-
sources | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/javapackages-tools.spec b/javapackages-tools.spec
index ebea1da..2a44222 100644
--- a/javapackages-tools.spec
+++ b/javapackages-tools.spec
@@ -1,5 +1,5 @@
Name: javapackages-tools
-Version: 0.7.2
+Version: 0.7.3
Release: 1%{?dist}
Summary: Fedora macros and scripts for Java packaging support
@@ -51,6 +51,9 @@ install -pm 644 scripts/pom_editor.sh $RPM_BUILD_ROOT%{_javadir}-utils/
%changelog
+* Wed Oct 31 2012 Mikolaj Izdebski <mizdebsk(a)redhat.com> - 0.7.3-1
+- Update to upstream version 0.7.3
+
* Wed Oct 31 2012 Stanislav Ochotnicky <sochotnicky(a)redhat.com> - 0.7.2-1
- Make sure add_maven_depmap fails when python tracebacks
diff --git a/sources b/sources
index 47a427e..c547d09 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-32e642494a04ac24c350a90e87c90e1a javapackages-0.7.2.tar.xz
+f7faf6d7fe2efbe94bc4e39d0f89b416 javapackages-0.7.3.tar.xz
11 years, 6 months