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

We tried to make LogicalDOC as intuitive as possible, but an advice is always welcome.

Moderator: car031

Sean
Posts: 12
Joined: Thu Apr 07, 2011 12:29 pm

Build Error

Mon Oct 15, 2012 6:29 pm

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
car031
Posts: 154
Joined: Tue Apr 17, 2012 8:27 am

Re: Build Error

Wed Oct 17, 2012 7:16 am

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.
Sean
Posts: 12
Joined: Thu Apr 07, 2011 12:29 pm

Re: Build Error

Wed Oct 17, 2012 10:56 am

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!
mmeschieri
Posts: 242
Joined: Mon Apr 19, 2010 3:40 pm

Re: Build Error

Wed Oct 17, 2012 4:34 pm

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
Sean
Posts: 12
Joined: Thu Apr 07, 2011 12:29 pm

Re: Build Error

Mon Oct 22, 2012 5:53 pm

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!

Return to “Usage”

Who is online

Users browsing this forum: No registered users and 42 guests

× Attention! This forum has been dismissed and will be soon removed. 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.