Hello,
I am having some difficulties with building logicaldoc from the source. It used to work all well up to now but now when I issue mvn -Dmaven.test.skip=true install it throws a Build Failure. See the following:
[ERROR] BUILD ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
Missing:
----------
1) javax.jms:jms:jar:1.1
Try downloading the file manually from:
http://java.sun.com/products/jms/docs.html
Then, install it using the command:
mvn install:install-file -DgroupId=javax.jms -DartifactId=jms -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=javax.jms -DartifactId=jms -Dversion=1.1 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.logicaldoc:logicaldoc-web:war:5.2.1
2) log4j:log4j:jar:1.2.15
3) javax.jms:jms:jar:1.1
2) javax.media:jai-core:jar:1.1.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=javax.media -DartifactId=jai-core -Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=javax.media -DartifactId=jai-core -Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.logicaldoc:logicaldoc-web:war:5.2.1
2) com.logicaldoc:logicaldoc-core:jar:5.2.1
3) javax.media:jai-core:jar:1.1.3
3) com.sun.media:jai-codec:jar:1.1.3
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=com.sun.media -DartifactId=jai-codec -Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=com.sun.media -DartifactId=jai-codec -Dversion=1.1.3 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) com.logicaldoc:logicaldoc-web:war:5.2.1
2) com.logicaldoc:logicaldoc-core:jar:5.2.1
3) com.sun.media:jai-codec:jar:1.1.3
----------
3 required artifacts are missing.
for artifact:
com.logicaldoc:logicaldoc-web:war:5.2.1
Could you please assist me to get my Build working again.
Many thanks
The contents you find here are totally obsolete so do not use this website to obtain a solution for your issues: the indications you get from here will not be accurate and may lead to data loss or other mayor problems
Build Error
Moderator: car031
Post
Re: Build Error
This is a dependency from Oracle/Sun so you have to follow the indications given by maven, this dependency cannot be hosted in pur shared maven repo due to licensing reasons.
Post
Re: Build Error
Hello,
Thank you for the reply. The thing is that the Build was working fine up to very recent, it's just since couple of days which I get this error...
Could you please be more specific and explain what I exactly have to do/download?
Many thanks again!
Thank you for the reply. The thing is that the Build was working fine up to very recent, it's just since couple of days which I get this error...
Could you please be more specific and explain what I exactly have to do/download?
Many thanks again!
Post
Re: Build Error
You have to search for the file jai-codec-1.1.3.jar
Than you can install it locally by executing
mvn install:install-file -DgroupId=com.sun.media -DartifactId=jai-codec -Dversion=1.1.3 -Dpackaging=jar -Dfile=jai-codec-1.1.3.jar
Than you can install it locally by executing
mvn install:install-file -DgroupId=com.sun.media -DartifactId=jai-codec -Dversion=1.1.3 -Dpackaging=jar -Dfile=jai-codec-1.1.3.jar
Post
Re: Build Error
Hello there,
Thank you for your help. I downloaded and installed those missing jars and those errors seem to haven been resolved. However after I execute mvn -Dmaven.test.skip=true
install I get a FATAL error! Please have a look:
[INFO] Packaging webapp
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] modelEncoding : modelEncoding
---- Debugging information ----
message : modelEncoding : modelEncoding
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : modelEncoding : modelEncoding
class : org.apache.maven.plugin.war.util.WebappStructure
required-type : org.apache.maven.model.Dependency
path : /webapp-structure/dependenciesInfo/org.apache.maven.plugin.war.util.DependencyInfo/dependency/modelEncoding
line number : 1021
-------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Trace
com.thoughtworks.xstream.converters.ConversionException: modelEncoding : modelEncoding
---- Debugging information ----
message : modelEncoding : modelEncoding
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : modelEncoding : modelEncoding
class : org.apache.maven.plugin.war.util.WebappStructure
required-type : org.apache.maven.model.Dependency
path : /webapp-structure/dependenciesInfo/org.apache.maven.plugin.war.util.DependencyInfo/dependency/modelEncoding
line number : 1021
-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:63)
...
I need your help again!
Many thanks!
Thank you for your help. I downloaded and installed those missing jars and those errors seem to haven been resolved. However after I execute mvn -Dmaven.test.skip=true
install I get a FATAL error! Please have a look:
[INFO] Packaging webapp
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] modelEncoding : modelEncoding
---- Debugging information ----
message : modelEncoding : modelEncoding
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : modelEncoding : modelEncoding
class : org.apache.maven.plugin.war.util.WebappStructure
required-type : org.apache.maven.model.Dependency
path : /webapp-structure/dependenciesInfo/org.apache.maven.plugin.war.util.DependencyInfo/dependency/modelEncoding
line number : 1021
-------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Trace
com.thoughtworks.xstream.converters.ConversionException: modelEncoding : modelEncoding
---- Debugging information ----
message : modelEncoding : modelEncoding
cause-exception : com.thoughtworks.xstream.mapper.CannotResolveClassException
cause-message : modelEncoding : modelEncoding
class : org.apache.maven.plugin.war.util.WebappStructure
required-type : org.apache.maven.model.Dependency
path : /webapp-structure/dependenciesInfo/org.apache.maven.plugin.war.util.DependencyInfo/dependency/modelEncoding
line number : 1021
-------------------------------
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:63)
...
I need your help again!

Many thanks!
Who is online
Users browsing this forum: No registered users and 60 guests