-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeps.notes
190 lines (144 loc) · 6.63 KB
/
deps.notes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
# debug
%mvn_build -X
# ignore tests
%mvn_build -f
# no javadoc
%mvn_build -j
Note: fix groups for Python, GUI, etc...
###########export ANT_OPTS="-mx256m" against blackdown
#export ANT_OPTS="-Xmx256m" against blackdown (compat)
#export MAVEN_OPTS="-Xmx256m"
# for PermGen error, running out of memory #-XX:MaxPermSize=256m
export MAVEN_OPTS=-XX:MaxPermSize=512m
#-Dmaven.javadoc.additionalparam=-J-Xmx512m
#-Dmaven.test.skip=true
#-Dmaven.test.skip.exec=true
#-Dmaven.test.failure.ignore=true
#-Dmaven.javadoc.skip=true
#-Dmaven.javadoc.source=1.5
# old
#-Dmaven.compile.target=1.5 -Dmaven.javadoc.source=1.5 \
new maven-compiler-plugin
#-Dmaven.compiler.source=1.5 -Dmaven.compiler.target=1.5 -Dmaven.javadoc.source=1.5 \
#-Dproject.build.sourceEncoding=UTF-8
вместо
%mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.lang -Dmaven.compiler.source=1.3 -Dmaven.compiler.target=1.3
можно (xmvn >= 3.1)
%mvn_config buildSettings/compilerSource 1.3
#http://maven.apache.org/maven-1.x/plugins/test/properties.html
#-Dmaven.junit.jvmargs='-Xmx256m -verbose'
# does not work :(
##List of ant patterns (spared by commas) used in test:match goal to specify the tests that shouldn't run
##-Dtestnotmatchpattern='*'
##-Dtestnotmatchpattern='Hey*,Joo*,??Kaa*'
#ant -Dtest.failonerror=false
#-Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5
#-Dant.javadoc.maxmemory=64m
$ -DskipAssembly=true \
# Guice inject errors
#-Dorg.sonatype.inject.debug
error: unmappable character for encoding ASCII
export LANG=en_US.ISO8859-1
or
-Dproject.build.sourceEncoding=ISO8859-1
# java7 javadoc encodings error (unmappable character for encoding utf-8)
$jpp->get_section('build')->subst(qr'export MAVEN_OPTS="','export MAVEN_OPTS="-Dproject.build.sourceEncoding=ISO-8859-1 ');
# maven opt to avoid xvfb
#-Djava.awt.headless=true
export MAVEN_OPTS="-Xbootclasspath/p:$(build-classpath objectweb-asm)"
subst 's,mvn-jpp ,mvn-jpp -Dmaven.test.skip=true ,' *.spec
+ install:install-file -DgroupId=xpp3 -DartifactId=xpp3_min \
+ -Dversion=1.1.4c -Dpackaging=jar -Dfile=$(build-classpath xpp3)
редактирование
попробуйте сначала вот так, установить оба вместе:
mvn install:install-file -DgroupId=com.github.maven-nar -DartifactId=nar-maven-plugin \
-Dversion=3.2.3 -Dpackaging=jar -Dfile=/home/parus/nar-maven-plugin-3.2.3.jar \
-DpomFile=/home/parus/nar-maven-plugin-3.2.3.pom
find maven2-brew \! -path '*/org/jboss/security/*' -type f -print -delete ||:
find maven2-brew -exec rmdir -p {} \; 2>/dev/null ||:
# Maven 2 -> Maven 3
%pom_remove_dep :maven-project
%pom_add_dep org.apache.maven:maven-core
%pom_add_dep org.apache.maven:maven-compat
%pom_xpath_set "pom:dependency[pom:groupId[text()='org.apache.maven']]/pom:version" 3.0.4
or
%pom_change_dep com.vividsolutions:jts:1.10 com.vividsolutions:jts:1.14.0 querydsl-sql
# http://comments.gmane.org/gmane.comp.finance.mifos.devel/8362
# Failed to retrieve numeric file attributes using: '/bin/sh -c ls -1nlaR /'
# I should have not specified <directory>/<directory> in the descriptor.
# I should have removed that line.
# <directory>/</directory>
# <outputDirectory>/</outputDirectory>
#--------------------------------------------------------------
# Don't install javadoc and sources jars
%mvn_package ":{*}::{sources,javadoc}:" __noinstall
то же через
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin
# or in specific pom (lang/java/pom.xml)
%pom_disable_module protobuf lang/java
%pom_remove_plugin org.apache.maven.plugins:maven-enforcer-plugin lang/java
# Disable javadoc jar
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"
# Disable source jar
%pom_remove_plugin :maven-source-plugin
# remove unnecessary dependency on parent POM
%pom_remove_parent
# compat:
%mvn_compat_version : 1 %{version}
%pom_change_dep -r :geronimo-annotation_1.2_spec javax.annotation:javax.annotation-api:1.2
%mvn_compat_version log4j:log4j 1.2.17 1.2.16 1.2.15 1.2.14 1.2.13 1.2.12 12
#--------------------------------------------------------------
# single test job if test failures on multicore
# proposed fix?
#%mvn_build -- -DforkCount=0 -DthreadCount=0
see https://maven.apache.org/surefire/maven-surefire-plugin/examples/fork-options-and-parallel-execution.html
#--------------------------------------------------------------
DONE: with old modello, -Dmodel=path/to/file.mdo will help
DONE: added myfaces-core-api-parent and added Obsoletes:myfaces-core11-api-parent to myfaces-core12-api
[ERROR] org.apache.velocity.exception.ParseErrorException: Encountered "/" at
+org/apache/maven/doxia/siterenderer/resources/default-site.vm[line 23, column
+51]
Was expecting one of:
"," ...
")" ...
<WHITESPACE> ..
indicate that velocity14/15 should be used. (deprecated!!! now just use velocity)
# conflict with smc
smc -> jsmc
=======================================
---
UP:
TODO: jcalendar, jgoodies-* asked msp, no need to rush
maven3: todo: fix plugins to allow cmdline override
apache-commons-lang: -Dmaven.javadoc.source=1.4 was ignored by javadoc plugin defaults (1.5)
maven3: assembly: assembly.xml must have <id></id> see fest-assembly patch for example
an example for null assembly id (cargo0)
> sed -i -e 's,<assembly>,<assembly><id>ALT</id>,' core/uberjar/src/assemble/main.xml
< core/uberjar/target/%{oldname}-core-uberjar-%{version}.jar \
> core/uberjar/target/%{oldname}-core-uberjar-%{version}-ALT.jar \
DONE: jacoco-> No solution found because the problem is unsatisfiable.": ["Unable to satisfy dependency from org.jacoco.core 0.5.9.201207300726 to bundle ...
ThxGoodness, fixed with -Dtycho.targetPlatform=%_libdir/eclipse
tycho:
-Dtycho.targetPlatform=/usr/lib64/eclipse
[ERROR] Then, install it using the command:
[ERROR] mvn install:install-file -DgroupId=jdepend -DartifactId=jdepend -Dversion=2.9.1 -Dpackaging=jar -Dfile=/path/to/file
TODO: 16core=outofmemory -- -Dmaven.test.skip.exec=true
simple
disruptor
bean-validation-api
grizzly
# eclipse
#jetty -> [ artifact org.eclipse.equinox.http:servlet:jar:1.0.0-v20070606 ] <> eclipse-platform
#jgit from eclipse-jgit
# eclipse-swt, eclipse-equinox-osgi
(unbootstrap:)
jruby (missing subdirs)TODO devel + rpm-macros-jruby
sisu -> (eclipse stuff?)
pki-core ->
jspecview -> icedtea-web + eclipse -> to checkout with jars
sdljava -> (fix swig generation or re-use generated.tar hack)
javapackages-tools: 0002 gradle patch breaks gradle
or update to xmvn 2.5+maven 3.3.9
mvn install:install-file -Dfile=../SOURCES/netty-tcnative.jar -DgroupId=io.netty -DartifactId=netty-tcnative -Dversion=1.1.30.Fork2 -Dpackaging=jar
then pack ~/.m2?